SMS: Power system analysis