EMS routine doesn't work    
   Hi all! I am writing to you to understand why the EMS routine I have implemented in the model doesn’t give output values. I've created all the sensors, then the actuators. In the program section I've added the routine and in the global variable I've put variables coming from the routine. In Output:variable I've created a variable with the schedule of the routine, but after that analysis ends in the excel file in the column of the schedule result are 0. The EMS code is the following:
!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:SENSOR ===========
EnergyManagementSystem:Sensor,
   Tout,                    !- Name
   Environment,             !- Output:Variable or Output:Meter Index Key Name
   Site Outdoor Air Drybulb Temperature;  !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
   RHout,                   !- Name
   Environment,             !- Output:Variable or Output:Meter Index Key Name
   Site Outdoor Air Relative Humidity;  !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
   WS,                      !- Name
   Environment,             !- Output:Variable or Output:Meter Index Key Name
   Site Wind Speed;         !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
   Rain,                    !- Name
   Environment,             !- Output:Variable or Output:Meter Index Key Name
   Site Rain Status;        !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
   Tin_KXS1,                !- Name
   PianoSecondo:KXS1,       !- Output:Variable or Output:Meter Index Key Name
   Zone Mean Air Temperature;  !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
   RHin_KXS1,               !- Name
   PianoSecondo:KXS1,       !- Output:Variable or Output:Meter Index Key Name
   Zone Air Relative Humidity;  !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
   OCC_KXS1,                !- Name
   PianoSecondo:KXS1,       !- Output:Variable or Output:Meter Index Key Name
   Zone People Occupant Count;  !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
   Tin_LM1,                 !- Name
   PianoSecondo:LM1,        !- Output:Variable or Output:Meter Index Key Name
   Zone Mean Air Temperature;  !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
    RHin_LM1,                !- Name
    PianoSecondo:LM1,        !- Output:Variable or Output:Meter Index Key Name
    Zone Air Relative Humidity;  !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
    OCC_LM1,                 !- Name
    PianoSecondo:LM1,        !- Output:Variable or Output:Meter Index Key Name
    Zone People Occupant Count;  !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
    Tin_LS1,                 !- Name
    PianoSecondo:LS1,        !- Output:Variable or Output:Meter Index Key Name
    Zone Mean Air Temperature;  !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
    RH_LS1,                  !- Name
    PianoSecondo:LS1,        !- Output:Variable or Output:Meter Index Key Name
    Zone Air Relative Humidity;  !- Output:Variable or Output:Meter Name
EnergyManagementSystem:Sensor,
    OCC_LS1,                 !- Name
    PianoSecondo:LS1,        !- Output:Variable or Output:Meter Index Key Name
    Zone People Occupant Count;  !- Output:Variable or Output:Meter Name
!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:ACTUATOR ===========
EnergyManagementSystem:Actuator,
    Window1_S1_act,          !- Name
    BLDG_KXS1_WINDOW1_Jones_2017_SCH,  !- Actuated Component Unique Name
    Schedule:Compact,        !- Actuated Component Type
    Schedule Value;          !- Actuated Component Control Type
EnergyManagementSystem:Actuator,
    Window2_S1_act,          !- Name
    BLDG_KXS1_WINDOW2_Jones_2017_SCH,  !- Actuated Component Unique Name
    Schedule:Compact,        !- Actuated Component Type
    Schedule Value;          !- Actuated Component Control Type
EnergyManagementSystem:Actuator,
    Window_LM1_act,          !- Name
    BLDG_LM1_WINDOW_Jones_2017_SCH,  !- Actuated Component Unique Name
    Schedule:Compact,        !- Actuated Component Type
    Schedule Value;          !- Actuated Component Control Type
EnergyManagementSystem:Actuator,
    Window_LS1_act,          !- Name
    BLDG_LS1_WINDOW_Jones_2017_SCH,  !- Actuated Component Unique Name
    Schedule:Compact,        !- Actuated Component Type
    Schedule Value;          !- Actuated Component Control Type
!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:PROGRAM ===========
EnergyManagementSystem ...
 
 
 

How about you share your EMS code (+ Output:Variable) so we get a chance to see what's going on?
I've edited the question in order to share the EMS code + Output:Variable.
I formatted it as code and took the liberty of indenting your EMS program so that it's actually readable.
Perfect! Thank you! The issue is related to the Output:Variable BLDG_KXS1_WINDOW1_Jones_2017_SCH. It seems that the code doesn't work even though I have created all the relevant sensors.
This EMS code is only for the programs, could you also include the code lines where the sensors and actuators are defined? Also, are you sure that BLDG_KXS1_WINDOW1_Jones_2017_SCH is a schedule object created in the model?