Energy management system using policy based hierarchical simulation framework