Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.MultiZone.VAV.SetPoints.OutdoorAirFlow.Validation.OutdoorAirFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.MultiZone.VAV.SetPoints.OutdoorAirFlow.Validation.OutdoorAirFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.MultiZone.VAV.SetPoints.OutdoorAirFlow.Validation.OutdoorAirFlow") translateModel(Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.MultiZone.VAV.SetPoints.OutdoorAirFlow.Validation.OutdoorAirFlow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.MultiZone.VAV.SetPoints.OutdoorAirFlow.Validation.OutdoorAirFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001167/0.001167, allocations: 105.9 kB / 16.37 MB, free: 6.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 194.6 kB / 17.31 MB, free: 5.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.665/1.665, allocations: 292.3 MB / 0.5496 GB, free: 17.54 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.373e-05/2.395e-05, allocations: 6.219 kB / 0.6729 GB, free: 5.816 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.ASHRAE.G36_PR1.AHUs.MultiZone.VAV.SetPoints.OutdoorAirFlow.Validation.OutdoorAirFlow): time 0.00564/0.00568, allocations: 4.537 MB / 0.6774 GB, free: 1.262 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003973/0.009674, allocations: 2.213 MB / 0.6795 GB, free: 15.03 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008548/0.01055, allocations: 23.94 kB / 0.6796 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005639/0.01112, allocations: 205.6 kB / 0.6798 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0006674/0.01186, allocations: 225.8 kB / 0.68 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001377/0.01324, allocations: 0.5959 MB / 0.6806 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001764/0.01501, allocations: 1.819 MB / 0.6823 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001297/0.01632, allocations: 1.079 MB / 0.6834 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005695/0.0169, allocations: 0.5992 MB / 0.684 GB, free: 10.44 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005348/0.01744, allocations: 0.6879 MB / 0.6846 GB, free: 9.746 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001959/0.01764, allocations: 176 kB / 0.6848 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002233/0.01788, allocations: 196 kB / 0.685 GB, free: 9.383 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.001522/0.01941, allocations: 2.366 MB / 0.6873 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 0.0007989/0.02021, allocations: 1.508 MB / 0.6888 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002415/0.02046, allocations: 255.1 kB / 0.689 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of FrontEnd: time 0.0002693/0.02074, allocations: 114.8 kB / 0.6891 GB, free: 5.094 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 403 (381) * Number of variables: 403 (367) Notification: Performance of Bindings: time 0.006016/0.02676, allocations: 7.156 MB / 0.6961 GB, free: 13.7 MB / 0.5762 GB Notification: Performance of FunctionAlias: time 0.0008284/0.02759, allocations: 0.9292 MB / 0.697 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of Early Inline: time 0.004037/0.03164, allocations: 4.453 MB / 0.7014 GB, free: 8.234 MB / 0.5762 GB Notification: Performance of simplify1: time 0.0002728/0.03193, allocations: 275.6 kB / 0.7016 GB, free: 7.965 MB / 0.5762 GB Notification: Performance of Alias: time 0.009084/0.04102, allocations: 8.267 MB / 0.7097 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of simplify2: time 0.0002002/0.04125, allocations: 151.7 kB / 0.7099 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of Events: time 0.0008108/0.04207, allocations: 0.6417 MB / 0.7105 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of Detect States: time 0.0006812/0.04276, allocations: 0.7054 MB / 0.7112 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of Partitioning: time 0.0009478/0.04372, allocations: 0.888 MB / 0.712 GB, free: 12.12 MB / 0.5919 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency zonToAhu.yAveOutAirFraPlu could not be devided by the body size 3 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (3) zonToAhu.reaRep.y = {zonToAhu.yAveOutAirFraPlu for $i1 in 1:3} ($RES_SIM_24) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (133/169) **************************** (1) [ALGB] (1) protected Real zon1.priOutAirFra.u2 (2) [DISC] (1) protected Boolean zon2.hys.y (3) [ALGB] (3) Real[3] zonToAhu.uDesZonPeaOcc (min = {0.0 for $i1 in 1:3}) (4) [ALGB] (3) Real[3] zonToAhu.VDesAreBreZon_flow (min = {0.0 for $i1 in 1:3}) (5) [ALGB] (1) protected Real ahu1.effMinOutAirInt.u1 (6) [ALGB] (1) protected Real zon1.gai.y (7) [ALGB] (1) protected Real zon1.priOutAirFra.y (8) [ALGB] (1) protected Real numOfOcc3.y (9) [ALGB] (3) protected Real[3] zonToAhu.sysUncOutAir.u (10) [ALGB] (1) protected Real zon1.desZonOutAirRate.y (11) [ALGB] (1) protected Real zon2.desBreZon.y (12) [ALGB] (1) protected Real zon3.priOutAirFra.y (13) [DISC] (1) protected Boolean ahu1.intEqu1.y (14) [ALGB] (1) protected Real zon1.add2.y (15) [ALGB] (1) protected Real zon3.desZonOutAirRate.y (16) [ALGB] (1) protected Real zon1.gaiDivZer.y (17) [ALGB] (1) Real zonToAhu.yAveOutAirFraPlu (min = 0.0) (18) [ALGB] (1) protected Real ahu1.pro.y (19) [DISC] (1) Boolean $SEV_15 (20) [ALGB] (1) protected Real zon1.swi4.y (21) [DISC] (1) Boolean $SEV_14 (22) [ALGB] (3) protected Real[3] zonToAhu.sumDesZonPop.u (23) [DISC] (1) Boolean $SEV_13 (24) [DISC] (1) Boolean $SEV_12 (25) [DISC] (1) Boolean $SEV_11 (26) [DISC] (1) Boolean $SEV_10 (27) [ALGB] (1) protected Real ahu1.pro.u2 (28) [DISS] (1) protected Boolean winSta1.y (29) [ALGB] (1) Real ahu1.VEffOutAir_flow (min = 0.0) (30) [DISC] (1) protected Boolean zon1.hys.y (31) [DISC] (1) Boolean $TEV_27 (32) [ALGB] (3) Real[3] zonToAhu.VUncOutAir_flow (min = {0.0 for $i1 in 1:3}) (33) [DISC] (1) Boolean $TEV_26 (34) [DISC] (1) Boolean $TEV_25 (35) [DISC] (1) Boolean $TEV_24 (36) [DISC] (1) Boolean $TEV_23 (37) [DISC] (1) Boolean $TEV_22 (38) [DISC] (1) Boolean $TEV_21 (39) [DISC] (1) protected Integer reaToInt1.y (40) [DISC] (1) Boolean $TEV_20 (41) [ALGB] (1) protected Real zon2.priOutAirFra.u2 (42) [ALGB] (3) protected Real[3] zonToAhu.zonVenEff.y (43) [ALGB] (1) protected Real zon3.swi1.y (44) [ALGB] (1) protected Real numOfOcc4.y (45) [ALGB] (3) protected Real[3] zonToAhu.maxPriOutAirFra.u (46) [ALGB] (1) Real zon1.TDis (47) [ALGB] (1) protected Real zon1.breZon.y (48) [ALGB] (1) Real $FUN_6 (49) [ALGB] (1) Real $FUN_5 (50) [ALGB] (1) Real $FUN_4 (51) [ALGB] (1) Real zon1.TZon (52) [DISC] (1) Boolean $TEV_19 (53) [ALGB] (1) Real $FUN_3 (54) [DISC] (1) Boolean $TEV_18 (55) [ALGB] (1) Real $FUN_2 (56) [DISC] (1) Boolean $TEV_17 (57) [ALGB] (1) Real $FUN_1 (58) [ALGB] (1) protected Real ahu1.outAirFra.y (59) [ALGB] (1) protected Real zon1.desBreZon.y (60) [DISC] (1) Boolean $TEV_16 (61) [DISC] (1) Boolean $TEV_15 (62) [DISC] (1) Boolean $TEV_14 (63) [DISC] (1) Boolean $TEV_13 (64) [DISC] (1) Boolean $TEV_12 (65) [ALGB] (1) protected Real ahu1.sysVenEff.u2 (66) [DISC] (1) protected Boolean ahu1.hys1.y (67) [DISC] (1) Boolean zon1.uReqOutAir (68) [ALGB] (3) protected Real[3] zonToAhu.sumDesBreZonPop.u (69) [ALGB] (1) protected Real zon1.zonOutAirRate.y (70) [ALGB] (1) protected Real zon1.swi1.y (71) [ALGB] (1) protected Real ahu1.norVOutMin.y (72) [ALGB] (1) protected Real ahu1.desOutAirInt.u2 (73) [ALGB] (1) Real zon1.VUncOutAir_flow (min = 0.0) (74) [ALGB] (3) Real[3] zonToAhu.uDesPriOutAirFra (min = {0.0 for $i1 in 1:3}, max = {1.0 for $i1 in 1:3}) (75) [ALGB] (1) protected Real zon1.desBreZon.u1 (76) [ALGB] (1) protected Real zon3.desBreZon.u1 (77) [ALGB] (1) protected Real zon2.desBreZon.u1 (78) [ALGB] (1) protected Real zon1.desBreZon.u2 (79) [ALGB] (1) protected Real zon3.desBreZon.u2 (80) [ALGB] (1) protected Real zon2.desBreZon.u2 (81) [DISC] (1) protected Integer reaToInt2.y (82) [ALGB] (1) protected Real zon2.priOutAirFra.y (83) [DISC] (1) Boolean $SEV_9 (84) [ALGB] (3) protected Real[3] zonToAhu.desSysVenEff.u (85) [DISC] (1) Boolean $SEV_8 (86) [ALGB] (1) protected Real zon2.desZonPriOutAirRate.y (87) [ALGB] (1) protected Real zon3.priOutAirFra.u2 (88) [DISC] (1) Boolean $SEV_7 (89) [ALGB] (1) protected Real ahu1.swi4.y (90) [ALGB] (1) protected Real zon2.add2.y (91) [ALGB] (1) protected Real ahu1.swi4.u1 (92) [ALGB] (1) protected Real ahu1.aveOutAirFra.y (93) [ALGB] (1) protected Real zon2.swi4.y (94) [ALGB] (1) Real zon3.VUncOutAir_flow (min = 0.0) (95) [ALGB] (1) protected Real zon3.breZon.y (96) [ALGB] (1) protected Real zon3.gaiDivZer.y (97) [ALGB] (1) protected Real zon3.swi.y (98) [ALGB] (1) protected Real ahu1.outAirFra.u2 (99) [ALGB] (1) protected Real zon3.zonOutAirRate.y (100) [ALGB] (1) protected Real ahu1.occDivFra.y (101) [ALGB] (1) protected Real zon2.desZonOutAirRate.y (102) [ALGB] (1) protected Real ahu1.min.u1 (103) [ALGB] (1) protected Real zon2.zonOutAirRate.y (104) [ALGB] (1) protected Real zon3.gai.y (105) [ALGB] (3) protected Real[3] zonToAhu.sumDesBreZonAre.u (106) [ALGB] (3) protected Real[3] zonToAhu.sysPriAirRate.u (107) [DISC] (1) protected Integer reaToInt3.y (108) [ALGB] (1) protected Real ahu1.effMinOutAirInt.y (109) [ALGB] (1) protected Real ahu1.occDivFra.u2 (110) [ALGB] (3) Real[3] zonToAhu.VPriAir_flow (min = {0.0 for $i1 in 1:3}) (111) [ALGB] (1) protected Real zon2.swi.y (112) [ALGB] (1) protected Real ahu1.unCorOutAirInk.u2 (113) [ALGB] (1) Real zon2.VUncOutAir_flow (min = 0.0) (114) [ALGB] (1) protected Real zon3.desBreZon.y (115) [ALGB] (1) protected Real numOfOcc2.y (116) [DISC] (1) protected Boolean zon3.hys.y (117) [ALGB] (1) protected Real zon2.gai.y (118) [ALGB] (3) Real[3] zonToAhu.VDesPopBreZon_flow (min = {0.0 for $i1 in 1:3}) (119) [ALGB] (1) protected Real zon2.swi1.y (120) [ALGB] (1) protected Real zon1.desZonPriOutAirRate.y (121) [ALGB] (1) protected Real zon2.gaiDivZer.y (122) [ALGB] (3) protected Real[3] zonToAhu.reaRep.y (123) [ALGB] (1) Real zon1.VUncOut_flow_nominal (min = 0.0) (124) [ALGB] (3) protected Real[3] zonToAhu.zonVenEff.u1 (125) [ALGB] (1) protected Real ahu1.addPar.y (126) [ALGB] (3) protected Real[3] zonToAhu.zonVenEff.u2 (127) [ALGB] (1) protected Real ahu1.sysUncOutAir.u2 (128) [ALGB] (3) Real[3] zonToAhu.uPriOutAirFra (min = {0.0 for $i1 in 1:3}, max = {1.0 for $i1 in 1:3}) (129) [ALGB] (1) protected Real zon3.desZonPriOutAirRate.y (130) [ALGB] (1) protected Real zon2.breZon.y (131) [ALGB] (1) protected Real zon3.add2.y (132) [ALGB] (1) protected Real zon1.swi.y (133) [ALGB] (1) protected Real zon3.swi4.y System Equations (147/169) **************************** (1) [ARRY] (3) zonToAhu.VDesPopBreZon_flow = zonToAhu.sumDesBreZonPop.u ($RES_SIM_204) (2) [ARRY] (3) zonToAhu.uDesZonPeaOcc = zonToAhu.sumDesZonPop.u ($RES_SIM_205) (3) [SCAL] (1) zon3.swi.y = zon3.gai.y ($RES_SIM_80) (4) [SCAL] (1) zon3.gai.y = zon3.gai.k * reaToInt3.y ($RES_SIM_81) (5) [SCAL] (1) zon3.breZon.y = zon3.breZon.k1 * zon3.desBreZon.u2 + zon3.breZon.k2 * zon3.swi.y ($RES_SIM_82) (6) [SCAL] (1) zon1.desBreZon.u2 = zon1.floAre.k * zon1.floPerAre.k ($RES_SIM_122) (7) [SCAL] (1) zon1.priOutAirFra.u2 = max(zonPriFloRat.k, zon1.gaiDivZer.y) ($RES_SIM_123) (8) [SCAL] (1) zon2.desBreZon.u1 = zon2.desPeaOcc.k * zon2.floPerPer.k ($RES_SIM_84) (9) [SCAL] (1) zon1.VUncOutAir_flow = if zon1.uReqOutAir then zon1.swi4.y else zon1.zerOutAir.k ($RES_SIM_124) (10) [SCAL] (1) zon1.swi4.y = if zon1.cloWin.k then zon1.zerOutAir.k else zon1.zonOutAirRate.y ($RES_SIM_125) (11) [SCAL] (1) zon2.gaiDivZer.y = zon2.gaiDivZer.k * zon1.VUncOut_flow_nominal ($RES_SIM_86) (12) [SCAL] (1) zon1.TDis = TDis.offset + (if $TEV_16 then 0.0 else if $TEV_17 then (TDis.height * (time - TDis.startTime)) / TDis.duration else TDis.height) ($RES_SIM_12) (13) [SCAL] (1) zon1.TZon = TZon.offset + (if $TEV_18 then 0.0 else if $TEV_19 then (TZon.height * (time - TZon.startTime)) / TZon.duration else TZon.height) ($RES_SIM_13) (14) [SCAL] (1) reaToInt3.y = if $SEV_7 then integer($FUN_5) else integer($FUN_6) ($RES_SIM_14) (15) [SCAL] (1) numOfOcc4.y = numOfOcc4.offset + (if $TEV_20 then 0.0 else if $TEV_21 then (numOfOcc4.height * (time - numOfOcc4.startTime)) / numOfOcc4.duration else numOfOcc4.height) ($RES_SIM_15) (16) [ARRY] (3) zonToAhu.reaRep.y = zonToAhu.zonVenEff.u1 ($RES_SIM_214) (17) [WHEN] (1)when $TEV_22 then (17) [----] winSta1.y := false (17) [----] else when $TEV_23 then (17) [----] winSta1.y := true (17) [----] end when; (18) [ARRY] (3) zonToAhu.zonVenEff.y = zonToAhu.desSysVenEff.u ($RES_SIM_215) (19) [SCAL] (1) reaToInt2.y = if $SEV_8 then integer($FUN_3) else integer($FUN_4) ($RES_SIM_18) (20) [SCAL] (1) zon2.desBreZon.u2 = zon2.floAre.k * zon2.floPerAre.k ($RES_SIM_92) (21) [SCAL] (1) numOfOcc3.y = numOfOcc3.offset + (if $TEV_24 then 0.0 else if $TEV_25 then (numOfOcc3.height * (time - numOfOcc3.startTime)) / numOfOcc3.duration else numOfOcc3.height) ($RES_SIM_19) (22) [SCAL] (1) zon2.priOutAirFra.u2 = max(zonPriFloRat1.k, zon2.gaiDivZer.y) ($RES_SIM_93) (23) [SCAL] (1) zon1.hys.y = $SEV_15 ($RES_SIM_133) (24) [SCAL] (1) zon2.VUncOutAir_flow = if zon1.uReqOutAir then zon2.swi4.y else zon2.zerOutAir.k ($RES_SIM_94) (25) [SCAL] (1) zon1.add2.y = zon1.add2.k1 * zon1.TZon + zon1.add2.k2 * zon1.TDis ($RES_SIM_134) (26) [SCAL] (1) zon2.swi4.y = if winSta.k then zon2.zerOutAir.k else zon2.zonOutAirRate.y ($RES_SIM_95) (27) [SCAL] (1) zon1.desZonPriOutAirRate.y = zon1.desZonOutAirRate.y / zon1.minZonFlo.k ($RES_SIM_135) (28) [SCAL] (1) zon1.desZonOutAirRate.y = zon1.desBreZon.y / zon1.desDisEff.k ($RES_SIM_136) (29) [SCAL] (1) zon1.desBreZon.y = zon1.desBreZon.k1 * zon1.desBreZon.u1 + zon1.desBreZon.k2 * zon1.desBreZon.u2 ($RES_SIM_137) (30) [SCAL] (1) zon1.priOutAirFra.y = zon1.VUncOutAir_flow / zon1.priOutAirFra.u2 ($RES_SIM_138) (31) [SCAL] (1) zon1.zonOutAirRate.y = zon1.breZon.y / zon1.swi1.y ($RES_SIM_139) (32) [SCAL] (1) reaToInt1.y = if $SEV_9 then integer($FUN_1) else integer($FUN_2) ($RES_SIM_20) (33) [SCAL] (1) numOfOcc2.y = numOfOcc2.offset + (if $TEV_26 then 0.0 else if $TEV_27 then (numOfOcc2.height * (time - numOfOcc2.startTime)) / numOfOcc2.duration else numOfOcc2.height) ($RES_SIM_21) (34) [ARRY] (3) zonToAhu.reaRep.y = {zonToAhu.yAveOutAirFraPlu for $i1 in 1:3} ($RES_SIM_24) (35) [SCAL] (1) ahu1.sysVenEff.u2 = max(zonToAhu.maxPriOutAirFra.u) ($RES_SIM_25) (36) [SCAL] (1) ahu1.desOutAirInt.u2 = min(zonToAhu.desSysVenEff.u) ($RES_SIM_26) (37) [FOR-] (3) ($RES_SIM_27) (37) [----] for $i1 in 1:3 loop (37) [----] [SCAL] (1) zonToAhu.zonVenEff[$i1].y = zonToAhu.zonVenEff[$i1].k1 * zonToAhu.zonVenEff[$i1].u1 + zonToAhu.zonVenEff[$i1].k2 * zonToAhu.zonVenEff[$i1].u2 ($RES_SIM_28) (37) [----] end for; (38) [SCAL] (1) zon1.swi1.y = if zon1.hys.y then zon1.disEffCoo.k else zon1.disEffHea.k ($RES_SIM_140) (39) [SCAL] (1) zon1.swi.y = zon1.gai.y ($RES_SIM_141) (40) [SCAL] (1) ahu1.unCorOutAirInk.u2 = zonToAhu.sumDesBreZonAre.k * zonToAhu.sumDesBreZonAre.u ($RES_SIM_29) (41) [SCAL] (1) zon1.gai.y = zon1.gai.k * reaToInt1.y ($RES_SIM_142) (42) [SCAL] (1) zon1.breZon.y = zon1.breZon.k1 * zon1.desBreZon.u2 + zon1.breZon.k2 * zon1.swi.y ($RES_SIM_143) (43) [SCAL] (1) ahu1.pro.u2 = zonToAhu.sumDesBreZonPop.k * zonToAhu.sumDesBreZonPop.u ($RES_SIM_30) (44) [SCAL] (1) ahu1.occDivFra.u2 = zonToAhu.sumDesZonPop.k * zonToAhu.sumDesZonPop.u ($RES_SIM_31) (45) [SCAL] (1) ahu1.outAirFra.u2 = zonToAhu.sysPriAirRate.k * zonToAhu.sysPriAirRate.u ($RES_SIM_32) (46) [SCAL] (1) ahu1.sysUncOutAir.u2 = zonToAhu.sysUncOutAir.k * zonToAhu.sysUncOutAir.u ($RES_SIM_33) (47) [SCAL] (1) ahu1.hys1.y = $SEV_10 ($RES_SIM_34) (48) [SCAL] (1) ahu1.norVOutMin.y = ahu1.VEffOutAir_flow / ahu1.min.u1 ($RES_SIM_35) (49) [SCAL] (1) ahu1.swi4.y = if ahu1.hys1.y then ahu1.swi4.u1 else ahu1.conOne.k ($RES_SIM_37) (50) [SCAL] (1) zon1.uReqOutAir = $SEV_11 ($RES_SIM_38) (51) [SCAL] (1) ahu1.intEqu1.y = $SEV_12 ($RES_SIM_39) (52) [SCAL] (1) $TEV_12 = $PRE.ahu1.hys1.y ($RES_EVT_404) (53) [SCAL] (1) $TEV_13 = $PRE.zon3.hys.y ($RES_EVT_405) (54) [SCAL] (1) $TEV_14 = $PRE.zon2.hys.y ($RES_EVT_406) (55) [SCAL] (1) $TEV_15 = $PRE.zon1.hys.y ($RES_EVT_407) (56) [SCAL] (1) $TEV_16 = time < TDis.startTime ($RES_EVT_408) (57) [SCAL] (1) $TEV_17 = time < (TDis.startTime + TDis.duration) ($RES_EVT_409) (58) [SCAL] (1) ahu1.effMinOutAirInt.u1 = min(zon1.VUncOut_flow_nominal, ahu1.sysUncOutAir.u2) ($RES_SIM_42) (59) [SCAL] (1) ahu1.VEffOutAir_flow = min(ahu1.min.u1, ahu1.effMinOutAirInt.y) ($RES_SIM_43) (60) [SCAL] (1) ahu1.min.u1 = zon1.VUncOut_flow_nominal / ahu1.desOutAirInt.u2 ($RES_SIM_44) (61) [SCAL] (1) zonToAhu.yAveOutAirFraPlu = ahu1.addPar1.k * ahu1.aveOutAirFra.y + ahu1.addPar1.p ($RES_SIM_45) (62) [SCAL] (1) ahu1.aveOutAirFra.y = ahu1.aveOutAirFra.k * zon1.VUncOut_flow_nominal ($RES_SIM_46) (63) [SCAL] (1) ahu1.pro.y = ahu1.occDivFra.y * ahu1.pro.u2 ($RES_SIM_47) (64) [SCAL] (1) zon1.VUncOut_flow_nominal = ahu1.unCorOutAirInk.k1 * ahu1.pro.y + ahu1.unCorOutAirInk.k2 * ahu1.unCorOutAirInk.u2 ($RES_SIM_48) (65) [SCAL] (1) ahu1.occDivFra.y = ahu1.peaSysPopulation.k / ahu1.occDivFra.u2 ($RES_SIM_49) (66) [SCAL] (1) $TEV_18 = time < TZon.startTime ($RES_EVT_410) (67) [SCAL] (1) $TEV_19 = time < (TZon.startTime + TZon.duration) ($RES_EVT_411) (68) [SCAL] (1) $TEV_20 = time < numOfOcc4.startTime ($RES_EVT_412) (69) [SCAL] (1) $TEV_21 = time < (numOfOcc4.startTime + numOfOcc4.duration) ($RES_EVT_413) (70) [SCAL] (1) $TEV_22 = sample(9, winSta1.t1, winSta1.period) ($RES_EVT_414) (71) [SCAL] (1) $TEV_23 = sample(10, winSta1.t0, winSta1.period) ($RES_EVT_415) (72) [SCAL] (1) $TEV_24 = time < numOfOcc3.startTime ($RES_EVT_416) (73) [SCAL] (1) $TEV_25 = time < (numOfOcc3.startTime + numOfOcc3.duration) ($RES_EVT_417) (74) [SCAL] (1) $TEV_26 = time < numOfOcc2.startTime ($RES_EVT_418) (75) [SCAL] (1) $TEV_27 = time < (numOfOcc2.startTime + numOfOcc2.duration) ($RES_EVT_419) (76) [SCAL] (1) ahu1.effMinOutAirInt.y = ahu1.effMinOutAirInt.u1 / ahu1.swi4.y ($RES_SIM_50) (77) [SCAL] (1) ahu1.swi4.u1 = ahu1.sysVenEff.k1 * ahu1.addPar.y + ahu1.sysVenEff.k2 * ahu1.sysVenEff.u2 ($RES_SIM_51) (78) [SCAL] (1) ahu1.addPar.y = ahu1.addPar.k * ahu1.outAirFra.y + ahu1.addPar.p ($RES_SIM_52) (79) [SCAL] (1) ahu1.outAirFra.y = ahu1.effMinOutAirInt.u1 / ahu1.outAirFra.u2 ($RES_SIM_53) (80) [SCAL] (1) zon3.desBreZon.u1 = zon3.desPeaOcc.k * zon3.floPerPer.k ($RES_SIM_54) (81) [SCAL] (1) zon3.gaiDivZer.y = zon3.gaiDivZer.k * zon1.VUncOut_flow_nominal ($RES_SIM_56) (82) [SCAL] (1) $FUN_1 = floor(0.5 + numOfOcc2.y) ($RES_$AUX_396) (83) [SCAL] (1) $FUN_2 = ceil((-0.5) + numOfOcc2.y) ($RES_$AUX_395) (84) [SCAL] (1) $FUN_3 = floor(0.5 + numOfOcc3.y) ($RES_$AUX_394) (85) [SCAL] (1) $FUN_4 = ceil((-0.5) + numOfOcc3.y) ($RES_$AUX_393) (86) [SCAL] (1) $FUN_5 = floor(0.5 + numOfOcc4.y) ($RES_$AUX_392) (87) [SCAL] (1) $FUN_6 = ceil((-0.5) + numOfOcc4.y) ($RES_$AUX_391) (88) [SCAL] (1) zon3.priOutAirFra.u2 = zonToAhu.VPriAir_flow[3] ($RES_SIM_178) (89) [SCAL] (1) $SEV_7 = numOfOcc4.y > 0.0 ($RES_EVT_424) (90) [SCAL] (1) zon2.priOutAirFra.u2 = zonToAhu.VPriAir_flow[2] ($RES_SIM_179) (91) [SCAL] (1) $SEV_8 = numOfOcc3.y > 0.0 ($RES_EVT_425) (92) [SCAL] (1) $SEV_9 = numOfOcc2.y > 0.0 ($RES_EVT_426) (93) [SCAL] (1) $SEV_10 = not $PRE.ahu1.hys1.y and ahu1.swi4.u1 > ahu1.hys1.uHigh or $PRE.ahu1.hys1.y and ahu1.swi4.u1 >= ahu1.hys1.uLow ($RES_EVT_427) (94) [SCAL] (1) $SEV_11 = supFan.k and ahu1.intEqu1.y ($RES_EVT_428) (95) [SCAL] (1) $SEV_12 = opeMod.k == ahu1.occMod.k ($RES_EVT_429) (96) [SCAL] (1) zon3.desBreZon.u2 = zon3.floAre.k * zon3.floPerAre.k ($RES_SIM_62) (97) [SCAL] (1) zon2.hys.y = $SEV_14 ($RES_SIM_102) (98) [SCAL] (1) zon3.priOutAirFra.u2 = max(zonPriFloRat2.k, zon3.gaiDivZer.y) ($RES_SIM_63) (99) [SCAL] (1) zon2.add2.y = zon2.add2.k1 * zon1.TZon + zon2.add2.k2 * zon1.TDis ($RES_SIM_103) (100) [SCAL] (1) zon3.VUncOutAir_flow = if zon1.uReqOutAir then zon3.swi4.y else zon3.zerOutAir.k ($RES_SIM_64) (101) [SCAL] (1) zon2.desZonPriOutAirRate.y = zon2.desZonOutAirRate.y / zon2.minZonFlo.k ($RES_SIM_104) (102) [SCAL] (1) zon3.swi4.y = if winSta1.y then zon3.zerOutAir.k else zon3.zonOutAirRate.y ($RES_SIM_65) (103) [SCAL] (1) zon2.desZonOutAirRate.y = zon2.desBreZon.y / zon2.desDisEff.k ($RES_SIM_105) (104) [SCAL] (1) zon2.desBreZon.y = zon2.desBreZon.k1 * zon2.desBreZon.u1 + zon2.desBreZon.k2 * zon2.desBreZon.u2 ($RES_SIM_106) (105) [SCAL] (1) zon1.priOutAirFra.u2 = zonToAhu.VPriAir_flow[1] ($RES_SIM_180) (106) [SCAL] (1) zon2.priOutAirFra.y = zon2.VUncOutAir_flow / zon2.priOutAirFra.u2 ($RES_SIM_107) (107) [SCAL] (1) zon3.priOutAirFra.y = zonToAhu.uPriOutAirFra[3] ($RES_SIM_181) (108) [SCAL] (1) zon2.zonOutAirRate.y = zon2.breZon.y / zon2.swi1.y ($RES_SIM_108) (109) [SCAL] (1) zon2.priOutAirFra.y = zonToAhu.uPriOutAirFra[2] ($RES_SIM_182) (110) [SCAL] (1) zon2.swi1.y = if zon2.hys.y then zon2.disEffCoo.k else zon2.disEffHea.k ($RES_SIM_109) (111) [SCAL] (1) zon1.priOutAirFra.y = zonToAhu.uPriOutAirFra[1] ($RES_SIM_183) (112) [SCAL] (1) $SEV_13 = not $PRE.zon3.hys.y and zon3.add2.y > zon3.hys.uHigh or $PRE.zon3.hys.y and zon3.add2.y >= zon3.hys.uLow ($RES_EVT_430) (113) [SCAL] (1) zon3.VUncOutAir_flow = zonToAhu.VUncOutAir_flow[3] ($RES_SIM_184) (114) [SCAL] (1) $SEV_14 = not $PRE.zon2.hys.y and zon2.add2.y > zon2.hys.uHigh or $PRE.zon2.hys.y and zon2.add2.y >= zon2.hys.uLow ($RES_EVT_431) (115) [SCAL] (1) zon2.VUncOutAir_flow = zonToAhu.VUncOutAir_flow[2] ($RES_SIM_185) (116) [SCAL] (1) $SEV_15 = not $PRE.zon1.hys.y and zon1.add2.y > zon1.hys.uHigh or $PRE.zon1.hys.y and zon1.add2.y >= zon1.hys.uLow ($RES_EVT_432) (117) [SCAL] (1) zon1.VUncOutAir_flow = zonToAhu.VUncOutAir_flow[1] ($RES_SIM_186) (118) [SCAL] (1) zon3.desZonPriOutAirRate.y = zonToAhu.uDesPriOutAirFra[3] ($RES_SIM_187) (119) [SCAL] (1) zon2.desZonPriOutAirRate.y = zonToAhu.uDesPriOutAirFra[2] ($RES_SIM_188) (120) [SCAL] (1) zon1.desZonPriOutAirRate.y = zonToAhu.uDesPriOutAirFra[1] ($RES_SIM_189) (121) [SCAL] (1) zon2.swi.y = zon2.gai.y ($RES_SIM_110) (122) [SCAL] (1) zon2.gai.y = zon2.gai.k * reaToInt2.y ($RES_SIM_111) (123) [SCAL] (1) zon3.hys.y = $SEV_13 ($RES_SIM_72) (124) [SCAL] (1) zon2.breZon.y = zon2.breZon.k1 * zon2.desBreZon.u2 + zon2.breZon.k2 * zon2.swi.y ($RES_SIM_112) (125) [SCAL] (1) zon3.add2.y = zon3.add2.k1 * zon1.TZon + zon3.add2.k2 * zon1.TDis ($RES_SIM_73) (126) [SCAL] (1) zon3.desZonPriOutAirRate.y = zon3.desZonOutAirRate.y / zon3.minZonFlo.k ($RES_SIM_74) (127) [SCAL] (1) zon1.desBreZon.u1 = zon1.desPeaOcc.k * zon1.floPerPer.k ($RES_SIM_114) (128) [SCAL] (1) zon3.desZonOutAirRate.y = zon3.desBreZon.y / zon3.desDisEff.k ($RES_SIM_75) (129) [SCAL] (1) zon3.desBreZon.y = zon3.desBreZon.k1 * zon3.desBreZon.u1 + zon3.desBreZon.k2 * zon3.desBreZon.u2 ($RES_SIM_76) (130) [SCAL] (1) zon1.gaiDivZer.y = zon1.gaiDivZer.k * zon1.VUncOut_flow_nominal ($RES_SIM_116) (131) [SCAL] (1) zon3.priOutAirFra.y = zon3.VUncOutAir_flow / zon3.priOutAirFra.u2 ($RES_SIM_77) (132) [SCAL] (1) zon3.desBreZon.u2 = zonToAhu.VDesAreBreZon_flow[3] ($RES_SIM_190) (133) [SCAL] (1) zon3.zonOutAirRate.y = zon3.breZon.y / zon3.swi1.y ($RES_SIM_78) (134) [SCAL] (1) zon2.desBreZon.u2 = zonToAhu.VDesAreBreZon_flow[2] ($RES_SIM_191) (135) [SCAL] (1) zon3.swi1.y = if zon3.hys.y then zon3.disEffCoo.k else zon3.disEffHea.k ($RES_SIM_79) (136) [SCAL] (1) zon1.desBreZon.u2 = zonToAhu.VDesAreBreZon_flow[1] ($RES_SIM_192) (137) [SCAL] (1) zon3.desBreZon.u1 = zonToAhu.VDesPopBreZon_flow[3] ($RES_SIM_193) (138) [SCAL] (1) zon2.desBreZon.u1 = zonToAhu.VDesPopBreZon_flow[2] ($RES_SIM_194) (139) [SCAL] (1) zon1.desBreZon.u1 = zonToAhu.VDesPopBreZon_flow[1] ($RES_SIM_195) (140) [SCAL] (1) zon3.desPeaOcc.k = zonToAhu.uDesZonPeaOcc[3] ($RES_SIM_196) (141) [SCAL] (1) zon2.desPeaOcc.k = zonToAhu.uDesZonPeaOcc[2] ($RES_SIM_197) (142) [SCAL] (1) zon1.desPeaOcc.k = zonToAhu.uDesZonPeaOcc[1] ($RES_SIM_198) (143) [ARRY] (3) zonToAhu.uPriOutAirFra = zonToAhu.maxPriOutAirFra.u ($RES_SIM_199) (144) [ARRY] (3) zonToAhu.VPriAir_flow = zonToAhu.sysPriAirRate.u ($RES_SIM_200) (145) [ARRY] (3) zonToAhu.VUncOutAir_flow = zonToAhu.sysUncOutAir.u ($RES_SIM_201) (146) [ARRY] (3) zonToAhu.uDesPriOutAirFra = zonToAhu.zonVenEff.u2 ($RES_SIM_202) (147) [ARRY] (3) zonToAhu.VDesAreBreZon_flow = zonToAhu.sumDesBreZonAre.u ($RES_SIM_203)