An Efficient Simulation Methodology for Electrical Energy Systems