Use of RTDS Real-Time Simulator for Dynamomoter Control in Electrical Machine Testing.