Real-time Simulation of Modern Power Systems