Scalable modeling and optimization of mode transitions based on decoupled power management architecture