Tesla Inc Chief Executive Elon Musk departed Shanghai on Thursday, wrapping up a two-day trip to China in which he met senior Chinese government officials including the highest-ranking vice premier.