Power Systems and E&M Simulation Code