Multi-time-scale analysis of a power system