Mathematical Modeling And Dynamic Recovery Of Power Systems