Dakar - Senegal voted in a tense general election Sunday, with ex-president Abdoulaye Wade accusing his successor of engineering problems with the ballot to thwart an opposition victory.The vote to elect a new parliament is seen as a test run for President Macky Sall ahead of a 2019 presidential election and follows a campaign marred by violence. The first results are due early on Monday in the west African nation, where more than 6.2 million people are registered to vote.There were hours-long delays to voting in several places, and some voters complained of being left off the electoral rolls."I'm going home. I've checked at several polling stations and my name doesn't figure anywhere. However I normally vote here," complained Souleye Tine in Dakar's working-class Medina neighbourhood. Wade pointed the blame firmly at the president after a campaign that at times saw violent clashes in a country normally known for its peaceful democratic traditions."Macky Sall arranged it - he gave instructions so that in all the places where he thinks the opposition is going to win, there's no voting," Wade said."An election in which one of the candidates cannot find his ballot papers in the polling stations cannot be called an election," Wade said in reference to delays due to the absence of ballot papers for several electoral lists."I call on all voters who have voted to stay at their polling stations until the results are announced, to witness whether the results conform to reality."Angry voters At 91, Wade, who returned last month for the election campaign after two years abroad, is aiming to drum up support for his own list of candidates and his son Karim, who is not on the ballot but has ambitions for the presidency.Sall, in power since 2012, is seeking to bolster his parliamentary majority as he eyes a second term. Polling stations were due to close at 18:00 but in the central city of Touba the governor said people could vote until midnight after particularly long delays worsened by heavy overnight storms.A polling station in the city was vandalised by voters angry that ballot papers for Wade's coalition were unavailable, official news agency APS reported. Police, in a statement, said that a total of 147 polling stations had been trashed and three people, all candidates on Wade's list, had been detained.Sall's other main opponent, Dakar Mayor Khalifa Sall - no relation of the president - is in jail awaiting trial for what supporters say are politically motivated embezzlement charges. The mayor had been seen as a key contender for 2019 and a potential threat to the president in parliament until he was charged in March with allegedly misappropriating 1.83 billion CFA francs ($2.85 million) in city funds.Sall calls for calm Wade had accused the government during the campaign of seeking to prevent an opposition victory through selective delivery of the biometric ID cards needed to vote, with several hundred thousand failing to arrive on time.The constitutional council eventually moved to relax the rules so that people without the cards could use passports or other forms of identification to cast their ballots, along with proof they had applied for the IDs.Sall said he hoped the problems with the vote would be resolved."I hope people will vote calmly and return home calmly," APS quoted him as saying, adding: "Senegal is a democracy that cannot be pushed backwards."The election has been complicated by the record 47 lists of candidates in the running, meaning 47 types of ballot paper needed to be available at polling stations. Fifteen of the 165 seats in parliament are being set aside for Senegalese expatriates -- the first time that the country's diaspora, estimated at half a million, will have direct representation.Wade has accused Sall of "destroying" Senegal, while the president's side say Wade did not do enough to develop the nation while in power, boasting of their achievements in building a new airport and other infrastructure projects.