Efficiency measurement of traction motors