I'm using EnergyManagementSystem in EnergyPlus for research. For now, I'm trouble in modeling. I was trying to open the window, operate the fan and activate the air conditioner according to the indoor thermal situation and outdoor situation. When my model include AirflowNetwork, ZoneHVAC:PacakagedTerminalHeatPump and ZoneHVAC:OutdoorAirUnit,EMS failed to change the opening factor and availability schedule. (the fan flow rate has not been test yet). I tried to debug with simple model by just changing the opening factor and found out that even though the EMS worked but the opening factor number was empty. Here are part of line from my .edd file:
WORKING_TIME_NEW,Line 1,SET LOCHOUR = HOUR,17.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 2,SET LOCDAYOFWEEK=DAYOFWEEK,6.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 3,IF DAYOFWEEK==1 || DAYOFWEEK==7,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 6,ELSEIF HOUR<9 || HOUR>=18,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 9,ELSEIF HOUR==9 && MINUTE<=5,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 12,ELSEIF HOUR==9 && MINUTE>5,0.0, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 15,ELSEIF HOUR>=10 && HOUR<=17,1.000000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 16,SET OPENING_FACTOR=0.5,0.500000, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 17,SET LOCOPENING_FACTOR5=OPENING_FACTOR,, Occurrence info=FOUR, 04/14 17:04 - 17:05
WORKING_TIME_NEW,Line 18,ENDIF,, Occurrence info=FOUR, 04/14 17:04 - 17:05
In Line 16 the Opening_Factor was set to 0.5, while in Line 17 the value of Opening_Factor was empty. I don't know what to do now.