Tesla reported a revenue of $4 billion in the second quarter of 2018, with $2.2 billion in cash in hand.