Analysis of Power System