Use EnergyManagementSystem:GlobalVariable to declare a list of EMS variable names which are global.
EnergyManagementSystem:GlobalVariable