Simulation to determine motor temperature