Repository: pnnl/tesp (language: python)

Issue:
bugfix on code inspection
This is probably the last change that I have


Discussion / hints:

Fix patch:
diff --git a/data/energyplus/emsHELICS/unused/emsSchoolDualController.idf b/data/energyplus/emsHELICS/unused/emsSchoolDualController.idf
new file mode 100644
index 00000000..5a3f018c
--- /dev/null
+++ b/data/energyplus/emsHELICS/unused/emsSchoolDualController.idf
@@ -0,0 +1,1301 @@
+! ***EMS PROGRAM***
+  Schedule:Compact,
+    C2_NOM,             !- Name
+    Temperature,             !- Schedule Type Limits Name
+    Through: 6/30,           !- Field 1
+    For: SummerDesignDay,    !- Field 2
+    Until: 24:00,24,         !- Field 3
+    For: WeekEnds Holidays WinterDesignDay, !- Field 5
+    Until: 24:00,27,         !- Field 6
+    For: AllOtherDays,       !- Field 8
+    Until: 06:00,27,         !- Field 9
+    Until: 21:00,24,         !- Field 11
+    Until: 24:00,27,         !- Field 13
+    Through: 9/1,            !- Field 15
+    For: SummerDesignDay,    !- Field 16
+    Until: 24:00,24,         !- Field 17
+    For: WeekEnds Holidays WinterDesignDay, !- Field 19
+    Until: 24:00,27,         !- Field 20
+    For: AllOtherDays,       !- Field 22
+    Until: 07:00,27,         !- Field 23
+    Until: 18:00,24,         !- Field 25
+    Until: 24:00,27,         !- Field 27
+    Through: 12/31,          !- Field 29
+    For: SummerDesignDay,    !- Field 30
+    Until: 24:00,24,         !- Field 31
+    For: WeekEnds Holidays WinterDesignDay, !- Field 33
+    Until: 24:00,27,         !- Field 34
+    For: AllOtherDays,       !- Field 36
+    Until: 06:00,27,         !- Field 37
+    Until: 21:00,24,         !- Field 39
+    Until: 24:00,27;         !- Field 41
+
+  Schedule:Compact,
+    C1_NOM,  !- Name
+    Temperature,             !- Schedule Type Limits Name
+    Through: 12/31,          !- Field 1
+    For: SummerDesignDay,    !- Field 2
+    Until: 06:00,27,         !- Field 3
+    Until: 21:00,24,         !- Field 5
+    Until: 24:00,27,         !- Field 7
+    For: AllOtherDays,       !- Field 9
+    Until: 24:00,27;         !- Field 10
+
+  Schedule:Compact,
+    H2_NOM,             !- Name
+    Temperature,             !- Schedule Type Limits Name
+    Through: 6/30,           !- Field 1
+    For: WinterDesignDay,    !- Field 2
+    Until: 24:00,21,         !- Field 3
+    For: WeekEnds Holidays SummerDesignDay, !- Field 5
+    Until: 24:00,16,         !- Field 6
+    For: AllOtherDays,       !- Field 8
+    Until: 06:00,16,         !- Field 9
+    Until: 21:00,21,         !- Field 11
+    Until: 24:00,16,         !- Field 13
+    Through: 9/1,            !- Field 15
+    For: WinterDesignDay,    !- Field 16
+    Until: 24:00,21,         !- Field 17
+    For: WeekEnds Holidays SummerDesignDay, !- Field 19
+    Until: 24:00,16,         !- Field 20
+    For: AllOtherDays,       !- Field 22
+    Until: 07:00,16,         !- Field 23
+    Until: 18:00,21,         !- Field 25
+    Until: 24:00,16,         !- Field 27
+    Through: 12/31,          !- Field 29
+    For: WinterDesignDay,    !- Field 30
+    Until: 24:00,21,         !- Field 31
+    For: WeekEnds Holidays SummerDesignDay, !- Field 33
+    Until: 24:00,16,         !- Field 34
+    For: AllOtherDays,       !- Field 36
+    Until: 06:00,16,         !- Field 37
+    Until: 21:00,21,         !- Field 39
+    Until: 24:00,16;         !- Field 41
+
+  Schedule:Compact,
+    H1_NOM,  !- Name
+    Temperature,             !- Schedule Type Limits Name
+    Through: 12/31,          !- Field 1
+    For: WinterDesignDay,    !- Field 2
+    Until: 06:00,16,         !- Field 3
+    Until: 21:00,21,         !- Field 5
+    Until: 24:00,16,         !- Field 7
+    For: AllOtherDays,       !- Field 9
+    Until: 24:00,16;         !- Field 10
+
+
+  EnergyManagementSystem:ProgramCallingManager,
+    Volume_Initializer,   !- Name
+    BeginNewEnvironment,  !- Calling Point
+    Initialize_Volumes;   !- Program Name
+  EnergyManagementSystem:ProgramCallingManager,
+    Setpoint_Controller,          !- Name
+    BeginTimestepBeforePredictor, !- Calling Point
+    Set_Setpoints;                !- Program Name
+  EnergyManagementSystem:ProgramCallingManager,
+    Demand_Reporter,                      !- Name
+    EndOfZoneTimestepAfterZoneReporting,  !- Calling Point
+    Report_Demand,
+    Report_Occupants,
+    Calculate_Temperatures;               !- Program Name
+  EnergyManagementSystem:Program,
+    Set_Setpoints,      !- Name
+    Set C2 = C2_NOM + cooling_setpoint_delta*5.0/9.0,
+    Set C1 = C1_NOM + cooling_setpoint_delta*5.0/9.0,
+    Set H2 = H2_NOM + heating_setpoint_delta*5.0/9.0,
+    Set H1 = H1_NOM + heating_setpoint_delta*5.0/9.0;
+
+  EnergyManagementSystem:Program,
+    Initialize_Volumes,
+    Set BATH_ZN_1_FLR_1_V = 760.00,
+    Set CAFETERIA_ZN_1_FLR_1_V = 1260.00,
+    Set COMPUTER_CLASS_ZN_1_FLR_1_V = 648.00,
+    Set CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V = 396.00,
+    Set CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V = 396.00,
+    Set CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V = 396.00,
+    Set CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V = 396.00,
+    Set CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V = 396.00,
+    Set CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V = 396.00,
+    Set CORRIDOR_POD_1_ZN_1_FLR_1_V = 768.00,
+    Set CORRIDOR_POD_2_ZN_1_FLR_1_V = 768.00,
+    Set CORRIDOR_POD_3_ZN_1_FLR_1_V = 768.00,
+    Set GYM_ZN_1_FLR_1_V = 1428.00,
+    Set KITCHEN_ZN_1_FLR_1_V = 672.00,
+    Set LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V = 1596.00,
+    Set LOBBY_ZN_1_FLR_1_V = 684.00,
+    Set MAIN_CORRIDOR_ZN_1_FLR_1_V = 2184.00,
+    Set MECH_ZN_1_FLR_1_V = 1008.00,
+    Set MULT_CLASS_1_POD_1_ZN_1_FLR_1_V = 1908.00,
+    Set MULT_CLASS_1_POD_2_ZN_1_FLR_1_V = 1908.00,
+    Set MULT_CLASS_1_POD_3_ZN_1_FLR_1_V = 1908.00,
+    Set MULT_CLASS_2_POD_1_ZN_1_FLR_1_V = 1908.00,
+    Set MULT_CLASS_2_POD_2_ZN_1_FLR_1_V = 1908.00,
+    Set MULT_CLASS_2_POD_3_ZN_1_FLR_1_V = 1260.00,
+    Set OFFICES_ZN_1_FLR_1_V = 1764.00;
+  
+  EnergyManagementSystem:Program,
+    Calculate_Temperatures,
+    Set TOTAL_COOL_V = 0.0,
+    Set TOTAL_HEAT_V = 0.0,
+    Set C_SET = 0.0,
+    Set H_SET = 0.0,
+    Set C_CUR = 0.0,
+    Set H_CUR = 0.0,
+    Set Total_V = 27484.00,
+    Set Controlled_V = 27484.00,
+    IF (BATH_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H1 * BATH_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + BATH_ZN_1_FLR_1_T * BATH_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + BATH_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (BATH_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C1 * BATH_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + BATH_ZN_1_FLR_1_T * BATH_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + BATH_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CAFETERIA_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * CAFETERIA_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + CAFETERIA_ZN_1_FLR_1_T * CAFETERIA_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + CAFETERIA_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CAFETERIA_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * CAFETERIA_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + CAFETERIA_ZN_1_FLR_1_T * CAFETERIA_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + CAFETERIA_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (COMPUTER_CLASS_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * COMPUTER_CLASS_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + COMPUTER_CLASS_ZN_1_FLR_1_T * COMPUTER_CLASS_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + COMPUTER_CLASS_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (COMPUTER_CLASS_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * COMPUTER_CLASS_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + COMPUTER_CLASS_ZN_1_FLR_1_T * COMPUTER_CLASS_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + COMPUTER_CLASS_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_1_POD_1_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + CORNER_CLASS_1_POD_1_ZN_1_FLR_1_T * CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_1_POD_1_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + CORNER_CLASS_1_POD_1_ZN_1_FLR_1_T * CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_1_POD_2_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + CORNER_CLASS_1_POD_2_ZN_1_FLR_1_T * CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_1_POD_2_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + CORNER_CLASS_1_POD_2_ZN_1_FLR_1_T * CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_1_POD_3_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + CORNER_CLASS_1_POD_3_ZN_1_FLR_1_T * CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_1_POD_3_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + CORNER_CLASS_1_POD_3_ZN_1_FLR_1_T * CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_2_POD_1_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + CORNER_CLASS_2_POD_1_ZN_1_FLR_1_T * CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_2_POD_1_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + CORNER_CLASS_2_POD_1_ZN_1_FLR_1_T * CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_2_POD_2_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + CORNER_CLASS_2_POD_2_ZN_1_FLR_1_T * CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_2_POD_2_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + CORNER_CLASS_2_POD_2_ZN_1_FLR_1_T * CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_2_POD_3_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + CORNER_CLASS_2_POD_3_ZN_1_FLR_1_T * CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORNER_CLASS_2_POD_3_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + CORNER_CLASS_2_POD_3_ZN_1_FLR_1_T * CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORRIDOR_POD_1_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H1 * CORRIDOR_POD_1_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + CORRIDOR_POD_1_ZN_1_FLR_1_T * CORRIDOR_POD_1_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + CORRIDOR_POD_1_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORRIDOR_POD_1_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C1 * CORRIDOR_POD_1_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + CORRIDOR_POD_1_ZN_1_FLR_1_T * CORRIDOR_POD_1_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + CORRIDOR_POD_1_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORRIDOR_POD_2_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H1 * CORRIDOR_POD_2_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + CORRIDOR_POD_2_ZN_1_FLR_1_T * CORRIDOR_POD_2_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + CORRIDOR_POD_2_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORRIDOR_POD_2_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C1 * CORRIDOR_POD_2_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + CORRIDOR_POD_2_ZN_1_FLR_1_T * CORRIDOR_POD_2_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + CORRIDOR_POD_2_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORRIDOR_POD_3_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H1 * CORRIDOR_POD_3_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + CORRIDOR_POD_3_ZN_1_FLR_1_T * CORRIDOR_POD_3_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + CORRIDOR_POD_3_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (CORRIDOR_POD_3_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C1 * CORRIDOR_POD_3_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + CORRIDOR_POD_3_ZN_1_FLR_1_T * CORRIDOR_POD_3_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + CORRIDOR_POD_3_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (GYM_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * GYM_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + GYM_ZN_1_FLR_1_T * GYM_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + GYM_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (GYM_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * GYM_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + GYM_ZN_1_FLR_1_T * GYM_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + GYM_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (KITCHEN_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H1 * KITCHEN_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + KITCHEN_ZN_1_FLR_1_T * KITCHEN_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + KITCHEN_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (KITCHEN_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C1 * KITCHEN_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + KITCHEN_ZN_1_FLR_1_T * KITCHEN_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + KITCHEN_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_T * LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_T * LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (LOBBY_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * LOBBY_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + LOBBY_ZN_1_FLR_1_T * LOBBY_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + LOBBY_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (LOBBY_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * LOBBY_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + LOBBY_ZN_1_FLR_1_T * LOBBY_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + LOBBY_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MAIN_CORRIDOR_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H1 * MAIN_CORRIDOR_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + MAIN_CORRIDOR_ZN_1_FLR_1_T * MAIN_CORRIDOR_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + MAIN_CORRIDOR_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MAIN_CORRIDOR_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C1 * MAIN_CORRIDOR_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + MAIN_CORRIDOR_ZN_1_FLR_1_T * MAIN_CORRIDOR_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + MAIN_CORRIDOR_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MECH_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H1 * MECH_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + MECH_ZN_1_FLR_1_T * MECH_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + MECH_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MECH_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C1 * MECH_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + MECH_ZN_1_FLR_1_T * MECH_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + MECH_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_1_POD_1_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * MULT_CLASS_1_POD_1_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + MULT_CLASS_1_POD_1_ZN_1_FLR_1_T * MULT_CLASS_1_POD_1_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + MULT_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_1_POD_1_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * MULT_CLASS_1_POD_1_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + MULT_CLASS_1_POD_1_ZN_1_FLR_1_T * MULT_CLASS_1_POD_1_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + MULT_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_1_POD_2_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * MULT_CLASS_1_POD_2_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + MULT_CLASS_1_POD_2_ZN_1_FLR_1_T * MULT_CLASS_1_POD_2_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + MULT_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_1_POD_2_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * MULT_CLASS_1_POD_2_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + MULT_CLASS_1_POD_2_ZN_1_FLR_1_T * MULT_CLASS_1_POD_2_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + MULT_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_1_POD_3_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * MULT_CLASS_1_POD_3_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + MULT_CLASS_1_POD_3_ZN_1_FLR_1_T * MULT_CLASS_1_POD_3_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + MULT_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_1_POD_3_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * MULT_CLASS_1_POD_3_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + MULT_CLASS_1_POD_3_ZN_1_FLR_1_T * MULT_CLASS_1_POD_3_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + MULT_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_2_POD_1_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * MULT_CLASS_2_POD_1_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + MULT_CLASS_2_POD_1_ZN_1_FLR_1_T * MULT_CLASS_2_POD_1_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + MULT_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_2_POD_1_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * MULT_CLASS_2_POD_1_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + MULT_CLASS_2_POD_1_ZN_1_FLR_1_T * MULT_CLASS_2_POD_1_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + MULT_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_2_POD_2_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * MULT_CLASS_2_POD_2_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + MULT_CLASS_2_POD_2_ZN_1_FLR_1_T * MULT_CLASS_2_POD_2_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + MULT_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_2_POD_2_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * MULT_CLASS_2_POD_2_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + MULT_CLASS_2_POD_2_ZN_1_FLR_1_T * MULT_CLASS_2_POD_2_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + MULT_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_2_POD_3_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * MULT_CLASS_2_POD_3_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + MULT_CLASS_2_POD_3_ZN_1_FLR_1_T * MULT_CLASS_2_POD_3_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + MULT_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (MULT_CLASS_2_POD_3_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * MULT_CLASS_2_POD_3_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + MULT_CLASS_2_POD_3_ZN_1_FLR_1_T * MULT_CLASS_2_POD_3_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + MULT_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (OFFICES_ZN_1_FLR_1_H > 0),
+      Set H_SET = H_SET + H2 * OFFICES_ZN_1_FLR_1_V,
+      Set H_CUR = H_CUR + OFFICES_ZN_1_FLR_1_T * OFFICES_ZN_1_FLR_1_V,
+      Set TOTAL_HEAT_V = TOTAL_HEAT_V + OFFICES_ZN_1_FLR_1_V,
+    ENDIF,
+    IF (OFFICES_ZN_1_FLR_1_C > 0),
+      Set C_SET = C_SET + C2 * OFFICES_ZN_1_FLR_1_V,
+      Set C_CUR = C_CUR + OFFICES_ZN_1_FLR_1_T * OFFICES_ZN_1_FLR_1_V,
+      Set TOTAL_COOL_V = TOTAL_COOL_V + OFFICES_ZN_1_FLR_1_V,
+    ENDIF,
+! Average temperature over controlled zone air volumes
+    Set T_CUR = 0,
+    Set T_CUR = T_CUR + BATH_ZN_1_FLR_1_T * BATH_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + CAFETERIA_ZN_1_FLR_1_T * CAFETERIA_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + COMPUTER_CLASS_ZN_1_FLR_1_T * COMPUTER_CLASS_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + CORNER_CLASS_1_POD_1_ZN_1_FLR_1_T * CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + CORNER_CLASS_1_POD_2_ZN_1_FLR_1_T * CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + CORNER_CLASS_1_POD_3_ZN_1_FLR_1_T * CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + CORNER_CLASS_2_POD_1_ZN_1_FLR_1_T * CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + CORNER_CLASS_2_POD_2_ZN_1_FLR_1_T * CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + CORNER_CLASS_2_POD_3_ZN_1_FLR_1_T * CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + CORRIDOR_POD_1_ZN_1_FLR_1_T * CORRIDOR_POD_1_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + CORRIDOR_POD_2_ZN_1_FLR_1_T * CORRIDOR_POD_2_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + CORRIDOR_POD_3_ZN_1_FLR_1_T * CORRIDOR_POD_3_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + GYM_ZN_1_FLR_1_T * GYM_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + KITCHEN_ZN_1_FLR_1_T * KITCHEN_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_T * LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + LOBBY_ZN_1_FLR_1_T * LOBBY_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + MAIN_CORRIDOR_ZN_1_FLR_1_T * MAIN_CORRIDOR_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + MECH_ZN_1_FLR_1_T * MECH_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + MULT_CLASS_1_POD_1_ZN_1_FLR_1_T * MULT_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + MULT_CLASS_1_POD_2_ZN_1_FLR_1_T * MULT_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + MULT_CLASS_1_POD_3_ZN_1_FLR_1_T * MULT_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + MULT_CLASS_2_POD_1_ZN_1_FLR_1_T * MULT_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + MULT_CLASS_2_POD_2_ZN_1_FLR_1_T * MULT_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + MULT_CLASS_2_POD_3_ZN_1_FLR_1_T * MULT_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR + OFFICES_ZN_1_FLR_1_T * OFFICES_ZN_1_FLR_1_V,
+    Set T_CUR = T_CUR/Controlled_V*9.0/5.0+32.0,
+! Average cooling schedule and setpoint over controlled zone air volumes
+    Set Schedule_Cooling_Temperature = 0.0,
+    Set T_Cooling = 0,
+    Set T_Cooling = T_Cooling + C1 * BATH_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C1_NOM * BATH_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * CAFETERIA_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * CAFETERIA_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * COMPUTER_CLASS_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * COMPUTER_CLASS_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C1 * CORRIDOR_POD_1_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C1_NOM * CORRIDOR_POD_1_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C1 * CORRIDOR_POD_2_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C1_NOM * CORRIDOR_POD_2_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C1 * CORRIDOR_POD_3_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C1_NOM * CORRIDOR_POD_3_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * GYM_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * GYM_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C1 * KITCHEN_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C1_NOM * KITCHEN_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * LOBBY_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * LOBBY_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C1 * MAIN_CORRIDOR_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C1_NOM * MAIN_CORRIDOR_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C1 * MECH_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C1_NOM * MECH_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * MULT_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * MULT_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * MULT_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * MULT_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * MULT_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * MULT_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * MULT_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * MULT_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * MULT_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * MULT_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * MULT_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * MULT_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling + C2 * OFFICES_ZN_1_FLR_1_V,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature + C2_NOM * OFFICES_ZN_1_FLR_1_V,
+    Set T_Cooling = T_Cooling/Controlled_V*9.0/5.0+32.0,
+    Set Schedule_Cooling_Temperature = Schedule_Cooling_Temperature/Controlled_V*9.0/5.0+32.0,
+! Average heating schedule and setpoint over controlled zone air volumes
+    Set Schedule_Heating_Temperature = 0.0,
+    Set T_Heating = 0,
+    Set T_Heating = T_Heating + H1 * BATH_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H1_NOM * BATH_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * CAFETERIA_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * CAFETERIA_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * COMPUTER_CLASS_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * COMPUTER_CLASS_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H1 * CORRIDOR_POD_1_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H1_NOM * CORRIDOR_POD_1_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H1 * CORRIDOR_POD_2_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H1_NOM * CORRIDOR_POD_2_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H1 * CORRIDOR_POD_3_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H1_NOM * CORRIDOR_POD_3_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * GYM_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * GYM_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H1 * KITCHEN_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H1_NOM * KITCHEN_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * LOBBY_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * LOBBY_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H1 * MAIN_CORRIDOR_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H1_NOM * MAIN_CORRIDOR_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H1 * MECH_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H1_NOM * MECH_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * MULT_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * MULT_CLASS_1_POD_1_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * MULT_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * MULT_CLASS_1_POD_2_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * MULT_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * MULT_CLASS_1_POD_3_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * MULT_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * MULT_CLASS_2_POD_1_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * MULT_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * MULT_CLASS_2_POD_2_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * MULT_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * MULT_CLASS_2_POD_3_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating + H2 * OFFICES_ZN_1_FLR_1_V,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature + H2_NOM * OFFICES_ZN_1_FLR_1_V,
+    Set T_Heating = T_Heating/Controlled_V*9.0/5.0+32.0,
+    Set Schedule_Heating_Temperature = Schedule_Heating_Temperature/Controlled_V*9.0/5.0+32.0,
+
+    Set Setpoint_Cooling_Temperature = T_Cooling,
+    Set Current_Cooling_Temperature = T_CUR,
+    Set Setpoint_Heating_Temperature = T_Heating,
+    Set Current_Heating_Temperature = T_CUR;
+
+  
+  EnergyManagementSystem:Program,
+    Report_Demand,      !- Name
+    Set Cooling_Power_State = 0.0,
+    Set Heating_Power_State = 0.0,
+    Set Flexible_Cooling_Demand = 0.0,
+    Set Flexible_Heating_Demand = 0.0,
+    Set Flexible_Cooling_Demand = Flexible_Cooling_Demand + Cooling_Coil_1,
+    Set Flexible_Cooling_Demand = Flexible_Cooling_Demand + Cooling_Coil_2,
+    Set Flexible_Cooling_Demand = Flexible_Cooling_Demand + Cooling_Coil_3,
+    Set Flexible_Cooling_Demand = Flexible_Cooling_Demand + Cooling_Coil_4,
+    Set Flexible_Cooling_Demand = Flexible_Cooling_Demand + Cooling_Coil_5,
+    Set Flexible_Cooling_Demand = Flexible_Cooling_Demand + Cooling_Coil_6,
+    Set Flexible_Cooling_Demand = Flexible_Cooling_Demand + Cooling_Coil_7,
+    Set Flexible_Cooling_Demand = Flexible_Cooling_Demand/(60*60*ZoneTimeStep),
+    IF Flexible_Cooling_Demand > 1.0,
+      Set Cooling_Power_State = 1.0,
+    ENDIF,
+    Set Flexible_Heating_Demand = Flexible_Heating_Demand + Heating_Coil_1,
+    Set Flexible_Heating_Demand = Flexible_Heating_Demand + Heating_Coil_2,
+    Set Flexible_Heating_Demand = Flexible_Heating_Demand + Heating_Coil_3,
+    Set Flexible_Heating_Demand = Flexible_Heating_Demand/(60*60*ZoneTimeStep),
+    IF Flexible_Heating_Demand > 1.0,
+      Set Heating_Power_State = 1.0,
+    ENDIF;
+  
+  EnergyManagementSystem:Program,
+    Report_Occupants,
+    Set Total_Occupants = 0.0,
+    Set Total_Occupants = Total_Occupants + BATH_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + CAFETERIA_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + COMPUTER_CLASS_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + CORNER_CLASS_1_POD_1_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + CORNER_CLASS_1_POD_2_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + CORNER_CLASS_1_POD_3_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + CORNER_CLASS_2_POD_1_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + CORNER_CLASS_2_POD_2_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + CORNER_CLASS_2_POD_3_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + CORRIDOR_POD_1_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + CORRIDOR_POD_2_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + CORRIDOR_POD_3_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + GYM_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + KITCHEN_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + MAIN_CORRIDOR_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + MULT_CLASS_1_POD_1_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + MULT_CLASS_1_POD_2_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + MULT_CLASS_1_POD_3_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + MULT_CLASS_2_POD_1_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + MULT_CLASS_2_POD_2_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + MULT_CLASS_2_POD_3_ZN_1_FLR_1_O,
+    Set Total_Occupants = Total_Occupants + OFFICES_ZN_1_FLR_1_O;
+  EnergyManagementSystem:Sensor,
+    C2_NOM,  !- Name
+    C2_NOM,  !- Output:Variable or Output:Meter Index Key Name
+    Schedule Value;    !- Output:Variable or Output:Meter Name
+  EnergyManagementSystem:Actuator,
+    C2,  !- Name
+    CLGSETP_SCH,  !- Actuated Component Unique Name
+    Schedule:Compact, !- Actuated Component Type
+    Schedule Value;   !- Actuated Component Control Type
+  EnergyManagementSystem:Sensor,
+    C1_NOM,  !- Name
+    C1_NOM,  !- Output:Variable or Output:Meter Index Key Name
+    Schedule Value;    !- Output:Variable or Output:Meter Name
+  EnergyManagementSystem:Actuator,
+    C1,  !- Name
+    CLGSETP_SCH_BATHCORRMECHKITCHEN,  !- Actuated Component Unique Name
+    Schedule:Compact, !- Actuated Component Type
+    Schedule Value;   !- Actuated Component Control Type
+  EnergyManagementSystem:Sensor,
+    H2_NOM,  !- Name
+    H2_NOM,  !- Output:Variable or Output:Meter Index Key Name
+    Schedule Value;    !- Output:Variable or Output:Meter Name
+  EnergyManagementSystem:Actuator,
+    H2,  !- Name
+    HTGSETP_SCH,  !- Actuated Component Unique Name
+    Schedule:Compact, !- Actuated Component Type
+    Schedule Value;   !- Actuated Component Control Type
+  EnergyManagementSystem:Sensor,
+    H1_NOM,  !- Name
+    H1_NOM,  !- Output:Variable or Output:Meter Index Key Name
+    Schedule Value;    !- Output:Variable or Output:Meter Name
+  EnergyManagementSystem:Actuator,
+    H1,  !- Name
+    HTGSETP_SCH_BATHCORRMECHKITCHEN,  !- Actuated Component Unique Name
+    Schedule:Compact, !- Actuated Component Type
+    Schedule Value;   !- Actuated Component Control Type
+  EnergyManagementSystem:GlobalVariable,
+    Flexible_Cooling_Demand;
+  EnergyManagementSystem:GlobalVariable,
+    Flexible_Heating_Demand;
+  EnergyManagementSystem:GlobalVariable,
+    Setpoint_Cooling_Temperature;
+  EnergyManagementSystem:GlobalVariable,
+    Setpoint_Heating_Temperature;
+  EnergyManagementSystem:GlobalVariable,
+    Schedule_Cooling_Temperature;
+  EnergyManagementSystem:GlobalVariable,
+    Schedule_Heating_Temperature;
+  EnergyManagementSystem:GlobalVariable,
+    Current_Cooling_Temperature;
+  EnergyManagementSystem:GlobalVariable,
+    Current_Heating_Temperature;
+  EnergyManagementSystem:GlobalVariable,
+    Cooling_Power_State;
+  EnergyManagementSystem:GlobalVariable,
+    Heating_Power_State;
+  EnergyManagementSystem:GlobalVariable,
+    H_SET;
+  EnergyManagementSystem:GlobalVariable,
+    C_SET;
+  EnergyManagementSystem:GlobalVariable,
+    H_CUR;
+  EnergyManagementSystem:GlobalVariable,
+    C_CUR;
+  EnergyManagementSystem:GlobalVariable,
+    TOTAL_HEAT_V;
+  EnergyManagementSystem:GlobalVariable,
+    TOTAL_COOL_V;
+  EnergyManagementSystem:GlobalVariable,
+    T_CUR;
+  EnergyManagementSystem:GlobalVariable,
+    Total_Occupants;
+  EnergyManagementSystem:OutputVariable,
+    Cooling Controlled Load,  !- Name
+    Flexible_Cooling_Demand,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Heating Controlled Load,  !- Name
+    Flexible_Heating_Demand,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Cooling Schedule Temperature,  !- Name
+    Schedule_Cooling_Temperature,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Heating Schedule Temperature,  !- Name
+    Schedule_Heating_Temperature,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Cooling Setpoint Temperature,  !- Name
+    Setpoint_Cooling_Temperature,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Heating Setpoint Temperature,  !- Name
+    Setpoint_Heating_Temperature,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Cooling Current Temperature,  !- Name
+    Current_Cooling_Temperature,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Heating Current Temperature,  !- Name
+    Current_Heating_Temperature,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Cooling Power State,  !- Name
+    Cooling_Power_State,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Heating Power State,  !- Name
+    Heating_Power_State,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Heating Setpoint,  !- Name
+    H_SET,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Cooling Setpoint,  !- Name
+    C_SET,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Heating Current,  !- Name
+    H_CUR,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Cooling Current,  !- Name
+    C_CUR,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Heating Volume,  !- Name
+    TOTAL_HEAT_V,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Cooling Volume,  !- Name
+    TOTAL_COOL_V,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Indoor Air Temperature,  !- Name
+    T_CUR,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:OutputVariable,
+    Occupant Count,  !- Name
+    Total_Occupants,  !- EMS Variable Name
+    Averaged,     !- Type of Data in Variable
+    ZoneTimeStep, !- Update Frequency
+    ,             !- EMS Program or Subroutine Name
+    ;             !- Units
+  EnergyManagementSystem:Sensor,
+    Cooling_Coil_1,  !- Name
+    PSZ-AC_1:6_COOLC DXCOIL,  !- Coil
+    Cooling Coil Electric Energy;
+  EnergyManagementSystem:Sensor,
+    Cooling_Coil_2,  !- Name
+    PSZ-AC_2:5_COOLC DXCOIL,  !- Coil
+    Cooling Coil Electric Energy;
+  EnergyManagementSystem:Sensor,
+    Cooling_Coil_3,  !- Name
+    PSZ-AC_2:7_COOLC DXCOIL,  !- Coil
+    Cooling Coil Electric Energy;
+  EnergyManagementSystem:Sensor,
+    Cooling_Coil_4,  !- Name
+    VAV_OTHER_COOLC DXCOIL,  !- Coil
+    Cooling Coil Electric Energy;
+  EnergyManagementSystem:Sensor,
+    Cooling_Coil_5,  !- Name
+    VAV_POD_1_COOLC DXCOIL,  !- Coil
+    Cooling Coil Electric Energy;
+  EnergyManagementSystem:Sensor,
+    Cooling_Coil_6,  !- Name
+    VAV_POD_2_COOLC DXCOIL,  !- Coil
+    Cooling Coil Electric Energy;
+  EnergyManagementSystem:Sensor,
+    Cooling_Coil_7,  !- Name
+    VAV_POD_3_COOLC DXCOIL,  !- Coil
+    Cooling Coil Electric Energy;
+  EnergyManagementSystem:Sensor,
+    Heating_Coil_1,  !- Name
+    PSZ-AC_1:6_HEATC,  !- Coil
+    Heating Coil Electric Energy;
+  EnergyManagementSystem:Sensor,
+    Heating_Coil_2,  !- Name
+    PSZ-AC_2:5_HEATC,  !- Coil
+    Heating Coil Electric Energy;
+  EnergyManagementSystem:Sensor,
+    Heating_Coil_3,  !- Name
+    PSZ-AC_2:7_HEATC,  !- Coil
+    Heating Coil Electric Energy;
+  EnergyManagementSystem:Sensor,
+    BATH_ZN_1_FLR_1_O,  !- Name
+    BATH_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    BATH_ZN_1_FLR_1_T,  !- Name
+    BATH_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    BATH_ZN_1_FLR_1_H,  !- Name
+    BATH_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    BATH_ZN_1_FLR_1_C,  !- Name
+    BATH_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    BATH_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    CAFETERIA_ZN_1_FLR_1_O,  !- Name
+    CAFETERIA_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    CAFETERIA_ZN_1_FLR_1_T,  !- Name
+    CAFETERIA_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    CAFETERIA_ZN_1_FLR_1_H,  !- Name
+    CAFETERIA_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    CAFETERIA_ZN_1_FLR_1_C,  !- Name
+    CAFETERIA_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    CAFETERIA_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    COMPUTER_CLASS_ZN_1_FLR_1_O,  !- Name
+    COMPUTER_CLASS_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    COMPUTER_CLASS_ZN_1_FLR_1_T,  !- Name
+    COMPUTER_CLASS_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    COMPUTER_CLASS_ZN_1_FLR_1_H,  !- Name
+    COMPUTER_CLASS_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    COMPUTER_CLASS_ZN_1_FLR_1_C,  !- Name
+    COMPUTER_CLASS_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    COMPUTER_CLASS_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_1_ZN_1_FLR_1_O,  !- Name
+    CORNER_CLASS_1_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_1_ZN_1_FLR_1_T,  !- Name
+    CORNER_CLASS_1_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_1_ZN_1_FLR_1_H,  !- Name
+    CORNER_CLASS_1_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_1_ZN_1_FLR_1_C,  !- Name
+    CORNER_CLASS_1_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    CORNER_CLASS_1_POD_1_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_2_ZN_1_FLR_1_O,  !- Name
+    CORNER_CLASS_1_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_2_ZN_1_FLR_1_T,  !- Name
+    CORNER_CLASS_1_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_2_ZN_1_FLR_1_H,  !- Name
+    CORNER_CLASS_1_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_2_ZN_1_FLR_1_C,  !- Name
+    CORNER_CLASS_1_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    CORNER_CLASS_1_POD_2_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_3_ZN_1_FLR_1_O,  !- Name
+    CORNER_CLASS_1_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_3_ZN_1_FLR_1_T,  !- Name
+    CORNER_CLASS_1_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_3_ZN_1_FLR_1_H,  !- Name
+    CORNER_CLASS_1_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_1_POD_3_ZN_1_FLR_1_C,  !- Name
+    CORNER_CLASS_1_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    CORNER_CLASS_1_POD_3_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_1_ZN_1_FLR_1_O,  !- Name
+    CORNER_CLASS_2_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_1_ZN_1_FLR_1_T,  !- Name
+    CORNER_CLASS_2_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_1_ZN_1_FLR_1_H,  !- Name
+    CORNER_CLASS_2_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_1_ZN_1_FLR_1_C,  !- Name
+    CORNER_CLASS_2_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    CORNER_CLASS_2_POD_1_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_2_ZN_1_FLR_1_O,  !- Name
+    CORNER_CLASS_2_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_2_ZN_1_FLR_1_T,  !- Name
+    CORNER_CLASS_2_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_2_ZN_1_FLR_1_H,  !- Name
+    CORNER_CLASS_2_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_2_ZN_1_FLR_1_C,  !- Name
+    CORNER_CLASS_2_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    CORNER_CLASS_2_POD_2_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_3_ZN_1_FLR_1_O,  !- Name
+    CORNER_CLASS_2_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_3_ZN_1_FLR_1_T,  !- Name
+    CORNER_CLASS_2_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_3_ZN_1_FLR_1_H,  !- Name
+    CORNER_CLASS_2_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    CORNER_CLASS_2_POD_3_ZN_1_FLR_1_C,  !- Name
+    CORNER_CLASS_2_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    CORNER_CLASS_2_POD_3_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_1_ZN_1_FLR_1_O,  !- Name
+    CORRIDOR_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_1_ZN_1_FLR_1_T,  !- Name
+    CORRIDOR_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_1_ZN_1_FLR_1_H,  !- Name
+    CORRIDOR_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_1_ZN_1_FLR_1_C,  !- Name
+    CORRIDOR_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    CORRIDOR_POD_1_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_2_ZN_1_FLR_1_O,  !- Name
+    CORRIDOR_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_2_ZN_1_FLR_1_T,  !- Name
+    CORRIDOR_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_2_ZN_1_FLR_1_H,  !- Name
+    CORRIDOR_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_2_ZN_1_FLR_1_C,  !- Name
+    CORRIDOR_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    CORRIDOR_POD_2_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_3_ZN_1_FLR_1_O,  !- Name
+    CORRIDOR_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_3_ZN_1_FLR_1_T,  !- Name
+    CORRIDOR_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_3_ZN_1_FLR_1_H,  !- Name
+    CORRIDOR_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    CORRIDOR_POD_3_ZN_1_FLR_1_C,  !- Name
+    CORRIDOR_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    CORRIDOR_POD_3_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    GYM_ZN_1_FLR_1_O,  !- Name
+    GYM_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    GYM_ZN_1_FLR_1_T,  !- Name
+    GYM_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    GYM_ZN_1_FLR_1_H,  !- Name
+    GYM_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    GYM_ZN_1_FLR_1_C,  !- Name
+    GYM_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    GYM_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    KITCHEN_ZN_1_FLR_1_O,  !- Name
+    KITCHEN_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    KITCHEN_ZN_1_FLR_1_T,  !- Name
+    KITCHEN_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    KITCHEN_ZN_1_FLR_1_H,  !- Name
+    KITCHEN_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    KITCHEN_ZN_1_FLR_1_C,  !- Name
+    KITCHEN_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    KITCHEN_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_O,  !- Name
+    LIBRARY_MEDIA_CENTER_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_T,  !- Name
+    LIBRARY_MEDIA_CENTER_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_H,  !- Name
+    LIBRARY_MEDIA_CENTER_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_C,  !- Name
+    LIBRARY_MEDIA_CENTER_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    LIBRARY_MEDIA_CENTER_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    LOBBY_ZN_1_FLR_1_T,  !- Name
+    LOBBY_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    LOBBY_ZN_1_FLR_1_H,  !- Name
+    LOBBY_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    LOBBY_ZN_1_FLR_1_C,  !- Name
+    LOBBY_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    LOBBY_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    MAIN_CORRIDOR_ZN_1_FLR_1_O,  !- Name
+    MAIN_CORRIDOR_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    MAIN_CORRIDOR_ZN_1_FLR_1_T,  !- Name
+    MAIN_CORRIDOR_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    MAIN_CORRIDOR_ZN_1_FLR_1_H,  !- Name
+    MAIN_CORRIDOR_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    MAIN_CORRIDOR_ZN_1_FLR_1_C,  !- Name
+    MAIN_CORRIDOR_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    MAIN_CORRIDOR_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    MECH_ZN_1_FLR_1_T,  !- Name
+    MECH_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    MECH_ZN_1_FLR_1_H,  !- Name
+    MECH_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    MECH_ZN_1_FLR_1_C,  !- Name
+    MECH_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    MECH_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_1_ZN_1_FLR_1_O,  !- Name
+    MULT_CLASS_1_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_1_ZN_1_FLR_1_T,  !- Name
+    MULT_CLASS_1_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_1_ZN_1_FLR_1_H,  !- Name
+    MULT_CLASS_1_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_1_ZN_1_FLR_1_C,  !- Name
+    MULT_CLASS_1_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    MULT_CLASS_1_POD_1_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_2_ZN_1_FLR_1_O,  !- Name
+    MULT_CLASS_1_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_2_ZN_1_FLR_1_T,  !- Name
+    MULT_CLASS_1_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_2_ZN_1_FLR_1_H,  !- Name
+    MULT_CLASS_1_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_2_ZN_1_FLR_1_C,  !- Name
+    MULT_CLASS_1_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    MULT_CLASS_1_POD_2_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_3_ZN_1_FLR_1_O,  !- Name
+    MULT_CLASS_1_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_3_ZN_1_FLR_1_T,  !- Name
+    MULT_CLASS_1_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_3_ZN_1_FLR_1_H,  !- Name
+    MULT_CLASS_1_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_1_POD_3_ZN_1_FLR_1_C,  !- Name
+    MULT_CLASS_1_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    MULT_CLASS_1_POD_3_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_1_ZN_1_FLR_1_O,  !- Name
+    MULT_CLASS_2_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_1_ZN_1_FLR_1_T,  !- Name
+    MULT_CLASS_2_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_1_ZN_1_FLR_1_H,  !- Name
+    MULT_CLASS_2_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_1_ZN_1_FLR_1_C,  !- Name
+    MULT_CLASS_2_POD_1_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    MULT_CLASS_2_POD_1_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_2_ZN_1_FLR_1_O,  !- Name
+    MULT_CLASS_2_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_2_ZN_1_FLR_1_T,  !- Name
+    MULT_CLASS_2_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_2_ZN_1_FLR_1_H,  !- Name
+    MULT_CLASS_2_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_2_ZN_1_FLR_1_C,  !- Name
+    MULT_CLASS_2_POD_2_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    MULT_CLASS_2_POD_2_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_3_ZN_1_FLR_1_O,  !- Name
+    MULT_CLASS_2_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_3_ZN_1_FLR_1_T,  !- Name
+    MULT_CLASS_2_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_3_ZN_1_FLR_1_H,  !- Name
+    MULT_CLASS_2_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    MULT_CLASS_2_POD_3_ZN_1_FLR_1_C,  !- Name
+    MULT_CLASS_2_POD_3_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    MULT_CLASS_2_POD_3_ZN_1_FLR_1_V;
+  EnergyManagementSystem:Sensor,
+    OFFICES_ZN_1_FLR_1_O,  !- Name
+    OFFICES_ZN_1_FLR_1,    !- Zone
+    Zone People Occupant Count;
+  EnergyManagementSystem:Sensor,
+    OFFICES_ZN_1_FLR_1_T,  !- Name
+    OFFICES_ZN_1_FLR_1,    !- Zone
+    Zone Mean Air Temperature;
+  EnergyManagementSystem:Sensor,
+    OFFICES_ZN_1_FLR_1_H,  !- Name
+    OFFICES_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Heating Energy;
+  EnergyManagementSystem:Sensor,
+    OFFICES_ZN_1_FLR_1_C,  !- Name
+    OFFICES_ZN_1_FLR_1,    !- Zone
+    Zone Air System Sensible Cooling Energy;
+  EnergyManagementSystem:GlobalVariable,
+    OFFICES_ZN_1_FLR_1_V;
+! ***EXTERNAL INTERFACE***
+  ExternalInterface,
+    HELICS;           !- Name of External Interface
+  ExternalInterface:Variable,
+    cooling_setpoint_delta,  !- Name
+    0;                !- Initial Value
+  ExternalInterface:Variable,
+    heating_setpoint_delta,  !- Name
+    0;                !- Initial Value
+! ***GENERAL REPORTING***
+  Output:VariableDictionary,IDF,Unsorted;
+! ***REPORT METERS/VARIABLES***
+  Output:Variable,EMS,Cooling Controlled Load,timestep;
+  Output:Variable,EMS,Heating Controlled Load,timestep;
+  Output:Variable,EMS,Cooling Schedule Temperature,timestep;
+  Output:Variable,EMS,Heating Schedule Temperature,timestep;
+  Output:Variable,EMS,Cooling Setpoint Temperature,timestep;
+  Output:Variable,EMS,Heating Setpoint Temperature,timestep;
+  Output:Variable,EMS,Cooling Current Temperature,timestep;
+  Output:Variable,EMS,Heating Current Temperature,timestep;
+  Output:Variable,EMS,Cooling Power State,timestep;
+  Output:Variable,EMS,Heating Power State,timestep;
+  Output:Variable,EMS,Cooling Volume,timestep;
+  Output:Variable,EMS,Heating Volume,timestep;
+  Output:Variable,EMS,Occupant Count,timestep;
+  Output:Variable,EMS,Indoor Air Temperature,timestep;
+  Output:Variable,WHOLE BUILDING,Facility Total Electric Demand Power,timestep;
+  Output:Variable,WHOLE BUILDING,Facility Total HVAC Electric Demand Power,timestep;
+  Output:Variable,FACILITY,Facility Thermal Comfort ASHRAE 55 Simple Model Summer or Winter Clothes Not Comfortable Time,timestep;
+  Output:Variable,Environment,Site Outdoor Air Drybulb Temperature,timestep; 
diff --git a/doc/archive/Ubuntu_build.rst b/doc/archive/Ubuntu_build.rst
index 87e00322..4c4937cc 100644
--- a/doc/archive/Ubuntu_build.rst
+++ b/doc/archive/Ubuntu_build.rst
@@ -178,9 +178,7 @@ To build the Java interface for version 10 or later, which has *javah* replaced
 
  cd java
  make
- sudo make install
-
-The *make install* step may not work on WSL. A manual example is *cp fncs.jar $TESP_INSTALL/java*
+ sudo -E make install
 
 To build HELICS with Java bindings:
 
@@ -234,7 +232,7 @@ To build the KLU solver:
  cd build
  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$TESP_INSTALL ..
  # replace $TESP_INSTALL with /usr/local if using the default
- sudo cmake --build . --target install
+ sudo -E env "PATH=$PATH" cmake --build . --target install
 
 To link with both FNCS and HELICS, and run the autotest suite:
 
@@ -289,21 +287,21 @@ Build EnergyPlus Weather File Utility
 ::
 
  cd ~/src/tesp/support/weather/TMY2EPW/source_code
- sudo make
+ sudo -E make
 
 Build ns3 with HELICS
 ~~~~~~~~~~~~~~~~~~~~~
 
 First, in order to build ns-3 with Python bindings, we need to install the Python
-binding generator that it uses, and then manually patch one of the ns-3 build files.
-This has to be done after each `git pull` of ns-3 sources.
+binding generator that it uses from source, and keep it updated for ns-3. The 
+version from `pip3 install pybindgen` is not kept up to date for ns-3 builds.
 
 ::
  
- pip3 install pybindgen --upgrade
- pip3 show pybindgen
- # edit line 17 of ~/src/ns-3-dev/bindings/python/wscript to specify the correct matching version, for example:
- REQUIRED_PYBINDGEN_VERSION = '0.21.0'
+ cd ~/src 
+ git clone https://github.com/gjcarneiro/pybindgen.git
+ cd pybindgen
+ sudo python3 setup.py install
 
 Then, we can build ns-3, install that into the same location as other parts of TESP, and test it:
 
@@ -318,10 +316,8 @@ Then, we can build ns-3, install that into the same location as other parts of T
  # cd ../..
  # then configure, build and test ns3 with the HELICS interface
  # --with-helics may not be left blank, so use either $TESP_INSTALL or /usr/local
- # --build-profile=optimized was used for TESP release, but it disables ns3 logging
- # ./waf configure --prefix=$TESP_INSTALL --with-helics=$TESP_INSTALL --build-profile=optimized --disable-werror --enable-examples --enable-tests
  ./waf distclean
- ./waf configure --prefix=$TESP_INSTALL --with-helics=$TESP_INSTALL --disable-werror --enable-examples --enable-tests
+ ./waf configure --prefix=$TESP_INSTALL --with-helics=$TESP_INSTALL --build-profile=optimized --disable-werror --enable-logs --enable-examples --enable-tests
  ./waf build 
  sudo ./waf install
  ./test.py
@@ -406,7 +402,7 @@ for TESP, on top of Ubuntu 18.04, producing *tesp_foundation*. (In what follows,
 ::
 
  cd ~/src/tesp/install/tesp_foundation
- sudo docker build -t="temcderm/tesp_foundation:1.0.1" .
+ sudo docker build -t="temcderm/tesp_foundation:1.0.2" .
 
 This process takes a while to complete. The second image starts from *tesp_foundation* and layers on the TESP components.
 Primarily, it runs the Linux installer script inside the Docker container. It will check for current versions of the
@@ -417,14 +413,14 @@ would be if some new TESP component introduces a new dependency.
 ::
 
  cd ~/src/tesp/install/tesp_core
- sudo docker build -t="temcderm/tesp_core:1.0.1" .
+ sudo docker build -t="temcderm/tesp_core:1.0.2" .
 
 When complete, the layered image can be pushed up to Docker Hub.
 
 ::
 
  cd ~/src/tesp/install/tesp_core
- sudo docker push temcderm/tesp_core:1.0.1
+ sudo docker push temcderm/tesp_core:1.0.2
 
 DEPRECATED: MATPOWER, MATLAB Runtime (MCR) and wrapper
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/examples/capabilities/energyplus/eplus_agent.yaml b/examples/capabilities/energyplus/eplus_agent.yaml
index 303ac27f..86293f9e 100644
--- a/examples/capabilities/energyplus/eplus_agent.yaml
+++ b/examples/capabilities/energyplus/eplus_agent.yaml
@@ -3,7 +3,7 @@ time_delta: 5m
 broker: tcp://localhost:5570
 values:
     kwhr_price:
-        topic: player/clear_price
+        topic: sub1/clear_price
         default: 0.10
     indoor_air:
         topic: eplus/EMS INDOOR AIR TEMPERATURE
diff --git a/examples/capabilities/te30/DeDeprecate.py b/examples/capabilities/te30/DeDeprecate.py
new file mode 100644
index 00000000..0660627b
--- /dev/null
+++ b/examples/capabilities/te30/DeDeprecate.py
@@ -0,0 +1,36 @@
+import sys
+
+if len(sys.argv) < 3:
+  print ('usage: python3 DeDeprecate.py SGIP1c.glm SGIP1c.new')
+
+fp = open (sys.argv[1], 'r')
+op = open (sys.argv[2], 'w')
+
+bInSolar = False
+bInBattery = False
+for ln in fp:
+  line = ln.rstrip()
+  if 'object solar' in line:
+    bInSolar = True
+  elif 'object battery' in line:
+    bInBattery = True
+  if (bInSolar == True) and ('};' == line.lstrip()):
+    bInSolar = False
+  if (bInBattery == True) and ('};' == line.lstrip()):
+    bInBattery = False
+  bCopy = True
+  if bInSolar:
+    if 'generator_mode' in line:
+      bCopy = False
+    elif 'generator_status' in line:
+      bCopy = False
+  elif bInBattery:
+    if 'generator_mode' in line:
+      bCopy = False
+    if 'generator_status' in line:
+      bCopy = False
+  if bCopy:
+    print (line, file=op)
+
+fp.close()
+op.close()
diff --git a/examples/comm/Eplus_Comm.png b/examples/comm/Eplus_Comm.png
new file mode 100755
index 00000000..862a1245
Binary files /dev/null and b/examples/comm/Eplus_Comm.png differ
diff --git a/examples/comm/SGIP1c.json b/examples/comm/SGIP1c.json
new file mode 100644
index 00000000..ad4997e4
--- /dev/null
+++ b/examples/comm/SGIP1c.json
@@ -0,0 +1,147 @@
+{
+  "BackboneFiles": {
+    "TaxonomyChoice": "R1-12.47-1",
+    "NamePrefix": "",
+    "PYPOWERFile": "ppbasefile.py"
+  },
+  "FeederGenerator": {
+    "MinimumStep": "15",
+    "MetricsInterval": "300",
+    "ElectricCoolingPercentage": "50",
+    "ElectricCoolingParticipation": "100",
+    "WaterHeaterPercentage": "72",
+    "WaterHeaterParticipation": "0",
+    "SolarPercentage": "13",
+    "StoragePercentage": "15",
+    "SolarInverterMode": "CONSTANT_PF",
+    "StorageInverterMode": "CONSTANT_PF",
+    "BillingMode": "UNIFORM",
+    "MonthlyFee": "10",
+    "Price": "0.1243",
+    "Tier1Energy": "500",
+    "Tier1Price": "0.117013",
+    "Tier2Energy": "1000",
+    "Tier2Price": "0.122513",
+    "Tier3Energy": "0",
+    "Tier3Price": "0"
+  },
+  "EplusConfiguration": {
+    "BuildingChoice": "PrimarySchool",
+    "EMSFile": "emsHELICS/emsPrimarySchool",
+    "StepsPerHour": "12",
+    "EnergyPlusBus": "R1_12_47_1_node_346",
+    "EnergyPlusServiceV": "480",
+    "EnergyPlusXfmrKva": "300",
+    "ReferencePrice": "0.02",
+    "Slope": "25",
+    "OffsetLimitHi": "4",
+    "OffsetLimitLo": "4"
+  },
+  "PYPOWERConfiguration": {
+    "PFStep": "15",
+    "ACOPF": "DC",
+    "ACPF": "AC",
+    "TransmissionVoltage": "230.0",
+    "TransformerBase": "12.0",
+    "GLDBus": "7",
+    "GLDScale": "15",
+    "CSVLoadFile": "NonGLDLoad.txt",
+    "UnitOut": "2",
+    "UnitOutStart": "2013-07-02 07:00:00",
+    "UnitOutEnd": "2013-07-02 19:00:00",
+    "BranchOut": "3",
+    "BranchOutStart": "",
+    "BranchOutEnd": ""
+  },
+  "AgentPrep": {
+    "MarketClearingPeriod": "300",
+    "TimeStepGldAgents": "15",
+    "InitialPriceMean": "0.02078",
+    "InitialPriceStdDev": "0.00361",
+    "ThermostatRampLo": "0.5",
+    "ThermostatRampHi": "3.0",
+    "ThermostatBandLo": "1.0",
+    "ThermostatBandHi": "3.0",
+    "ThermostatOffsetLimitLo": "2.0",
+    "ThermostatOffsetLimitHi": "6.0",
+    "PriceCapLo": "1.0",
+    "PriceCapHi": "3.0"
+  },
+  "ThermostatSchedule": {
+    "WeekdayWakeStartLo": "5.0",
+    "WeekdayWakeStartHi": "7.5",
+    "WeekdayWakeSetLo": "78",
+    "WeekdayWakeSetHi": "82",
+    "WeekdayDaylightStartLo": "7.75",
+    "WeekdayDaylightStartHi": "10.0",
+    "WeekdayDaylightSetLo": "83",
+    "WeekdayDaylightSetHi": "87",
+    "WeekdayEveningStartLo": "16.0",
+    "WeekdayEveningStartHi": "20.0",
+    "WeekdayEveningSetLo": "78",
+    "WeekdayEveningSetHi": "82",
+    "WeekdayNightStartLo": "21.0",
+    "WeekdayNightStartHi": "23.5",
+    "WeekdayNightSetLo": "72",
+    "WeekdayNightSetHi": "77",
+    "WeekendDaylightStartLo": "5.0",
+    "WeekendDaylightStartHi": "10.0",
+    "WeekendDaylightSetLo": "76",
+    "WeekendDaylightSetHi": "84",
+    "WeekendNightStartLo": "20.0",
+    "WeekendNightStartHi": "24.0",
+    "WeekendNightSetLo": "70",
+    "WeekendNightSetHi": "75"
+  },
+  "WeatherPrep": {
+    "WeatherChoice": "TMY3",
+    "DataSource": "AZ-Tucson_International_Ap.tmy3",
+    "Latitude": "32.133",
+    "Longitude": "-111.95",
+    "Altitude": "777.0",
+    "TZmeridian": "-105.0"
+  },
+  "SimulationConfig": {
+    "StartTime": "2013-07-01 00:00:00",
+    "EndTime": "2013-07-03 00:00:00",
+    "SourceDirectory": "$TESP_INSTALL/share/support",
+    "WorkingDirectory": "./SGIP1c",
+    "CaseName": "SGIP1c"
+  },
+  "MonteCarloCase": {
+    "Variable1": "ElectricCoolingParticipation",
+    "Variable2": "ThermostatRampMid",
+    "Variable3": "ThermostatOffsetLimitMid",
+    "NumCases": 7,
+    "Band1": 10.0,
+    "Band2": 0.5,
+    "Band3": 2.0,
+    "Samples1": [
+      16.788,
+      31.962,
+      37.52,
+      23.195,
+      80.769,
+      60.011,
+      66.284
+    ],
+    "Samples2": [
+      1.48,
+      1.451,
+      2.399,
+      3.601,
+      2.566,
+      3.013,
+      1.125
+    ],
+    "Samples3": [
+      0.341,
+      1.562,
+      2.366,
+      4.124,
+      1.336,
+      4.32,
+      5.318
+    ]
+  }
+}
diff --git a/examples/houses/.gitignore b/examples/houses/.gitignore
new file mode 100644
index 00000000..1c67216d
--- /dev/null
+++ b/examples/houses/.gitignore
@@ -0,0 +1,6 @@
+*metrics.json
+*.log
+*.xml
+*.csv
+houses.glm
+*dict.json
diff --git a/examples/houses/README.md b/examples/houses/README.md
new file mode 100644
index 00000000..71450077
--- /dev/null
+++ b/examples/houses/README.md
@@ -0,0 +1,59 @@
+# House Example
+
+This example populates houses, solar and storage onto an existing GridLAB-D feeder,
+using the *write_node_houses* and *write_node_house_config* functions from *tesp_support*. 
+It does not run a transactive system.
+
+To run the example:
+
+1. ./run.sh
+2. Use *ps* to learn when GridLAB-D finishes. It should take a couple of minutes.
+3. python3 plots.py
+
+### File Directory
+
+- *clean.sh*; script that removes output and temporary files
+- *gld_plots.png*; results for the feeder, house load exceeds substation load because of solar generation
+- *hvac_plots.png*; results for the house air conditioning systems
+- *meter_plots.png*; results for the billing meters
+- *plots.py*; makes 3 pages of plots
+- *README.md*; this file
+- *run.sh*; script that writes houses, creates a dictionary and runs GridLAB-D
+- *test_houses.glm*; GridLAB-D file that includes `houses.glm` and runs for two days
+- *WriteHouses.py*; writes houses on 14 primary nodes to `houses.glm`
+
+### Results
+
+The example feeder has 14 primary nodes, populated as follows. 80% of the houses have
+air conditioning. Except where indicated, all are in region 2. All use a fixed seed for
+randomization and use a metrics collection interval of 300. See *WriteHouses.py* for
+details on how to set up the populations, and function documentation for other options.
+
+|Node|Phasing|kVA |Drop[ft]|Region|Houses|Other|
+|----|-------|---:|-------:|-----:|-----:|-----|
+|F7B1|ABC|1000| 0|2|42||
+|F7B2|AS |500 | 0|2|42||
+|F7B3|BS |500 | 0|2|42||
+|F7B4|CS |500 | 0|2|42||
+|F7B5|AS |500 |75|2|42|triplex drop|
+|F7B6|BS |500 |75|2|42|triplex drop|
+|F7B7|CS |500 |75|2|42|solar and storage, triplex drop|
+|F7B8|ABC|1000| 0|2|40|uses loadkw and house_avg_kw|
+|F1B1|ABC|1000| 0|1|42||
+|F1B2|ABC|1000| 0|3|42||
+|F1B3|ABC|1000| 0|4|42||
+|F1B4|ABC|1000| 0|5|42||
+|F1B5|ABC|1000|75|2|42|quadriplex service drop|
+|F1B6|ABC|1000| 0|2|42|solar and storage|
+
+Plotted results from this example.
+
+![](gld_plots.png)
+![](hvac_plots.png)
+![](meter_plots.png)
+
+
+Copyright (c) 2017-2021, Battelle Memorial Institute
+
+License: https://github.com/pnnl/tesp/blob/master/LICENSE
+
diff --git a/examples/houses/WriteHouses.py b/examples/houses/WriteHouses.py
new file mode 100644
index 00000000..980e41ac
--- /dev/null
+++ b/examples/houses/WriteHouses.py
@@ -0,0 +1,43 @@
+import sys
+import tesp_support.feederGenerator as fg;
+
+fp = open('houses.glm', 'w')
+
+xfkva3=1000.0
+xfkva1=500.0
+xfkvll=13.2
+xfkvln=7.621
+
+fg.write_node_house_configs (fp, xfkva3, xfkvll, xfkvln, phs='ABC', want_inverter=True)
+fg.write_node_house_configs (fp, xfkva1, xfkvll, xfkvln, phs='ABCS')
+
+fg.write_node_houses (fp, node='F7B1', nh=42, xfkva=xfkva3, phs='ABC', region=2, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.0, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F7B2', nh=42, xfkva=xfkva1, phs='AS', region=2, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.0, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F7B3', nh=42, xfkva=xfkva1, phs='BS', region=2, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.0, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F7B4', nh=42, xfkva=xfkva1, phs='CS', region=2, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.0, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F7B5', nh=42, xfkva=xfkva1, phs='AS', region=2, secondary_ft=75.0,
+                      electric_cooling_fraction=0.8, solar_fraction=0.0, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F7B6', nh=42, xfkva=xfkva1, phs='BS', region=2, secondary_ft=75.0, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.5, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F7B7', nh=42, xfkva=xfkva1, phs='CS', region=2, secondary_ft=75.0,
+                      electric_cooling_fraction=0.8, solar_fraction=0.5, storage_fraction=0.5, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F7B8', loadkw=0.8*xfkva3, house_avg_kw=20.0, xfkva=xfkva3, phs='ABC', region=2, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.0, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F1B1', nh=42, xfkva=xfkva3, phs='ABC', region=1, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.0, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F1B2', nh=42, xfkva=xfkva3, phs='ABC', region=3, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.0, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F1B3', nh=42, xfkva=xfkva3, phs='ABC', region=4, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.0, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F1B4', nh=42, xfkva=xfkva3, phs='ABC', region=5, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.0, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F1B5', nh=42, xfkva=xfkva3, phs='ABC', region=2, secondary_ft=75.0, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.0, storage_fraction=0.0, node_metrics_interval=300)
+fg.write_node_houses (fp, node='F1B6', nh=42, xfkva=xfkva3, phs='ABC', region=2, 
+                      electric_cooling_fraction=0.8, solar_fraction=0.5, storage_fraction=0.5, node_metrics_interval=300)
+
+fp.close()
diff --git a/examples/houses/clean.sh b/examples/houses/clean.sh
new file mode 100755
index 00000000..bc15c617
--- /dev/null
+++ b/examples/houses/clean.sh
@@ -0,0 +1,6 @@
+rm *metrics.json
+rm *.log
+rm *.xml
+rm *.csv
+rm houses.glm
+rm *dict.json
diff --git a/examples/houses/gld_plots.png b/examples/houses/gld_plots.png
new file mode 100644
index 00000000..6f90f71e
Binary files /dev/null and b/examples/houses/gld_plots.png differ
diff --git a/examples/houses/hvac_plots.png b/examples/houses/hvac_plots.png
new file mode 100644
index 00000000..e047d0b0
Binary files /dev/null and b/examples/houses/hvac_plots.png differ
diff --git a/examples/houses/meter_plots.png b/examples/houses/meter_plots.png
new file mode 100644
index 00000000..ecbb7813
Binary files /dev/null and b/examples/houses/meter_plots.png differ
diff --git a/examples/houses/plots.py b/examples/houses/plots.py
new file mode 100644
index 00000000..8631dab3
--- /dev/null
+++ b/examples/houses/plots.py
@@ -0,0 +1,15 @@
+# usage 'python3 plots.py'
+import sys
+import os
+import tesp_support.process_gld as gp
+import tesp_support.process_houses as hp
+import tesp_support.process_inv as ip
+import tesp_support.process_voltages as vp
+
+rootname = 'test_houses'
+
+gmetrics = gp.read_gld_metrics (rootname)
+gp.plot_gld (gmetrics)
+hp.plot_houses (gmetrics)
+vp.plot_voltages (gmetrics)
+
diff --git a/examples/houses/run.sh b/examples/houses/run.sh
new file mode 100755
index 00000000..4c0f239d
--- /dev/null
+++ b/examples/houses/run.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+declare -r TESP_SUPPORT=$TESP_INSTALL/share/support
+#declare -r SCHED_PATH=$TESP_SUPPORT/schedules
+declare -r TMY_PATH=$TESP_SUPPORT/weather
+
+export SCHED_PATH=$TESP_SUPPORT/schedules
+
+python3 WriteHouses.py
+python3 -c "import tesp_support.api as tesp;tesp.glm_dict('test_houses')"
+(exec gridlabd -D SCHED_PATH=$SCHED_PATH -D TMY_PATH=$TMY_PATH -D METRICS_FILE=test_houses_metrics.json test_houses.glm &> gridlabd.log &)
+
diff --git a/install/Linux/helpers/deploy.sh b/install/Linux/helpers/deploy.sh
new file mode 100755
index 00000000..ecac30b7
--- /dev/null
+++ b/install/Linux/helpers/deploy.sh
@@ -0,0 +1,19 @@
+cp ../../../LICENSE /opt/tesp
+cp ../../../autotest.py /opt/tesp/share
+cp ../../../autotest_long.py /opt/tesp/share
+cp environment /opt/tesp/share
+cp tesp_ld.conf /opt/tesp/share
+cp tesp_envar.sh /opt/tesp/share
+cp provision.sh /opt/tesp/share
+cp gitclone.sh /opt/tesp/share
+cp make_tesp_user_dir.sh /opt/tesp/bin
+cp tesp_to_current_dir.sh /opt/tesp/bin
+cp ../../../../CIMHub/distrib/opendsscmd /opt/tesp/bin
+cp ../../../../CIMHub/distrib/liblinenoise.so /opt/tesp/lib
+cp ../../../../CIMHub/distrib/libklusolve.so /opt/tesp/lib
+cp ../../../../fncs/java/fncs.jar /opt/tesp/java
+cp ../../../../fncs/java/fncs.jar /opt/tesp/java
+./deploy_ercot.sh
+./deploy_examples.sh
+./deploy_support.sh
+
diff --git a/install/tesp.xml b/install/tesp.xml
index efd4061d..789f63c5 100644
--- a/install/tesp.xml
+++ b/install/tesp.xml
@@ -1,7 +1,7 @@
 <project>
     <shortName>tesp</shortName>
     <fullName>TESP</fullName>
-    <version>1.0.0</version>
+    <version>1.0.2</version>
     <readmeFile>../README.md</readmeFile>
     <licenseFile>../LICENSE</licenseFile>
     <splashImage>Transactive.png</splashImage>
diff --git a/install/tesp_core/Dockerfile b/install/tesp_core/Dockerfile
index 7f8b4f00..7809fa29 100644
--- a/install/tesp_core/Dockerfile
+++ b/install/tesp_core/Dockerfile
@@ -1,7 +1,7 @@
-FROM temcderm/tesp_foundation:1.0.1
+FROM temcderm/tesp_foundation:1.0.2
 LABEL maintainer="Thomas.McDermott@pnnl.gov"
 
-ADD tesp-1.0.0-linux-x64-installer.run /tmp/installer.run
+ADD tesp-1.0.2-linux-x64-installer.run /tmp/installer.run
 RUN /tmp/installer.run --mode unattended
 RUN rm /tmp/installer.run
 
diff --git a/install/tesp_foundation/Dockerfile b/install/tesp_foundation/Dockerfile
index 0f6ce8d6..f6334599 100644
--- a/install/tesp_foundation/Dockerfile
+++ b/install/tesp_foundation/Dockerfile
@@ -2,10 +2,11 @@ FROM ubuntu:20.04
 LABEL maintainer="Thomas.McDermott@pnnl.gov"
 RUN apt-get update;apt-get dist-upgrade -y
 ENV DEBIAN_FRONTEND=noninteractive
-RUN apt-get install -y --no-install-recommends apt-utils
+RUN apt-get install -y --no-install-recommends apt
+RUN apt-get update
 RUN apt-get install -y libjsoncpp-dev libxerces-c-dev libzmq5-dev libczmq-dev libklu1 coinor-cbc \
  openjdk-11-jre-headless  openjdk-11-jdk-headless python3-pip python3-tk cmake
 RUN pip3 install tesp_support --upgrade
 RUN pip3 install psst --upgrade
-RUN pip3 install helics==2.5.2
+RUN pip3 install helics==2.6.1
 
diff --git a/scripts/helpers/plots b/scripts/helpers/plots
index 6740f34a..6dd7a229 100755
--- a/scripts/helpers/plots
+++ b/scripts/helpers/plots
@@ -1,6 +1,6 @@
 #!/usr/bin/python3
 
-# usage 'python plots metrics_root'
+# usage 'python3 plots.py metrics_root [save_ext] [save_only]'
 import sys
 import os
 import tesp_support.process_pypower as pp
@@ -11,22 +11,42 @@ import tesp_support.process_agents as ap
 import tesp_support.process_eplus as ep
 
 rootname = sys.argv[1]
-
+save_ext = None
+save_file = None
+save_only = False
+if len(sys.argv) > 2:
+  save_ext = sys.argv[2]
+  if len(sys.argv) > 3:
+    save_only_str = sys.argv[3]
+    if ('T' in save_only_str) or ('t' in save_only_str) or ('1' in save_only_str):
+      save_only = True
 if os.path.exists ('bus_' + rootname + '_metrics.json'):
   pmetrics = pp.read_pypower_metrics (rootname)
-  pp.plot_pypower (pmetrics)
+  if save_ext is not None:
+    save_file = '{:s}_pp.{:s}'.format (rootname, save_ext)
+  pp.plot_pypower (pmetrics, save_file=save_file, save_only=save_only)
 
 if os.path.exists ('substation_' + rootname + '_metrics.json'):
   gmetrics = gp.read_gld_metrics (rootname)
-  gp.plot_gld (gmetrics)
-  hp.plot_houses (gmetrics)
-  vp.plot_voltages (gmetrics)
+  if save_ext is not None:
+    save_file = '{:s}_gld.{:s}'.format (rootname, save_ext)
+  gp.plot_gld (gmetrics, save_file=save_file, save_only=save_only)
+  if save_ext is not None:
+    save_file = '{:s}_hse.{:s}'.format (rootname, save_ext)
+  hp.plot_houses (gmetrics, save_file=save_file, save_only=save_only)
+  if save_ext is not None:
+    save_file = '{:s}_vlt.{:s}'.format (rootname, save_ext)
+  vp.plot_voltages (gmetrics, save_file=save_file, save_only=save_only)
 
 if os.path.exists ('auction_' + rootname + '_metrics.json'):
   ametrics = ap.read_agent_metrics (rootname)
-  ap.plot_agents (ametrics)
+  if save_ext is not None:
+    save_file = '{:s}_ag.{:s}'.format (rootname, save_ext)
+  ap.plot_agents (ametrics, save_file=save_file, save_only=save_only)
 
 if os.path.exists ('eplus_' + rootname + '_metrics.json'):
   emetrics = ep.read_eplus_metrics (rootname)
-  ep.plot_eplus (emetrics)
+  if save_ext is not None:
+    save_file = '{:s}_ep.{:s}'.format (rootname, save_ext)
+  ep.plot_eplus (emetrics, save_file=save_file, save_only=save_only)
 
diff --git a/src/tesp_support/tesp_support/process_gld.py b/src/tesp_support/tesp_support/process_gld.py
index f007399e..8da729e7 100644
--- a/src/tesp_support/tesp_support/process_gld.py
+++ b/src/tesp_support/tesp_support/process_gld.py
@@ -604,5 +604,5 @@ def process_gld(nameroot, dictname = '', save_file=None, save_only=False):
   '''
   path = os.getcwd()
   dict = read_gld_metrics (path, nameroot, dictname)
-  plot_gld (dict, save_file, save_only)
+  plot_gld(dict, save_file, save_only)
 
diff --git a/src/tesp_support/tesp_support/process_pypower.py b/src/tesp_support/tesp_support/process_pypower.py
index 06918a48..e605ff2c 100644
--- a/src/tesp_support/tesp_support/process_pypower.py
+++ b/src/tesp_support/tesp_support/process_pypower.py
@@ -212,7 +212,7 @@ def read_pypower_metrics (path, nameroot):
   dict['idx_g'] = idx_g
   return dict
 
-def process_pypower(path, nameroot, title=None, save_file=None, save_only=True):
+def process_pypower(nameroot, title=None, save_file=None, save_only=True):
   """ Plots bus and generator quantities for the 9-bus system used in te30 or sgip1 examples
 
   This function reads *bus_nameroot_metrics.json* and 
@@ -235,7 +235,6 @@ def process_pypower(path, nameroot, title=None, save_file=None, save_only=True):
       save_file (str): name of a file to save plot, should include the *png* or *pdf* extension to determine type.
       save_only (Boolean): set True with *save_file* to skip the display of the plot. Otherwise, script waits for user keypress.
   """
-
   path = os.getcwd()
-  dict = read_pypower_metrics (path, nameroot)
+  dict = read_pypower_metrics(path, nameroot)
   plot_pypower (dict, title, save_file, save_only)


Test patch:
diff --git a/examples/houses/test_houses.glm b/examples/houses/test_houses.glm
new file mode 100644
index 00000000..fb5cd12d
--- /dev/null
+++ b/examples/houses/test_houses.glm
@@ -0,0 +1,383 @@
+#define VSOURCE=66395.3
+#set minimum_timestep=15
+#set relax_naming_rules=1
+#set profiler=1
+
+clock {
+	timezone PST+8PDT;
+	starttime '2013-07-01 00:00:00';
+	stoptime '2013-07-03 00:00:00';
+};
+module powerflow {
+  solver_method NR;
+  line_capacitance TRUE;
+};
+module residential {
+	implicit_enduses NONE;
+}
+module generators;
+module tape;
+module reliability {
+  report_event_log false;
+};
+module climate;
+
+object metrics_collector_writer {
+     interval 300;
+     filename ${METRICS_FILE}; // TE_Challenge_metrics.json
+};
+
+object climate {
+  name localWeather;
+  tmyfile "${TMY_PATH}/WA-Yakima_Air_Terminal.tmy3";
+  interpolate QUADRATIC;
+};
+
+#include "${SCHED_PATH}/water_and_setpoint_schedule_v3.glm"
+#include "${SCHED_PATH}/appliance_schedules.glm"
+
+object line_configuration {
+  name lcon_ugcable_ABC;
+  z11 0.0800022+0.733353j;
+  c11 0.0000;
+  z12 0.0600016-0.0666685j;
+  c12 0.0000;
+  z13 0.0600016-0.0666685j;
+  c13 0.0000;
+  z21 0.0600016-0.0666685j;
+  c21 0.0000;
+  z22 0.0800022+0.733353j;
+  c22 0.0000;
+  z23 0.0600016-0.0666685j;
+  c23 0.0000;
+  z31 0.0600016-0.0666685j;
+  c31 0.0000;
+  z32 0.0600016-0.0666685j;
+  c32 0.0000;
+  z33 0.0800022+0.733353j;
+  c33 0.0000;
+}
+object transformer_configuration {
+  name xcon_sub;
+  connect_type DELTA_GWYE;
+  primary_voltage 66395.281;
+  secondary_voltage 7621.024;
+  power_rating 12000.000;
+  resistance 0.010000;
+  reactance 0.100000;
+}
+
+object substation {
+  name source;
+  bustype SWING;
+  phases ABCN;
+  nominal_voltage 66395.28;
+  base_power 12MVA;
+  power_convergence_value 100VA;
+  positive_sequence_voltage ${VSOURCE};
+  object metrics_collector {
+    interval 300;
+  };
+}
+object transformer {
+  name xf_sub;
+  from source;
+  to mvbus;
+  phases ABC;
+  configuration xcon_sub;
+  continuous_rating_A 497.02;
+  continuous_rating_B 497.02;
+  continuous_rating_C 497.02;
+  emergency_rating_A 677.76;
+  emergency_rating_B 677.76;
+  emergency_rating_C 677.76;
+  // vector group Dy1;
+}
+object node {
+  name mvbus;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+
+// feeder F1, six sections
+object node {
+  name F1B1;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F1B2;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F1B3;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F1B4;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F1B5;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F1B6;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object overhead_line {
+  name F1_Section1;
+  from mvbus;
+  to F1B1;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F1_Section2;
+  from F1B1;
+  to F1B2;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F1_Section3;
+  from F1B2;
+  to F1B3;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F1_Section4;
+  from F1B3;
+  to F1B4;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F1_Section5;
+  from F1B4;
+  to F1B5;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F1_Section6;
+  from F1B5;
+  to F1B6;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+
+// feeder F7, eight sections
+object node {
+  name F7B1;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F7B2;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F7B3;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F7B4;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F7B5;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F7B6;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F7B7;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object node {
+  name F7B8;
+  phases ABCN;
+  nominal_voltage 7621.02;
+}
+object overhead_line {
+  name F7_Section1;
+  from mvbus;
+  to F7B1;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F7_Section2;
+  from F7B1;
+  to F7B2;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F7_Section3;
+  from F7B2;
+  to F7B3;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F7_Section4;
+  from F7B3;
+  to F7B4;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F7_Section5;
+  from F7B4;
+  to F7B5;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F7_Section6;
+  from F7B5;
+  to F7B6;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F7_Section7;
+  from F7B6;
+  to F7B7;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+object overhead_line {
+  name F7_Section8;
+  from F7B7;
+  to F7B8;
+  phases ABC;
+  length 500.00;
+  continuous_rating_A 400.00;
+  continuous_rating_B 400.00;
+  continuous_rating_C 400.00;
+  emergency_rating_A 600.00;
+  emergency_rating_B 600.00;
+  emergency_rating_C 600.00;
+  configuration lcon_ugcable_ABC;
+}
+
+#include "houses.glm"
+
+#ifdef WANT_VI_DUMP
+object voltdump {
+  filename houses_volt.csv;
+  mode POLAR;
+};
+object currdump {
+  filename houses_curr.csv;
+  mode POLAR;
+};
+#endif