Shareholders voted to maintain Elon Musk’s role as chairman of Tesla’s board during the company’s annual shareholder meeting in Mountain View, California, despite a controversial proposal to strip him of that position.

The vote of confidence is a major boon for the electric car company's embattled chief executive and founder but arrives six months into what is arguably his company’s toughest year to date.

Moments after the vote, Mr Musk – who appeared emotional as his voice quivered – said the company has experienced “the most excruciating hellish several months that we’ve ever had.”

He added: “But I think we’re getting there."

In recent months, Tesla has been beset by critical production challenges involving its highly anticipated Model 3 sedan, accusations of poor worker safety and discrimination at company facilities, and headline-grabbing wrecks and investigations that have raised questions about the company’s semiautonomous technology.

Tesla’s stock is down about seven percent year-to-date.

The delayed rollout of the Model 3 – which has a waiting list hundreds of thousands of buyers long – has been the source of extreme frustration inside the company and out, generating concerns among some analysts that Mr Musk’s manufacturing pronouncements can’t be trusted.

At the shareholder meeting, Mr Musk said Tesla is producing 3,500 Model 3’s a week and he expects that number to reach 5,000 cars per week by the end of the month. Mr Musk said manufacturing will be Tesla’s greatest strength long-term and predicted the company would be profitable in Q3 and Q4.

Tesla Model X reviewed Show all 11 1 /11 Tesla Model X reviewed Tesla Model X reviewed Tesla Model X Tesla Model X - NOT FOR RE-USE Tesla Model X reviewed Tesla Model X Tesla Model X - NOT FOR RE-USE Tesla Model X reviewed Tesla Model X Tesla Model X - NOT FOR RE-USE Tesla Model X reviewed Tesla Model X Tesla Model X - NOT FOR RE-USE Tesla Model X reviewed Tesla Model X Tesla Model X - NOT FOR RE-USE Tesla Model X reviewed Tesla Model X Tesla Model X - NOT FOR RE-USE Tesla Model X reviewed Tesla Model X Tesla Model X - NOT FOR RE-USE Tesla Model X reviewed Tesla Model X Tesla Model X - NOT FOR RE-USE Tesla Model X reviewed Tesla Model X Tesla Model X - NOT FOR RE-USE Tesla Model X reviewed Tesla Model X Tesla Model X - NOT FOR RE-USE Tesla Model X reviewed Tesla Model X Tesla Model X - NOT FOR RE-USE

"We're confident we know how to address them and we are addressing them," Mr Musk said, referring to production issues plaguing the Model 3. "One of the biggest mistakes we made was trying to automate things that are super easy for a person to do, but super hard for a robot to do."

The vote also determined the fate of three members of Tesla’s board of directors: Antonio Gracias, a private equity investor; Kimbal Musk, Elon Musk’s brother and James Murdoch, the chief executive of Twenty-First Century Fox. Despite concerns that each member would be unable to help Musk focus on the many challenges Tesla faces, stockholders voted to maintain their positions on the board.

SpaceX 'Starman' glides into orbit in a Tesla Roadster after Falcon Heavy launch

The proposal to remove Mr Musk from his role as chairman of Tesla’s board was introduced by Jing Zhao, a shareholder who has questioned whether Mr Musk – who leads several other companies in addition to Tesla – is spread too thin.

“Although the current leadership structure, in which the positions of Chairman and CEO are held by one person, could provide an effective leadership for Tesla at the early stage, now in this much more highly competitive and rapidly changing technology industry, it is more and more difficult to oversee Tesla’s business and senior management (especially to minimise any potential conflicts) that may result from combining the positions of CEO and Chairman,” Mr Zhao wrote in his proposal.

Mr Musk’s exceptional ability to raise capital and convince investors to buy into his long-term vision is why Steve Blank – a retired Silicon Valley entrepreneur who teaches business at Stanford – thought it was unlikely Mr Musk would be removed from his position on Tesla’s board.

Like Steve Jobs before him, Mr Blank said, Mr Musk excels as a visionary and innovator but struggles to implement that vision. Jobs eventually mastered both innovation and execution, and Mr Blank thinks Mr Musk will, too, so long as he continues to move past the creative phase of his career.

“This is no longer an innovation problem, this is an execution at scale problem – unless Tesla wants to be a niche innovator chasing profitability and sucking up cash,” Mr Blank said. “They need to become experts at execution at scale, but that’s hard for people who in their DNA want to continually innovate.”