The company's acquisition of Solar City came with a large amount of debt, and it continues to lose money selling Model S and Model X electric vehiclesits two profitable quarters have been thanks to the sale of emissions credits to other companies.