Dynamic simulation of energy management control functions in VAV-HVAC systems