Modeling and Simulation of Complex Power Systems