Power Systems Analysis Framework