Tesla reported revenue of $25.5 billion in the second quarter, compared with $24.9 billion a year earlier. Wall Street analysts on average had estimated revenue at $24.8 billion.