Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.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.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir") translateModel(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 106.4 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.001374/0.001374, allocations: 192.7 kB / 17.31 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.453/1.453, allocations: 205.1 MB / 223.2 MB, free: 12.3 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.806/1.806, allocations: 292.3 MB / 0.5496 GB, free: 17.5 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.697e-05/2.698e-05, allocations: 2.281 kB / 0.6728 GB, free: 5.875 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir): time 0.7017/0.7017, allocations: 264.6 MB / 0.9312 GB, free: 12.55 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03274/0.7345, allocations: 24.31 MB / 0.955 GB, free: 6.414 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006083/0.7406, allocations: 87.56 kB / 0.9551 GB, free: 6.328 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.00487/0.7455, allocations: 1.37 MB / 0.9564 GB, free: 4.949 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.01433/0.76, allocations: 4.789 MB / 0.9611 GB, free: 148 kB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.008808/0.7688, allocations: 2.972 MB / 0.964 GB, free: 13.18 MB / 0.7012 GB Notification: Performance of NFFlatten.flatten: time 0.01196/0.7808, allocations: 7.687 MB / 0.9715 GB, free: 5.473 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004505/0.7853, allocations: 2.626 MB / 0.9741 GB, free: 2.812 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009388/0.7947, allocations: 3.53 MB / 0.9775 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005037/0.7998, allocations: 2.19 MB / 0.9796 GB, free: 13.09 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0009114/0.8008, allocations: 312 kB / 0.9799 GB, free: 12.78 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01052/0.8113, allocations: 4.315 MB / 0.9842 GB, free: 8.457 MB / 0.7169 GB Notification: Performance of combineBinaries: time 0.007183/0.8185, allocations: 5.2 MB / 0.9892 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of replaceArrayConstructors: time 0.003133/0.8217, allocations: 3.199 MB / 0.9924 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.001394/0.8231, allocations: 0.5338 MB / 0.9929 GB, free: 15.44 MB / 0.7325 GB Notification: Performance of FrontEnd: time 0.0008189/0.8239, allocations: 107.6 kB / 0.993 GB, free: 15.33 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 424 (403) * Number of variables: 424 (398) Notification: Performance of Bindings: time 0.01493/0.8389, allocations: 14 MB / 1.007 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of FunctionAlias: time 0.001715/0.8406, allocations: 1.484 MB / 1.008 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of Early Inline: time 0.007156/0.8478, allocations: 6.912 MB / 1.015 GB, free: 8.68 MB / 0.7481 GB Notification: Performance of simplify1: time 0.0006045/0.8484, allocations: 455.4 kB / 1.015 GB, free: 8.234 MB / 0.7481 GB Notification: Performance of Alias: time 0.01227/0.8607, allocations: 10.22 MB / 1.025 GB, free: 13.3 MB / 0.7637 GB Notification: Performance of simplify2: time 0.0007371/0.8615, allocations: 343.6 kB / 1.026 GB, free: 12.96 MB / 0.7637 GB Notification: Performance of Events: time 0.001808/0.8633, allocations: 1.248 MB / 1.027 GB, free: 11.66 MB / 0.7637 GB Notification: Performance of Detect States: time 0.002165/0.8655, allocations: 1.365 MB / 1.028 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of Partitioning: time 0.003035/0.8686, allocations: 1.9 MB / 1.03 GB, free: 8.207 MB / 0.7637 GB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency $FUN_17[$i1] could not be devided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [FOR-] (2) ($RES_$AUX_462) [----] for $i1 in 1:1 loop [----] [TUPL] (2) ($FUN_16[$i1], $FUN_17[$i1]) = spatialDistribution(duc.cor.del.Xi_inflow_a[$i1], duc.cor.del.Xi_inflow_b[$i1], duc.cor.del.x / duc.cor.del.length, $SEV_33[$i1], {0.0, 1.0}, {0.01, 0.01}) ($RES_$AUX_463) [----] end for; Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (254/281) **************************** (1) [ALGB] (1) stream Real pip.cor.heaLos_b.port_a.h_outflow (start = 83680.0, min = -1e10, max = 1e10, nominal = 83680.0) (2) [ALGB] (1) Real pip.cor.res.v = pip.cor.res.m_flow / (pip.cor.res.ARound * pip.cor.res.rho_default) (3) [ALGB] (1) stream Real[1] sin1.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (4) [DISC] (1) Boolean $SEV_29 (5) [DISC] (1) Boolean $SEV_28 (6) [DISC] (1) Boolean $SEV_27 (7) [DER-] (1) Real $DER.duc.vol.dynBal.m (8) [ALGB] (1) stream Real duc.cor.heaLos_b.port_b.h_outflow (start = 45300.945, min = -1e10, max = 1e10, nominal = 45300.945) (9) [ALGB] (1) flow Real[1] sou.ports.m_flow (min = {-1e60}, max = {1e60}) (10) [ALGB] (2) stream Real[2] duc.vol.ports.h_outflow (min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (11) [DISC] (1) Boolean $SEV_23 (12) [DISC] (1) Boolean $SEV_22 (13) [DISC] (1) Boolean $SEV_21 (14) [ALGB] (2) protected flow Real[2] pip.vol.dynBal.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (15) [ALGB] (1) stream Real[1, 1] sou1.ports.C_outflow (start = {{1.0 for $i1 in 1:1}}, min = {{0.0 for $i1 in 1:1}}) (16) [DISC] (1) Boolean $SEV_20 (17) [ALGB] (1) flow Real[1] pip.ports_b.m_flow (min = {-1e5 for $i1 in 1:1}, max = {1e60}) (18) [ALGB] (2) stream Real[2] pip.vol.ports.h_outflow (min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (19) [ALGB] (2) Real[2] duc.vol.ports.p (start = {101325.0 for $ports1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (20) [ALGB] (1) stream Real[1] sin.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (21) [ALGB] (1) Real senTemOutW.T (start = senTemOutW.T_start, min = 0.0) (22) [DISC] (1) Boolean $TEV_1 (23) [DISC] (1) Boolean $TEV_0 (24) [ALGB] (1) Real duc.cor.del.v (25) [ALGB] (1) stream Real duc.cor.heaLos_a.port_a.h_outflow (start = 45300.945, min = -1e10, max = 1e10, nominal = 45300.945) (26) [ALGB] (1) Real duc.cor.senMasFlo.port_b.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (27) [ALGB] (1) protected Real duc.vol.dynBal.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * duc.vol.dynBal.medium.p_bar) (28) [ALGB] (1) stream Real duc.cor.heaLos_b.port_a.h_outflow (start = 45300.945, min = -1e10, max = 1e10, nominal = 45300.945) (29) [ALGB] (1) Real pip.cor.heaLos_b.port_b.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (30) [ALGB] (1) stream Real[1, 1] sin1.ports.C_outflow (start = {{1.0 for $i1 in 1:1}}, min = {{0.0 for $i1 in 1:1}}) (31) [DER-] (1) Real $DER.duc.vol.dynBal.U (32) [ALGB] (1) stream Real[1, 1] sin1.ports.Xi_outflow (min = {{0.0 for $i1 in 1:1}}, max = {{1.0 for $i1 in 1:1}}, nominal = {{0.1 for $i1 in 1:1}}) (33) [ALGB] (1) protected Real senTemOutA.T_b_inflow (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (34) [ALGB] (2) stream Real[2, 1] duc.vol.ports.C_outflow (start = {{1.0 for $i1 in 1:1} for $ports1 in 1:2}, min = {{0.0 for $i1 in 1:1} for $ports1 in 1:2}) (35) [DISC] (1) Boolean $SEV_19 (36) [ALGB] (1) protected Real sou.p_in_internal (37) [DISC] (1) Boolean $SEV_18 (38) [DISC] (1) Boolean $SEV_17 (39) [ALGB] (2) protected Real[2] duc.vol.dynBal.ports_H_flow (min = {-1e8 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1000.0 for $i1 in 1:2}) (40) [ALGB] (1) stream Real[1] duc.port_a.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (41) [ALGB] (1) protected Real[1] duc.vol.XiOut_internal (42) [ALGB] (1) stream Real[1] duc.cor.senMasFlo.port_b.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (43) [ALGB] (1) stream Real[1] senTemIn1.port_a.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (44) [DISC] (1) Boolean $SEV_13 (45) [ALGB] (1) Real pip.cor.res.m_flow = pip.cor.res.m_flow (start = pip.cor.res._m_flow_start, nominal = if pip.cor.res.m_flow_nominal_pos > 1e-15 then pip.cor.res.m_flow_nominal_pos else 1.0) (46) [DISC] (1) Boolean $SEV_12 (47) [DISC] (1) Boolean $SEV_11 (48) [ALGB] (1) Real duc.cor.heaLos_a.TAmb = duc.cor.heaLos_a.TAmb (start = 288.15, min = 0.0, nominal = 300.0) (49) [DISC] (1) Boolean $SEV_10 (50) [ALGB] (1) Real pip.cor.senMasFlo.port_b.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (51) [ALGB] (1) protected Real[1] duc.vol.COut_internal (52) [ALGB] (1) stream Real[1] duc.cor.heaLos_b.port_a.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (53) [ALGB] (1) protected Real[1] duc.vol.dynBal.XiOut (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}) (54) [ALGB] (2) protected Real[2] pip.vol.dynBal.ports_H_flow (min = {-1e8 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1000.0 for $i1 in 1:2}) (55) [ALGB] (2) protected stream Real[2, 1] duc.vol.dynBal.ports.Xi_outflow (min = {{0.0 for $i1 in 1:1} for $ports1 in 1:2}, max = {{1.0 for $i1 in 1:1} for $ports1 in 1:2}, nominal = {{0.1 for $i1 in 1:1} for $ports1 in 1:2}) (56) [ALGB] (1) stream Real[1] senTemOutA.port_a.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (57) [ALGB] (1) protected Real[1] duc.vol.dynBal.COut (min = {0.0 for $i1 in 1:1}) (58) [ALGB] (1) Real $FUN_37 (59) [DER-] (1) Real $DER.duc.cor.del.x (60) [ALGB] (1) stream Real[1] duc.cor.res.port_b.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (61) [ALGB] (1) protected Real sou1.h_internal = Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.sou1.Medium.specificEnthalpy(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.sou1.Medium.setState_pTX(sou1.p_in_internal, -2.390057361376673e-4 * ((-1.1428595999999999e6) - sou.h_internal), sou1.X_in_internal)) (62) [ALGB] (1) stream Real[1] duc.cor.senMasFlo.port_a.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (63) [ALGB] (1) Real $FUN_33 (64) [ALGB] (1) Real $FUN_32 (65) [ALGB] (1) protected Real senTemIn1.T_a_inflow (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (66) [ALGB] (1) Real $FUN_31 (67) [ALGB] (1) protected Real pip.vol.dynBal.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (68) [ALGB] (1) Real pip.cor.res.dp = pip.cor.senMasFlo.port_b.p - pip.cor.heaLos_b.port_a.p (start = pip.cor.res._dp_start, nominal = 200.0 * pip.cor.fac * pip.cor.length) (69) [ALGB] (1) Real senTemIn1.T (start = senTemIn1.T_start, min = 0.0) (70) [ALGB] (1) Real $FUN_30 (71) [ALGB] (1) Real pip.cor.timDel.tauRev (72) [ALGB] (1) stream Real[1] duc.cor.del.port_a.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (73) [ALGB] (1) stream Real[1] duc.cor.port_b.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (74) [ALGB] (1) protected Real sou1.p_in_internal (75) [ALGB] (1) Real[1] pip.ports_b.p (start = {3e5}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (76) [ALGB] (2) protected stream Real[2] pip.vol.dynBal.ports.h_outflow (min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (77) [ALGB] (1) Real pip.cor.heaLos_b.T_b_outflow (start = pip.cor.heaLos_b.T_start, min = 0.0, nominal = 300.0) (78) [ALGB] (1) stream Real[1] duc.cor.res.port_a.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (79) [ALGB] (1) stream Real[1] duc.ports_b.h_outflow (start = {45300.945}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {45300.945}) (80) [ALGB] (1) stream Real[1] duc.cor.heaLos_a.port_a.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (81) [ALGB] (2) Real[2] sou1.X_in (82) [ALGB] (1) flow Real senTemOutW.port_b.m_flow (min = -1e5, max = 1e60) (83) [ALGB] (2) protected flow Real[2] duc.vol.dynBal.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (84) [ALGB] (1) Real $FUN_9 (85) [ALGB] (1) stream Real duc.cor.senMasFlo.port_a.h_outflow (start = 45300.945, min = -1e10, max = 1e10, nominal = 45300.945) (86) [ALGB] (1) stream Real[1] senTemOutA.port_b.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (87) [ALGB] (1) Real $FUN_6 (88) [ALGB] (1) Real $FUN_29 (89) [DER-] (1) Real $DER.pip.cor.del.x (90) [ALGB] (1) Real $FUN_5 (91) [ALGB] (1) Real $FUN_28 (92) [ALGB] (1) Real $FUN_4 (93) [ALGB] (1) Real $FUN_27 (94) [ALGB] (1) Real $FUN_3 (95) [ALGB] (1) Real $FUN_26 (96) [ALGB] (1) protected Real pip.vol.dynBal.medium.state.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (97) [ALGB] (1) Real duc.cor.heaLos_b.T_b_outflow (start = duc.cor.heaLos_b.T_start, min = 0.0, nominal = 300.0) (98) [ALGB] (1) Real $FUN_23 (99) [ALGB] (1) Real[1] CIn.y (100) [ALGB] (1) Real $FUN_22 (101) [ALGB] (1) Real duc.cor.heaLos_b.port_a.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (102) [ALGB] (1) Real $FUN_21 (103) [ALGB] (1) Real $FUN_20 (104) [ALGB] (1) flow Real duc.cor.heaLos_a.heatPort.Q_flow (105) [ALGB] (1) Real duc.cor.timDel.time_out_rev (106) [ALGB] (1) flow Real[1] sou1.ports.m_flow (min = {-1e60}, max = {1e60}) (107) [ALGB] (1) protected Real senTemOutW.T_a_inflow (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (108) [ALGB] (1) stream Real[1] senTemOutA.port_a.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (109) [ALGB] (1) stream Real[1, 1] duc.ports_b.C_outflow (start = {{1.0 for $i1 in 1:1}}, min = {{0.0 for $i1 in 1:1}}) (110) [ALGB] (1) stream Real[1] sou.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (111) [ALGB] (1) Real duc.cor.heaLos_a.T_a_inflow (start = duc.cor.heaLos_a.T_start, min = 0.0, nominal = 300.0) (112) [ALGB] (1) Real pip.cor.heaLos_a.T_b_outflow (start = pip.cor.heaLos_a.T_start, min = 0.0, nominal = 300.0) (113) [ALGB] (1) stream Real senTemOutA.port_b.h_outflow (start = 45300.945, min = -1e10, max = 1e10, nominal = 45300.945) (114) [ALGB] (1) Real duc.cor.res.v = duc.cor.res.m_flow / (duc.cor.res.ARound * duc.cor.res.rho_default) (115) [ALGB] (1) stream Real senTemIn1.port_a.h_outflow (start = 45300.945, min = -1e10, max = 1e10, nominal = 45300.945) (116) [ALGB] (1) protected Real duc.vol.dynBal.medium.state.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (117) [ALGB] (1) protected Real pip.vol.dynBal.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * pip.vol.dynBal.medium.p_bar) (118) [ALGB] (1) protected Real[1] duc.vol.dynBal.medium.Xi (start = duc.vol.dynBal.X_start[1:1], min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, StateSelect = default) (119) [ALGB] (1) Real[1] $FUN_19 (120) [ALGB] (1) Real[1] $FUN_18 (121) [ALGB] (1) Real[1] $FUN_17 (122) [ALGB] (1) stream Real[1] senTemIn1.port_b.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (123) [ALGB] (1) Real[1] $FUN_16 (124) [ALGB] (1) protected Real pip.vol.dynBal.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - pip.vol.dynBal.medium.T_degC)) (125) [ALGB] (2) protected stream Real[2] duc.vol.dynBal.ports.h_outflow (min = {-1e10 for $i1 in 1:2}, max = {1e10 for $i1 in 1:2}, nominal = {1e6 for $i1 in 1:2}) (126) [ALGB] (1) Real $FUN_10 (127) [ALGB] (1) flow Real pip.cor.heaLos_a.heatPort.Q_flow (128) [ALGB] (1) stream Real senTemOutA.port_a.h_outflow (start = 45300.945, min = -1e10, max = 1e10, nominal = 45300.945) (129) [ALGB] (1) stream Real[1] duc.cor.heaLos_b.port_b.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (130) [ALGB] (1) stream Real[1] duc.cor.res.port_a.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (131) [ALGB] (1) protected Real[1] duc.vol.dynBal.C (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, nominal = duc.vol.dynBal.C_nominal) (132) [DISC] (1) Boolean $SEV_9 (133) [ALGB] (1) Real senTemIn1.port_a.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (134) [DISC] (1) Boolean $SEV_8 (135) [ALGB] (1) Real duc.cor.res.dp = duc.cor.senMasFlo.port_b.p - duc.cor.heaLos_b.port_a.p (start = duc.cor.res._dp_start, nominal = 200.0 * duc.cor.fac * duc.cor.length) (136) [ALGB] (1) protected Real[1] duc.vol.dynBal.mbC_flow (137) [DER-] (1) Real[1] $DER.duc.vol.dynBal.mXi (138) [ALGB] (1) Real[1] duc.vol.Xi = duc.vol.XiOut_internal (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}) (139) [ALGB] (1) Real duc.cor.timDel.u (140) [ALGB] (1) protected Real[1] sou1.C_in_internal (141) [ALGB] (2) protected Real[2] duc.vol.dynBal.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}) (142) [ALGB] (1) Real senTemOutA.port_a.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (143) [ALGB] (1) Real duc.vol.p = duc.vol.ports[1].p (144) [ALGB] (1) protected Real senTemOutA.T_a_inflow (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (145) [ALGB] (1) stream Real[1] senTemIn1.port_a.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (146) [ALGB] (1) protected Real sou.h_internal = Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.sou.Medium.specificEnthalpy(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.sou.Medium.setState_pTX(sou.p_in_internal, -2.390057361376673e-4 * ((-1.1428595999999999e6) - sou.h_internal), sou.X_in_internal)) (147) [ALGB] (1) stream Real[1] duc.cor.del.port_b.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (148) [ALGB] (1) protected Real duc.vol.dynBal.medium.state.T (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (149) [ALGB] (1) protected Real duc.vol.dynBal.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - duc.vol.dynBal.medium.T_degC)) (150) [ALGB] (1) stream Real[1] duc.cor.port_a.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (151) [ALGB] (1) protected Real[1] sin1.C_in_internal (152) [ALGB] (2) flow Real[2] duc.vol.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (153) [ALGB] (1) protected Real pip.vol.dynBal.Hb_flow (154) [ALGB] (2) Real[2] pip.vol.ports.p (start = {3e5 for $ports1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (155) [ALGB] (2) protected stream Real[2, 1] duc.vol.dynBal.ports.C_outflow (start = {{1.0 for $i1 in 1:1} for $ports1 in 1:2}, min = {{0.0 for $i1 in 1:1} for $ports1 in 1:2}) (156) [ALGB] (1) protected Real duc.vol.dynBal.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (157) [ALGB] (1) Real senTemOutW.port_a.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (158) [ALGB] (1) Real duc.cor.heaLos_b.port_b.p (start = 101325.0, min = 0.0, max = 1e8, nominal = 1e5) (159) [ALGB] (1) flow Real duc.cor.heaLos_b.heatPort.Q_flow (160) [ALGB] (1) stream Real[1] duc.cor.senMasFlo.port_b.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (161) [ALGB] (1) protected Real[1] duc.vol.dynBal.C_flow_internal (162) [ALGB] (1) Real[1] sin1.ports.p (start = {101325.0}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (163) [ALGB] (1) Real pip.cor.heaLos_b.T_a_inflow (start = pip.cor.heaLos_b.T_start, min = 0.0, nominal = 300.0) (164) [ALGB] (1) protected Real senTemIn.T_a_inflow (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (165) [ALGB] (1) protected Real[1] duc.vol.dynBal.mCOut (min = {0.0 for $i1 in 1:1}) (166) [ALGB] (1) Real duc.cor.heaLos_a.T_b_outflow (start = duc.cor.heaLos_a.T_start, min = 0.0, nominal = 300.0) (167) [ALGB] (1) stream Real[1] senTemIn1.port_b.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (168) [ALGB] (1) Real pip.cor.timDel.time_out_des (169) [ALGB] (1) Real[1] sou1.ports.p (start = {101325.0}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (170) [ALGB] (1) flow Real senTemOutA.port_b.m_flow (min = -1e5, max = 1e60) (171) [ALGB] (1) stream Real[1, 1] duc.ports_b.Xi_outflow (min = {{0.0 for $i1 in 1:1}}, max = {{1.0 for $i1 in 1:1}}, nominal = {{0.1 for $i1 in 1:1}}) (172) [ALGB] (1) Real pip.cor.del.v (173) [ALGB] (1) protected Real duc.vol.dynBal.mb_flow (174) [ALGB] (1) stream Real[1] pip.ports_b.h_outflow (start = {83680.0}, min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {83680.0}) (175) [ALGB] (1) Real pip.vol.p = pip.vol.ports[1].p (176) [ALGB] (2) protected Real[2, 1] duc.vol.dynBal.ports_mC_flow (177) [DER-] (1) Real $DER.duc.cor.timDel.x (178) [ALGB] (1) Real duc.vol.T = Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.duc.vol.Medium.temperature_phX(duc.vol.p, -((-84437.5) - duc.vol.dynBal.medium.u), {duc.vol.Xi[1], 1.0 - sum(duc.vol.Xi)}) (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (179) [ALGB] (1) stream Real pip.cor.res.port_a.h_outflow (start = 83680.0, min = -1e10, max = 1e10, nominal = 83680.0) (180) [ALGB] (2) stream Real[2, 1] duc.vol.ports.Xi_outflow (min = {{0.0 for $i1 in 1:1} for $ports1 in 1:2}, max = {{1.0 for $i1 in 1:1} for $ports1 in 1:2}, nominal = {{0.1 for $i1 in 1:1} for $ports1 in 1:2}) (181) [ALGB] (1) stream Real[1] duc.port_a.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (182) [ALGB] (2) protected Real[2] sin1.X_in_internal (183) [ALGB] (1) protected Real[1] duc.vol.dynBal.mbXi_flow (184) [ALGB] (2) protected Real[2] duc.vol.dynBal.ports.p (start = {101325.0 for $ports1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (185) [ALGB] (1) Real duc.cor.timDel.tau (186) [ALGB] (1) Real duc.cor.timDel.tauRev (187) [ALGB] (1) stream Real[1, 1] sou1.ports.Xi_outflow (min = {{0.0 for $i1 in 1:1}}, max = {{1.0 for $i1 in 1:1}}, nominal = {{0.1 for $i1 in 1:1}}) (188) [ALGB] (2) protected Real[2] duc.vol.dynBal.medium.X (start = duc.vol.dynBal.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}) (189) [ALGB] (1) Real[1] duc.ports_b.p (start = {101325.0}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (190) [ALGB] (1) protected Real[1] sou1.Xi_in_internal (191) [ALGB] (2) protected Real[2] pip.vol.dynBal.ports.p (start = {3e5 for $ports1 in 1:2}, min = {0.0 for $i1 in 1:2}, max = {1e8 for $i1 in 1:2}, nominal = {1e5 for $i1 in 1:2}) (192) [DER-] (1) Real $DER.pip.vol.dynBal.m (193) [ALGB] (1) Real duc.cor.timDel.time_out_des (194) [ALGB] (1) flow Real pip.cor.heaLos_b.heatPort.Q_flow (195) [ALGB] (1) Real[1] duc.vol.C = duc.vol.COut_internal (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}, nominal = duc.vol.C_nominal) (196) [ALGB] (1) protected Real duc.vol.dynBal.medium.R (start = 1000.0, min = 0.0, max = 1e7, nominal = 1000.0) (197) [ALGB] (2) Real[2] XiIn.y (198) [ALGB] (1) flow Real[1] duc.ports_b.m_flow (min = {-1e5 for $i1 in 1:1}, max = {1e60}) (199) [ALGB] (1) Real duc.cor.heaLos_b.T_a_inflow (start = duc.cor.heaLos_b.T_start, min = 0.0, nominal = 300.0) (200) [DISC] (1) Boolean[1] $SEV_33[$i1] (201) [ALGB] (1) Real senTemIn.T (start = senTemIn.T_start, min = 0.0) (202) [ALGB] (1) stream Real duc.cor.del.port_b.h_outflow (start = 45300.945, min = -1e10, max = 1e10, nominal = 45300.945) (203) [ALGB] (2) flow Real[2] pip.vol.ports.m_flow (min = {-1e5 for $i1 in 1:2}, max = {1e5 for $i1 in 1:2}) (204) [ALGB] (1) protected Real[1] sin1.Xi_in_internal (205) [ALGB] (1) Real pip.cor.heaLos_a.TAmb = pip.cor.heaLos_a.TAmb (start = 288.15, min = 0.0, nominal = 300.0) (206) [ALGB] (1) protected Real pip.vol.dynBal.mb_flow (207) [ALGB] (1) Real duc.cor.del.V_flow = duc.cor.res.m_flow / Modelica.Fluid.Utilities.regStep(duc.cor.res.m_flow, Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.duc.cor.del.Medium.density(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.duc.cor.del.Medium.setState_phX(duc.cor.heaLos_b.port_a.p, duc.cor.heaLos_a.port_a.h_outflow, {duc.cor.res.port_b.Xi_outflow[1]})), Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.duc.cor.del.Medium.density(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.duc.cor.del.Medium.setState_phX(duc.cor.heaLos_b.port_a.p, duc.cor.heaLos_b.port_a.h_outflow, {duc.cor.heaLos_b.port_a.Xi_outflow[1]})), duc.cor.del.m_flow_small) (208) [ALGB] (1) Real[1] sou1.C_in (209) [DISC] (2) Boolean[2] $SEV_7[$i1] (210) [ALGB] (1) stream Real[1] duc.cor.del.port_a.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (211) [ALGB] (1) Real senTemIn.port_a.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (212) [ALGB] (1) Real[1] sou.ports.p (start = {3e5}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (213) [ALGB] (2) protected Real[2] sou1.X_in_internal (214) [ALGB] (1) protected Real sin1.h_internal = Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.sin1.Medium.specificEnthalpy(Buildings.Fluid.FixedResistances.Validation.PlugFlowPipes.TransportWaterAir.sin1.Medium.setState_pTX(sin1.p, sin1.T, sin1.X_in_internal)) (215) [ALGB] (1) stream Real[1] duc.cor.port_b.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (216) [ALGB] (1) protected Real senTemIn1.T_b_inflow (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (217) [DER-] (1) Real $DER.pip.vol.dynBal.U (218) [ALGB] (2) protected Real[2, 1] duc.vol.dynBal.ports_mXi_flow (219) [ALGB] (1) stream Real[1] duc.cor.res.port_b.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (220) [ALGB] (1) flow Real[1] sin1.ports.m_flow (min = {-1e60}, max = {1e60}) (221) [ALGB] (1) protected Real duc.vol.dynBal.Hb_flow (222) [ALGB] (1) Real pip.cor.timDel.u (223) [ALGB] (1) Real senTemOutA.T (start = senTemOutA.T_start, min = 0.0) (224) [DER-] (1) Real $DER.pip.cor.timDel.x (225) [ALGB] (1) protected Real[1] duc.cor.del.Xi_inflow_a = {duc.cor.res.port_b.Xi_outflow[1]} (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (226) [ALGB] (1) protected Real[1] duc.cor.del.Xi_inflow_b = {duc.cor.heaLos_b.port_a.Xi_outflow[1]} (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (227) [ALGB] (1) Real duc.cor.res.m_flow = duc.cor.res.m_flow (start = duc.cor.res._m_flow_start, nominal = if duc.cor.res.m_flow_nominal_pos > 1e-15 then duc.cor.res.m_flow_nominal_pos else 1.0) (228) [ALGB] (1) Real pip.cor.heaLos_b.port_a.p (start = 3e5, min = 0.0, max = 1e8, nominal = 1e5) (229) [ALGB] (1) stream Real[1] duc.cor.del.port_b.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (230) [ALGB] (1) stream Real[1] duc.cor.port_a.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (231) [DER-] (1) Real[1] $DER.duc.vol.dynBal.mC (232) [ALGB] (1) stream Real[1] senTemOutA.port_b.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (233) [DISC] (1) Boolean $SEV_34 (234) [DISC] (1) Boolean $SEV_32 (235) [ALGB] (1) stream Real[1] duc.cor.heaLos_a.port_b.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (236) [DISC] (1) Boolean $SEV_31 (237) [DISC] (1) Boolean $SEV_30 (238) [ALGB] (1) stream Real[1] duc.cor.senMasFlo.port_a.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (239) [ALGB] (1) Real[1] sin.ports.p (start = {3e5}, min = {0.0 for $i1 in 1:1}, max = {1e8 for $i1 in 1:1}, nominal = {1e5 for $i1 in 1:1}) (240) [ALGB] (1) stream Real[1] duc.cor.heaLos_b.port_b.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (241) [ALGB] (1) stream Real[1] sou1.ports.h_outflow (min = {-1e10 for $i1 in 1:1}, max = {1e10 for $i1 in 1:1}, nominal = {1e6 for $i1 in 1:1}) (242) [ALGB] (1) flow Real[1] sin.ports.m_flow (min = {-1e60}, max = {1e60}) (243) [ALGB] (1) Real pip.cor.timDel.time_out_rev (244) [ALGB] (1) protected Real[1] duc.vol.dynBal.mXiOut (min = {0.0 for $i1 in 1:1}) (245) [ALGB] (1) protected Real senTemOutW.T_b_inflow (start = 293.15, min = 1.0, max = 1e4, nominal = 300.0) (246) [ALGB] (1) stream Real[1] duc.cor.heaLos_a.port_a.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (247) [ALGB] (1) protected Real duc.vol.dynBal.medium.MM (min = 0.001, max = 0.25, nominal = 0.032) (248) [ALGB] (1) protected Real[1] duc.cor.del.C_inflow_b = {duc.cor.heaLos_b.port_a.C_outflow[1]} (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (249) [ALGB] (1) Real[1] duc.vol.mC (250) [ALGB] (1) stream Real[1] duc.cor.heaLos_a.port_b.Xi_outflow (min = {0.0 for $i1 in 1:1}, max = {1.0 for $i1 in 1:1}, nominal = {0.1 for $i1 in 1:1}) (251) [ALGB] (1) protected Real[1] duc.cor.del.C_inflow_a = {duc.cor.res.port_b.C_outflow[1]} (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) (252) [ALGB] (1) Real[1] duc.vol.mXi (253) [ALGB] (1) Real pip.cor.timDel.tau (254) [ALGB] (1) stream Real[1] duc.cor.heaLos_b.port_a.C_outflow (start = {1.0 for $i1 in 1:1}, min = {0.0 for $i1 in 1:1}) System Equations (259/281) **************************** (1) [SCAL] (1) pip.cor.heaLos_a.heatPort.Q_flow = $FUN_4 * pip.cor.res.m_flow ($RES_SIM_254) (2) [SCAL] (1) $SEV_17 = noEvent(duc.vol.dynBal.medium.X[1] >= (-1e-5)) and noEvent(duc.vol.dynBal.medium.X[1] <= 1.00001) ($RES_EVT_550) (3) [SCAL] (1) pip.cor.heaLos_a.T_b_outflow = pip.cor.heaLos_a.TAmb + ((273.15 + 2.390057361376673e-4 * pip.cor.res.port_a.h_outflow) - pip.cor.heaLos_a.TAmb) * $FUN_3 ($RES_SIM_255) (4) [SCAL] (1) $SEV_18 = pip.cor.res.m_flow > senTemIn.m_flow_small ($RES_EVT_551) (5) [SCAL] (1) $SEV_19 = pip.cor.res.m_flow < (-senTemIn.m_flow_small) ($RES_EVT_552) (6) [SCAL] (1) $SEV_20 = senTemIn.m_flow_small > 0.0 ($RES_EVT_553) (7) [SCAL] (1) $SEV_21 = (-senTemOutW.port_b.m_flow) > senTemOutW.m_flow_small ($RES_EVT_554) (8) [SCAL] (1) $SEV_22 = (-senTemOutW.port_b.m_flow) < (-senTemOutW.m_flow_small) ($RES_EVT_555) (9) [SCAL] (1) $SEV_23 = senTemOutW.m_flow_small > 0.0 ($RES_EVT_556) (10) [ARRY] (1) duc.vol.XiOut_internal = duc.vol.dynBal.XiOut ($RES_SIM_340) (11) [ARRY] (1) duc.vol.mC = duc.vol.dynBal.mCOut ($RES_SIM_342) (12) [ARRY] (1) duc.vol.mXi = duc.vol.dynBal.mXiOut ($RES_SIM_344) (13) [SCAL] (1) duc.cor.res.dp = homotopy(Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(duc.cor.res.m_flow, duc.cor.res.k, duc.cor.res.m_flow_turbulent), (duc.cor.res.m_flow * duc.cor.res.dp_nominal_pos) / duc.cor.res.m_flow_nominal_pos) ($RES_SIM_170) (14) [SCAL] (1) duc.vol.dynBal.ports[2].h_outflow = duc.vol.ports[2].h_outflow ($RES_SIM_346) (15) [ARRY] (1) sin1.ports[1].Xi_outflow = sin1.Xi_in_internal ($RES_SIM_171) (16) [SCAL] (1) duc.vol.dynBal.ports[1].h_outflow = duc.vol.ports[1].h_outflow ($RES_SIM_347) (17) [ARRY] (1) sin1.ports[1].C_outflow = sin1.C_in_internal ($RES_SIM_172) (18) [SCAL] (1) duc.vol.dynBal.ports[2].Xi_outflow[1] = duc.vol.ports[2].Xi_outflow[1] ($RES_SIM_348) (19) [ARRY] (1) sin1.C_in_internal = sin1.C ($RES_SIM_173) (20) [SCAL] (1) duc.vol.dynBal.ports[1].Xi_outflow[1] = duc.vol.ports[1].Xi_outflow[1] ($RES_SIM_349) (21) [ARRY] (1) sin1.Xi_in_internal = sin1.X[1:1] ($RES_SIM_174) (22) [ARRY] (2) sin1.X_in_internal = sin1.X ($RES_SIM_175) (23) [SCAL] (1) sin1.ports[1].h_outflow = sin1.h_internal ($RES_SIM_176) (24) [SCAL] (1) sin1.ports[1].p = sin1.p ($RES_SIM_178) (25) [SCAL] (1) pip.cor.del.v = (0.0010044335697769957 * pip.cor.res.m_flow) / pip.cor.del.A ($RES_SIM_261) (26) [SCAL] (1) $DER.pip.cor.del.x = pip.cor.del.v ($RES_SIM_262) (27) [SCAL] (1) $SEV_27 = duc.cor.res.m_flow > duc.cor.del.m_flow_small ($RES_EVT_560) (28) [SCAL] (1) $SEV_28 = duc.cor.res.m_flow < (-duc.cor.del.m_flow_small) ($RES_EVT_561) (29) [SCAL] (1) $SEV_29 = duc.cor.del.m_flow_small > 0.0 ($RES_EVT_562) (30) [SCAL] (1) $SEV_30 = pip.cor.del.v >= 0.0 ($RES_EVT_563) (31) [SCAL] (1) pip.cor.res.dp = homotopy(Buildings.Fluid.BaseClasses.FlowModels.basicFlowFunction_m_flow(pip.cor.res.m_flow, pip.cor.res.k, pip.cor.res.m_flow_turbulent), (pip.cor.res.m_flow * pip.cor.res.dp_nominal_pos) / pip.cor.res.m_flow_nominal_pos) ($RES_SIM_268) (32) [SCAL] (1) $SEV_31 = pip.cor.timDel.u >= 0.0 ($RES_EVT_564) (33) [SCAL] (1) $SEV_32 = duc.cor.del.v >= 0.0 ($RES_EVT_565) (34) [SCAL] (1) $SEV_33[1] = duc.cor.del.v >= 0.0 ($RES_EVT_566) (35) [SCAL] (1) $SEV_34 = duc.cor.timDel.u >= 0.0 ($RES_EVT_567) (36) [SCAL] (1) duc.vol.dynBal.ports[2].C_outflow[1] = duc.vol.ports[2].C_outflow[1] ($RES_SIM_350) (37) [SCAL] (1) duc.vol.dynBal.ports[1].C_outflow[1] = duc.vol.ports[1].C_outflow[1] ($RES_SIM_351) (38) [FOR-] (2) ($RES_SIM_352) (38) [----] for $i1 in 1:2 loop (38) [----] [SCAL] (1) duc.vol.dynBal.ports[$i1].m_flow - duc.vol.ports[$i1].m_flow = 0.0 ($RES_SIM_353) (38) [----] end for; (39) [ARRY] (2) duc.vol.dynBal.ports.p = duc.vol.ports.p ($RES_SIM_354) (40) [SCAL] (1) -4184.0 * (273.15 - senTemIn.T_a_inflow) = sou.ports[1].h_outflow ($RES_SIM_180) (41) [SCAL] (1) senTemIn.T = smooth(1, if $SEV_18 then senTemIn.T_a_inflow else if $SEV_19 then 273.15 + 2.390057361376673e-4 * (4184.0 * ((-273.15) + pip.cor.heaLos_a.T_b_outflow)) else if $SEV_20 then 0.25 * ((273.15 + 2.390057361376673e-4 * (4184.0 * ((-273.15) + pip.cor.heaLos_a.T_b_outflow))) - senTemIn.T_a_inflow) * ((-3.0) + (pip.cor.res.m_flow / senTemIn.m_flow_small) ^ 2.0) * (pip.cor.res.m_flow / senTemIn.m_flow_small) + 0.5 * (senTemIn.T_a_inflow + (273.15 + 2.390057361376673e-4 * (4184.0 * ((-273.15) + pip.cor.heaLos_a.T_b_outflow)))) else 0.5 * (senTemIn.T_a_inflow + (273.15 + 2.390057361376673e-4 * (4184.0 * ((-273.15) + pip.cor.heaLos_a.T_b_outflow))))) ($RES_SIM_187) (42) [SCAL] (1) sin.ports[1].h_outflow = 4184.0 * ((-273.15) + sin.T) ($RES_SIM_270) (43) [SCAL] (1) sin.ports[1].p = sin.p ($RES_SIM_272) (44) [SCAL] (1) -2.390057361376673e-4 * ((-1.1428595999999999e6) - sou.h_internal) = Tin.offset + (if $TEV_1 then 0.0 else Tin.height) ($RES_SIM_274) (45) [SCAL] (1) senTemOutA.port_b.m_flow + sin1.ports[1].m_flow = 0.0 ($RES_SIM_276) (46) [SCAL] (1) duc.cor.heaLos_b.port_b.Xi_outflow[1] = duc.cor.port_b.Xi_outflow[1] ($RES_SIM_360) (47) [SCAL] (1) duc.cor.heaLos_b.port_b.C_outflow[1] = duc.cor.port_b.C_outflow[1] ($RES_SIM_361) (48) [SCAL] (1) -4184.0 * (273.15 - senTemOutW.T_a_inflow) = pip.ports_b[1].h_outflow ($RES_SIM_190) (49) [SCAL] (1) duc.cor.heaLos_a.port_b.Xi_outflow[1] = duc.cor.port_a.Xi_outflow[1] ($RES_SIM_365) (50) [SCAL] (1) -4184.0 * (273.15 - senTemOutW.T_b_inflow) = sin.ports[1].h_outflow ($RES_SIM_191) (51) [SCAL] (1) duc.cor.heaLos_a.port_b.C_outflow[1] = duc.cor.port_a.C_outflow[1] ($RES_SIM_366) (52) [SCAL] (1) senTemOutW.T = smooth(1, if $SEV_21 then senTemOutW.T_a_inflow else if $SEV_22 then senTemOutW.T_b_inflow else if $SEV_23 then 0.5 * (senTemOutW.T_a_inflow + senTemOutW.T_b_inflow) - 0.25 * (senTemOutW.T_b_inflow - senTemOutW.T_a_inflow) * ((-3.0) + (senTemOutW.port_b.m_flow / (-senTemOutW.m_flow_small)) ^ 2.0) * (senTemOutW.port_b.m_flow / senTemOutW.m_flow_small) else 0.5 * (senTemOutW.T_a_inflow + senTemOutW.T_b_inflow)) ($RES_SIM_197) (53) [SCAL] (1) duc.vol.ports[2].m_flow - duc.ports_b[1].m_flow = 0.0 ($RES_SIM_280) (54) [SCAL] (1) duc.cor.heaLos_a.heatPort.Q_flow + duc.cor.heaLos_b.heatPort.Q_flow = 0.0 ($RES_SIM_285) (55) [SCAL] (1) duc.vol.ports[1].m_flow - duc.cor.res.m_flow = 0.0 ($RES_SIM_288) (56) [SCAL] (1) pip.cor.heaLos_b.port_b.p = pip.vol.ports[1].p ($RES_SIM_377) (57) [SCAL] (1) pip.vol.ports[2].h_outflow = pip.ports_b[1].h_outflow ($RES_SIM_379) (58) [SCAL] (1) senTemOutW.port_b.m_flow + sin.ports[1].m_flow = 0.0 ($RES_SIM_292) (59) [SCAL] (1) pip.vol.ports[2].m_flow - pip.ports_b[1].m_flow = 0.0 ($RES_SIM_296) (60) [SCAL] (1) pip.vol.ports[2].p = pip.ports_b[1].p ($RES_SIM_380) (61) [SCAL] (1) pip.vol.dynBal.ports[2].h_outflow = pip.vol.ports[2].h_outflow ($RES_SIM_387) (62) [SCAL] (1) pip.vol.dynBal.ports[1].h_outflow = pip.vol.ports[1].h_outflow ($RES_SIM_388) (63) [FOR-] (2) ($RES_SIM_389) (63) [----] for $i1 in 1:2 loop (63) [----] [SCAL] (1) pip.vol.dynBal.ports[$i1].m_flow - pip.vol.ports[$i1].m_flow = 0.0 ($RES_SIM_390) (63) [----] end for; (64) [ARRY] (2) pip.vol.dynBal.ports.p = pip.vol.ports.p ($RES_SIM_391) (65) [SCAL] (1) CIn[1].y = CIn[1].offset + (if $TEV_0 then 0.0 else CIn[1].height) ($RES_SIM_21) (66) [FOR-] (2) ($RES_SIM_22) (66) [----] for $i1 in 1:2 loop (66) [----] [SCAL] (1) XiIn[$i1].y = XiIn[$i1].offset + (if $SEV_7[$i1] then 0.0 else XiIn[$i1].height) ($RES_SIM_23) (66) [----] end for; (67) [ARRY] (1) senTemIn1.port_b.C_outflow = {sou1.ports[1].C_outflow[1]} ($RES_SIM_24) (68) [ARRY] (1) senTemIn1.port_a.C_outflow = {duc.port_a.C_outflow[1]} ($RES_SIM_25) (69) [ARRY] (1) senTemIn1.port_b.Xi_outflow = {sou1.ports[1].Xi_outflow[1]} ($RES_SIM_26) (70) [ARRY] (1) senTemIn1.port_a.Xi_outflow = {duc.port_a.Xi_outflow[1]} ($RES_SIM_27) (71) [SCAL] (1) duc.cor.heaLos_a.port_a.h_outflow = sou1.ports[1].h_outflow ($RES_SIM_28) (72) [SCAL] (1) senTemIn1.T = smooth(1, if $SEV_8 then senTemIn1.T_a_inflow else if $SEV_9 then senTemIn1.T_b_inflow else if $SEV_10 then 0.25 * (senTemIn1.T_b_inflow - senTemIn1.T_a_inflow) * ((-3.0) + (duc.cor.res.m_flow / senTemIn1.m_flow_small) ^ 2.0) * (duc.cor.res.m_flow / senTemIn1.m_flow_small) + 0.5 * (senTemIn1.T_a_inflow + senTemIn1.T_b_inflow) else 0.5 * (senTemIn1.T_a_inflow + senTemIn1.T_b_inflow)) ($RES_SIM_35) (73) [SCAL] (1) senTemIn1.T_b_inflow = 273.15 + (senTemIn1.port_a.h_outflow - 2.5010145e6 * senTemIn1.port_a.Xi_outflow[1]) / (1006.0 * (1.0 - senTemIn1.port_a.Xi_outflow[1]) + 1860.0 * senTemIn1.port_a.Xi_outflow[1]) ($RES_SIM_36) (74) [SCAL] (1) senTemIn1.T_a_inflow = 273.15 + (duc.cor.heaLos_a.port_a.h_outflow - 2.5010145e6 * senTemIn1.port_b.Xi_outflow[1]) / (1006.0 * (1.0 - senTemIn1.port_b.Xi_outflow[1]) + 1860.0 * senTemIn1.port_b.Xi_outflow[1]) ($RES_SIM_37) (75) [ARRY] (1) senTemOutA.port_b.C_outflow = {duc.ports_b[1].C_outflow[1]} ($RES_SIM_38) (76) [ARRY] (1) senTemOutA.port_a.C_outflow = {sin1.ports[1].C_outflow[1]} ($RES_SIM_39) (77) [ARRY] (1) senTemOutA.port_b.Xi_outflow = {duc.ports_b[1].Xi_outflow[1]} ($RES_SIM_40) (78) [ARRY] (1) senTemOutA.port_a.Xi_outflow = {sin1.ports[1].Xi_outflow[1]} ($RES_SIM_41) (79) [SCAL] (1) senTemOutA.port_b.h_outflow = duc.ports_b[1].h_outflow ($RES_SIM_42) (80) [SCAL] (1) senTemOutA.port_a.h_outflow = sin1.ports[1].h_outflow ($RES_SIM_43) (81) [SCAL] (1) senTemOutA.T = smooth(1, if $SEV_11 then senTemOutA.T_a_inflow else if $SEV_12 then senTemOutA.T_b_inflow else if $SEV_13 then 0.5 * (senTemOutA.T_a_inflow + senTemOutA.T_b_inflow) - 0.25 * (senTemOutA.T_b_inflow - senTemOutA.T_a_inflow) * ((-3.0) + (senTemOutA.port_b.m_flow / (-senTemOutA.m_flow_small)) ^ 2.0) * (senTemOutA.port_b.m_flow / senTemOutA.m_flow_small) else 0.5 * (senTemOutA.T_a_inflow + senTemOutA.T_b_inflow)) ($RES_SIM_49) (82) [SCAL] (1) senTemOutA.T_b_inflow = 273.15 + (senTemOutA.port_a.h_outflow - 2.5010145e6 * senTemOutA.port_a.Xi_outflow[1]) / (1006.0 * (1.0 - senTemOutA.port_a.Xi_outflow[1]) + 1860.0 * senTemOutA.port_a.Xi_outflow[1]) ($RES_SIM_50) (83) [SCAL] (1) senTemOutA.T_a_inflow = 273.15 + (senTemOutA.port_b.h_outflow - 2.5010145e6 * senTemOutA.port_b.Xi_outflow[1]) / (1006.0 * (1.0 - senTemOutA.port_b.Xi_outflow[1]) + 1860.0 * senTemOutA.port_b.Xi_outflow[1]) ($RES_SIM_51) (84) [ARRY] (1) sou1.ports[1].Xi_outflow = sou1.Xi_in_internal ($RES_SIM_52) (85) [ARRY] (1) sou1.ports[1].C_outflow = sou1.C_in_internal ($RES_SIM_53) (86) [ARRY] (1) sou1.X_in_internal[1:1] = sou1.Xi_in_internal[:] ($RES_SIM_54) (87) [SCAL] (1) sou1.ports[1].h_outflow = sou1.h_internal ($RES_SIM_56) (88) [SCAL] (1) sou1.ports[1].p = sou1.p_in_internal ($RES_SIM_58) (89) [SCAL] (1) duc.vol.dynBal.medium.X[2] = 1.0 - duc.vol.dynBal.medium.X[1] ($RES_SIM_103) (90) [SCAL] (1) duc.vol.dynBal.medium.X[1] = duc.vol.dynBal.medium.Xi[1] ($RES_SIM_104) (91) [ARRY] (2) duc.vol.dynBal.medium.state.X = duc.vol.dynBal.medium.X ($RES_SIM_105) (92) [SCAL] (1) duc.vol.dynBal.medium.state.T = -((-273.15) - duc.vol.dynBal.medium.T_degC) ($RES_SIM_106) (93) [SCAL] (1) duc.vol.dynBal.medium.state.p = 99999.99999999999 * duc.vol.dynBal.medium.p_bar ($RES_SIM_107) (94) [SCAL] (1) pip.cor.res.dp = pip.cor.senMasFlo.port_b.p - pip.cor.heaLos_b.port_a.p ($RES_BND_409) (95) [ARRY] (1) duc.vol.dynBal.mCOut = duc.vol.dynBal.mC ($RES_SIM_64) (96) [ARRY] (1) duc.vol.dynBal.mXiOut = duc.vol.dynBal.mXi ($RES_SIM_66) (97) [FOR-] (2) ($RES_SIM_68) (97) [----] for $i1 in 1:2 loop (97) [----] [SCAL] (1) duc.vol.dynBal.ports[$i1].p = 99999.99999999999 * duc.vol.dynBal.medium.p_bar ($RES_SIM_69) (97) [----] end for; (98) [SCAL] (1) pip.cor.res.v = pip.cor.res.m_flow / (pip.cor.res.ARound * pip.cor.res.rho_default) ($RES_BND_410) (99) [SCAL] (1) duc.vol.dynBal.medium.R = 287.0512249529787 * duc.vol.dynBal.medium.X[2] + 461.5233290850878 * duc.vol.dynBal.medium.X[1] ($RES_SIM_110) (100) [SCAL] (1) -((-84437.5) - duc.vol.dynBal.medium.u) = 1006.0 * ((-273.15) - ((-273.15) - duc.vol.dynBal.medium.T_degC)) * duc.vol.dynBal.medium.X[2] + (2.5010145e6 + 1860.0 * ((-273.15) - ((-273.15) - duc.vol.dynBal.medium.T_degC))) * duc.vol.dynBal.medium.X[1] ($RES_SIM_111) (101) [SCAL] (1) duc.vol.dynBal.medium.MM = 1/(55.508435061791985 * duc.vol.dynBal.medium.X[1] + 34.52428788658843 * duc.vol.dynBal.medium.X[2]) ($RES_SIM_113) (102) [SCAL] (1) duc.cor.timDel.tauRev = max(0.0, time - duc.cor.timDel.time_out_rev) ($RES_SIM_114) (103) [SCAL] (1) pip.vol.p = pip.vol.ports[1].p ($RES_BND_415) (104) [SCAL] (1) duc.cor.timDel.tau = max(0.0, time - duc.cor.timDel.time_out_des) ($RES_SIM_115) (105) [SCAL] (1) $DER.duc.cor.timDel.x = duc.cor.timDel.u ($RES_SIM_117) (106) [SCAL] (1) duc.cor.timDel.u = ((0.3183098861837907 * duc.cor.res.m_flow) / (0.25 * duc.cor.timDel.dh ^ 2.0 * duc.cor.timDel.rho)) / duc.cor.timDel.length ($RES_SIM_118) (107) [ARRY] (1) duc.cor.senMasFlo.port_b.C_outflow = {duc.cor.heaLos_a.port_a.C_outflow[1]} ($RES_SIM_119) (108) [FOR-] (2) ($RES_SIM_70) (108) [----] for $i1 in 1:2 loop (108) [----] [SCAL] (1) duc.vol.dynBal.ports[$i1].h_outflow = -((-84437.5) - duc.vol.dynBal.medium.u) ($RES_SIM_71) (108) [----] end for; (109) [FOR-] (2) ($RES_SIM_72) (109) [----] for $i1 in 1:2 loop (109) [----] [ARRY] (1) duc.vol.dynBal.ports[$i1].Xi_outflow = duc.vol.dynBal.medium.Xi ($RES_SIM_73) (109) [----] end for; (110) [SCAL] (1) duc.cor.del.port_b.C_outflow[1] = $FUN_19[1] ($RES_$AUX_485) (111) [SCAL] (1) sou.ports[1].h_outflow = sou.h_internal ($RES_SIM_201) (112) [SCAL] (1) duc.cor.del.port_a.C_outflow[1] = $FUN_18[1] ($RES_$AUX_484) (113) [FOR-] (2) ($RES_SIM_74) (113) [----] for $i1 in 1:2 loop (113) [----] [ARRY] (1) duc.vol.dynBal.ports[$i1].C_outflow = duc.vol.dynBal.C ($RES_SIM_75) (113) [----] end for; (114) [SCAL] (1) duc.cor.del.port_b.Xi_outflow[1] = $FUN_17[1] ($RES_$AUX_483) (115) [SCAL] (1) sou.ports[1].p = sou.p_in_internal ($RES_SIM_203) (116) [SCAL] (1) duc.cor.del.port_a.Xi_outflow[1] = $FUN_16[1] ($RES_$AUX_482) (117) [ARRY] (1) $DER.duc.vol.dynBal.mC = duc.vol.dynBal.mbC_flow + duc.vol.dynBal.C_flow_internal ($RES_SIM_76) (118) [ARRY] (1) $DER.duc.vol.dynBal.mXi = duc.vol.dynBal.mbXi_flow ($RES_SIM_77) (119) [SCAL] (1) $DER.duc.vol.dynBal.m = duc.vol.dynBal.mb_flow ($RES_SIM_78) (120) [SCAL] (1) $DER.duc.vol.dynBal.U = duc.vol.dynBal.Hb_flow ($RES_SIM_79) (121) [ARRY] (1) duc.cor.senMasFlo.port_a.C_outflow = {duc.cor.res.port_a.C_outflow[1]} ($RES_SIM_120) (122) [ARRY] (1) duc.cor.senMasFlo.port_b.Xi_outflow = {duc.cor.heaLos_a.port_a.Xi_outflow[1]} ($RES_SIM_121) (123) [ARRY] (1) duc.cor.senMasFlo.port_a.Xi_outflow = {duc.cor.res.port_a.Xi_outflow[1]} ($RES_SIM_122) (124) [SCAL] (1) sin1.h_internal = 1006.0 * ((-273.15) + sin1.T) * (1.0 - sin1.X_in_internal[1]) + (2.5010145e6 + 1860.0 * ((-273.15) + sin1.T)) * sin1.X_in_internal[1] ($RES_BND_424) (125) [SCAL] (1) duc.cor.res.dp = duc.cor.senMasFlo.port_b.p - duc.cor.heaLos_b.port_a.p ($RES_BND_426) (126) [SCAL] (1) duc.cor.res.v = duc.cor.res.m_flow / (duc.cor.res.ARound * duc.cor.res.rho_default) ($RES_BND_427) (127) [SCAL] (1) duc.cor.del.V_flow = duc.cor.res.m_flow / smooth(1, if $SEV_27 then 1.1843079200592153e-5 * duc.cor.heaLos_b.port_a.p else if $SEV_28 then 1.1843079200592153e-5 * duc.cor.heaLos_b.port_a.p else if $SEV_29 then 0.25 * (1.1843079200592153e-5 * duc.cor.heaLos_b.port_a.p - 1.1843079200592153e-5 * duc.cor.heaLos_b.port_a.p) * ((-3.0) + (duc.cor.res.m_flow / duc.cor.del.m_flow_small) ^ 2.0) * (duc.cor.res.m_flow / duc.cor.del.m_flow_small) + 0.5 * (1.1843079200592153e-5 * duc.cor.heaLos_b.port_a.p + 1.1843079200592153e-5 * duc.cor.heaLos_b.port_a.p) else 0.5 * (1.1843079200592153e-5 * duc.cor.heaLos_b.port_a.p + 1.1843079200592153e-5 * duc.cor.heaLos_b.port_a.p)) ($RES_BND_428) (128) [ARRY] (1) duc.cor.heaLos_b.port_b.C_outflow = {duc.cor.del.port_b.C_outflow[1]} ($RES_SIM_128) (129) [ARRY] (1) duc.cor.del.Xi_inflow_a = {duc.cor.res.port_b.Xi_outflow[1]} ($RES_BND_429) (130) [ARRY] (1) duc.cor.heaLos_b.port_a.C_outflow = {duc.vol.ports[1].C_outflow[1]} ($RES_SIM_129) (131) [TUPL] (2) (pip.cor.res.port_a.h_outflow, -4184.0 * (273.15 - pip.cor.heaLos_b.T_a_inflow)) = spatialDistribution(-4184.0 * (273.15 - senTemIn.T_a_inflow), pip.cor.heaLos_b.port_a.h_outflow, pip.cor.del.x / pip.cor.del.length, $SEV_30, {0.0, 1.0}, {pip.cor.del.h_ini_in, pip.cor.del.h_ini_out}) ($RES_$AUX_475) (132) [SCAL] (1) duc.vol.dynBal.mbC_flow[1] = $FUN_33 ($RES_SIM_82) (133) [SCAL] (1) $FUN_3 = exp(-pip.cor.timDel.tauRev / pip.cor.heaLos_a.tau_char) ($RES_$AUX_474) (134) [FOR-] (2) ($RES_SIM_211) (134) [----] for $i1 in 1:2 loop (134) [----] [SCAL] (1) pip.vol.dynBal.ports[$i1].p = 99999.99999999999 * pip.vol.dynBal.medium.p_bar ($RES_SIM_212) (134) [----] end for; (135) [SCAL] (1) duc.vol.dynBal.mbXi_flow[1] = $FUN_32 ($RES_SIM_83) (136) [SCAL] (1) $FUN_4 = Buildings.Utilities.Math.Functions.spliceFunction(((273.15 + 2.390057361376673e-4 * pip.cor.res.port_a.h_outflow) - pip.cor.heaLos_a.T_b_outflow) * pip.cor.heaLos_a.cp_default, 0.0, -pip.cor.res.m_flow, 0.001 * pip.cor.heaLos_a.m_flow_nominal) ($RES_$AUX_473) (137) [SCAL] (1) duc.vol.dynBal.ports_mC_flow[2, 1] = $FUN_31 ($RES_SIM_84) (138) [SCAL] (1) $FUN_5 = exp(-pip.cor.timDel.tau / pip.cor.heaLos_b.tau_char) ($RES_$AUX_472) (139) [FOR-] (2) ($RES_SIM_213) (139) [----] for $i1 in 1:2 loop (139) [----] [SCAL] (1) pip.vol.dynBal.ports[$i1].h_outflow = 4184.0 * ((-273.15) - ((-273.15) - pip.vol.dynBal.medium.T_degC)) ($RES_SIM_214) (139) [----] end for; (140) [SCAL] (1) duc.vol.dynBal.ports_mXi_flow[2, 1] = $FUN_30 ($RES_SIM_85) (141) [SCAL] (1) $FUN_6 = Buildings.Utilities.Math.Functions.spliceFunction((pip.cor.heaLos_b.T_a_inflow - pip.cor.heaLos_b.T_b_outflow) * pip.cor.heaLos_b.cp_default, 0.0, pip.cor.res.m_flow, 0.001 * pip.cor.heaLos_b.m_flow_nominal) ($RES_$AUX_471) (142) [SCAL] (1) duc.vol.dynBal.ports_H_flow[2] = $FUN_29 ($RES_SIM_86) (143) [TUPL] (2) (pip.cor.timDel.time_out_rev, pip.cor.timDel.time_out_des) = spatialDistribution(time, time, pip.cor.timDel.x, $SEV_31, {0.0, 1.0}, {pip.cor.timDel.t0 + pip.cor.timDel.t_in_start, pip.cor.timDel.t0 + pip.cor.timDel.t_out_start}) ($RES_$AUX_470) (144) [SCAL] (1) $DER.pip.vol.dynBal.m = pip.vol.dynBal.mb_flow ($RES_SIM_215) (145) [SCAL] (1) duc.vol.dynBal.ports_mC_flow[1, 1] = $FUN_28 ($RES_SIM_87) (146) [SCAL] (1) $DER.pip.vol.dynBal.U = pip.vol.dynBal.Hb_flow ($RES_SIM_216) (147) [SCAL] (1) duc.vol.dynBal.ports_mXi_flow[1, 1] = $FUN_27 ($RES_SIM_88) (148) [SCAL] (1) duc.vol.dynBal.ports_H_flow[1] = $FUN_26 ($RES_SIM_89) (149) [SCAL] (1) pip.vol.dynBal.ports_H_flow[2] = $FUN_10 ($RES_SIM_219) (150) [SCAL] (1) pip.cor.heaLos_a.heatPort.Q_flow + pip.cor.heaLos_b.heatPort.Q_flow = 0.0 ($RES_SIM_301) (151) [SCAL] (1) pip.vol.ports[1].m_flow - pip.cor.res.m_flow = 0.0 ($RES_SIM_304) (152) [ARRY] (1) duc.cor.del.Xi_inflow_b = {duc.cor.heaLos_b.port_a.Xi_outflow[1]} ($RES_BND_430) (153) [ARRY] (1) duc.cor.heaLos_b.port_b.Xi_outflow = {duc.cor.del.port_b.Xi_outflow[1]} ($RES_SIM_130) (154) [ARRY] (1) duc.cor.del.C_inflow_a = {duc.cor.res.port_b.C_outflow[1]} ($RES_BND_431) (155) [ARRY] (1) duc.cor.heaLos_b.port_a.Xi_outflow = {duc.vol.ports[1].Xi_outflow[1]} ($RES_SIM_131) (156) [ARRY] (1) sou1.C_in = CIn.y ($RES_SIM_307) (157) [ARRY] (1) duc.cor.del.C_inflow_b = {duc.cor.heaLos_b.port_a.C_outflow[1]} ($RES_BND_432) (158) [ARRY] (2) sou1.X_in = XiIn.y ($RES_SIM_308) (159) [SCAL] (1) 0.0 = duc.cor.heaLos_b.port_a.p - duc.cor.heaLos_b.port_b.p ($RES_SIM_134) (160) [SCAL] (1) duc.vol.T = 273.15 + (-(2.5010145e6 * duc.vol.Xi[1] + ((-84437.5) - duc.vol.dynBal.medium.u))) / (1006.0 * (1.0 - duc.vol.Xi[1]) + 1860.0 * duc.vol.Xi[1]) ($RES_BND_435) (161) [SCAL] (1) duc.cor.heaLos_b.heatPort.Q_flow = -$FUN_23 * duc.cor.res.m_flow ($RES_SIM_135) (162) [SCAL] (1) duc.vol.p = duc.vol.ports[1].p ($RES_BND_436) (163) [SCAL] (1) duc.cor.heaLos_b.T_b_outflow = duc.cor.heaLos_a.TAmb + (duc.cor.heaLos_b.T_a_inflow - duc.cor.heaLos_a.TAmb) * $FUN_22 ($RES_SIM_136) (164) [ARRY] (1) duc.vol.Xi = duc.vol.XiOut_internal ($RES_BND_437) (165) [SCAL] (1) duc.cor.heaLos_b.T_a_inflow = 273.15 + (duc.cor.del.port_b.h_outflow - 2.5010145e6 * duc.cor.heaLos_b.port_b.Xi_outflow[1]) / (1006.0 * (1.0 - duc.cor.heaLos_b.port_b.Xi_outflow[1]) + 1860.0 * duc.cor.heaLos_b.port_b.Xi_outflow[1]) ($RES_SIM_137) (166) [ARRY] (1) duc.vol.C = duc.vol.COut_internal ($RES_BND_438) (167) [SCAL] (1) duc.cor.heaLos_b.port_b.h_outflow = 1006.0 * ((-273.15) + duc.cor.heaLos_b.T_b_outflow) * (1.0 - duc.cor.heaLos_b.port_b.Xi_outflow[1]) + (2.5010145e6 + 1860.0 * ((-273.15) + duc.cor.heaLos_b.T_b_outflow)) * duc.cor.heaLos_b.port_b.Xi_outflow[1] ($RES_SIM_138) (168) [SCAL] (1) duc.cor.heaLos_b.port_a.h_outflow = duc.vol.ports[1].h_outflow ($RES_SIM_139) (169) [SCAL] (1) $FUN_9 = semiLinear(pip.vol.dynBal.ports[1].m_flow, 4184.0 * ((-273.15) + pip.cor.heaLos_b.T_b_outflow), pip.vol.dynBal.ports[1].h_outflow) ($RES_$AUX_469) (170) [SCAL] (1) $FUN_10 = semiLinear(pip.vol.dynBal.ports[2].m_flow, -4184.0 * (273.15 - senTemOutW.T_b_inflow), pip.vol.dynBal.ports[2].h_outflow) ($RES_$AUX_468) (171) [SCAL] (1) pip.vol.dynBal.mb_flow = sum(pip.vol.dynBal.ports.m_flow) ($RES_$AUX_467) (172) [ARRY] (1) duc.vol.dynBal.COut = duc.vol.dynBal.C ($RES_SIM_90) (173) [SCAL] (1) pip.vol.dynBal.Hb_flow = sum(pip.vol.dynBal.ports_H_flow) ($RES_$AUX_466) (174) [ARRY] (1) duc.vol.dynBal.XiOut = duc.vol.dynBal.medium.Xi ($RES_SIM_91) (175) [SCAL] (1) -sou.m_flow = sum(sou.ports.m_flow) ($RES_$AUX_465) (176) [SCAL] (1) pip.vol.dynBal.ports_H_flow[1] = $FUN_9 ($RES_SIM_220) (177) [TUPL] (2) (duc.cor.senMasFlo.port_a.h_outflow, duc.cor.del.port_b.h_outflow) = spatialDistribution(duc.cor.heaLos_a.port_a.h_outflow, duc.cor.heaLos_b.port_a.h_outflow, duc.cor.del.x / duc.cor.del.length, $SEV_32, {0.0, 1.0}, {duc.cor.del.h_ini_in, duc.cor.del.h_ini_out}) ($RES_$AUX_464) (178) [ARRY] (1) duc.vol.dynBal.mC = duc.vol.dynBal.m * duc.vol.dynBal.C ($RES_SIM_93) (179) [SCAL] (1) pip.vol.dynBal.U = pip.vol.dynBal.m * (4184.0 * ((-273.15) - ((-273.15) - pip.vol.dynBal.medium.T_degC))) ($RES_SIM_222) (180) [SCAL] (1) duc.vol.dynBal.U = duc.vol.dynBal.m * duc.vol.dynBal.medium.u + duc.vol.dynBal.CSen * ((-273.15) - ((-273.15) - duc.vol.dynBal.medium.T_degC)) ($RES_SIM_94) (181) [FOR-] (2) ($RES_$AUX_462) (181) [----] for $i1 in 1:1 loop (181) [----] [TUPL] (2) ($FUN_16[$i1], $FUN_17[$i1]) = spatialDistribution(duc.cor.del.Xi_inflow_a[$i1], duc.cor.del.Xi_inflow_b[$i1], duc.cor.del.x / duc.cor.del.length, $SEV_33[$i1], {0.0, 1.0}, {0.01, 0.01}) ($RES_$AUX_463) (181) [----] end for; (182) [SCAL] (1) pip.vol.dynBal.m = 995.586 * pip.vol.dynBal.fluidVolume ($RES_SIM_223) (183) [ARRY] (1) duc.vol.dynBal.mXi = duc.vol.dynBal.m * duc.vol.dynBal.medium.Xi ($RES_SIM_95) (184) [SCAL] (1) duc.vol.dynBal.m = duc.vol.dynBal.fluidVolume * (1.1843079200592153e-5 * (99999.99999999999 * duc.vol.dynBal.medium.p_bar)) ($RES_SIM_96) (185) [FOR-] (2) ($RES_$AUX_460) (185) [----] for $i1 in 1:1 loop (185) [----] [TUPL] (2) ($FUN_18[$i1], $FUN_19[$i1]) = spatialDistribution(duc.cor.del.C_inflow_a[$i1], duc.cor.del.C_inflow_b[$i1], duc.cor.del.x / duc.cor.del.length, $SEV_33[$i1], {0.0, 1.0}, {0.0, 0.0}) ($RES_$AUX_461) (185) [----] end for; (186) [ARRY] (1) duc.vol.dynBal.C_flow_internal = {0.0} ($RES_SIM_97) (187) [SCAL] (1) pip.vol.dynBal.medium.state.p = 99999.99999999999 * pip.vol.dynBal.medium.p_bar ($RES_SIM_228) (188) [SCAL] (1) pip.vol.dynBal.medium.state.T = -((-273.15) - pip.vol.dynBal.medium.T_degC) ($RES_SIM_229) (189) [SCAL] (1) duc.cor.res.m_flow + sou1.ports[1].m_flow = 0.0 ($RES_SIM_310) (190) [SCAL] (1) sou1.ports[1].p = senTemIn1.port_a.p ($RES_SIM_311) (191) [SCAL] (1) senTemOutA.port_a.p = sin1.ports[1].p ($RES_SIM_312) (192) [SCAL] (1) duc.ports_b[1].m_flow - senTemOutA.port_b.m_flow = 0.0 ($RES_SIM_313) (193) [SCAL] (1) duc.ports_b[1].p = senTemOutA.port_a.p ($RES_SIM_314) (194) [SCAL] (1) pip.cor.res.m_flow + sou.ports[1].m_flow = 0.0 ($RES_SIM_316) (195) [ARRY] (1) duc.cor.heaLos_a.port_b.C_outflow = {duc.cor.senMasFlo.port_a.C_outflow[1]} ($RES_SIM_141) (196) [SCAL] (1) sou.ports[1].p = senTemIn.port_a.p ($RES_SIM_317) (197) [SCAL] (1) sou1.h_internal = 1006.0 * ((-273.15) - 2.390057361376673e-4 * ((-1.1428595999999999e6) - sou.h_internal)) * (1.0 - sou1.X_in_internal[1]) + (2.5010145e6 + 1860.0 * ((-273.15) - 2.390057361376673e-4 * ((-1.1428595999999999e6) - sou.h_internal))) * sou1.X_in_internal[1] ($RES_BND_442) (198) [ARRY] (1) duc.cor.heaLos_a.port_a.C_outflow = {senTemIn1.port_b.C_outflow[1]} ($RES_SIM_142) (199) [SCAL] (1) senTemOutW.port_a.p = sin.ports[1].p ($RES_SIM_318) (200) [ARRY] (1) duc.cor.heaLos_a.port_b.Xi_outflow = {duc.cor.senMasFlo.port_a.Xi_outflow[1]} ($RES_SIM_143) (201) [SCAL] (1) pip.ports_b[1].m_flow - senTemOutW.port_b.m_flow = 0.0 ($RES_SIM_319) (202) [ARRY] (1) duc.cor.heaLos_a.port_a.Xi_outflow = {senTemIn1.port_b.Xi_outflow[1]} ($RES_SIM_144) (203) [SCAL] (1) 0.0 = duc.cor.senMasFlo.port_b.p - senTemIn1.port_a.p ($RES_SIM_147) (204) [SCAL] (1) duc.cor.heaLos_a.heatPort.Q_flow = $FUN_21 * duc.cor.res.m_flow ($RES_SIM_148) (205) [SCAL] (1) duc.cor.heaLos_a.T_b_outflow = duc.cor.heaLos_a.TAmb + (duc.cor.heaLos_a.T_a_inflow - duc.cor.heaLos_a.TAmb) * $FUN_20 ($RES_SIM_149) (206) [SCAL] (1) $FUN_20 = exp(-duc.cor.timDel.tauRev / duc.cor.heaLos_a.tau_char) ($RES_$AUX_459) (207) [SCAL] (1) $FUN_21 = Buildings.Utilities.Math.Functions.spliceFunction((duc.cor.heaLos_a.T_a_inflow - duc.cor.heaLos_a.T_b_outflow) * duc.cor.heaLos_a.cp_default, 0.0, -duc.cor.res.m_flow, 0.001 * duc.cor.heaLos_a.m_flow_nominal) ($RES_$AUX_458) (208) [SCAL] (1) $FUN_22 = exp(-duc.cor.timDel.tau / duc.cor.heaLos_b.tau_char) ($RES_$AUX_457) (209) [SCAL] (1) $FUN_23 = Buildings.Utilities.Math.Functions.spliceFunction((duc.cor.heaLos_b.T_a_inflow - duc.cor.heaLos_b.T_b_outflow) * duc.cor.heaLos_b.cp_default, 0.0, duc.cor.res.m_flow, 0.001 * duc.cor.heaLos_b.m_flow_nominal) ($RES_$AUX_456) (210) [TUPL] (2) (duc.cor.timDel.time_out_rev, duc.cor.timDel.time_out_des) = spatialDistribution(time, time, duc.cor.timDel.x, $SEV_34, {0.0, 1.0}, {duc.cor.timDel.t0 + duc.cor.timDel.t_in_start, duc.cor.timDel.t0 + duc.cor.timDel.t_out_start}) ($RES_$AUX_455) (211) [SCAL] (1) $FUN_26 = semiLinear(duc.vol.dynBal.ports[1].m_flow, duc.cor.heaLos_b.port_b.h_outflow, duc.vol.dynBal.ports[1].h_outflow) ($RES_$AUX_454) (212) [SCAL] (1) $FUN_27 = semiLinear(duc.vol.dynBal.ports[1].m_flow, duc.cor.port_b.Xi_outflow[1], duc.vol.dynBal.ports[1].Xi_outflow[1]) ($RES_$AUX_453) (213) [SCAL] (1) pip.cor.timDel.tauRev = max(0.0, time - pip.cor.timDel.time_out_rev) ($RES_SIM_232) (214) [SCAL] (1) $FUN_28 = semiLinear(duc.vol.dynBal.ports[1].m_flow, duc.cor.port_b.C_outflow[1], duc.vol.dynBal.ports[1].C_outflow[1]) ($RES_$AUX_452) (215) [SCAL] (1) pip.cor.timDel.tau = max(0.0, time - pip.cor.timDel.time_out_des) ($RES_SIM_233) (216) [SCAL] (1) $FUN_29 = semiLinear(duc.vol.dynBal.ports[2].m_flow, senTemOutA.port_a.h_outflow, duc.vol.dynBal.ports[2].h_outflow) ($RES_$AUX_451) (217) [SCAL] (1) $TEV_0 = time < CIn[1].startTime ($RES_EVT_530) (218) [SCAL] (1) $FUN_30 = semiLinear(duc.vol.dynBal.ports[2].m_flow, senTemOutA.port_a.Xi_outflow[1], duc.vol.dynBal.ports[2].Xi_outflow[1]) ($RES_$AUX_450) (219) [SCAL] (1) $DER.pip.cor.timDel.x = pip.cor.timDel.u ($RES_SIM_235) (220) [SCAL] (1) $TEV_1 = time < Tin.startTime ($RES_EVT_531) (221) [SCAL] (1) pip.cor.timDel.u = ((0.3183098861837907 * pip.cor.res.m_flow) / (0.25 * pip.cor.timDel.dh ^ 2.0 * pip.cor.timDel.rho)) / pip.cor.timDel.length ($RES_SIM_236) (222) [FOR-] (2) ($RES_EVT_539) (222) [----] for $i1 in 1:2 loop (222) [----] [SCAL] (1) $SEV_7[$i1] = time < XiIn[$i1].startTime ($RES_EVT_540) (222) [----] end for; (223) [SCAL] (1) pip.ports_b[1].p = senTemOutW.port_a.p ($RES_SIM_320) (224) [ARRY] (1) sou1.C_in = sou1.C_in_internal ($RES_SIM_323) (225) [ARRY] (2) sou1.X_in = sou1.X_in_internal ($RES_SIM_324) (226) [SCAL] (1) duc.cor.heaLos_a.T_a_inflow = 273.15 + (duc.cor.senMasFlo.port_a.h_outflow - 2.5010145e6 * duc.cor.heaLos_a.port_b.Xi_outflow[1]) / (1006.0 * (1.0 - duc.cor.heaLos_a.port_b.Xi_outflow[1]) + 1860.0 * duc.cor.heaLos_a.port_b.Xi_outflow[1]) ($RES_SIM_150) (227) [SCAL] (1) senTemIn1.port_a.h_outflow = 1006.0 * ((-273.15) + duc.cor.heaLos_a.T_b_outflow) * (1.0 - duc.cor.heaLos_a.port_b.Xi_outflow[1]) + (2.5010145e6 + 1860.0 * ((-273.15) + duc.cor.heaLos_a.T_b_outflow)) * duc.cor.heaLos_a.port_b.Xi_outflow[1] ($RES_SIM_151) (228) [SCAL] (1) duc.cor.port_a.Xi_outflow[1] = duc.port_a.Xi_outflow[1] ($RES_SIM_327) (229) [SCAL] (1) duc.cor.port_a.C_outflow[1] = duc.port_a.C_outflow[1] ($RES_SIM_328) (230) [SCAL] (1) duc.cor.del.v = duc.cor.del.V_flow / duc.cor.del.A ($RES_SIM_159) (231) [SCAL] (1) $FUN_31 = semiLinear(duc.vol.dynBal.ports[2].m_flow, senTemOutA.port_a.C_outflow[1], duc.vol.dynBal.ports[2].C_outflow[1]) ($RES_$AUX_449) (232) [SCAL] (1) $FUN_32 = sum(duc.vol.dynBal.ports_mXi_flow[:, 1]) ($RES_$AUX_448) (233) [SCAL] (1) $FUN_33 = sum(duc.vol.dynBal.ports_mC_flow[:, 1]) ($RES_$AUX_447) (234) [SCAL] (1) duc.vol.dynBal.mb_flow = sum(duc.vol.dynBal.ports.m_flow) ($RES_$AUX_446) (235) [SCAL] (1) duc.vol.dynBal.Hb_flow = sum(duc.vol.dynBal.ports_H_flow) ($RES_$AUX_445) (236) [SCAL] (1) -sou1.m_flow = sum(sou1.ports.m_flow) ($RES_$AUX_444) (237) [SCAL] (1) $FUN_37 = sum(duc.vol.Xi) ($RES_$AUX_443) (238) [SCAL] (1) 0.0 = pip.cor.heaLos_b.port_a.p - pip.cor.heaLos_b.port_b.p ($RES_SIM_244) (239) [SCAL] (1) pip.cor.heaLos_b.heatPort.Q_flow = -$FUN_6 * pip.cor.res.m_flow ($RES_SIM_245) (240) [SCAL] (1) $SEV_8 = duc.cor.res.m_flow > senTemIn1.m_flow_small ($RES_EVT_541) (241) [SCAL] (1) pip.cor.heaLos_b.T_b_outflow = pip.cor.heaLos_a.TAmb + (pip.cor.heaLos_b.T_a_inflow - pip.cor.heaLos_a.TAmb) * $FUN_5 ($RES_SIM_246) (242) [SCAL] (1) $SEV_9 = duc.cor.res.m_flow < (-senTemIn1.m_flow_small) ($RES_EVT_542) (243) [SCAL] (1) $SEV_10 = senTemIn1.m_flow_small > 0.0 ($RES_EVT_543) (244) [SCAL] (1) $SEV_11 = (-senTemOutA.port_b.m_flow) > senTemOutA.m_flow_small ($RES_EVT_544) (245) [SCAL] (1) pip.cor.heaLos_b.port_a.h_outflow = pip.vol.ports[1].h_outflow ($RES_SIM_249) (246) [SCAL] (1) $SEV_12 = (-senTemOutA.port_b.m_flow) < (-senTemOutA.m_flow_small) ($RES_EVT_545) (247) [SCAL] (1) $SEV_13 = senTemOutA.m_flow_small > 0.0 ($RES_EVT_546) (248) [SCAL] (1) duc.cor.heaLos_b.port_b.p = duc.vol.ports[1].p ($RES_SIM_330) (249) [SCAL] (1) duc.vol.ports[2].h_outflow = duc.ports_b[1].h_outflow ($RES_SIM_332) (250) [SCAL] (1) duc.vol.ports[2].Xi_outflow[1] = duc.ports_b[1].Xi_outflow[1] ($RES_SIM_333) (251) [SCAL] (1) duc.vol.ports[2].C_outflow[1] = duc.ports_b[1].C_outflow[1] ($RES_SIM_334) (252) [SCAL] (1) duc.vol.ports[2].p = duc.ports_b[1].p ($RES_SIM_335) (253) [SCAL] (1) $DER.duc.cor.del.x = duc.cor.del.v ($RES_SIM_160) (254) [ARRY] (1) duc.cor.res.port_b.C_outflow = {duc.cor.senMasFlo.port_b.C_outflow[1]} ($RES_SIM_163) (255) [ARRY] (1) duc.vol.COut_internal = duc.vol.dynBal.COut ($RES_SIM_339) (256) [ARRY] (1) duc.cor.res.port_a.C_outflow = {duc.cor.del.port_a.C_outflow[1]} ($RES_SIM_164) (257) [ARRY] (1) duc.cor.res.port_b.Xi_outflow = {duc.cor.senMasFlo.port_b.Xi_outflow[1]} ($RES_SIM_165) (258) [ARRY] (1) duc.cor.res.port_a.Xi_outflow = {duc.cor.del.port_a.Xi_outflow[1]} ($RES_SIM_166) (259) [SCAL] (1) 0.0 = pip.cor.senMasFlo.port_b.p - senTemIn.port_a.p ($RES_SIM_253)