Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.ThermalZones.EnergyPlus.Validation.ThermalZone.RefBldgSmallOffice.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.ThermalZones.EnergyPlus.Validation.ThermalZone.RefBldgSmallOffice,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.ThermalZones.EnergyPlus.Validation.ThermalZone.RefBldgSmallOffice") translateModel(Buildings.ThermalZones.EnergyPlus.Validation.ThermalZone.RefBldgSmallOffice,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.ThermalZones.EnergyPlus.Validation.ThermalZone.RefBldgSmallOffice") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 99.92 kB / 16.38 MB, free: 6.48 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.001056/0.001056, allocations: 193.3 kB / 17.32 MB, free: 5.797 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.112/1.112, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.522/1.522, allocations: 292.3 MB / 0.5496 GB, free: 17.44 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.814e-05/1.815e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.938 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.ThermalZones.EnergyPlus.Validation.ThermalZone.RefBldgSmallOffice): time 0.429/0.4291, allocations: 231.5 MB / 0.899 GB, free: 22.77 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02518/0.4543, allocations: 27.9 MB / 0.9262 GB, free: 96 kB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003519/0.4578, allocations: 92 kB / 0.9263 GB, free: 64 kB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.003793/0.4616, allocations: 1.44 MB / 0.9277 GB, free: 14.8 MB / 0.67 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3' contains a call to impure function 'Modelica.Utilities.Streams.readLine'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3' contains a call to impure function 'Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.01233/0.474, allocations: 5.356 MB / 0.9329 GB, free: 10.63 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.006709/0.4807, allocations: 3.209 MB / 0.9361 GB, free: 8.09 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.008705/0.4894, allocations: 8.482 MB / 0.9444 GB, free: 1.352 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00466/0.4941, allocations: 3.66 MB / 0.9479 GB, free: 13.65 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004828/0.499, allocations: 2.899 MB / 0.9508 GB, free: 10.75 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003732/0.5027, allocations: 2.463 MB / 0.9532 GB, free: 8.305 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.001074/0.5038, allocations: 472 kB / 0.9536 GB, free: 7.844 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007044/0.5108, allocations: 4.382 MB / 0.9579 GB, free: 3.453 MB / 0.6856 GB Notification: Performance of combineBinaries: time 0.006101/0.5169, allocations: 6.973 MB / 0.9647 GB, free: 12.41 MB / 0.7012 GB Notification: Performance of replaceArrayConstructors: time 0.00306/0.52, allocations: 4.231 MB / 0.9688 GB, free: 8.125 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.001491/0.5215, allocations: 0.773 MB / 0.9696 GB, free: 7.352 MB / 0.7012 GB Notification: Performance of FrontEnd: time 0.0007355/0.5223, allocations: 190.6 kB / 0.9698 GB, free: 7.164 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 803 (713) * Number of variables: 803 (707) Notification: Performance of Bindings: time 0.01863/0.5409, allocations: 19.55 MB / 0.9889 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of FunctionAlias: time 0.001712/0.5426, allocations: 2.214 MB / 0.991 GB, free: 0.9922 MB / 0.7169 GB Notification: Performance of Early Inline: time 0.00916/0.5518, allocations: 11 MB / 1.002 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of simplify1: time 0.0007158/0.5525, allocations: 0.7372 MB / 1.002 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of Alias: time 0.01615/0.5687, allocations: 16.84 MB / 1.019 GB, free: 2.871 MB / 0.7481 GB Notification: Performance of simplify2: time 0.0005701/0.5692, allocations: 0.55 MB / 1.019 GB, free: 2.32 MB / 0.7481 GB Notification: Performance of Events: time 0.001905/0.5712, allocations: 2.073 MB / 1.021 GB, free: 212 kB / 0.7481 GB Notification: Performance of Detect States: time 0.002496/0.5737, allocations: 2.993 MB / 1.024 GB, free: 13.2 MB / 0.7637 GB Notification: Performance of Partitioning: time 0.002884/0.5766, allocations: 3.193 MB / 1.028 GB, free: 9.465 MB / 0.7637 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency sou.QConSen_flow.u2 could not be devided by the body size 3 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (3) {sou.heaGai.QRad_flow, sou.QConSen_flow.u2, sou.heaGai.QLat_flow} = sou.heaGai.AFlo * sou.heaGai.qGai_flow ($RES_SIM_270) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (274/336) **************************** (1) [ALGB] (1) protected Real[1] cor.vol.XiOut (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}) (2) [ALGB] (3) Real[3] att.qGai_flow (3) [ALGB] (1) protected Real wes.vol.medium.state.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (4) [ALGB] (1) protected Real wes.relHum.phi (5) [DISS] (1) protected Real sou.fmuZon.QLat_flow (6) [DISS] (1) protected Real sou.fmuZon.QPeo_flow (7) [ALGB] (1) protected Real sou.heaGai.QRad_flow (8) [DISS] (1) protected discrete Real sou.fmuZon.TRooLast (start = 288.15, min = 0.0, nominal = 300.0) (9) [ALGB] (1) protected Real nor.vol.medium.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (10) [ALGB] (1) protected Real nor.vol.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * nor.vol.medium.p_bar) (11) [ALGB] (1) protected Real eas.heaGai.QRad_flow (12) [DISS] (1) protected discrete Real cor.fmuZon.QConLast_flow (fixed = false, start = 0.0) (13) [ALGB] (1) protected Real sou.heaGai.QLat_flow (14) [DISS] (5) protected Real[5] cor.fmuZon.yEP (15) [ALGB] (2) protected Real[2] nor.vol.medium.X (start = nor.vol.X_start, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (16) [ALGB] (1) protected flow Real cor.conQCon_flow.port.Q_flow (17) [ALGB] (1) protected Real att.fmuZon.X_w (18) [ALGB] (3) protected Real[3] sou.heaGai.qGai_flow (19) [ALGB] (1) protected Real eas.QConSen_flow.u2 (20) [ALGB] (3) protected Real[3] cor.heaGai.qGai_flow (21) [DISS] (1) protected Real cor.fmuZon.tNext (fixed = true, start = cor.fmuZon.startTime) (22) [DISS] (1) protected discrete Real att.fmuZon.QConLast_flow (fixed = false, start = 0.0) (23) [ALGB] (1) protected Real cor.heaGai.QLat_flow (24) [DER-] (1) Real $DER.att.vol.m (25) [DISS] (5) protected Real[5] wes.fmuZon.yEP (26) [DER-] (1) Real[1] $DER.eas.vol.mXi (27) [DISS] (1) protected discrete Real att.fmuZon.TRooLast (start = 288.15, min = 0.0, nominal = 300.0) (28) [ALGB] (1) protected Real att.mWat_flow.y (29) [DISS] (1) protected discrete Real nor.fmuZon.dtLast (30) [ALGB] (1) protected Real eas.heaGai.QLat_flow (31) [ALGB] (3) protected Real[3] eas.heaGai.qGai_flow (32) [ALGB] (1) protected Real cor.heaGai.QRad_flow (33) [ALGB] (1) protected Real sou.mWat_flow.y (34) [ALGB] (1) protected flow Real wes.conQCon_flow.port.Q_flow (35) [ALGB] (1) protected Real nor.fmuZon.X_w (36) [ALGB] (1) protected Real cor.relHum.phi (37) [ALGB] (1) protected Real wes.heaGai.QRad_flow (38) [ALGB] (1) protected Real cor.X_w.y (39) [ALGB] (1) protected flow Real att.heaFloSen.port_a.Q_flow (40) [ALGB] (3) protected Real[3] att.heaGai.qGai_flow (41) [ALGB] (1) protected Real att.heaGai.QLat_flow (42) [DISS] (1) protected discrete Real wes.fmuZon.TRooLast (start = 288.15, min = 0.0, nominal = 300.0) (43) [DER-] (1) Real $DER.nor.vol.UOut (44) [ALGB] (1) protected Real att.vol.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * att.vol.medium.p_bar) (45) [ALGB] (1) protected Real wes.heaGai.QLat_flow (46) [ALGB] (1) protected Real[1] sou.vol.mXiOut (min = {0.0 for $i1 in 1:1}) (47) [ALGB] (3) protected Real[3] wes.heaGai.qGai_flow (48) [ALGB] (1) protected Real att.vol.medium.MM (min = 0.001, max = 0.25, nominal = 0.032) (49) [ALGB] (1) protected Real att.heaGai.QRad_flow (50) [ALGB] (1) protected Real[1] sou.vol.medium.Xi (start = sou.vol.X_start[1:1], min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, StateSelect = default) (51) [ALGB] (1) protected Real eas.mWat_flow.y (52) [DISS] (1) protected discrete Real cor.fmuZon.TAveInlet (start = 288.15, min = 0.0, nominal = 300.0) (53) [ALGB] (1) protected Real cor.vol.medium.MM (min = 0.001, max = 0.25, nominal = 0.032) (54) [ALGB] (1) protected Real cor.X_w.u1 (55) [ALGB] (1) protected flow Real eas.heaFloSen.port_a.Q_flow (56) [ALGB] (1) protected Real sou.vol.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - sou.vol.medium.T_degC)) (57) [ALGB] (1) protected Real[1] att.vol.mbXi_flow (58) [ALGB] (1) protected Real att.vol.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (59) [ALGB] (1) protected Real[1] cor.vol.mbXi_flow (60) [DER-] (1) Real $DER.cor.vol.m (61) [ALGB] (1) protected Real att.relHum.phi (62) [ALGB] (1) protected Real cor.vol.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - cor.vol.medium.T_degC)) (63) [ALGB] (2) protected Real[2] att.vol.medium.state.X (start = {0.01, 0.99}, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (64) [DISS] (1) protected Real wes.fmuZon.tNext (fixed = true, start = wes.fmuZon.startTime) (65) [ALGB] (1) protected Real nor.X_w.y (66) [ALGB] (1) protected Real sou.QGaiSenLat_flow.u1 (67) [ALGB] (1) protected Real sou.QGaiSenLat_flow.u2 (68) [DISS] (1) protected Real cor.fmuZon.TRad (69) [ALGB] (1) protected Real cor.vol.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * cor.vol.medium.p_bar) (70) [ALGB] (1) protected Real wes.X_w.y (71) [ALGB] (3) Real[3] cor.qGai_flow (72) [DISS] (1) protected discrete Real nor.fmuZon.QConLast_flow (fixed = false, start = 0.0) (73) [ALGB] (1) protected Real att.vol.hOut (start = att.vol.hStart) (74) [ALGB] (1) protected Real att.vol.medium.state.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (75) [ALGB] (1) protected Real sou.vol.hOut (start = sou.vol.hStart) (76) [DISS] (1) protected discrete Real cor.fmuZon.mInlet_flow (77) [ALGB] (1) protected Real att.preTem.T (78) [ALGB] (1) protected Real sou.preTem.T (79) [ALGB] (1) protected Real nor.relHum.phi (80) [DISS] (5) protected Real[5] att.fmuZon.yEP (81) [ALGB] (1) protected Real cor.fmuZon.X_w (82) [DISS] (1) protected discrete Real wes.fmuZon.dtLast (83) [DER-] (1) Real[1] $DER.sou.vol.mXi (84) [ALGB] (1) protected Real[1] eas.vol.medium.Xi (start = eas.vol.X_start[1:1], min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, StateSelect = default) (85) [DISS] (1) protected Real sou.fmuZon.tNext (fixed = true, start = sou.fmuZon.startTime) (86) [DISS] (1) protected Real att.fmuZon.QPeo_flow (87) [DISS] (1) protected Real att.fmuZon.QLat_flow (88) [ALGB] (1) protected Real wes.X_w.u1 (89) [DISS] (1) protected discrete Real eas.fmuZon.dtLast (90) [ALGB] (1) protected flow Real eas.conQCon_flow.port.Q_flow (91) [DER-] (1) Real $DER.nor.vol.m (92) [DISS] (1) protected discrete Real att.fmuZon.dtLast (93) [DISS] (1) protected discrete Real eas.fmuZon.mInlet_flow (94) [DER-] (1) Real $DER.wes.vol.m (95) [ALGB] (1) protected Real eas.vol.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - eas.vol.medium.T_degC)) (96) [ALGB] (1) protected Real nor.vol.medium.state.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (97) [DISS] (5) protected Real[5] nor.fmuZon.yEP (98) [ALGB] (1) protected flow Real wes.heaFloSen.port_a.Q_flow (99) [ALGB] (1) protected Real att.X_w.u1 (100) [ALGB] (1) protected Real cor.QGaiSenLat_flow.u1 (101) [ALGB] (1) protected Real eas.vol.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (102) [ALGB] (1) protected Real cor.QGaiSenLat_flow.u2 (103) [ALGB] (1) protected Real cor.vol.hOut (start = cor.vol.hStart) (104) [ALGB] (1) protected Real wes.vol.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * wes.vol.medium.p_bar) (105) [ALGB] (2) protected Real[2] eas.vol.medium.state.X (start = {0.01, 0.99}, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (106) [ALGB] (1) protected Real[1] eas.vol.mXiOut (min = {0.0 for $i1 in 1:1}) (107) [ALGB] (1) protected Real att.vol.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - att.vol.medium.T_degC)) (108) [ALGB] (1) protected Real cor.preTem.T (109) [ALGB] (1) protected Real sou.fmuZon.X_w (110) [DISS] (1) protected Real eas.fmuZon.TRad (111) [ALGB] (3) protected Real[3] nor.heaGai.qGai_flow (112) [ALGB] (1) protected Real nor.heaGai.QLat_flow (113) [ALGB] (2) protected Real[2] nor.vol.medium.state.X (start = {0.01, 0.99}, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (114) [DISS] (1) protected discrete Real cor.fmuZon.TRooLast (start = 288.15, min = 0.0, nominal = 300.0) (115) [DISS] (1) protected discrete Real cor.fmuZon.tLast (fixed = true, start = cor.fmuZon.startTime) (116) [DISS] (1) protected Real nor.fmuZon.QPeo_flow (117) [ALGB] (1) protected Real nor.vol.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (118) [DISS] (1) protected Real nor.fmuZon.QLat_flow (119) [DISS] (1) protected discrete Real sou.fmuZon.mInlet_flow (120) [ALGB] (1) protected Real wes.QGaiSenLat_flow.u2 (121) [ALGB] (1) protected Real wes.QGaiSenLat_flow.u1 (122) [ALGB] (1) protected Real sou.vol.medium.MM (min = 0.001, max = 0.25, nominal = 0.032) (123) [ALGB] (1) protected Real eas.vol.medium.state.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (124) [DISS] (1) protected discrete Real wes.fmuZon.TAveInlet (start = 288.15, min = 0.0, nominal = 300.0) (125) [ALGB] (2) protected Real[2] att.vol.medium.X (start = att.vol.X_start, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (126) [ALGB] (1) protected Real sou.X_w.y (127) [ALGB] (1) protected Real nor.heaGai.QRad_flow (128) [ALGB] (1) Real[1] mul.u3 (129) [ALGB] (1) protected Real eas.vol.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * eas.vol.medium.p_bar) (130) [ALGB] (1) Real[1] mul.u2 (131) [ALGB] (1) protected Real cor.mWat_flow.y (132) [ALGB] (1) Real[1] mul.u1 (133) [ALGB] (1) protected Real[1] wes.vol.XiOut (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}) (134) [ALGB] (1) protected Real att.vol.medium.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (135) [ALGB] (1) protected Real[1] sou.vol.mbXi_flow (136) [DISS] (1) protected Real eas.fmuZon.tNext (fixed = true, start = eas.fmuZon.startTime) (137) [DISS] (1) protected discrete Real sou.fmuZon.dtLast (138) [ALGB] (3) Real[3] sou.qGai_flow (139) [ALGB] (1) protected Real[1] nor.vol.XiOut (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}) (140) [DISS] (1) protected discrete Real sou.fmuZon.QConLast_flow (fixed = false, start = 0.0) (141) [ALGB] (1) protected Real[1] eas.vol.XiOut (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}) (142) [ALGB] (1) protected Real cor.vol.medium.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (143) [ALGB] (1) protected Real sou.vol.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * sou.vol.medium.p_bar) (144) [ALGB] (1) protected flow Real nor.heaFloSen.port_a.Q_flow (145) [ALGB] (2) protected Real[2] cor.vol.medium.X (start = cor.vol.X_start, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (146) [ALGB] (1) protected Real wes.vol.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - wes.vol.medium.T_degC)) (147) [DISC] (1) Boolean $SEV_61 (148) [DISS] (1) protected discrete Real eas.fmuZon.TAveInlet (start = 288.15, min = 0.0, nominal = 300.0) (149) [DISC] (1) Boolean $SEV_60 (150) [ALGB] (1) protected Real[1] cor.vol.mXiOut (min = {0.0 for $i1 in 1:1}) (151) [DER-] (1) Real $DER.sou.vol.UOut (152) [ALGB] (1) protected flow Real cor.heaFloSen.port_a.Q_flow (153) [DER-] (1) Real[1] $DER.cor.vol.mXi (154) [ALGB] (1) protected flow Real att.conQCon_flow.port.Q_flow (155) [DER-] (1) Real $DER.sou.vol.m (156) [DISS] (1) protected discrete Real att.fmuZon.tLast (fixed = true, start = att.fmuZon.startTime) (157) [ALGB] (1) protected Real[1] nor.vol.medium.Xi (start = nor.vol.X_start[1:1], min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, StateSelect = default) (158) [ALGB] (1) protected Real eas.vol.medium.MM (min = 0.001, max = 0.25, nominal = 0.032) (159) [DER-] (1) Real $DER.eas.vol.UOut (160) [ALGB] (1) protected Real eas.X_w.y (161) [ALGB] (1) protected Real[1] wes.vol.mXiOut (min = {0.0 for $i1 in 1:1}) (162) [DISS] (1) protected discrete Real sou.fmuZon.TAveInlet (start = 288.15, min = 0.0, nominal = 300.0) (163) [DISS] (1) protected Real nor.fmuZon.tNext (fixed = true, start = nor.fmuZon.startTime) (164) [DISC] (1) Boolean $SEV_56 (165) [DISC] (1) Boolean $SEV_55 (166) [ALGB] (1) protected Real eas.X_w.u1 (167) [DER-] (1) Real[1] $DER.nor.vol.mXi (168) [DISS] (1) protected discrete Real nor.fmuZon.mInlet_flow (169) [ALGB] (1) protected Real sou.relHum.phi (170) [ALGB] (1) protected Real[1] eas.vol.mbXi_flow (171) [DISC] (1) Boolean $SEV_51 (172) [DISC] (1) Boolean $SEV_50 (173) [DISS] (1) protected discrete Real wes.fmuZon.tLast (fixed = true, start = wes.fmuZon.startTime) (174) [ALGB] (1) protected Real eas.vol.hOut (start = eas.vol.hStart) (175) [ALGB] (1) protected Real eas.fmuZon.X_w (176) [ALGB] (1) protected Real eas.preTem.T (177) [ALGB] (1) protected Real[1] wes.vol.mbXi_flow (178) [DISC] (1) Boolean $SEV_46 (179) [DISC] (1) Boolean $SEV_45 (180) [ALGB] (1) protected Real nor.vol.hOut (start = nor.vol.hStart) (181) [DISC] (1) Boolean $SEV_41 (182) [DISC] (1) Boolean $SEV_40 (183) [DISS] (5) protected Real[5] sou.fmuZon.yEP (184) [DER-] (1) Real $DER.eas.vol.m (185) [ALGB] (1) protected Real wes.mWat_flow.y (186) [ALGB] (1) protected Real wes.vol.medium.MM (min = 0.001, max = 0.25, nominal = 0.032) (187) [ALGB] (1) protected Real sou.vol.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (188) [ALGB] (1) protected Real nor.preTem.T (189) [ALGB] (2) protected Real[2] sou.vol.medium.state.X (start = {0.01, 0.99}, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (190) [ALGB] (1) protected Real[1] att.vol.XiOut (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}) (191) [DER-] (1) Real[1] $DER.wes.vol.mXi (192) [ALGB] (1) protected Real nor.X_w.u1 (193) [ALGB] (1) protected flow Real nor.conQCon_flow.port.Q_flow (194) [ALGB] (1) protected Real wes.vol.medium.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (195) [DISS] (1) protected discrete Real cor.fmuZon.dtLast (196) [DISS] (1) protected Real nor.fmuZon.TRad (197) [ALGB] (1) protected flow Real sou.conQCon_flow.port.Q_flow (198) [ALGB] (2) protected Real[2] wes.vol.medium.X (start = wes.vol.X_start, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (199) [DISC] (1) Boolean $SEV_36 (200) [DISC] (1) Boolean $SEV_35 (201) [ALGB] (1) protected Real sou.vol.medium.state.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (202) [ALGB] (1) protected Real att.QConSen_flow.u2 (203) [ALGB] (3) Real[3] mul.y (204) [ALGB] (1) Real $FUN_19 (205) [ALGB] (1) Real $FUN_18 (206) [ALGB] (1) Real $FUN_17 (207) [ALGB] (1) protected Real nor.vol.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - nor.vol.medium.T_degC)) (208) [ALGB] (1) Real $FUN_16 (209) [ALGB] (1) Real $FUN_15 (210) [DISS] (1) protected discrete Real att.fmuZon.TAveInlet (start = 288.15, min = 0.0, nominal = 300.0) (211) [ALGB] (1) Real $FUN_14 (212) [ALGB] (3) Real[3] wes.qGai_flow (213) [ALGB] (1) protected Real cor.QConSen_flow.u2 (214) [ALGB] (1) protected flow Real sou.heaFloSen.port_a.Q_flow (215) [DISS] (1) protected discrete Real wes.fmuZon.mInlet_flow (216) [DISS] (1) protected discrete Real eas.fmuZon.TRooLast (start = 288.15, min = 0.0, nominal = 300.0) (217) [DISS] (1) protected discrete Real wes.fmuZon.QConLast_flow (fixed = false, start = 0.0) (218) [DISS] (1) protected Real cor.fmuZon.QPeo_flow (219) [DISS] (1) protected Real cor.fmuZon.QLat_flow (220) [ALGB] (1) protected Real[1] sou.vol.XiOut (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}) (221) [ALGB] (3) Real[3] nor.qGai_flow (222) [DER-] (1) Real $DER.cor.vol.UOut (223) [ALGB] (1) protected Real att.QGaiSenLat_flow.u1 (224) [DISS] (1) protected discrete Real eas.fmuZon.QConLast_flow (fixed = false, start = 0.0) (225) [ALGB] (1) protected Real att.QGaiSenLat_flow.u2 (226) [ALGB] (1) protected Real sou.QConSen_flow.u2 (227) [ALGB] (3) Real[3] eas.qGai_flow (228) [ALGB] (1) protected Real wes.fmuZon.X_w (229) [ALGB] (1) protected Real nor.vol.medium.MM (min = 0.001, max = 0.25, nominal = 0.032) (230) [ALGB] (1) protected Real[1] att.vol.mXiOut (min = {0.0 for $i1 in 1:1}) (231) [ALGB] (1) protected Real eas.relHum.phi (232) [ALGB] (1) protected Real cor.vol.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (233) [ALGB] (2) protected Real[2] cor.vol.medium.state.X (start = {0.01, 0.99}, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (234) [DISS] (1) protected discrete Real nor.fmuZon.TAveInlet (start = 288.15, min = 0.0, nominal = 300.0) (235) [ALGB] (1) protected Real[1] nor.vol.mbXi_flow (236) [DISS] (1) protected discrete Real eas.fmuZon.tLast (fixed = true, start = eas.fmuZon.startTime) (237) [ALGB] (1) protected Real nor.QConSen_flow.u2 (238) [ALGB] (1) protected Real nor.QGaiSenLat_flow.u2 (239) [DER-] (1) Real[1] $DER.att.vol.mXi (240) [ALGB] (1) protected Real nor.QGaiSenLat_flow.u1 (241) [ALGB] (2) protected Real[2] sou.vol.medium.X (start = sou.vol.X_start, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (242) [DISS] (1) protected Real wes.fmuZon.QLat_flow (243) [DISS] (1) protected Real att.fmuZon.TRad (244) [DISS] (1) protected Real wes.fmuZon.QPeo_flow (245) [ALGB] (1) protected Real sou.vol.medium.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (246) [ALGB] (1) protected Real cor.vol.medium.state.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (247) [DISS] (1) protected discrete Real att.fmuZon.mInlet_flow (248) [ALGB] (1) protected Real[1] nor.vol.mXiOut (min = {0.0 for $i1 in 1:1}) (249) [DISS] (1) protected Real wes.fmuZon.TRad (250) [ALGB] (1) protected Real wes.vol.hOut (start = wes.vol.hStart) (251) [DISS] (1) protected Real sou.fmuZon.TRad (252) [DISS] (5) protected Real[5] eas.fmuZon.yEP (253) [ALGB] (1) protected Real wes.QConSen_flow.u2 (254) [ALGB] (1) protected Real wes.preTem.T (255) [DER-] (1) Real $DER.att.vol.UOut (256) [ALGB] (1) protected Real sou.X_w.u1 (257) [ALGB] (1) protected Real nor.mWat_flow.y (258) [ALGB] (1) protected Real[1] wes.vol.medium.Xi (start = wes.vol.X_start[1:1], min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, StateSelect = default) (259) [DISS] (1) protected Real att.fmuZon.tNext (fixed = true, start = att.fmuZon.startTime) (260) [ALGB] (1) protected Real wes.vol.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (261) [DER-] (1) Real $DER.wes.vol.UOut (262) [ALGB] (1) protected Real[1] att.vol.medium.Xi (start = att.vol.X_start[1:1], min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, StateSelect = default) (263) [ALGB] (1) protected Real eas.vol.medium.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (264) [ALGB] (2) protected Real[2] wes.vol.medium.state.X (start = {0.01, 0.99}, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (265) [DISS] (1) protected discrete Real nor.fmuZon.tLast (fixed = true, start = nor.fmuZon.startTime) (266) [ALGB] (2) protected Real[2] eas.vol.medium.X (start = eas.vol.X_start, min = {0.0 for $i1 in 1:2}, max = {1.0 for $i1 in 1:2}, nominal = {0.1 for $i1 in 1:2}) (267) [ALGB] (1) protected Real[1] cor.vol.medium.Xi (start = cor.vol.X_start[1:1], min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, StateSelect = default) (268) [DISS] (1) protected Real eas.fmuZon.QLat_flow (269) [DISS] (1) protected Real eas.fmuZon.QPeo_flow (270) [ALGB] (1) protected Real eas.QGaiSenLat_flow.u1 (271) [DISS] (1) protected discrete Real sou.fmuZon.tLast (fixed = true, start = sou.fmuZon.startTime) (272) [ALGB] (1) protected Real att.X_w.y (273) [ALGB] (1) protected Real eas.QGaiSenLat_flow.u2 (274) [DISS] (1) protected discrete Real nor.fmuZon.TRooLast (start = 288.15, min = 0.0, nominal = 300.0) System Equations (280/336) **************************** (1) [WHEN] (1)when {initial(), $SEV_46} then (1) [----] eas.fmuZon.tLast := time (1) [----] end when; (2) [WHEN] (1)when {initial(), $SEV_46} then (2) [----] eas.fmuZon.TRad := eas.fmuZon.yEP[1] (2) [----] end when; (3) [WHEN] (1)when {initial(), $SEV_46} then (3) [----] eas.fmuZon.mInlet_flow := 0.0 (3) [----] end when; (4) [WHEN] (1)when {initial(), $SEV_46} then (4) [----] eas.fmuZon.QLat_flow := eas.fmuZon.yEP[3] (4) [----] end when; (5) [WHEN] (5)when {initial(), $SEV_46} then (5) [----] eas.fmuZon.yEP := Buildings.ThermalZones.EnergyPlus.BaseClasses.exchange(eas.fmuZon.adapter, false, 5, {eas.preTem.T, eas.fmuZon.X_w / (1.0 - eas.fmuZon.X_w), eas.fmuZon.mInlet_flow, eas.fmuZon.TAveInlet, eas.heaGai.QRad_flow, if time > 0.0 then 0.001 * floor(0.5 + 1000.0 * time) else 0.001 * ceil((-0.5) + 1000.0 * time)}, eas.fmuZon.AFlo) (5) [----] end when; (6) [SCAL] (1) sou.X_w.y = sou.X_w.u1 / sou.vol.m ($RES_SIM_259) (7) [ARRY] (1) cor.vol.mXi = cor.vol.m * cor.vol.medium.Xi ($RES_SIM_341) (8) [SCAL] (1) cor.vol.m = cor.vol.fluidVolume * (1.1843079200592153e-5 * (99999.99999999999 * cor.vol.medium.p_bar)) ($RES_SIM_342) (9) [SCAL] (1) att.preTem.T = 273.15 + (att.vol.hOut - 2.5010145e6 * att.vol.XiOut[1]) / (1006.0 * (1.0 - att.vol.XiOut[1]) + 1860.0 * att.vol.XiOut[1]) ($RES_BND_817) (10) [-IF-] (1)if nor.vol.computeCSen then (10) [----] [SCAL] (1) nor.vol.UOut = nor.vol.m * ((-84437.5) + nor.vol.hOut) + nor.vol.CSen * ((-((-273.15) - nor.vol.medium.T_degC)) - 273.15) ($RES_SIM_171) (10) [----] else (10) [----] [SCAL] (1) nor.vol.UOut = nor.vol.m * ((-84437.5) + nor.vol.hOut) ($RES_SIM_172) (10) [----] end if; (11) [SCAL] (1) cor.vol.medium.X[2] = 1.0 - cor.vol.medium.X[1] ($RES_SIM_347) (12) [SCAL] (1) cor.vol.medium.X[1] = cor.vol.medium.Xi[1] ($RES_SIM_348) (13) [ARRY] (1) nor.vol.mXi = nor.vol.m * nor.vol.medium.Xi ($RES_SIM_173) (14) [SCAL] (1) nor.vol.mXiOut[1] = nor.X_w.u1 ($RES_SIM_600) (15) [ARRY] (2) cor.vol.medium.state.X = cor.vol.medium.X ($RES_SIM_349) (16) [SCAL] (1) nor.vol.m = nor.vol.fluidVolume * (1.1843079200592153e-5 * (99999.99999999999 * nor.vol.medium.p_bar)) ($RES_SIM_174) (17) [SCAL] (1) nor.vol.XiOut[1] = nor.fmuZon.X_w ($RES_SIM_602) (18) [SCAL] (1) nor.vol.medium.X[2] = 1.0 - nor.vol.medium.X[1] ($RES_SIM_179) (19) [SCAL] (1) sou.relHum.phi = (sou.X_w.y * ((99999.99999999999 * sou.vol.medium.p_bar) / Buildings.Utilities.Math.Functions.regStep((-273.16) + sou.preTem.T, Buildings.Utilities.Psychrometrics.Functions.saturationPressureLiquid(sou.preTem.T), Buildings.Utilities.Psychrometrics.Functions.sublimationPressureIce(sou.preTem.T), 1.0))) / (sou.X_w.y + 0.6219647130774989 * (1.0 - sou.X_w.y)) ($RES_SIM_260) (20) [SCAL] (1) sou.QGaiSenLat_flow.u1 = sou.QConSen_flow.k1 * sou.fmuZon.QConLast_flow + sou.QConSen_flow.k2 * sou.QConSen_flow.u2 ($RES_SIM_266) (21) [SCAL] (1) -sou.conQCon_flow.port.Q_flow = sou.QGaiSenLat_flow.k1 * sou.QGaiSenLat_flow.u1 + sou.QGaiSenLat_flow.k2 * sou.QGaiSenLat_flow.u2 ($RES_SIM_267) (22) [SCAL] (1) sou.QGaiSenLat_flow.u2 = sou.QLat_flow.k1 * sou.fmuZon.QLat_flow + sou.QLat_flow.k2 * sou.heaGai.QLat_flow ($RES_SIM_268) (23) [SCAL] (1) sou.mWat_flow.y = sou.mWat_flow.k * sou.QGaiSenLat_flow.u2 ($RES_SIM_269) (24) [SCAL] (1) cor.preTem.T = 273.15 + (cor.vol.hOut - 2.5010145e6 * cor.vol.XiOut[1]) / (1006.0 * (1.0 - cor.vol.XiOut[1]) + 1860.0 * cor.vol.XiOut[1]) ($RES_BND_821) (25) [SCAL] (1) cor.vol.medium.state.T = -((-273.15) - cor.vol.medium.T_degC) ($RES_SIM_350) (26) [SCAL] (1) sou.preTem.T = 273.15 + (sou.vol.hOut - 2.5010145e6 * sou.vol.XiOut[1]) / (1006.0 * (1.0 - sou.vol.XiOut[1]) + 1860.0 * sou.vol.XiOut[1]) ($RES_BND_825) (27) [SCAL] (1) cor.vol.medium.state.p = 99999.99999999999 * cor.vol.medium.p_bar ($RES_SIM_351) (28) [SCAL] (1) cor.vol.medium.R = 287.0512249529787 * cor.vol.medium.X[2] + 461.5233290850878 * cor.vol.medium.X[1] ($RES_SIM_354) (29) [SCAL] (1) eas.preTem.T = 273.15 + (eas.vol.hOut - 2.5010145e6 * eas.vol.XiOut[1]) / (1006.0 * (1.0 - eas.vol.XiOut[1]) + 1860.0 * eas.vol.XiOut[1]) ($RES_BND_829) (30) [SCAL] (1) cor.vol.hOut = 1006.0 * ((-273.15) - ((-273.15) - cor.vol.medium.T_degC)) * cor.vol.medium.X[2] + (2.5010145e6 + 1860.0 * ((-273.15) - ((-273.15) - cor.vol.medium.T_degC))) * cor.vol.medium.X[1] ($RES_SIM_355) (31) [SCAL] (1) nor.vol.medium.X[1] = nor.vol.medium.Xi[1] ($RES_SIM_180) (32) [ARRY] (2) nor.vol.medium.state.X = nor.vol.medium.X ($RES_SIM_181) (33) [SCAL] (1) cor.vol.medium.MM = 1/(55.508435061791985 * cor.vol.medium.X[1] + 34.52428788658843 * cor.vol.medium.X[2]) ($RES_SIM_357) (34) [SCAL] (1) nor.vol.medium.state.T = -((-273.15) - nor.vol.medium.T_degC) ($RES_SIM_182) (35) [SCAL] (1) nor.vol.medium.state.p = 99999.99999999999 * nor.vol.medium.p_bar ($RES_SIM_183) (36) [SCAL] (1) nor.vol.medium.R = 287.0512249529787 * nor.vol.medium.X[2] + 461.5233290850878 * nor.vol.medium.X[1] ($RES_SIM_186) (37) [SCAL] (1) nor.vol.hOut = 1006.0 * ((-273.15) - ((-273.15) - nor.vol.medium.T_degC)) * nor.vol.medium.X[2] + (2.5010145e6 + 1860.0 * ((-273.15) - ((-273.15) - nor.vol.medium.T_degC))) * nor.vol.medium.X[1] ($RES_SIM_187) (38) [SCAL] (1) nor.vol.medium.MM = 1/(55.508435061791985 * nor.vol.medium.X[1] + 34.52428788658843 * nor.vol.medium.X[2]) ($RES_SIM_189) (39) [ARRY] (3) nor.heaGai.qGai_flow = nor.qGai_flow ($RES_SIM_618) (40) [ARRY] (3) {sou.heaGai.QRad_flow, sou.QConSen_flow.u2, sou.heaGai.QLat_flow} = sou.heaGai.AFlo * sou.heaGai.qGai_flow ($RES_SIM_270) (41) [ARRY] (1) sou.vol.mXiOut = sou.vol.mXi ($RES_SIM_272) (42) [ARRY] (1) $DER.sou.vol.mXi = sou.vol.mbXi_flow + sou.mWat_flow.y * sou.vol.s ($RES_SIM_274) (43) [SCAL] (1) $DER.sou.vol.m = 0.0 ($RES_SIM_275) (44) [SCAL] (1) $DER.sou.vol.UOut = sou.heaFloSen.port_a.Q_flow ($RES_SIM_276) (45) [SCAL] (1) sou.vol.mbXi_flow[1] = 0.0 ($RES_SIM_279) (46) [SCAL] (1) att.vol.mXiOut[1] = att.X_w.u1 ($RES_SIM_708) (47) [SCAL] (1) nor.preTem.T = 273.15 + (nor.vol.hOut - 2.5010145e6 * nor.vol.XiOut[1]) / (1006.0 * (1.0 - nor.vol.XiOut[1]) + 1860.0 * nor.vol.XiOut[1]) ($RES_BND_833) (48) [WHEN] (1)when {initial(), $SEV_56} then (48) [----] cor.fmuZon.TAveInlet := noEvent(($PRE.cor.fmuZon.TAveInlet * cor.fmuZon.m_flow_small) / (cor.fmuZon.mInlet_flow + cor.fmuZon.m_flow_small)) (48) [----] end when; (49) [WHEN] (1)when {initial(), $SEV_56} then (49) [----] cor.fmuZon.QConLast_flow := cor.fmuZon.yEP[2] (49) [----] end when; (50) [SCAL] (1) wes.preTem.T = 273.15 + (wes.vol.hOut - 2.5010145e6 * wes.vol.XiOut[1]) / (1006.0 * (1.0 - wes.vol.XiOut[1]) + 1860.0 * wes.vol.XiOut[1]) ($RES_BND_837) (51) [WHEN] (1)when {initial(), $SEV_56} then (51) [----] cor.fmuZon.QPeo_flow := cor.fmuZon.yEP[4] (51) [----] end when; (52) [WHEN] (1)when {initial(), $SEV_56} then (52) [----] cor.fmuZon.TRooLast := cor.preTem.T (52) [----] end when; (53) [WHEN] (1)when {initial(), $SEV_56} then (53) [----] cor.fmuZon.tLast := time (53) [----] end when; (54) [WHEN] (1)when {initial(), $SEV_56} then (54) [----] cor.fmuZon.TRad := cor.fmuZon.yEP[1] (54) [----] end when; (55) [WHEN] (1)when {initial(), $SEV_56} then (55) [----] cor.fmuZon.QLat_flow := cor.fmuZon.yEP[3] (55) [----] end when; (56) [WHEN] (1)when {initial(), $SEV_41} then (56) [----] nor.fmuZon.mInlet_flow := 0.0 (56) [----] end when; (57) [WHEN] (5)when {initial(), $SEV_56} then (57) [----] cor.fmuZon.yEP := Buildings.ThermalZones.EnergyPlus.BaseClasses.exchange(cor.fmuZon.adapter, false, 5, {cor.preTem.T, cor.fmuZon.X_w / (1.0 - cor.fmuZon.X_w), cor.fmuZon.mInlet_flow, cor.fmuZon.TAveInlet, cor.heaGai.QRad_flow, if time > 0.0 then 0.001 * floor(0.5 + 1000.0 * time) else 0.001 * ceil((-0.5) + 1000.0 * time)}, cor.fmuZon.AFlo) (57) [----] end when; (58) [WHEN] (1)when {initial(), $SEV_41} then (58) [----] nor.fmuZon.TAveInlet := noEvent(($PRE.nor.fmuZon.TAveInlet * nor.fmuZon.m_flow_small) / (nor.fmuZon.mInlet_flow + nor.fmuZon.m_flow_small)) (58) [----] end when; (59) [WHEN] (1)when {initial(), $SEV_56} then (59) [----] cor.fmuZon.mInlet_flow := 0.0 (59) [----] end when; (60) [WHEN] (1)when {initial(), $SEV_41} then (60) [----] nor.fmuZon.TRooLast := nor.preTem.T (60) [----] end when; (61) [WHEN] (1)when {initial(), $SEV_56} then (61) [----] cor.fmuZon.dtLast := time - $PRE.cor.fmuZon.tLast (61) [----] end when; (62) [WHEN] (1)when {initial(), $SEV_41} then (62) [----] nor.fmuZon.QPeo_flow := nor.fmuZon.yEP[4] (62) [----] end when; (63) [WHEN] (1)when {initial(), $SEV_41} then (63) [----] nor.fmuZon.tNext := nor.fmuZon.yEP[5] (63) [----] end when; (64) [WHEN] (1)when {initial(), $SEV_41} then (64) [----] nor.fmuZon.dtLast := time - $PRE.nor.fmuZon.tLast (64) [----] end when; (65) [WHEN] (1)when {initial(), $SEV_41} then (65) [----] nor.fmuZon.QConLast_flow := nor.fmuZon.yEP[2] (65) [----] end when; (66) [WHEN] (1)when {initial(), $SEV_41} then (66) [----] nor.fmuZon.QLat_flow := nor.fmuZon.yEP[3] (66) [----] end when; (67) [SCAL] (1) eas.vol.mXiOut[1] = eas.X_w.u1 ($RES_SIM_627) (68) [SCAL] (1) eas.vol.XiOut[1] = eas.fmuZon.X_w ($RES_SIM_629) (69) [ARRY] (1) sou.vol.XiOut = sou.vol.medium.Xi ($RES_SIM_280) (70) [-IF-] (1)if sou.vol.computeCSen then (70) [----] [SCAL] (1) sou.vol.UOut = sou.vol.m * ((-84437.5) + sou.vol.hOut) + sou.vol.CSen * ((-((-273.15) - sou.vol.medium.T_degC)) - 273.15) ($RES_SIM_283) (70) [----] else (70) [----] [SCAL] (1) sou.vol.UOut = sou.vol.m * ((-84437.5) + sou.vol.hOut) ($RES_SIM_284) (70) [----] end if; (71) [SCAL] (1) att.vol.XiOut[1] = att.fmuZon.X_w ($RES_SIM_710) (72) [ARRY] (1) sou.vol.mXi = sou.vol.m * sou.vol.medium.Xi ($RES_SIM_285) (73) [SCAL] (1) sou.vol.m = sou.vol.fluidVolume * (1.1843079200592153e-5 * (99999.99999999999 * sou.vol.medium.p_bar)) ($RES_SIM_286) (74) [SCAL] (1) mul.y[3] = att.qGai_flow[3] ($RES_SIM_545) (75) [WHEN] (1)when {initial(), $SEV_56} then (75) [----] cor.fmuZon.tNext := cor.fmuZon.yEP[5] (75) [----] end when; (76) [SCAL] (1) mul.y[3] = cor.qGai_flow[3] ($RES_SIM_546) (77) [SCAL] (1) att.X_w.y = att.X_w.u1 / att.vol.m ($RES_SIM_371) (78) [SCAL] (1) mul.y[3] = sou.qGai_flow[3] ($RES_SIM_547) (79) [SCAL] (1) att.relHum.phi = (att.X_w.y * ((99999.99999999999 * att.vol.medium.p_bar) / Buildings.Utilities.Math.Functions.regStep((-273.16) + att.preTem.T, Buildings.Utilities.Psychrometrics.Functions.saturationPressureLiquid(att.preTem.T), Buildings.Utilities.Psychrometrics.Functions.sublimationPressureIce(att.preTem.T), 1.0))) / (att.X_w.y + 0.6219647130774989 * (1.0 - att.X_w.y)) ($RES_SIM_372) (80) [SCAL] (1) mul.y[3] = eas.qGai_flow[3] ($RES_SIM_548) (81) [SCAL] (1) mul.y[3] = nor.qGai_flow[3] ($RES_SIM_549) (82) [SCAL] (1) att.QGaiSenLat_flow.u1 = att.QConSen_flow.k1 * att.fmuZon.QConLast_flow + att.QConSen_flow.k2 * att.QConSen_flow.u2 ($RES_SIM_378) (83) [SCAL] (1) -att.conQCon_flow.port.Q_flow = att.QGaiSenLat_flow.k1 * att.QGaiSenLat_flow.u1 + att.QGaiSenLat_flow.k2 * att.QGaiSenLat_flow.u2 ($RES_SIM_379) (84) [SCAL] (1) sou.vol.medium.X[2] = 1.0 - sou.vol.medium.X[1] ($RES_SIM_291) (85) [SCAL] (1) sou.vol.medium.X[1] = sou.vol.medium.Xi[1] ($RES_SIM_292) (86) [ARRY] (2) sou.vol.medium.state.X = sou.vol.medium.X ($RES_SIM_293) (87) [SCAL] (1) sou.vol.medium.state.T = -((-273.15) - sou.vol.medium.T_degC) ($RES_SIM_294) (88) [SCAL] (1) sou.vol.medium.state.p = 99999.99999999999 * sou.vol.medium.p_bar ($RES_SIM_295) (89) [SCAL] (1) sou.vol.medium.R = 287.0512249529787 * sou.vol.medium.X[2] + 461.5233290850878 * sou.vol.medium.X[1] ($RES_SIM_298) (90) [SCAL] (1) mul.y[3] = wes.qGai_flow[3] ($RES_SIM_550) (91) [SCAL] (1) sou.vol.hOut = 1006.0 * ((-273.15) - ((-273.15) - sou.vol.medium.T_degC)) * sou.vol.medium.X[2] + (2.5010145e6 + 1860.0 * ((-273.15) - ((-273.15) - sou.vol.medium.T_degC))) * sou.vol.medium.X[1] ($RES_SIM_299) (92) [ARRY] (3) att.heaGai.qGai_flow = att.qGai_flow ($RES_SIM_726) (93) [SCAL] (1) mul.y[2] = att.qGai_flow[2] ($RES_SIM_551) (94) [SCAL] (1) mul.y[2] = cor.qGai_flow[2] ($RES_SIM_552) (95) [SCAL] (1) mul.y[2] = sou.qGai_flow[2] ($RES_SIM_553) (96) [SCAL] (1) mul.y[2] = eas.qGai_flow[2] ($RES_SIM_554) (97) [SCAL] (1) mul.y[2] = nor.qGai_flow[2] ($RES_SIM_555) (98) [SCAL] (1) att.QGaiSenLat_flow.u2 = att.QLat_flow.k1 * att.fmuZon.QLat_flow + att.QLat_flow.k2 * att.heaGai.QLat_flow ($RES_SIM_380) (99) [SCAL] (1) mul.y[2] = wes.qGai_flow[2] ($RES_SIM_556) (100) [SCAL] (1) att.mWat_flow.y = att.mWat_flow.k * att.QGaiSenLat_flow.u2 ($RES_SIM_381) (101) [SCAL] (1) mul.y[1] = att.qGai_flow[1] ($RES_SIM_557) (102) [ARRY] (3) {att.heaGai.QRad_flow, att.QConSen_flow.u2, att.heaGai.QLat_flow} = att.heaGai.AFlo * att.heaGai.qGai_flow ($RES_SIM_382) (103) [SCAL] (1) mul.y[1] = cor.qGai_flow[1] ($RES_SIM_558) (104) [SCAL] (1) mul.y[1] = sou.qGai_flow[1] ($RES_SIM_559) (105) [ARRY] (1) att.vol.mXiOut = att.vol.mXi ($RES_SIM_384) (106) [ARRY] (1) $DER.att.vol.mXi = att.vol.mbXi_flow + att.mWat_flow.y * att.vol.s ($RES_SIM_386) (107) [SCAL] (1) $DER.att.vol.m = 0.0 ($RES_SIM_387) (108) [SCAL] (1) $DER.att.vol.UOut = att.heaFloSen.port_a.Q_flow ($RES_SIM_388) (109) [ARRY] (3) eas.heaGai.qGai_flow = eas.qGai_flow ($RES_SIM_645) (110) [SCAL] (1) mul.y[1] = eas.qGai_flow[1] ($RES_SIM_560) (111) [SCAL] (1) mul.y[1] = nor.qGai_flow[1] ($RES_SIM_561) (112) [SCAL] (1) mul.y[1] = wes.qGai_flow[1] ($RES_SIM_562) (113) [SCAL] (1) mul.u3[1] = qLatGai_flow.k ($RES_SIM_563) (114) [SCAL] (1) qConGai_flow.k = mul.u2[1] ($RES_SIM_564) (115) [SCAL] (1) qRadGai_flow.k = mul.u1[1] ($RES_SIM_565) (116) [SCAL] (1) att.vol.mbXi_flow[1] = 0.0 ($RES_SIM_391) (117) [ARRY] (1) att.vol.XiOut = att.vol.medium.Xi ($RES_SIM_392) (118) [-IF-] (1)if att.vol.computeCSen then (118) [----] [SCAL] (1) att.vol.UOut = att.vol.m * ((-84437.5) + att.vol.hOut) + att.vol.CSen * ((-((-273.15) - att.vol.medium.T_degC)) - 273.15) ($RES_SIM_395) (118) [----] else (118) [----] [SCAL] (1) att.vol.UOut = att.vol.m * ((-84437.5) + att.vol.hOut) ($RES_SIM_396) (118) [----] end if; (119) [ARRY] (1) att.vol.mXi = att.vol.m * att.vol.medium.Xi ($RES_SIM_397) (120) [SCAL] (1) att.vol.m = att.vol.fluidVolume * (1.1843079200592153e-5 * (99999.99999999999 * att.vol.medium.p_bar)) ($RES_SIM_398) (121) [SCAL] (1) sou.vol.mXiOut[1] = sou.X_w.u1 ($RES_SIM_654) (122) [SCAL] (1) sou.vol.XiOut[1] = sou.fmuZon.X_w ($RES_SIM_656) (123) [SCAL] (1) wes.vol.mXiOut[1] = wes.X_w.u1 ($RES_SIM_573) (124) [SCAL] (1) wes.vol.XiOut[1] = wes.fmuZon.X_w ($RES_SIM_575) (125) [SCAL] (1) wes.conQCon_flow.port.Q_flow + wes.heaFloSen.port_a.Q_flow = 0.0 ($RES_SIM_492) (126) [SCAL] (1) nor.conQCon_flow.port.Q_flow + nor.heaFloSen.port_a.Q_flow = 0.0 ($RES_SIM_495) (127) [SCAL] (1) eas.conQCon_flow.port.Q_flow + eas.heaFloSen.port_a.Q_flow = 0.0 ($RES_SIM_498) (128) [ARRY] (3) sou.heaGai.qGai_flow = sou.qGai_flow ($RES_SIM_672) (129) [SCAL] (1) $SEV_35 = noEvent(wes.vol.medium.X[1] >= (-1e-5)) and noEvent(wes.vol.medium.X[1] <= 1.00001) ($RES_EVT_979) (130) [SCAL] (1) $FUN_14 = sum(wes.vol.XiOut) ($RES_$AUX_852) (131) [SCAL] (1) $FUN_15 = sum(nor.vol.XiOut) ($RES_$AUX_851) (132) [SCAL] (1) $FUN_16 = sum(eas.vol.XiOut) ($RES_$AUX_850) (133) [ARRY] (3) wes.heaGai.qGai_flow = wes.qGai_flow ($RES_SIM_591) (134) [SCAL] (1) cor.vol.mXiOut[1] = cor.X_w.u1 ($RES_SIM_681) (135) [SCAL] (1) cor.vol.XiOut[1] = cor.fmuZon.X_w ($RES_SIM_683) (136) [SCAL] (1) $SEV_36 = time >= $PRE.wes.fmuZon.tNext ($RES_EVT_980) (137) [SCAL] (1) $SEV_40 = noEvent(nor.vol.medium.X[1] >= (-1e-5)) and noEvent(nor.vol.medium.X[1] <= 1.00001) ($RES_EVT_984) (138) [SCAL] (1) $FUN_17 = sum(sou.vol.XiOut) ($RES_$AUX_849) (139) [SCAL] (1) $SEV_41 = time >= $PRE.nor.fmuZon.tNext ($RES_EVT_985) (140) [SCAL] (1) $FUN_18 = sum(cor.vol.XiOut) ($RES_$AUX_848) (141) [SCAL] (1) $FUN_19 = sum(att.vol.XiOut) ($RES_$AUX_847) (142) [SCAL] (1) $SEV_45 = noEvent(eas.vol.medium.X[1] >= (-1e-5)) and noEvent(eas.vol.medium.X[1] <= 1.00001) ($RES_EVT_989) (143) [SCAL] (1) wes.QGaiSenLat_flow.u2 = wes.QLat_flow.k1 * wes.fmuZon.QLat_flow + wes.QLat_flow.k2 * wes.heaGai.QLat_flow ($RES_SIM_100) (144) [SCAL] (1) wes.mWat_flow.y = wes.mWat_flow.k * wes.QGaiSenLat_flow.u2 ($RES_SIM_101) (145) [ARRY] (3) {wes.heaGai.QRad_flow, wes.QConSen_flow.u2, wes.heaGai.QLat_flow} = wes.heaGai.AFlo * wes.heaGai.qGai_flow ($RES_SIM_102) (146) [ARRY] (1) wes.vol.mXiOut = wes.vol.mXi ($RES_SIM_104) (147) [ARRY] (1) $DER.wes.vol.mXi = wes.vol.mbXi_flow + wes.mWat_flow.y * wes.vol.s ($RES_SIM_106) (148) [SCAL] (1) $DER.wes.vol.m = 0.0 ($RES_SIM_107) (149) [SCAL] (1) $DER.wes.vol.UOut = wes.heaFloSen.port_a.Q_flow ($RES_SIM_108) (150) [SCAL] (1) $SEV_46 = time >= $PRE.eas.fmuZon.tNext ($RES_EVT_990) (151) [SCAL] (1) $SEV_50 = noEvent(sou.vol.medium.X[1] >= (-1e-5)) and noEvent(sou.vol.medium.X[1] <= 1.00001) ($RES_EVT_994) (152) [ARRY] (3) cor.heaGai.qGai_flow = cor.qGai_flow ($RES_SIM_699) (153) [SCAL] (1) $SEV_51 = time >= $PRE.sou.fmuZon.tNext ($RES_EVT_995) (154) [SCAL] (1) $SEV_55 = noEvent(cor.vol.medium.X[1] >= (-1e-5)) and noEvent(cor.vol.medium.X[1] <= 1.00001) ($RES_EVT_999) (155) [SCAL] (1) wes.vol.mbXi_flow[1] = 0.0 ($RES_SIM_111) (156) [ARRY] (1) wes.vol.XiOut = wes.vol.medium.Xi ($RES_SIM_112) (157) [-IF-] (1)if wes.vol.computeCSen then (157) [----] [SCAL] (1) wes.vol.UOut = wes.vol.m * ((-84437.5) + wes.vol.hOut) + wes.vol.CSen * ((-((-273.15) - wes.vol.medium.T_degC)) - 273.15) ($RES_SIM_115) (157) [----] else (157) [----] [SCAL] (1) wes.vol.UOut = wes.vol.m * ((-84437.5) + wes.vol.hOut) ($RES_SIM_116) (157) [----] end if; (158) [ARRY] (1) wes.vol.mXi = wes.vol.m * wes.vol.medium.Xi ($RES_SIM_117) (159) [SCAL] (1) wes.vol.m = wes.vol.fluidVolume * (1.1843079200592153e-5 * (99999.99999999999 * wes.vol.medium.p_bar)) ($RES_SIM_118) (160) [WHEN] (5)when {initial(), $SEV_41} then (160) [----] nor.fmuZon.yEP := Buildings.ThermalZones.EnergyPlus.BaseClasses.exchange(nor.fmuZon.adapter, false, 5, {nor.preTem.T, nor.fmuZon.X_w / (1.0 - nor.fmuZon.X_w), nor.fmuZon.mInlet_flow, nor.fmuZon.TAveInlet, nor.heaGai.QRad_flow, if time > 0.0 then 0.001 * floor(0.5 + 1000.0 * time) else 0.001 * ceil((-0.5) + 1000.0 * time)}, nor.fmuZon.AFlo) (160) [----] end when; (161) [WHEN] (1)when {initial(), $SEV_41} then (161) [----] nor.fmuZon.tLast := time (161) [----] end when; (162) [WHEN] (1)when {initial(), $SEV_41} then (162) [----] nor.fmuZon.TRad := nor.fmuZon.yEP[1] (162) [----] end when; (163) [SCAL] (1) eas.X_w.y = eas.X_w.u1 / eas.vol.m ($RES_SIM_203) (164) [SCAL] (1) eas.relHum.phi = (eas.X_w.y * ((99999.99999999999 * eas.vol.medium.p_bar) / Buildings.Utilities.Math.Functions.regStep((-273.16) + eas.preTem.T, Buildings.Utilities.Psychrometrics.Functions.saturationPressureLiquid(eas.preTem.T), Buildings.Utilities.Psychrometrics.Functions.sublimationPressureIce(eas.preTem.T), 1.0))) / (eas.X_w.y + 0.6219647130774989 * (1.0 - eas.X_w.y)) ($RES_SIM_204) (165) [SCAL] (1) wes.vol.medium.X[2] = 1.0 - wes.vol.medium.X[1] ($RES_SIM_123) (166) [SCAL] (1) wes.vol.medium.X[1] = wes.vol.medium.Xi[1] ($RES_SIM_124) (167) [ARRY] (2) wes.vol.medium.state.X = wes.vol.medium.X ($RES_SIM_125) (168) [SCAL] (1) wes.vol.medium.state.T = -((-273.15) - wes.vol.medium.T_degC) ($RES_SIM_126) (169) [SCAL] (1) wes.vol.medium.state.p = 99999.99999999999 * wes.vol.medium.p_bar ($RES_SIM_127) (170) [SCAL] (1) eas.QGaiSenLat_flow.u1 = eas.QConSen_flow.k1 * eas.fmuZon.QConLast_flow + eas.QConSen_flow.k2 * eas.QConSen_flow.u2 ($RES_SIM_210) (171) [SCAL] (1) -eas.conQCon_flow.port.Q_flow = eas.QGaiSenLat_flow.k1 * eas.QGaiSenLat_flow.u1 + eas.QGaiSenLat_flow.k2 * eas.QGaiSenLat_flow.u2 ($RES_SIM_211) (172) [SCAL] (1) eas.QGaiSenLat_flow.u2 = eas.QLat_flow.k1 * eas.fmuZon.QLat_flow + eas.QLat_flow.k2 * eas.heaGai.QLat_flow ($RES_SIM_212) (173) [SCAL] (1) eas.mWat_flow.y = eas.mWat_flow.k * eas.QGaiSenLat_flow.u2 ($RES_SIM_213) (174) [ARRY] (3) {eas.heaGai.QRad_flow, eas.QConSen_flow.u2, eas.heaGai.QLat_flow} = eas.heaGai.AFlo * eas.heaGai.qGai_flow ($RES_SIM_214) (175) [ARRY] (1) eas.vol.mXiOut = eas.vol.mXi ($RES_SIM_216) (176) [ARRY] (1) $DER.eas.vol.mXi = eas.vol.mbXi_flow + eas.mWat_flow.y * eas.vol.s ($RES_SIM_218) (177) [SCAL] (1) $DER.eas.vol.m = 0.0 ($RES_SIM_219) (178) [SCAL] (1) sou.vol.medium.MM = 1/(55.508435061791985 * sou.vol.medium.X[1] + 34.52428788658843 * sou.vol.medium.X[2]) ($RES_SIM_301) (179) [WHEN] (1)when {initial(), $SEV_51} then (179) [----] sou.fmuZon.TRad := sou.fmuZon.yEP[1] (179) [----] end when; (180) [WHEN] (1)when {initial(), $SEV_51} then (180) [----] sou.fmuZon.QPeo_flow := sou.fmuZon.yEP[4] (180) [----] end when; (181) [SCAL] (1) wes.vol.medium.R = 287.0512249529787 * wes.vol.medium.X[2] + 461.5233290850878 * wes.vol.medium.X[1] ($RES_SIM_130) (182) [WHEN] (1)when {initial(), $SEV_51} then (182) [----] sou.fmuZon.tLast := time (182) [----] end when; (183) [SCAL] (1) wes.vol.hOut = 1006.0 * ((-273.15) - ((-273.15) - wes.vol.medium.T_degC)) * wes.vol.medium.X[2] + (2.5010145e6 + 1860.0 * ((-273.15) - ((-273.15) - wes.vol.medium.T_degC))) * wes.vol.medium.X[1] ($RES_SIM_131) (184) [WHEN] (1)when {initial(), $SEV_51} then (184) [----] sou.fmuZon.dtLast := time - $PRE.sou.fmuZon.tLast (184) [----] end when; (185) [WHEN] (1)when {initial(), $SEV_51} then (185) [----] sou.fmuZon.TRooLast := sou.preTem.T (185) [----] end when; (186) [SCAL] (1) wes.vol.medium.MM = 1/(55.508435061791985 * wes.vol.medium.X[1] + 34.52428788658843 * wes.vol.medium.X[2]) ($RES_SIM_133) (187) [WHEN] (5)when {initial(), $SEV_51} then (187) [----] sou.fmuZon.yEP := Buildings.ThermalZones.EnergyPlus.BaseClasses.exchange(sou.fmuZon.adapter, false, 5, {sou.preTem.T, sou.fmuZon.X_w / (1.0 - sou.fmuZon.X_w), sou.fmuZon.mInlet_flow, sou.fmuZon.TAveInlet, sou.heaGai.QRad_flow, if time > 0.0 then 0.001 * floor(0.5 + 1000.0 * time) else 0.001 * ceil((-0.5) + 1000.0 * time)}, sou.fmuZon.AFlo) (187) [----] end when; (188) [WHEN] (1)when {initial(), $SEV_36} then (188) [----] wes.fmuZon.QLat_flow := wes.fmuZon.yEP[3] (188) [----] end when; (189) [WHEN] (1)when {initial(), $SEV_36} then (189) [----] wes.fmuZon.mInlet_flow := 0.0 (189) [----] end when; (190) [WHEN] (1)when {initial(), $SEV_36} then (190) [----] wes.fmuZon.tLast := time (190) [----] end when; (191) [WHEN] (1)when {initial(), $SEV_36} then (191) [----] wes.fmuZon.QConLast_flow := wes.fmuZon.yEP[2] (191) [----] end when; (192) [SCAL] (1) wes.X_w.y = wes.X_w.u1 / wes.vol.m ($RES_SIM_91) (193) [SCAL] (1) $DER.eas.vol.UOut = eas.heaFloSen.port_a.Q_flow ($RES_SIM_220) (194) [SCAL] (1) wes.relHum.phi = (wes.X_w.y * ((99999.99999999999 * wes.vol.medium.p_bar) / Buildings.Utilities.Math.Functions.regStep((-273.16) + wes.preTem.T, Buildings.Utilities.Psychrometrics.Functions.saturationPressureLiquid(wes.preTem.T), Buildings.Utilities.Psychrometrics.Functions.sublimationPressureIce(wes.preTem.T), 1.0))) / (wes.X_w.y + 0.6219647130774989 * (1.0 - wes.X_w.y)) ($RES_SIM_92) (195) [SCAL] (1) eas.vol.mbXi_flow[1] = 0.0 ($RES_SIM_223) (196) [ARRY] (1) eas.vol.XiOut = eas.vol.medium.Xi ($RES_SIM_224) (197) [-IF-] (1)if eas.vol.computeCSen then (197) [----] [SCAL] (1) eas.vol.UOut = eas.vol.m * ((-84437.5) + eas.vol.hOut) + eas.vol.CSen * ((-((-273.15) - eas.vol.medium.T_degC)) - 273.15) ($RES_SIM_227) (197) [----] else (197) [----] [SCAL] (1) eas.vol.UOut = eas.vol.m * ((-84437.5) + eas.vol.hOut) ($RES_SIM_228) (197) [----] end if; (198) [SCAL] (1) wes.QGaiSenLat_flow.u1 = wes.QConSen_flow.k1 * wes.fmuZon.QConLast_flow + wes.QConSen_flow.k2 * wes.QConSen_flow.u2 ($RES_SIM_98) (199) [SCAL] (1) -wes.conQCon_flow.port.Q_flow = wes.QGaiSenLat_flow.k1 * wes.QGaiSenLat_flow.u1 + wes.QGaiSenLat_flow.k2 * wes.QGaiSenLat_flow.u2 ($RES_SIM_99) (200) [ARRY] (1) eas.vol.mXi = eas.vol.m * eas.vol.medium.Xi ($RES_SIM_229) (201) [WHEN] (1)when {initial(), $SEV_51} then (201) [----] sou.fmuZon.TAveInlet := noEvent(($PRE.sou.fmuZon.TAveInlet * sou.fmuZon.m_flow_small) / (sou.fmuZon.mInlet_flow + sou.fmuZon.m_flow_small)) (201) [----] end when; (202) [WHEN] (1)when {initial(), $SEV_51} then (202) [----] sou.fmuZon.tNext := sou.fmuZon.yEP[5] (202) [----] end when; (203) [WHEN] (1)when {initial(), $SEV_51} then (203) [----] sou.fmuZon.QConLast_flow := sou.fmuZon.yEP[2] (203) [----] end when; (204) [WHEN] (1)when {initial(), $SEV_51} then (204) [----] sou.fmuZon.QLat_flow := sou.fmuZon.yEP[3] (204) [----] end when; (205) [WHEN] (1)when {initial(), $SEV_51} then (205) [----] sou.fmuZon.mInlet_flow := 0.0 (205) [----] end when; (206) [SCAL] (1) cor.X_w.y = cor.X_w.u1 / cor.vol.m ($RES_SIM_315) (207) [WHEN] (1)when {initial(), $SEV_36} then (207) [----] wes.fmuZon.dtLast := time - $PRE.wes.fmuZon.tLast (207) [----] end when; (208) [SCAL] (1) cor.relHum.phi = (cor.X_w.y * ((99999.99999999999 * cor.vol.medium.p_bar) / Buildings.Utilities.Math.Functions.regStep((-273.16) + cor.preTem.T, Buildings.Utilities.Psychrometrics.Functions.saturationPressureLiquid(cor.preTem.T), Buildings.Utilities.Psychrometrics.Functions.sublimationPressureIce(cor.preTem.T), 1.0))) / (cor.X_w.y + 0.6219647130774989 * (1.0 - cor.X_w.y)) ($RES_SIM_316) (209) [WHEN] (1)when {initial(), $SEV_36} then (209) [----] wes.fmuZon.QPeo_flow := wes.fmuZon.yEP[4] (209) [----] end when; (210) [WHEN] (1)when {initial(), $SEV_36} then (210) [----] wes.fmuZon.TRad := wes.fmuZon.yEP[1] (210) [----] end when; (211) [WHEN] (1)when {initial(), $SEV_36} then (211) [----] wes.fmuZon.TRooLast := wes.preTem.T (211) [----] end when; (212) [WHEN] (1)when {initial(), $SEV_36} then (212) [----] wes.fmuZon.TAveInlet := noEvent(($PRE.wes.fmuZon.TAveInlet * wes.fmuZon.m_flow_small) / (wes.fmuZon.mInlet_flow + wes.fmuZon.m_flow_small)) (212) [----] end when; (213) [WHEN] (1)when {initial(), $SEV_36} then (213) [----] wes.fmuZon.tNext := wes.fmuZon.yEP[5] (213) [----] end when; (214) [WHEN] (5)when {initial(), $SEV_36} then (214) [----] wes.fmuZon.yEP := Buildings.ThermalZones.EnergyPlus.BaseClasses.exchange(wes.fmuZon.adapter, false, 5, {wes.preTem.T, wes.fmuZon.X_w / (1.0 - wes.fmuZon.X_w), wes.fmuZon.mInlet_flow, wes.fmuZon.TAveInlet, wes.heaGai.QRad_flow, if time > 0.0 then 0.001 * floor(0.5 + 1000.0 * time) else 0.001 * ceil((-0.5) + 1000.0 * time)}, wes.fmuZon.AFlo) (214) [----] end when; (215) [SCAL] (1) nor.X_w.y = nor.X_w.u1 / nor.vol.m ($RES_SIM_147) (216) [SCAL] (1) nor.relHum.phi = (nor.X_w.y * ((99999.99999999999 * nor.vol.medium.p_bar) / Buildings.Utilities.Math.Functions.regStep((-273.16) + nor.preTem.T, Buildings.Utilities.Psychrometrics.Functions.saturationPressureLiquid(nor.preTem.T), Buildings.Utilities.Psychrometrics.Functions.sublimationPressureIce(nor.preTem.T), 1.0))) / (nor.X_w.y + 0.6219647130774989 * (1.0 - nor.X_w.y)) ($RES_SIM_148) (217) [SCAL] (1) att.vol.medium.X[2] = 1.0 - att.vol.medium.X[1] ($RES_SIM_403) (218) [SCAL] (1) att.vol.medium.X[1] = att.vol.medium.Xi[1] ($RES_SIM_404) (219) [ARRY] (2) att.vol.medium.state.X = att.vol.medium.X ($RES_SIM_405) (220) [SCAL] (1) eas.vol.m = eas.vol.fluidVolume * (1.1843079200592153e-5 * (99999.99999999999 * eas.vol.medium.p_bar)) ($RES_SIM_230) (221) [SCAL] (1) att.vol.medium.state.T = -((-273.15) - att.vol.medium.T_degC) ($RES_SIM_406) (222) [SCAL] (1) att.vol.medium.state.p = 99999.99999999999 * att.vol.medium.p_bar ($RES_SIM_407) (223) [SCAL] (1) eas.vol.medium.X[2] = 1.0 - eas.vol.medium.X[1] ($RES_SIM_235) (224) [SCAL] (1) eas.vol.medium.X[1] = eas.vol.medium.Xi[1] ($RES_SIM_236) (225) [ARRY] (2) eas.vol.medium.state.X = eas.vol.medium.X ($RES_SIM_237) (226) [SCAL] (1) eas.vol.medium.state.T = -((-273.15) - eas.vol.medium.T_degC) ($RES_SIM_238) (227) [SCAL] (1) eas.vol.medium.state.p = 99999.99999999999 * eas.vol.medium.p_bar ($RES_SIM_239) (228) [SCAL] (1) cor.QGaiSenLat_flow.u1 = cor.QConSen_flow.k1 * cor.fmuZon.QConLast_flow + cor.QConSen_flow.k2 * cor.QConSen_flow.u2 ($RES_SIM_322) (229) [SCAL] (1) -cor.conQCon_flow.port.Q_flow = cor.QGaiSenLat_flow.k1 * cor.QGaiSenLat_flow.u1 + cor.QGaiSenLat_flow.k2 * cor.QGaiSenLat_flow.u2 ($RES_SIM_323) (230) [SCAL] (1) cor.QGaiSenLat_flow.u2 = cor.QLat_flow.k1 * cor.fmuZon.QLat_flow + cor.QLat_flow.k2 * cor.heaGai.QLat_flow ($RES_SIM_324) (231) [SCAL] (1) cor.mWat_flow.y = cor.mWat_flow.k * cor.QGaiSenLat_flow.u2 ($RES_SIM_325) (232) [ARRY] (3) {cor.heaGai.QRad_flow, cor.QConSen_flow.u2, cor.heaGai.QLat_flow} = cor.heaGai.AFlo * cor.heaGai.qGai_flow ($RES_SIM_326) (233) [ARRY] (1) cor.vol.mXiOut = cor.vol.mXi ($RES_SIM_328) (234) [SCAL] (1) nor.QGaiSenLat_flow.u1 = nor.QConSen_flow.k1 * nor.fmuZon.QConLast_flow + nor.QConSen_flow.k2 * nor.QConSen_flow.u2 ($RES_SIM_154) (235) [SCAL] (1) -nor.conQCon_flow.port.Q_flow = nor.QGaiSenLat_flow.k1 * nor.QGaiSenLat_flow.u1 + nor.QGaiSenLat_flow.k2 * nor.QGaiSenLat_flow.u2 ($RES_SIM_155) (236) [SCAL] (1) nor.QGaiSenLat_flow.u2 = nor.QLat_flow.k1 * nor.fmuZon.QLat_flow + nor.QLat_flow.k2 * nor.heaGai.QLat_flow ($RES_SIM_156) (237) [SCAL] (1) nor.mWat_flow.y = nor.mWat_flow.k * nor.QGaiSenLat_flow.u2 ($RES_SIM_157) (238) [ARRY] (3) {nor.heaGai.QRad_flow, nor.QConSen_flow.u2, nor.heaGai.QLat_flow} = nor.heaGai.AFlo * nor.heaGai.qGai_flow ($RES_SIM_158) (239) [SCAL] (1) att.vol.medium.R = 287.0512249529787 * att.vol.medium.X[2] + 461.5233290850878 * att.vol.medium.X[1] ($RES_SIM_410) (240) [SCAL] (1) att.vol.hOut = 1006.0 * ((-273.15) - ((-273.15) - att.vol.medium.T_degC)) * att.vol.medium.X[2] + (2.5010145e6 + 1860.0 * ((-273.15) - ((-273.15) - att.vol.medium.T_degC))) * att.vol.medium.X[1] ($RES_SIM_411) (241) [SCAL] (1) att.vol.medium.MM = 1/(55.508435061791985 * att.vol.medium.X[1] + 34.52428788658843 * att.vol.medium.X[2]) ($RES_SIM_413) (242) [SCAL] (1) $SEV_61 = time >= $PRE.att.fmuZon.tNext ($RES_EVT_1005) (243) [SCAL] (1) $SEV_60 = noEvent(att.vol.medium.X[1] >= (-1e-5)) and noEvent(att.vol.medium.X[1] <= 1.00001) ($RES_EVT_1004) (244) [WHEN] (1)when {initial(), $SEV_61} then (244) [----] att.fmuZon.TRooLast := att.preTem.T (244) [----] end when; (245) [WHEN] (1)when {initial(), $SEV_61} then (245) [----] att.fmuZon.QPeo_flow := att.fmuZon.yEP[4] (245) [----] end when; (246) [SCAL] (1) eas.vol.medium.R = 287.0512249529787 * eas.vol.medium.X[2] + 461.5233290850878 * eas.vol.medium.X[1] ($RES_SIM_242) (247) [WHEN] (1)when {initial(), $SEV_61} then (247) [----] att.fmuZon.tNext := att.fmuZon.yEP[5] (247) [----] end when; (248) [SCAL] (1) eas.vol.hOut = 1006.0 * ((-273.15) - ((-273.15) - eas.vol.medium.T_degC)) * eas.vol.medium.X[2] + (2.5010145e6 + 1860.0 * ((-273.15) - ((-273.15) - eas.vol.medium.T_degC))) * eas.vol.medium.X[1] ($RES_SIM_243) (249) [WHEN] (1)when {initial(), $SEV_61} then (249) [----] att.fmuZon.TRad := att.fmuZon.yEP[1] (249) [----] end when; (250) [SCAL] (1) $SEV_56 = time >= $PRE.cor.fmuZon.tNext ($RES_EVT_1000) (251) [SCAL] (1) eas.vol.medium.MM = 1/(55.508435061791985 * eas.vol.medium.X[1] + 34.52428788658843 * eas.vol.medium.X[2]) ($RES_SIM_245) (252) [WHEN] (1)when {initial(), $SEV_46} then (252) [----] eas.fmuZon.TRooLast := eas.preTem.T (252) [----] end when; (253) [WHEN] (1)when {initial(), $SEV_46} then (253) [----] eas.fmuZon.QConLast_flow := eas.fmuZon.yEP[2] (253) [----] end when; (254) [SCAL] (1) sou.conQCon_flow.port.Q_flow + sou.heaFloSen.port_a.Q_flow = 0.0 ($RES_SIM_501) (255) [SCAL] (1) cor.conQCon_flow.port.Q_flow + cor.heaFloSen.port_a.Q_flow = 0.0 ($RES_SIM_504) (256) [ARRY] (1) $DER.cor.vol.mXi = cor.vol.mbXi_flow + cor.mWat_flow.y * cor.vol.s ($RES_SIM_330) (257) [SCAL] (1) $DER.cor.vol.m = 0.0 ($RES_SIM_331) (258) [SCAL] (1) att.conQCon_flow.port.Q_flow + att.heaFloSen.port_a.Q_flow = 0.0 ($RES_SIM_507) (259) [SCAL] (1) $DER.cor.vol.UOut = cor.heaFloSen.port_a.Q_flow ($RES_SIM_332) (260) [SCAL] (1) cor.vol.mbXi_flow[1] = 0.0 ($RES_SIM_335) (261) [ARRY] (1) nor.vol.mXiOut = nor.vol.mXi ($RES_SIM_160) (262) [ARRY] (1) cor.vol.XiOut = cor.vol.medium.Xi ($RES_SIM_336) (263) [ARRY] (1) $DER.nor.vol.mXi = nor.vol.mbXi_flow + nor.mWat_flow.y * nor.vol.s ($RES_SIM_162) (264) [-IF-] (1)if cor.vol.computeCSen then (264) [----] [SCAL] (1) cor.vol.UOut = cor.vol.m * ((-84437.5) + cor.vol.hOut) + cor.vol.CSen * ((-((-273.15) - cor.vol.medium.T_degC)) - 273.15) ($RES_SIM_339) (264) [----] else (264) [----] [SCAL] (1) cor.vol.UOut = cor.vol.m * ((-84437.5) + cor.vol.hOut) ($RES_SIM_340) (264) [----] end if; (265) [SCAL] (1) $DER.nor.vol.m = 0.0 ($RES_SIM_163) (266) [SCAL] (1) $DER.nor.vol.UOut = nor.heaFloSen.port_a.Q_flow ($RES_SIM_164) (267) [SCAL] (1) nor.vol.mbXi_flow[1] = 0.0 ($RES_SIM_167) (268) [ARRY] (1) nor.vol.XiOut = nor.vol.medium.Xi ($RES_SIM_168) (269) [WHEN] (1)when {initial(), $SEV_61} then (269) [----] att.fmuZon.QLat_flow := att.fmuZon.yEP[3] (269) [----] end when; (270) [WHEN] (1)when {initial(), $SEV_61} then (270) [----] att.fmuZon.mInlet_flow := 0.0 (270) [----] end when; (271) [WHEN] (1)when {initial(), $SEV_61} then (271) [----] att.fmuZon.tLast := time (271) [----] end when; (272) [WHEN] (1)when {initial(), $SEV_61} then (272) [----] att.fmuZon.QConLast_flow := att.fmuZon.yEP[2] (272) [----] end when; (273) [WHEN] (5)when {initial(), $SEV_61} then (273) [----] att.fmuZon.yEP := Buildings.ThermalZones.EnergyPlus.BaseClasses.exchange(att.fmuZon.adapter, false, 5, {att.preTem.T, att.fmuZon.X_w / (1.0 - att.fmuZon.X_w), att.fmuZon.mInlet_flow, att.fmuZon.TAveInlet, att.heaGai.QRad_flow, if time > 0.0 then 0.001 * floor(0.5 + 1000.0 * time) else 0.001 * ceil((-0.5) + 1000.0 * time)}, att.fmuZon.AFlo) (273) [----] end when; (274) [WHEN] (1)when {initial(), $SEV_61} then (274) [----] att.fmuZon.TAveInlet := noEvent(($PRE.att.fmuZon.TAveInlet * att.fmuZon.m_flow_small) / (att.fmuZon.mInlet_flow + att.fmuZon.m_flow_small)) (274) [----] end when; (275) [WHEN] (1)when {initial(), $SEV_46} then (275) [----] eas.fmuZon.dtLast := time - $PRE.eas.fmuZon.tLast (275) [----] end when; (276) [WHEN] (1)when {initial(), $SEV_61} then (276) [----] att.fmuZon.dtLast := time - $PRE.att.fmuZon.tLast (276) [----] end when; (277) [WHEN] (1)when {initial(), $SEV_46} then (277) [----] eas.fmuZon.QPeo_flow := eas.fmuZon.yEP[4] (277) [----] end when; (278) [WHEN] (1)when {initial(), $SEV_46} then (278) [----] eas.fmuZon.tNext := eas.fmuZon.yEP[5] (278) [----] end when; (279) [ARRY] (3) {{mul.y[1]}, {mul.y[2]}, {mul.y[3]}} = {{mul.u1[1]}, {mul.u2[1]}, {mul.u3[1]}} ($RES_SIM_428) (280) [WHEN] (1)when {initial(), $SEV_46} then (280) [----] eas.fmuZon.TAveInlet := noEvent(($PRE.eas.fmuZon.TAveInlet * eas.fmuZon.m_flow_small) / (eas.fmuZon.mInlet_flow + eas.fmuZon.m_flow_small)) (280) [----] end when;