Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SiemensPower_OMCtest_SiemensPower.Components.Pipes.Tests.tube_ownMedia_test.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/SiemensPower OMCtest/package.mo", uses=false) Using package SiemensPower with version OMCtest (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SiemensPower OMCtest/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(SiemensPower.Components.Pipes.Tests.tube_ownMedia_test,tolerance=1e-05,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="SiemensPower_OMCtest_SiemensPower.Components.Pipes.Tests.tube_ownMedia_test") translateModel(SiemensPower.Components.Pipes.Tests.tube_ownMedia_test,tolerance=1e-05,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="SiemensPower_OMCtest_SiemensPower.Components.Pipes.Tests.tube_ownMedia_test") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 107 kB / 16.42 MB, free: 6.512 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.001108/0.001108, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.221/1.221, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SiemensPower OMCtest/package.mo): time 0.02156/0.02156, allocations: 4.037 MB / 274.6 MB, free: 8.012 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.235e-05, allocations: 3.047 kB / 381.8 MB, free: 49.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(SiemensPower.Components.Pipes.Tests.tube_ownMedia_test): time 0.03936/0.0394, allocations: 56.95 MB / 438.7 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02279/0.06222, allocations: 21.25 MB / 460 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001499/0.06375, allocations: 35.81 kB / 460 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001954/0.06572, allocations: 0.788 MB / 460.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01517/0.0809, allocations: 5.631 MB / 466.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01135/0.09227, allocations: 4.294 MB / 470.7 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007441/0.09973, allocations: 5.849 MB / 476.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00386/0.1036, allocations: 4.164 MB / 480.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003999/0.1076, allocations: 2.548 MB / 483.3 MB, free: 8.383 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002643/0.1103, allocations: 2.162 MB / 485.4 MB, free: 6.215 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005625/0.1109, allocations: 420 kB / 485.8 MB, free: 5.805 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01198/0.1228, allocations: 6.919 MB / 492.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of combineBinaries: time 0.004173/0.1271, allocations: 4.748 MB / 497.5 MB, free: 10.09 MB / 382.1 MB Notification: Performance of replaceArrayConstructors: time 0.001704/0.1288, allocations: 2.489 MB / 0.4883 GB, free: 7.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007146/0.1295, allocations: 415 kB / 0.4887 GB, free: 7.172 MB / 382.1 MB Notification: Performance of FrontEnd: time 0.0003531/0.1299, allocations: 43.88 kB / 0.4887 GB, free: 7.129 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1789 (595) * Number of variables: 1789 (317) Notification: Performance of Bindings: time 0.01307/0.143, allocations: 15.08 MB / 0.5035 GB, free: 7.703 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.001463/0.1444, allocations: 1.449 MB / 0.5049 GB, free: 6.262 MB / 398.1 MB Notification: Performance of Early Inline: time 0.011/0.1554, allocations: 11.51 MB / 0.5161 GB, free: 10.65 MB / 414.1 MB Notification: Performance of simplify1: time 0.0008021/0.1563, allocations: 0.6087 MB / 0.5167 GB, free: 10.04 MB / 414.1 MB Notification: Performance of Alias: time 0.009342/0.1656, allocations: 8.146 MB / 0.5247 GB, free: 1.379 MB / 414.1 MB Notification: Performance of simplify2: time 0.0008419/0.1665, allocations: 0.5932 MB / 0.5252 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of Events: time 0.1957/0.3622, allocations: 1.753 MB / 0.527 GB, free: 51.62 MB / 414.1 MB Notification: Performance of Detect States: time 0.00243/0.3647, allocations: 2.352 MB / 0.5292 GB, free: 51.52 MB / 414.1 MB Notification: Performance of Partitioning: time 0.003754/0.3685, allocations: 3.683 MB / 0.5328 GB, free: 50.73 MB / 414.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency EVA.alpha could not be divided by the body size 20 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (20) EVA.qMetalFluid = EVA.alpha * (EVA.TWall - EVA.T) ($RES_SIM_232) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (172/1224) ***************************** (1) [ALGB] (20) Real[20] prescribedHeatFlow.portsOut.T (start = {288.15 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, nominal = {300.0 for $i1 in 1:20}) (2) [DISC] (1) Boolean $SEV_29 (3) [DISC] (1) Boolean $SEV_28 (4) [ALGB] (20) protected inner Real[20] EVA.TWall (start = {500.0 for $i1 in 1:20}, min = {273.15 for $i1 in 1:20}, max = {2273.15 for $i1 in 1:20}, nominal = {500.0 for $i1 in 1:20}) (5) [ALGB] (1) Real timeTable.C1signal.u (6) [DISC] (1) Boolean $SEV_26 (7) [DISC] (1) Boolean $SEV_25 (8) [DISC] (1) Boolean $SEV_24 (9) [ALGB] (1) stream Real ECO.portOut.h_outflow (start = ECO.hOut_start, min = -1e10, max = 1e10, nominal = 5e5) (10) [ALGB] (1) Real watersink_ph.water.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (11) [ALGB] (1) Real ECO.dAverage (start = sum(ECO.rho0) / 10.0, min = 0.0, max = 1e5, nominal = 500.0) (12) [ALGB] (1) stream Real ECO.portIn.h_outflow (start = ECO.hIn_start, min = -1e10, max = 1e10, nominal = 5e5) (13) [DISC] (1) Boolean $TEV_2 (14) [DISC] (1) Boolean $TEV_1 (15) [ALGB] (10) flow Real[10] ECO.wall.port_ext.Q_flow (16) [ALGB] (10) flow Real[10] ECO.gasSide.Q_flow (17) [DER-] (1) Real $DER.EVA.m_flow (18) [ALGB] (1) Real watersink_ph.water.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (19) [ALGB] (20) flow Real[20] prescribedHeatFlow.portsOut.Q_flow (20) [ALGB] (1) Real EVA.hIn (start = EVA.hIn_start, min = -1e10, max = 1e10, nominal = 5e5) (21) [ALGB] (1) Real watersink_ph.water.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (22) [DISC] (1) protected discrete Real timeTable.originalTable.nextEvent (fixed = true, start = 0.0) (23) [ALGB] (3) Real[3] EVA.wall.layer.Am (24) [DISC] (18) Boolean[18] $SEV_31[$i1] (25) [DER-] (1) Real $DER.ECO.p (26) [DER-] (1) Real $DER.watersink_ph.water.p_bar (27) [DISC] (1) protected discrete Real timeTable.originalTable.nextEventScaled (fixed = true, start = 0.0) (28) [ALGB] (10) Real[10] ECO.heatport.port.T (start = {288.15 for $i1 in 1:10}, min = {0.0 for $i1 in 1:10}, nominal = {300.0 for $i1 in 1:10}) (29) [DER-] (10) Real[10] $DER.ECO.h (30) [ALGB] (1) Real watersink_ph.water.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (31) [ALGB] (1) stream Real EVA.portIn.h_outflow (start = EVA.hIn_start, min = -1e10, max = 1e10, nominal = 5e5) (32) [ALGB] (10) flow Real[10] ECO.wall.port_int.Q_flow (33) [ALGB] (1) Real EVA.dphyd (start = (sum(EVA.rho0) * 9.80665 * EVA.geoPipe.H) / 20.0, min = 611.657, max = 1e8, nominal = 1e6) (34) [ALGB] (20) Real[20] EVA.heatport.port.T (start = {288.15 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, nominal = {300.0 for $i1 in 1:20}) (35) [ALGB] (10) protected inner Real[10] ECO.TWall (start = {500.0 for $i1 in 1:10}, min = {273.15 for $i1 in 1:10}, max = {2273.15 for $i1 in 1:10}, nominal = {500.0 for $i1 in 1:10}) (36) [ALGB] (10) flow Real[10] prescribedHeatFlow1.portsOut.Q_flow (37) [ALGB] (1) Real ECO.zeta (38) [ALGB] (1) Real ECO.dp (start = ECO.pIn_start - ECO.pOut_start) (39) [ALGB] (1) Real watersource_mh.h_port_actual (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (40) [ALGB] (1) Real ECO.hOut (start = ECO.hOut_start, min = -1e10, max = 1e10, nominal = 5e5) (41) [ALGB] (1) Real EVA.alpha (42) [ALGB] (1) Real watersink_ph.hPortActual (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (43) [ALGB] (10) Real[10] ECO.vol (min = {0.0 for $i1 in 1:10}) (44) [ALGB] (3) Real[3] $FUN_9 (45) [DER-] (60) Real[3, 20] $DER.EVA.wall.layer.T (46) [ALGB] (20) flow Real[20] EVA.gasSide.Q_flow (47) [ALGB] (1) flow Real watersink_ph.port.m_flow (min = -1e5, max = 1e5) (48) [ALGB] (3) Real[3] $FUN_8 (49) [ALGB] (1) Real $FUN_7 (50) [ALGB] (1) Real $FUN_6 (51) [DISC] (1) Integer $FUN_29 (52) [DISC] (1) Integer watersink_ph.water.state.phase (min = 0, max = 2) (53) [ALGB] (1) Real $FUN_5 (54) [ALGB] (1) Real $FUN_28 (55) [ALGB] (20) Real[20] EVA.d (start = EVA.rho0, min = {0.0 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}, nominal = {500.0 for $i1 in 1:20}) (56) [ALGB] (1) Real $FUN_27 (57) [ALGB] (1) Real $FUN_26 (58) [ALGB] (1) protected Real EVA.state_from_b.p (start = EVA.pOut_start, min = 611.657, max = 1e8, nominal = 1e6) (59) [ALGB] (3) Real[3] $FUN_2 (60) [DISC] (1) Integer $FUN_25 (61) [ALGB] (3) Real[3] $FUN_1 (62) [ALGB] (1) Real $FUN_24 (63) [ALGB] (1) Real $FUN_23 (64) [DISC] (1) protected discrete Real timeTable1.originalTable.nextEvent (fixed = true, start = 0.0) (65) [ALGB] (1) Real $FUN_22 (66) [ALGB] (1) Real watersource_mh.medium.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (67) [ALGB] (30) Real[3, 10] ECO.wall.layer.port_ext.T (start = {ECO.wall.layer[$layer1].T_start[$port_ext1] for $layer1 in 1:10, $port_ext1 in 1:3}, min = {0.0 for $i1 in 1:3, $i2 in 1:10}, nominal = {300.0 for $i1 in 1:3, $i2 in 1:10}) (68) [ALGB] (3) Real[3] ECO.wall.layer.rext (69) [DER-] (1) Real $DER.prescribedHeatFlow.Q_flow (70) [ALGB] (1) protected Real EVA.state_from_b.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (71) [ALGB] (3) Real[3] EVA.wall.layer.Tube_mass (min = {0.0 for $i1 in 1:3}) (72) [ALGB] (20) Real[20] EVA.T (start = EVA.T_start, min = {273.15 for $i1 in 1:20}, max = {2273.15 for $i1 in 1:20}, nominal = {500.0 for $i1 in 1:20}) (73) [ALGB] (30) flow Real[3, 10] ECO.wall.layer.port_ext.Q_flow (74) [ALGB] (3) Real[3] EVA.wall.layer.rext (75) [DISC] (1) Integer watersink_ph.water.phase (fixed = false, start = 1, min = 0, max = 2) (76) [DISC] (1) protected discrete Real timeTable1.originalTable.nextEventScaled (fixed = true, start = 0.0) (77) [ALGB] (20) flow Real[20] EVA.heatport.port.Q_flow (78) [ALGB] (10) Real[10] ECO.gasSide.T (start = {ECO.T_wall_start[$gasSide1] for $gasSide1 in 1:10}, min = {0.0 for $i1 in 1:10}, nominal = {300.0 for $i1 in 1:10}) (79) [DISC] (1) Integer watersource_mh.medium.state.phase (min = 0, max = 2) (80) [ALGB] (3) Real[3] EVA.wall.layer.HeatCap (81) [DISC] (1) protected Integer timeTable1.originalTable.last (start = 1) (82) [ALGB] (1) protected Real EVA.state_from_b.T (start = EVA.TOut_start, min = 273.15, max = 2273.15, nominal = 500.0) (83) [ALGB] (1) stream Real EVA.portOut.h_outflow (start = EVA.hOut_start, min = -1e10, max = 1e10, nominal = 5e5) (84) [DISC] (1) protected Real timeTable.originalTable.a (85) [DISC] (1) protected Real timeTable.originalTable.b (86) [ALGB] (1) Real $FUN_14 (87) [ALGB] (1) Real $FUN_13 (88) [ALGB] (1) Real $FUN_12 (89) [ALGB] (1) Real ECO.dpfric (start = (0.5 * ECO.m_flow_start * ECO.geoPipe.L * 0.015 * (1.0 / ECO.rho0[10] + 1.0 / ECO.rho0[1])) / (ECO.geoPipe.Nt * (ECO.geoPipe.d_out - ECO.geoPipe.s * 2.0) ^ 5.0), min = 611.657, max = 1e8, nominal = 1e6) (90) [DER-] (1) Real $DER.ECO.m_flow (91) [ALGB] (1) Real ECO.portOut.p (start = ECO.pOut_start, min = 611.657, max = 1e8, nominal = 1e6) (92) [ALGB] (1) Real ECO.dphyd (start = (sum(ECO.rho0) * 9.80665 * ECO.geoPipe.H) / 10.0, min = 611.657, max = 1e8, nominal = 1e6) (93) [ALGB] (20) Real[20] EVA.gasSide.T (start = {EVA.T_wall_start[$gasSide1] for $gasSide1 in 1:20}, min = {0.0 for $i1 in 1:20}, nominal = {300.0 for $i1 in 1:20}) (94) [DISC] (1) Integer watersource_mh.medium.phase (fixed = false, start = 1, min = 0, max = 2) (95) [ALGB] (10) Real[10] prescribedHeatFlow1.portsOut.T (start = {288.15 for $i1 in 1:10}, min = {0.0 for $i1 in 1:10}, nominal = {300.0 for $i1 in 1:10}) (96) [ALGB] (1) Real ECO.hIn (start = ECO.hIn_start, min = -1e10, max = 1e10, nominal = 5e5) (97) [ALGB] (10) protected Real[10] ECO.drdp (98) [ALGB] (60) Real[3, 20] EVA.wall.layer.port_ext.T (start = {EVA.wall.layer[$layer1].T_start[$port_ext1] for $layer1 in 1:20, $port_ext1 in 1:3}, min = {0.0 for $i1 in 1:3, $i2 in 1:20}, nominal = {300.0 for $i1 in 1:3, $i2 in 1:20}) (99) [ALGB] (10) Real[10] ECO.wall.port_ext.T (start = {288.15 for $i1 in 1:10}, min = {0.0 for $i1 in 1:10}, nominal = {300.0 for $i1 in 1:10}) (100) [ALGB] (30) flow Real[3, 10] ECO.wall.layer.port_int.Q_flow (101) [ALGB] (10) protected Real[10] ECO.drdh (102) [ALGB] (3) Real[3] ECO.wall.layer.Am (103) [ALGB] (1) Real ECO.alpha (104) [ALGB] (20) Real[20] EVA.wall.port_ext.T (start = {288.15 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, nominal = {300.0 for $i1 in 1:20}) (105) [ALGB] (1) protected Real ECO.state_from_b.p (start = ECO.pOut_start, min = 611.657, max = 1e8, nominal = 1e6) (106) [ALGB] (1) protected Real EVA.state_from_a.p (start = EVA.pIn_start, min = 611.657, max = 1e8, nominal = 1e6) (107) [ALGB] (1) Real ECO.volAverage (start = 1.0 / SiemensPower.Components.Pipes.Tests.tube_ownMedia_test.ECO.Medium.density_phX(0.5 * (ECO.pOut_start + ECO.pIn_start), 0.5 * (ECO.hOut_start + ECO.hIn_start), ECO.XIn_start, 0), min = 0.0) (108) [ALGB] (1) Real timeTable1.C1signal.u (109) [ALGB] (1) protected Real ECO.state_from_b.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (110) [ALGB] (1) protected Real EVA.state_from_a.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (111) [ALGB] (1) protected Real ECO.state_from_b.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (112) [ALGB] (1) protected Real EVA.state_from_a.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (113) [ALGB] (10) flow Real[10] ECO.heatport.port.Q_flow (114) [DER-] (10) Real[10] $DER.ECO.qMetalFluidDelayed (115) [ALGB] (1) Real watersource_mh.medium.state.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (116) [DISC] (1) protected Real timeTable1.originalTable.b (117) [DISC] (1) protected Real timeTable1.originalTable.a (118) [ALGB] (1) Real watersource_mh.medium.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (119) [ALGB] (3) Real[3] ECO.wall.layer.Tube_mass (min = {0.0 for $i1 in 1:3}) (120) [DER-] (1) Real $DER.EVA.p (121) [ALGB] (1) Real watersource_mh.medium.sat.Tsat (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (122) [ALGB] (1) protected Real ECO.state_from_b.T (start = ECO.TOut_start, min = 273.15, max = 2273.15, nominal = 500.0) (123) [ALGB] (1) protected Real EVA.state_from_a.T (start = EVA.TIn_start, min = 273.15, max = 2273.15, nominal = 500.0) (124) [ALGB] (3) Real[3] ECO.wall.layer.HeatCap (125) [ALGB] (3) Real[3] ECO.wall.layer.rint (126) [DER-] (20) Real[20] $DER.EVA.h (127) [ALGB] (1) Real EVA.zeta (128) [ALGB] (1) Real watersource_mh.medium.state.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (129) [ALGB] (60) flow Real[3, 20] EVA.wall.layer.port_int.Q_flow (130) [ALGB] (1) Real EVA.hOut (start = EVA.hOut_start, min = -1e10, max = 1e10, nominal = 5e5) (131) [ALGB] (1) Real watersource_mh.medium.u (min = -1e8, max = 1e8, nominal = 1e6) (132) [ALGB] (3) Real[3] EVA.wall.layer.rint (133) [DISC] (8) Boolean[8] $SEV_27[$i1] (134) [ALGB] (20) protected Real[20] EVA.qMetalFluid (135) [ALGB] (1) Real watersource_mh.medium.state.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (136) [DISC] (1) protected Integer timeTable.originalTable.last (start = 1) (137) [ALGB] (30) Real[3, 10] ECO.wall.layer.port_int.T (start = {ECO.wall.layer[$layer1].T_start[$port_int1] for $layer1 in 1:10, $port_int1 in 1:3}, min = {0.0 for $i1 in 1:3, $i2 in 1:10}, nominal = {300.0 for $i1 in 1:3, $i2 in 1:10}) (138) [ALGB] (1) Real watersink_ph.water.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - watersink_ph.water.T_degC)) (139) [ALGB] (1) protected Real ECO.state_from_a.p (start = ECO.pIn_start, min = 611.657, max = 1e8, nominal = 1e6) (140) [ALGB] (20) flow Real[20] EVA.wall.port_int.Q_flow (141) [ALGB] (10) Real[10] ECO.d (start = ECO.rho0, min = {0.0 for $i1 in 1:10}, max = {1e5 for $i1 in 1:10}, nominal = {500.0 for $i1 in 1:10}) (142) [ALGB] (1) flow Real EVA.portIn.m_flow (start = EVA.m_flow_start, min = -1e5, max = 1e5) (143) [ALGB] (20) Real[20] EVA.qMetalFluidDelayed (144) [ALGB] (1) Real EVA.dAverage (start = sum(EVA.rho0) / 20.0, min = 0.0, max = 1e5, nominal = 500.0) (145) [ALGB] (1) Real watersink_ph.water.u (min = -1e8, max = 1e8, nominal = 1e6) (146) [ALGB] (60) flow Real[3, 20] EVA.wall.layer.port_ext.Q_flow (147) [ALGB] (1) protected Real ECO.state_from_a.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (148) [DER-] (30) Real[3, 10] $DER.ECO.wall.layer.T (149) [ALGB] (1) Real EVA.dp (start = EVA.pIn_start - EVA.pOut_start) (150) [ALGB] (10) Real[10] ECO.heatport.Q_flow (151) [DISC] (1) Boolean $SEV_39 (152) [ALGB] (1) Real EVA.dpfric (start = (0.5 * EVA.m_flow_start * EVA.geoPipe.L * 0.015 * (1.0 / EVA.rho0[20] + 1.0 / EVA.rho0[1])) / (EVA.geoPipe.Nt * (EVA.geoPipe.d_out - EVA.geoPipe.s * 2.0) ^ 5.0), min = 611.657, max = 1e8, nominal = 1e6) (153) [DISC] (1) Boolean $SEV_36 (154) [DISC] (1) Boolean $SEV_35 (155) [ALGB] (10) Real[10] ECO.T (start = ECO.T_start, min = {273.15 for $i1 in 1:10}, max = {2273.15 for $i1 in 1:10}, nominal = {500.0 for $i1 in 1:10}) (156) [ALGB] (1) Real watersink_ph.water.sat.psat (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (157) [DISC] (1) Boolean $SEV_32 (158) [ALGB] (1) Real watersink_ph.water.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0, StateSelect = default) (159) [ALGB] (1) Real EVA.volAverage (start = 1.0 / SiemensPower.Components.Pipes.Tests.tube_ownMedia_test.EVA.Medium.density_phX(0.5 * (EVA.pOut_start + EVA.pIn_start), 0.5 * (EVA.hOut_start + EVA.hIn_start), EVA.XIn_start, 0), min = 0.0) (160) [ALGB] (20) Real[20] EVA.heatport.Q_flow (161) [DISC] (1) Boolean $SEV_30 (162) [ALGB] (1) protected Real ECO.state_from_a.T (start = ECO.TIn_start, min = 273.15, max = 2273.15, nominal = 500.0) (163) [ALGB] (10) protected Real[10] ECO.qMetalFluid (164) [ALGB] (60) Real[3, 20] EVA.wall.layer.port_int.T (start = {EVA.wall.layer[$layer1].T_start[$port_int1] for $layer1 in 1:20, $port_int1 in 1:3}, min = {0.0 for $i1 in 1:3, $i2 in 1:20}, nominal = {300.0 for $i1 in 1:3, $i2 in 1:20}) (165) [ALGB] (20) Real[20] EVA.vol (min = {0.0 for $i1 in 1:20}) (166) [ALGB] (20) protected Real[20] EVA.drdp (167) [ALGB] (10) Real[10] ECO.wall.port_int.T (start = {288.15 for $i1 in 1:10}, min = {0.0 for $i1 in 1:10}, nominal = {300.0 for $i1 in 1:10}) (168) [ALGB] (20) flow Real[20] EVA.wall.port_ext.Q_flow (169) [ALGB] (20) protected Real[20] EVA.drdh (170) [ALGB] (20) Real[20] EVA.wall.port_int.T (start = {288.15 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, nominal = {300.0 for $i1 in 1:20}) (171) [ALGB] (1) Real watersource_mh.medium.p_bar = Modelica.SIunits.Conversions.to_bar(99999.99999999999 * watersource_mh.medium.p_bar) (172) [ALGB] (1) Real watersource_mh.medium.T_degC = Modelica.SIunits.Conversions.to_degC(-((-273.15) - watersource_mh.medium.T_degC)) System Equations (394/1224) ***************************** (1) [SCAL] (1) EVA.wall.layer[3].port_ext[9].Q_flow - EVA.wall.port_ext[9].Q_flow = 0.0 ($RES_SIM_429) (2) [SCAL] (1) EVA.dphyd = 9.80665 * EVA.geoPipe.H * EVA.dAverage ($RES_SIM_254) (3) [SCAL] (1) EVA.dpfric = (0.5 * EVA.geoPipe.L * EVA.volAverage * ($FUN_6 + EVA.m_flowLaminar) * EVA.m_flow * EVA.zeta) / (EVA.di * EVA.A ^ 2.0) ($RES_SIM_255) (4) [SCAL] (1) EVA.zeta = (1.14 - 2.0 * $FUN_5) ^ (-2.0) + (EVA.di * EVA.geoPipe.zeta_add) / EVA.geoPipe.L ($RES_SIM_256) (5) [SCAL] (1) EVA.m_flow = ((1.0 - EVA.hydM) * watersink_ph.port.m_flow + EVA.hydM * EVA.portIn.m_flow) / EVA.geoPipe.Nt ($RES_SIM_257) (6) [FOR-] (10) ($RES_SIM_510) (6) [----] for $i1 in 1:10 loop (6) [----] [SCAL] (1) prescribedHeatFlow1.portsOut[$i1].Q_flow + ECO.gasSide[$i1].Q_flow = 0.0 ($RES_SIM_511) (6) [----] end for; (7) [SCAL] (1) EVA.p = EVA.hydP * ECO.portOut.p + (1.0 - EVA.hydP) * (99999.99999999999 * watersink_ph.water.p_bar) ($RES_SIM_259) (8) [ARRY] (10) prescribedHeatFlow1.portsOut.T = ECO.gasSide.T ($RES_SIM_512) (9) [FOR-] (20) ($RES_SIM_516) (9) [----] for $i1 in 1:20 loop (9) [----] [SCAL] (1) prescribedHeatFlow.portsOut[$i1].Q_flow + EVA.gasSide[$i1].Q_flow = 0.0 ($RES_SIM_517) (9) [----] end for; (10) [ARRY] (20) prescribedHeatFlow.portsOut.T = EVA.gasSide.T ($RES_SIM_518) (11) [FOR-] (10) ($RES_SIM_171) (11) [----] for $i1 in 1:10 loop (11) [----] [SCAL] (1) ECO.drdh[$i1] = SiemensPower.Media.TTSE.Utilities.rho_ph_dh(ECO.p, ECO.h[$i1], 0) ($RES_SIM_172) (11) [----] end for; (12) [SCAL] (1) $SEV_24 = (-EVA.portIn.m_flow) >= 0.0 ($RES_EVT_817) (13) [SCAL] (1) $SEV_25 = watersource_mh.m_flow_start >= 0.0 ($RES_EVT_818) (14) [-IF-] (1)if $SEV_26 then (14) [----] [SCAL] (1) $DER.ECO.h[10] + ((EVA.portIn.h_outflow - ECO.h[10]) * ECO.m_flow) / (ECO.dz * ECO.d[10] * ECO.A) = (ECO.qMetalFluidDelayed[10] * 4.0) / (ECO.di * ECO.d[10]) + $DER.ECO.p / ECO.d[10] ($RES_SIM_174) (14) [----] else (14) [----] [SCAL] (1) $DER.ECO.h[10] + ((ECO.h[10] - ECO.h[9]) * ECO.m_flow) / (ECO.dz * ECO.d[10] * ECO.A) = (ECO.qMetalFluidDelayed[10] * 4.0) / (ECO.di * ECO.d[10]) + $DER.ECO.p / ECO.d[10] ($RES_SIM_175) (14) [----] end if; (15) [SCAL] (1) $SEV_26 = ECO.m_flow < 0.0 ($RES_EVT_819) (16) [SCAL] (1) ECO.wall.layer[1].port_ext[7].T = ECO.wall.layer[2].port_int[7].T ($RES_SIM_600) (17) [SCAL] (1) ECO.wall.layer[1].port_ext[6].T = ECO.wall.layer[2].port_int[6].T ($RES_SIM_601) (18) [SCAL] (1) ECO.wall.layer[1].port_ext[5].T = ECO.wall.layer[2].port_int[5].T ($RES_SIM_602) (19) [FOR-] (8) ($RES_SIM_176) (19) [----] for $i1 in 2:9 loop (19) [----] [-IF-] (1)if $SEV_27[$i1] then (19) [----] [----] [SCAL] (1) $DER.ECO.h[$i1] + ((ECO.h[$i1 + 1] - ECO.h[$i1]) * ECO.m_flow) / (ECO.dz * ECO.d[$i1] * ECO.A) = (ECO.qMetalFluidDelayed[$i1] * 4.0) / (ECO.di * ECO.d[$i1]) + $DER.ECO.p / ECO.d[$i1] ($RES_SIM_178) (19) [----] [----] else (19) [----] [----] [SCAL] (1) $DER.ECO.h[$i1] + ((ECO.h[$i1] - ECO.h[$i1 - 1]) * ECO.m_flow) / (ECO.dz * ECO.d[$i1] * ECO.A) = (ECO.qMetalFluidDelayed[$i1] * 4.0) / (ECO.di * ECO.d[$i1]) + $DER.ECO.p / ECO.d[$i1] ($RES_SIM_179) (19) [----] [----] end if; (19) [----] end for; (20) [SCAL] (1) ECO.wall.layer[1].port_ext[4].T = ECO.wall.layer[2].port_int[4].T ($RES_SIM_603) (21) [SCAL] (1) ECO.wall.layer[1].port_ext[3].T = ECO.wall.layer[2].port_int[3].T ($RES_SIM_604) (22) [SCAL] (1) ECO.wall.layer[1].port_ext[2].T = ECO.wall.layer[2].port_int[2].T ($RES_SIM_605) (23) [SCAL] (1) EVA.wall.layer[3].port_ext[8].Q_flow - EVA.wall.port_ext[8].Q_flow = 0.0 ($RES_SIM_430) (24) [SCAL] (1) ECO.wall.layer[1].port_ext[1].T = ECO.wall.layer[2].port_int[1].T ($RES_SIM_606) (25) [SCAL] (1) EVA.wall.layer[3].port_ext[7].Q_flow - EVA.wall.port_ext[7].Q_flow = 0.0 ($RES_SIM_431) (26) [SCAL] (1) ECO.wall.layer[1].port_int[10].T = ECO.wall.port_int[10].T ($RES_SIM_607) (27) [SCAL] (1) EVA.wall.layer[3].port_ext[6].Q_flow - EVA.wall.port_ext[6].Q_flow = 0.0 ($RES_SIM_432) (28) [SCAL] (1) ECO.wall.layer[1].port_int[9].T = ECO.wall.port_int[9].T ($RES_SIM_608) (29) [SCAL] (1) EVA.wall.layer[3].port_ext[5].Q_flow - EVA.wall.port_ext[5].Q_flow = 0.0 ($RES_SIM_433) (30) [SCAL] (1) ECO.wall.layer[1].port_int[8].T = ECO.wall.port_int[8].T ($RES_SIM_609) (31) [SCAL] (1) EVA.wall.layer[3].port_ext[4].Q_flow - EVA.wall.port_ext[4].Q_flow = 0.0 ($RES_SIM_434) (32) [SCAL] (1) EVA.wall.layer[3].port_ext[3].Q_flow - EVA.wall.port_ext[3].Q_flow = 0.0 ($RES_SIM_435) (33) [SCAL] (1) EVA.portOut.h_outflow = EVA.h[20] ($RES_SIM_260) (34) [SCAL] (1) EVA.wall.layer[3].port_ext[2].Q_flow - EVA.wall.port_ext[2].Q_flow = 0.0 ($RES_SIM_436) (35) [SCAL] (1) EVA.portIn.h_outflow = EVA.h[1] ($RES_SIM_261) (36) [SCAL] (1) EVA.wall.layer[3].port_ext[1].Q_flow - EVA.wall.port_ext[1].Q_flow = 0.0 ($RES_SIM_437) (37) [FOR-] (20) ($RES_SIM_262) (37) [----] for $i1 in 1:20 loop (37) [----] [SCAL] (1) EVA.vol[$i1] = 1.0 / EVA.d[$i1] ($RES_SIM_263) (37) [----] end for; (38) [SCAL] (1) EVA.wall.layer[2].port_ext[20].Q_flow + EVA.wall.layer[3].port_int[20].Q_flow = 0.0 ($RES_SIM_438) (39) [SCAL] (1) EVA.wall.layer[2].port_ext[19].Q_flow + EVA.wall.layer[3].port_int[19].Q_flow = 0.0 ($RES_SIM_439) (40) [ARRY] (20) EVA.heatport.Q_flow = EVA.heatport.port.Q_flow ($RES_SIM_267) (41) [ARRY] (20) EVA.TWall = EVA.heatport.port.T ($RES_SIM_268) (42) [FOR-] (8) ($RES_EVT_820) (42) [----] for $i1 in 2:9 loop (42) [----] [SCAL] (1) $SEV_27[$i1] = ECO.m_flow < 0.0 ($RES_EVT_821) (42) [----] end for; (43) [SCAL] (1) $SEV_28 = (-watersink_ph.port.m_flow) >= 0.0 ($RES_EVT_822) (44) [SCAL] (1) $SEV_29 = EVA.portIn.m_flow >= 0.0 ($RES_EVT_823) (45) [SCAL] (1) $SEV_30 = EVA.m_flow < 0.0 ($RES_EVT_824) (46) [FOR-] (18) ($RES_EVT_825) (46) [----] for $i1 in 2:19 loop (46) [----] [SCAL] (1) $SEV_31[$i1] = EVA.m_flow < 0.0 ($RES_EVT_826) (46) [----] end for; (47) [-IF-] (1)if $SEV_26 then (47) [----] [SCAL] (1) $DER.ECO.h[1] + ((ECO.h[2] - ECO.h[1]) * ECO.m_flow) / (ECO.dz * ECO.d[1] * ECO.A) = (ECO.qMetalFluidDelayed[1] * 4.0) / (ECO.di * ECO.d[1]) + $DER.ECO.p / ECO.d[1] ($RES_SIM_181) (47) [----] else (47) [----] [SCAL] (1) $DER.ECO.h[1] + ((ECO.h[1] - watersource_mh.h_start) * ECO.m_flow) / (ECO.dz * ECO.d[1] * ECO.A) = (ECO.qMetalFluidDelayed[1] * 4.0) / (ECO.di * ECO.d[1]) + $DER.ECO.p / ECO.d[1] ($RES_SIM_182) (47) [----] end if; (48) [SCAL] (1) $SEV_32 = watersink_ph.port.m_flow > 0.0 ($RES_EVT_827) (49) [SCAL] (1) ((ECO.portOut.p - 99999.99999999999 * watersource_mh.medium.p_bar) * ECO.A) / ECO.geoPipe.L + (ECO.A * ECO.dphyd) / ECO.geoPipe.L + $DER.ECO.m_flow + (ECO.A * ECO.dpfric) / ECO.geoPipe.L = 0.0 ($RES_SIM_183) (50) [SCAL] (1) ECO.wall.layer[1].port_int[7].T = ECO.wall.port_int[7].T ($RES_SIM_610) (51) [SCAL] (1) 0.1 * ($FUN_14 * $DER.ECO.p + ECO.drdh * $DER.ECO.h) - (watersource_mh.m_flow_start - EVA.portIn.m_flow) / (ECO.geoPipe.Nt * ECO.V) = 0.0 ($RES_SIM_184) (52) [SCAL] (1) ECO.wall.layer[1].port_int[6].T = ECO.wall.port_int[6].T ($RES_SIM_611) (53) [SCAL] (1) ECO.dphyd = 9.80665 * ECO.geoPipe.H * ECO.dAverage ($RES_SIM_185) (54) [SCAL] (1) ECO.wall.layer[1].port_int[5].T = ECO.wall.port_int[5].T ($RES_SIM_612) (55) [SCAL] (1) ECO.dpfric = (0.5 * ECO.geoPipe.L * ECO.volAverage * ($FUN_13 + ECO.m_flowLaminar) * ECO.m_flow * ECO.zeta) / (ECO.di * ECO.A ^ 2.0) ($RES_SIM_186) (56) [SCAL] (1) ECO.wall.layer[1].port_int[4].T = ECO.wall.port_int[4].T ($RES_SIM_613) (57) [SCAL] (1) ECO.zeta = (1.14 - 2.0 * $FUN_12) ^ (-2.0) + (ECO.di * ECO.geoPipe.zeta_add) / ECO.geoPipe.L ($RES_SIM_187) (58) [SCAL] (1) ECO.wall.layer[1].port_int[3].T = ECO.wall.port_int[3].T ($RES_SIM_614) (59) [SCAL] (1) ECO.m_flow = ((1.0 - ECO.hydM) * EVA.portIn.m_flow + ECO.hydM * watersource_mh.m_flow_start) / ECO.geoPipe.Nt ($RES_SIM_188) (60) [SCAL] (1) EVA.wall.layer[2].port_ext[18].Q_flow + EVA.wall.layer[3].port_int[18].Q_flow = 0.0 ($RES_SIM_440) (61) [SCAL] (1) ECO.wall.layer[1].port_int[2].T = ECO.wall.port_int[2].T ($RES_SIM_615) (62) [SCAL] (1) EVA.wall.layer[2].port_ext[17].Q_flow + EVA.wall.layer[3].port_int[17].Q_flow = 0.0 ($RES_SIM_441) (63) [SCAL] (1) ECO.wall.layer[1].port_int[1].T = ECO.wall.port_int[1].T ($RES_SIM_616) (64) [SCAL] (1) EVA.wall.layer[2].port_ext[16].Q_flow + EVA.wall.layer[3].port_int[16].Q_flow = 0.0 ($RES_SIM_442) (65) [SCAL] (1) EVA.wall.layer[2].port_ext[15].Q_flow + EVA.wall.layer[3].port_int[15].Q_flow = 0.0 ($RES_SIM_443) (66) [SCAL] (1) EVA.wall.layer[2].port_ext[14].Q_flow + EVA.wall.layer[3].port_int[14].Q_flow = 0.0 ($RES_SIM_444) (67) [SCAL] (1) EVA.wall.layer[2].port_ext[13].Q_flow + EVA.wall.layer[3].port_int[13].Q_flow = 0.0 ($RES_SIM_445) (68) [SCAL] (1) EVA.wall.layer[2].port_ext[12].Q_flow + EVA.wall.layer[3].port_int[12].Q_flow = 0.0 ($RES_SIM_446) (69) [FOR-] (60) ($RES_SIM_271) (69) [----] for {$i1 in 1:3, $i2 in 1:20} loop (69) [----] [SCAL] (1) EVA.wall.layer[$i1].port_ext[$i2].Q_flow = ((EVA.wall.layer[$i1].port_ext[$i2].T - EVA.wall.layer[$i1].T[$i2]) * EVA.wall.layer[$i1].numberOfParallelTubes * ((EVA.wall.layer[$i1].length * 3.141592653589793 * 2.0 * EVA.wall.layer[$i1].metal.lambda) / 20.0)) / $FUN_2[$i1] ($RES_SIM_272) (69) [----] end for; (70) [SCAL] (1) EVA.wall.layer[2].port_ext[11].Q_flow + EVA.wall.layer[3].port_int[11].Q_flow = 0.0 ($RES_SIM_447) (71) [SCAL] (1) EVA.wall.layer[2].port_ext[10].Q_flow + EVA.wall.layer[3].port_int[10].Q_flow = 0.0 ($RES_SIM_448) (72) [FOR-] (60) ($RES_SIM_273) (72) [----] for {$i1 in 1:3, $i2 in 1:20} loop (72) [----] [SCAL] (1) EVA.wall.layer[$i1].port_int[$i2].Q_flow = ((EVA.wall.layer[$i1].port_int[$i2].T - EVA.wall.layer[$i1].T[$i2]) * EVA.wall.layer[$i1].numberOfParallelTubes * ((EVA.wall.layer[$i1].length * 3.141592653589793 * 2.0 * EVA.wall.layer[$i1].metal.lambda) / 20.0)) / $FUN_1[$i1] ($RES_SIM_274) (72) [----] end for; (73) [SCAL] (1) EVA.wall.layer[1].port_int[6].T = EVA.wall.port_int[6].T ($RES_SIM_700) (74) [SCAL] (1) EVA.wall.layer[2].port_ext[9].Q_flow + EVA.wall.layer[3].port_int[9].Q_flow = 0.0 ($RES_SIM_449) (75) [SCAL] (1) EVA.wall.layer[1].port_int[5].T = EVA.wall.port_int[5].T ($RES_SIM_701) (76) [FOR-] (3) ($RES_SIM_275) (76) [----] for $i1 in 1:3 loop (76) [----] [SCAL] (1) EVA.wall.layer[$i1].Am = (EVA.wall.layer[$i1].rext ^ 2.0 - EVA.wall.layer[$i1].rint ^ 2.0) * 3.141592653589793 ($RES_SIM_276) (76) [----] end for; (77) [SCAL] (1) EVA.wall.layer[1].port_int[4].T = EVA.wall.port_int[4].T ($RES_SIM_702) (78) [SCAL] (1) EVA.wall.layer[1].port_int[3].T = EVA.wall.port_int[3].T ($RES_SIM_703) (79) [FOR-] (60) ($RES_SIM_277) (79) [----] for {$i1 in 1:3, $i2 in 1:20} loop (79) [----] [SCAL] (1) EVA.wall.layer[$i1].HeatCap * $DER.EVA.wall.layer[$i1].T[$i2] = EVA.wall.layer[$i1].port_int[$i2].Q_flow + EVA.wall.layer[$i1].port_ext[$i2].Q_flow ($RES_SIM_278) (79) [----] end for; (80) [SCAL] (1) EVA.wall.layer[1].port_int[2].T = EVA.wall.port_int[2].T ($RES_SIM_704) (81) [SCAL] (1) EVA.wall.layer[1].port_int[1].T = EVA.wall.port_int[1].T ($RES_SIM_705) (82) [FOR-] (3) ($RES_SIM_279) (82) [----] for $i1 in 1:3 loop (82) [----] [SCAL] (1) EVA.wall.layer[$i1].HeatCap = EVA.wall.layer[$i1].metal.cp * EVA.wall.layer[$i1].Tube_mass ($RES_SIM_280) (82) [----] end for; (83) [SCAL] (1) $SEV_35 = (watersink_ph.h_start < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(watersink_ph.water.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(watersink_ph.water.sat.psat)) or watersink_ph.h_start > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(watersink_ph.water.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(watersink_ph.water.sat.psat))) or 99999.99999999999 * watersink_ph.water.p_bar > 2.2064e7 ($RES_EVT_830) (84) [SCAL] (1) $SEV_36 = (-watersource_mh.m_flow_start) > 0.0 ($RES_EVT_831) (85) [SCAL] (1) $SEV_39 = (watersource_mh.h_start < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(watersource_mh.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(watersource_mh.medium.sat.psat)) or watersource_mh.h_start > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(watersource_mh.medium.sat.psat, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(watersource_mh.medium.sat.psat))) or 99999.99999999999 * watersource_mh.medium.p_bar > 2.2064e7 ($RES_EVT_834) (86) [SCAL] (1) ECO.p = ECO.hydP * (99999.99999999999 * watersource_mh.medium.p_bar) + (1.0 - ECO.hydP) * ECO.portOut.p ($RES_SIM_190) (87) [SCAL] (1) ECO.portOut.h_outflow = ECO.h[10] ($RES_SIM_191) (88) [SCAL] (1) ECO.portIn.h_outflow = ECO.h[1] ($RES_SIM_192) (89) [FOR-] (10) ($RES_SIM_193) (89) [----] for $i1 in 1:10 loop (89) [----] [SCAL] (1) ECO.vol[$i1] = 1.0 / ECO.d[$i1] ($RES_SIM_194) (89) [----] end for; (90) [FOR-] (20) ($RES_SIM_620) (90) [----] for $i1 in 1:20 loop (90) [----] [SCAL] (1) EVA.wall.port_int[$i1].Q_flow + EVA.heatport.port[$i1].Q_flow = 0.0 ($RES_SIM_621) (90) [----] end for; (91) [ARRY] (20) EVA.wall.port_int.T = EVA.heatport.port.T ($RES_SIM_622) (92) [FOR-] (20) ($RES_SIM_623) (92) [----] for $i1 in 1:20 loop (92) [----] [SCAL] (1) EVA.wall.port_ext[$i1].Q_flow - EVA.gasSide[$i1].Q_flow = 0.0 ($RES_SIM_624) (92) [----] end for; (93) [ARRY] (10) ECO.heatport.Q_flow = ECO.heatport.port.Q_flow ($RES_SIM_198) (94) [ARRY] (20) EVA.gasSide.T = EVA.wall.port_ext.T ($RES_SIM_625) (95) [SCAL] (1) EVA.wall.layer[2].port_ext[8].Q_flow + EVA.wall.layer[3].port_int[8].Q_flow = 0.0 ($RES_SIM_450) (96) [ARRY] (10) ECO.TWall = ECO.heatport.port.T ($RES_SIM_199) (97) [SCAL] (1) EVA.wall.layer[3].port_ext[20].T = EVA.wall.port_ext[20].T ($RES_SIM_626) (98) [SCAL] (1) EVA.wall.layer[2].port_ext[7].Q_flow + EVA.wall.layer[3].port_int[7].Q_flow = 0.0 ($RES_SIM_451) (99) [SCAL] (1) EVA.wall.layer[3].port_ext[19].T = EVA.wall.port_ext[19].T ($RES_SIM_627) (100) [SCAL] (1) EVA.wall.layer[2].port_ext[6].Q_flow + EVA.wall.layer[3].port_int[6].Q_flow = 0.0 ($RES_SIM_452) (101) [SCAL] (1) EVA.wall.layer[3].port_ext[18].T = EVA.wall.port_ext[18].T ($RES_SIM_628) (102) [SCAL] (1) EVA.wall.layer[2].port_ext[5].Q_flow + EVA.wall.layer[3].port_int[5].Q_flow = 0.0 ($RES_SIM_453) (103) [SCAL] (1) EVA.wall.layer[3].port_ext[17].T = EVA.wall.port_ext[17].T ($RES_SIM_629) (104) [SCAL] (1) EVA.wall.layer[2].port_ext[4].Q_flow + EVA.wall.layer[3].port_int[4].Q_flow = 0.0 ($RES_SIM_454) (105) [SCAL] (1) EVA.wall.layer[2].port_ext[3].Q_flow + EVA.wall.layer[3].port_int[3].Q_flow = 0.0 ($RES_SIM_455) (106) [SCAL] (1) EVA.wall.layer[2].port_ext[2].Q_flow + EVA.wall.layer[3].port_int[2].Q_flow = 0.0 ($RES_SIM_456) (107) [FOR-] (3) ($RES_SIM_281) (107) [----] for $i1 in 1:3 loop (107) [----] [SCAL] (1) EVA.wall.layer[$i1].Tube_mass = ((EVA.wall.layer[$i1].length * EVA.wall.layer[$i1].Am * EVA.wall.layer[$i1].metal.rho) / 20.0) * EVA.wall.layer[$i1].numberOfParallelTubes ($RES_SIM_282) (107) [----] end for; (108) [SCAL] (1) EVA.wall.layer[2].port_ext[1].Q_flow + EVA.wall.layer[3].port_int[1].Q_flow = 0.0 ($RES_SIM_457) (109) [SCAL] (1) EVA.wall.layer[1].port_ext[20].Q_flow + EVA.wall.layer[2].port_int[20].Q_flow = 0.0 ($RES_SIM_458) (110) [FOR-] (3) ($RES_SIM_283) (110) [----] for $i1 in 1:3 loop (110) [----] [SCAL] (1) EVA.wall.layer[$i1].rext = EVA.wall.layer[$i1].diameterInner * 0.5 + 0.001 ($RES_SIM_284) (110) [----] end for; (111) [SCAL] (1) EVA.wall.layer[1].port_ext[19].Q_flow + EVA.wall.layer[2].port_int[19].Q_flow = 0.0 ($RES_SIM_459) (112) [FOR-] (3) ($RES_SIM_285) (112) [----] for $i1 in 1:3 loop (112) [----] [SCAL] (1) EVA.wall.layer[$i1].rint = EVA.wall.layer[$i1].diameterInner * 0.5 ($RES_SIM_286) (112) [----] end for; (113) [ARRY] (20) prescribedHeatFlow.portsOut.Q_flow = -0.05 .* (prescribedHeatFlow.Q_flow * fill(1.0, 20)) ($RES_SIM_287) (114) [SCAL] (1) watersink_ph.hPortActual = noEvent(if $SEV_32 then EVA.portOut.h_outflow else watersink_ph.h_start) ($RES_SIM_288) (115) [SCAL] (1) ECO.wall.layer[3].port_ext[10].Q_flow - ECO.wall.port_ext[10].Q_flow = 0.0 ($RES_SIM_377) (116) [SCAL] (1) ECO.wall.layer[3].port_ext[9].Q_flow - ECO.wall.port_ext[9].Q_flow = 0.0 ($RES_SIM_378) (117) [SCAL] (1) EVA.wall.layer[3].port_ext[16].T = EVA.wall.port_ext[16].T ($RES_SIM_630) (118) [SCAL] (1) ECO.wall.layer[3].port_ext[8].Q_flow - ECO.wall.port_ext[8].Q_flow = 0.0 ($RES_SIM_379) (119) [SCAL] (1) EVA.wall.layer[3].port_ext[15].T = EVA.wall.port_ext[15].T ($RES_SIM_631) (120) [SCAL] (1) EVA.wall.layer[3].port_ext[14].T = EVA.wall.port_ext[14].T ($RES_SIM_632) (121) [SCAL] (1) EVA.wall.layer[3].port_ext[13].T = EVA.wall.port_ext[13].T ($RES_SIM_633) (122) [SCAL] (1) EVA.wall.layer[3].port_ext[12].T = EVA.wall.port_ext[12].T ($RES_SIM_634) (123) [SCAL] (1) EVA.wall.layer[3].port_ext[11].T = EVA.wall.port_ext[11].T ($RES_SIM_635) (124) [SCAL] (1) EVA.wall.layer[1].port_ext[18].Q_flow + EVA.wall.layer[2].port_int[18].Q_flow = 0.0 ($RES_SIM_460) (125) [SCAL] (1) EVA.wall.layer[3].port_ext[10].T = EVA.wall.port_ext[10].T ($RES_SIM_636) (126) [SCAL] (1) EVA.wall.layer[1].port_ext[17].Q_flow + EVA.wall.layer[2].port_int[17].Q_flow = 0.0 ($RES_SIM_461) (127) [SCAL] (1) EVA.wall.layer[3].port_ext[9].T = EVA.wall.port_ext[9].T ($RES_SIM_637) (128) [SCAL] (1) EVA.wall.layer[1].port_ext[16].Q_flow + EVA.wall.layer[2].port_int[16].Q_flow = 0.0 ($RES_SIM_462) (129) [SCAL] (1) EVA.wall.layer[3].port_ext[8].T = EVA.wall.port_ext[8].T ($RES_SIM_638) (130) [SCAL] (1) EVA.wall.layer[1].port_ext[15].Q_flow + EVA.wall.layer[2].port_int[15].Q_flow = 0.0 ($RES_SIM_463) (131) [SCAL] (1) EVA.wall.layer[3].port_ext[7].T = EVA.wall.port_ext[7].T ($RES_SIM_639) (132) [SCAL] (1) EVA.wall.layer[1].port_ext[14].Q_flow + EVA.wall.layer[2].port_int[14].Q_flow = 0.0 ($RES_SIM_464) (133) [SCAL] (1) EVA.wall.layer[1].port_ext[13].Q_flow + EVA.wall.layer[2].port_int[13].Q_flow = 0.0 ($RES_SIM_465) (134) [SCAL] (1) EVA.wall.layer[1].port_ext[12].Q_flow + EVA.wall.layer[2].port_int[12].Q_flow = 0.0 ($RES_SIM_466) (135) [SCAL] (1) EVA.wall.layer[1].port_ext[11].Q_flow + EVA.wall.layer[2].port_int[11].Q_flow = 0.0 ($RES_SIM_467) (136) [SCAL] (1) EVA.wall.layer[1].port_ext[10].Q_flow + EVA.wall.layer[2].port_int[10].Q_flow = 0.0 ($RES_SIM_468) (137) [SCAL] (1) EVA.wall.layer[1].port_ext[9].Q_flow + EVA.wall.layer[2].port_int[9].Q_flow = 0.0 ($RES_SIM_469) (138) [SCAL] (1) watersink_ph.water.phase = watersink_ph.water.state.phase ($RES_SIM_298) (139) [SCAL] (1) watersink_ph.water.d = watersink_ph.water.state.d ($RES_SIM_299) (140) [SCAL] (1) ECO.wall.layer[3].port_ext[7].Q_flow - ECO.wall.port_ext[7].Q_flow = 0.0 ($RES_SIM_380) (141) [SCAL] (1) ECO.wall.layer[3].port_ext[6].Q_flow - ECO.wall.port_ext[6].Q_flow = 0.0 ($RES_SIM_381) (142) [SCAL] (1) ECO.wall.layer[3].port_ext[5].Q_flow - ECO.wall.port_ext[5].Q_flow = 0.0 ($RES_SIM_382) (143) [SCAL] (1) ECO.wall.layer[3].port_ext[4].Q_flow - ECO.wall.port_ext[4].Q_flow = 0.0 ($RES_SIM_383) (144) [SCAL] (1) ECO.wall.layer[3].port_ext[3].Q_flow - ECO.wall.port_ext[3].Q_flow = 0.0 ($RES_SIM_384) (145) [SCAL] (1) ECO.wall.layer[3].port_ext[2].Q_flow - ECO.wall.port_ext[2].Q_flow = 0.0 ($RES_SIM_385) (146) [SCAL] (1) ECO.wall.layer[3].port_ext[1].Q_flow - ECO.wall.port_ext[1].Q_flow = 0.0 ($RES_SIM_386) (147) [SCAL] (1) ECO.wall.layer[2].port_ext[10].Q_flow + ECO.wall.layer[3].port_int[10].Q_flow = 0.0 ($RES_SIM_387) (148) [SCAL] (1) ECO.wall.layer[2].port_ext[9].Q_flow + ECO.wall.layer[3].port_int[9].Q_flow = 0.0 ($RES_SIM_388) (149) [SCAL] (1) EVA.wall.layer[3].port_ext[6].T = EVA.wall.port_ext[6].T ($RES_SIM_640) (150) [SCAL] (1) ECO.wall.layer[2].port_ext[8].Q_flow + ECO.wall.layer[3].port_int[8].Q_flow = 0.0 ($RES_SIM_389) (151) [SCAL] (1) EVA.wall.layer[3].port_ext[5].T = EVA.wall.port_ext[5].T ($RES_SIM_641) (152) [SCAL] (1) EVA.wall.layer[3].port_ext[4].T = EVA.wall.port_ext[4].T ($RES_SIM_642) (153) [SCAL] (1) EVA.wall.layer[3].port_ext[3].T = EVA.wall.port_ext[3].T ($RES_SIM_643) (154) [SCAL] (1) EVA.wall.layer[3].port_ext[2].T = EVA.wall.port_ext[2].T ($RES_SIM_644) (155) [SCAL] (1) EVA.wall.layer[3].port_ext[1].T = EVA.wall.port_ext[1].T ($RES_SIM_645) (156) [SCAL] (1) EVA.wall.layer[1].port_ext[8].Q_flow + EVA.wall.layer[2].port_int[8].Q_flow = 0.0 ($RES_SIM_470) (157) [SCAL] (1) EVA.wall.layer[2].port_ext[20].T = EVA.wall.layer[3].port_int[20].T ($RES_SIM_646) (158) [SCAL] (1) EVA.wall.layer[1].port_ext[7].Q_flow + EVA.wall.layer[2].port_int[7].Q_flow = 0.0 ($RES_SIM_471) (159) [SCAL] (1) EVA.wall.layer[2].port_ext[19].T = EVA.wall.layer[3].port_int[19].T ($RES_SIM_647) (160) [SCAL] (1) EVA.wall.layer[1].port_ext[6].Q_flow + EVA.wall.layer[2].port_int[6].Q_flow = 0.0 ($RES_SIM_472) (161) [SCAL] (1) EVA.wall.layer[2].port_ext[18].T = EVA.wall.layer[3].port_int[18].T ($RES_SIM_648) (162) [SCAL] (1) EVA.wall.layer[1].port_ext[5].Q_flow + EVA.wall.layer[2].port_int[5].Q_flow = 0.0 ($RES_SIM_473) (163) [SCAL] (1) EVA.wall.layer[2].port_ext[17].T = EVA.wall.layer[3].port_int[17].T ($RES_SIM_649) (164) [SCAL] (1) EVA.wall.layer[1].port_ext[4].Q_flow + EVA.wall.layer[2].port_int[4].Q_flow = 0.0 ($RES_SIM_474) (165) [SCAL] (1) EVA.wall.layer[1].port_ext[3].Q_flow + EVA.wall.layer[2].port_int[3].Q_flow = 0.0 ($RES_SIM_475) (166) [SCAL] (1) EVA.wall.layer[1].port_ext[2].Q_flow + EVA.wall.layer[2].port_int[2].Q_flow = 0.0 ($RES_SIM_476) (167) [SCAL] (1) EVA.wall.layer[1].port_ext[1].Q_flow + EVA.wall.layer[2].port_int[1].Q_flow = 0.0 ($RES_SIM_477) (168) [SCAL] (1) EVA.wall.layer[1].port_int[20].Q_flow - EVA.wall.port_int[20].Q_flow = 0.0 ($RES_SIM_478) (169) [SCAL] (1) EVA.wall.layer[1].port_int[19].Q_flow - EVA.wall.port_int[19].Q_flow = 0.0 ($RES_SIM_479) (170) [SCAL] (1) ECO.wall.layer[2].port_ext[7].Q_flow + ECO.wall.layer[3].port_int[7].Q_flow = 0.0 ($RES_SIM_390) (171) [SCAL] (1) ECO.wall.layer[2].port_ext[6].Q_flow + ECO.wall.layer[3].port_int[6].Q_flow = 0.0 ($RES_SIM_391) (172) [SCAL] (1) ECO.wall.layer[2].port_ext[5].Q_flow + ECO.wall.layer[3].port_int[5].Q_flow = 0.0 ($RES_SIM_392) (173) [SCAL] (1) ECO.wall.layer[2].port_ext[4].Q_flow + ECO.wall.layer[3].port_int[4].Q_flow = 0.0 ($RES_SIM_393) (174) [SCAL] (1) ECO.wall.layer[2].port_ext[3].Q_flow + ECO.wall.layer[3].port_int[3].Q_flow = 0.0 ($RES_SIM_394) (175) [SCAL] (1) ECO.wall.layer[2].port_ext[2].Q_flow + ECO.wall.layer[3].port_int[2].Q_flow = 0.0 ($RES_SIM_395) (176) [SCAL] (1) ECO.wall.layer[2].port_ext[1].Q_flow + ECO.wall.layer[3].port_int[1].Q_flow = 0.0 ($RES_SIM_396) (177) [SCAL] (1) ECO.wall.layer[1].port_ext[10].Q_flow + ECO.wall.layer[2].port_int[10].Q_flow = 0.0 ($RES_SIM_397) (178) [SCAL] (1) ECO.wall.layer[1].port_ext[9].Q_flow + ECO.wall.layer[2].port_int[9].Q_flow = 0.0 ($RES_SIM_398) (179) [SCAL] (1) EVA.wall.layer[2].port_ext[16].T = EVA.wall.layer[3].port_int[16].T ($RES_SIM_650) (180) [SCAL] (1) ECO.wall.layer[1].port_ext[8].Q_flow + ECO.wall.layer[2].port_int[8].Q_flow = 0.0 ($RES_SIM_399) (181) [SCAL] (1) EVA.wall.layer[2].port_ext[15].T = EVA.wall.layer[3].port_int[15].T ($RES_SIM_651) (182) [SCAL] (1) EVA.wall.layer[2].port_ext[14].T = EVA.wall.layer[3].port_int[14].T ($RES_SIM_652) (183) [SCAL] (1) EVA.wall.layer[2].port_ext[13].T = EVA.wall.layer[3].port_int[13].T ($RES_SIM_653) (184) [SCAL] (1) EVA.wall.layer[2].port_ext[12].T = EVA.wall.layer[3].port_int[12].T ($RES_SIM_654) (185) [SCAL] (1) EVA.wall.layer[2].port_ext[11].T = EVA.wall.layer[3].port_int[11].T ($RES_SIM_655) (186) [SCAL] (1) EVA.wall.layer[1].port_int[18].Q_flow - EVA.wall.port_int[18].Q_flow = 0.0 ($RES_SIM_480) (187) [SCAL] (1) EVA.wall.layer[2].port_ext[10].T = EVA.wall.layer[3].port_int[10].T ($RES_SIM_656) (188) [SCAL] (1) EVA.wall.layer[1].port_int[17].Q_flow - EVA.wall.port_int[17].Q_flow = 0.0 ($RES_SIM_481) (189) [SCAL] (1) EVA.wall.layer[2].port_ext[9].T = EVA.wall.layer[3].port_int[9].T ($RES_SIM_657) (190) [SCAL] (1) EVA.wall.layer[1].port_int[16].Q_flow - EVA.wall.port_int[16].Q_flow = 0.0 ($RES_SIM_482) (191) [SCAL] (1) EVA.wall.layer[2].port_ext[8].T = EVA.wall.layer[3].port_int[8].T ($RES_SIM_658) (192) [SCAL] (1) EVA.wall.layer[1].port_int[15].Q_flow - EVA.wall.port_int[15].Q_flow = 0.0 ($RES_SIM_483) (193) [ALGO] (5) ($RES_SIM_27) (193) [----] assert(not (timeTable1.originalTable.table[1, 1] > 0.0 or timeTable1.originalTable.table[1, 1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(timeTable1.originalTable.table[1, 1], 6, 0, true), AssertionLevel.error); (193) [----] when {time >= $PRE.timeTable1.originalTable.nextEvent, initial()} then (193) [----] (timeTable1.originalTable.a, timeTable1.originalTable.b, timeTable1.originalTable.nextEventScaled, timeTable1.originalTable.last) := ($FUN_26, $FUN_27, $FUN_28, $FUN_29); (193) [----] timeTable1.originalTable.nextEvent := timeTable1.originalTable.nextEventScaled; (193) [----] end when; (194) [SCAL] (1) EVA.wall.layer[2].port_ext[7].T = EVA.wall.layer[3].port_int[7].T ($RES_SIM_659) (195) [SCAL] (1) EVA.wall.layer[1].port_int[14].Q_flow - EVA.wall.port_int[14].Q_flow = 0.0 ($RES_SIM_484) (196) [SCAL] (1) EVA.wall.layer[1].port_int[13].Q_flow - EVA.wall.port_int[13].Q_flow = 0.0 ($RES_SIM_485) (197) [ALGO] (5) ($RES_SIM_29) (197) [----] assert(not (timeTable.originalTable.table[1, 1] > 0.0 or timeTable.originalTable.table[1, 1] < 0.0), "The first point in time has to be set to 0, but is table[1,1] = " + String(timeTable.originalTable.table[1, 1], 6, 0, true), AssertionLevel.error); (197) [----] when {time >= $PRE.timeTable.originalTable.nextEvent, initial()} then (197) [----] (timeTable.originalTable.a, timeTable.originalTable.b, timeTable.originalTable.nextEventScaled, timeTable.originalTable.last) := ($FUN_22, $FUN_23, $FUN_24, $FUN_25); (197) [----] timeTable.originalTable.nextEvent := timeTable.originalTable.nextEventScaled; (197) [----] end when; (198) [SCAL] (1) EVA.wall.layer[1].port_int[12].Q_flow - EVA.wall.port_int[12].Q_flow = 0.0 ($RES_SIM_486) (199) [SCAL] (1) EVA.wall.layer[1].port_int[11].Q_flow - EVA.wall.port_int[11].Q_flow = 0.0 ($RES_SIM_487) (200) [SCAL] (1) EVA.wall.layer[1].port_int[10].Q_flow - EVA.wall.port_int[10].Q_flow = 0.0 ($RES_SIM_488) (201) [SCAL] (1) EVA.wall.layer[1].port_int[9].Q_flow - EVA.wall.port_int[9].Q_flow = 0.0 ($RES_SIM_489) (202) [FOR-] (10) ($RES_SIM_571) (202) [----] for $i1 in 1:10 loop (202) [----] [SCAL] (1) ECO.wall.port_int[$i1].Q_flow + ECO.heatport.port[$i1].Q_flow = 0.0 ($RES_SIM_572) (202) [----] end for; (203) [SCAL] (1) EVA.state_from_a.h = ECO.portOut.h_outflow ($RES_SIM_747) (204) [ARRY] (10) ECO.wall.port_int.T = ECO.heatport.port.T ($RES_SIM_573) (205) [SCAL] (1) EVA.state_from_a.d = Modelica.Media.Water.IF97_Utilities.rho_ph(ECO.portOut.p, ECO.portOut.h_outflow, 0, 0) ($RES_SIM_748) (206) [FOR-] (10) ($RES_SIM_574) (206) [----] for $i1 in 1:10 loop (206) [----] [SCAL] (1) ECO.wall.port_ext[$i1].Q_flow - ECO.gasSide[$i1].Q_flow = 0.0 ($RES_SIM_575) (206) [----] end for; (207) [SCAL] (1) EVA.state_from_a.T = Modelica.Media.Water.IF97_Utilities.T_ph(ECO.portOut.p, ECO.portOut.h_outflow, 0, 0) ($RES_SIM_749) (208) [ARRY] (10) ECO.gasSide.T = ECO.wall.port_ext.T ($RES_SIM_576) (209) [SCAL] (1) ECO.wall.layer[3].port_ext[10].T = ECO.wall.port_ext[10].T ($RES_SIM_577) (210) [SCAL] (1) ECO.wall.layer[3].port_ext[9].T = ECO.wall.port_ext[9].T ($RES_SIM_578) (211) [SCAL] (1) ECO.wall.layer[3].port_ext[8].T = ECO.wall.port_ext[8].T ($RES_SIM_579) (212) [SCAL] (1) EVA.wall.layer[2].port_ext[6].T = EVA.wall.layer[3].port_int[6].T ($RES_SIM_660) (213) [SCAL] (1) EVA.wall.layer[2].port_ext[5].T = EVA.wall.layer[3].port_int[5].T ($RES_SIM_661) (214) [SCAL] (1) EVA.wall.layer[2].port_ext[4].T = EVA.wall.layer[3].port_int[4].T ($RES_SIM_662) (215) [SCAL] (1) EVA.wall.layer[2].port_ext[3].T = EVA.wall.layer[3].port_int[3].T ($RES_SIM_663) (216) [SCAL] (1) EVA.wall.layer[2].port_ext[2].T = EVA.wall.layer[3].port_int[2].T ($RES_SIM_664) (217) [SCAL] (1) EVA.wall.layer[2].port_ext[1].T = EVA.wall.layer[3].port_int[1].T ($RES_SIM_665) (218) [SCAL] (1) EVA.wall.layer[1].port_int[8].Q_flow - EVA.wall.port_int[8].Q_flow = 0.0 ($RES_SIM_490) (219) [SCAL] (1) EVA.wall.layer[1].port_ext[20].T = EVA.wall.layer[2].port_int[20].T ($RES_SIM_666) (220) [SCAL] (1) EVA.wall.layer[1].port_int[7].Q_flow - EVA.wall.port_int[7].Q_flow = 0.0 ($RES_SIM_491) (221) [SCAL] (1) EVA.wall.layer[1].port_ext[19].T = EVA.wall.layer[2].port_int[19].T ($RES_SIM_667) (222) [SCAL] (1) EVA.wall.layer[1].port_int[6].Q_flow - EVA.wall.port_int[6].Q_flow = 0.0 ($RES_SIM_492) (223) [SCAL] (1) EVA.wall.layer[1].port_ext[18].T = EVA.wall.layer[2].port_int[18].T ($RES_SIM_668) (224) [SCAL] (1) EVA.wall.layer[1].port_int[5].Q_flow - EVA.wall.port_int[5].Q_flow = 0.0 ($RES_SIM_493) (225) [SCAL] (1) EVA.wall.layer[1].port_ext[17].T = EVA.wall.layer[2].port_int[17].T ($RES_SIM_669) (226) [SCAL] (1) EVA.wall.layer[1].port_int[4].Q_flow - EVA.wall.port_int[4].Q_flow = 0.0 ($RES_SIM_494) (227) [SCAL] (1) EVA.wall.layer[1].port_int[3].Q_flow - EVA.wall.port_int[3].Q_flow = 0.0 ($RES_SIM_495) (228) [SCAL] (1) EVA.wall.layer[1].port_int[2].Q_flow - EVA.wall.port_int[2].Q_flow = 0.0 ($RES_SIM_496) (229) [SCAL] (1) EVA.wall.layer[1].port_int[1].Q_flow - EVA.wall.port_int[1].Q_flow = 0.0 ($RES_SIM_497) (230) [SCAL] (1) EVA.state_from_a.p = ECO.portOut.p ($RES_SIM_750) (231) [SCAL] (1) EVA.state_from_b.d = Modelica.Media.Water.IF97_Utilities.rho_ph(99999.99999999999 * watersink_ph.water.p_bar, watersink_ph.h_start, 0, 0) ($RES_SIM_753) (232) [SCAL] (1) EVA.state_from_b.T = Modelica.Media.Water.IF97_Utilities.T_ph(99999.99999999999 * watersink_ph.water.p_bar, watersink_ph.h_start, 0, 0) ($RES_SIM_754) (233) [SCAL] (1) ECO.wall.layer[3].port_ext[7].T = ECO.wall.port_ext[7].T ($RES_SIM_580) (234) [SCAL] (1) EVA.state_from_b.p = 99999.99999999999 * watersink_ph.water.p_bar ($RES_SIM_755) (235) [SCAL] (1) ECO.wall.layer[3].port_ext[6].T = ECO.wall.port_ext[6].T ($RES_SIM_581) (236) [SCAL] (1) ECO.wall.layer[3].port_ext[5].T = ECO.wall.port_ext[5].T ($RES_SIM_582) (237) [SCAL] (1) ECO.wall.layer[3].port_ext[4].T = ECO.wall.port_ext[4].T ($RES_SIM_583) (238) [SCAL] (1) ECO.state_from_a.d = Modelica.Media.Water.IF97_Utilities.rho_ph(99999.99999999999 * watersource_mh.medium.p_bar, watersource_mh.h_start, 0, 0) ($RES_SIM_758) (239) [SCAL] (1) ECO.wall.layer[3].port_ext[3].T = ECO.wall.port_ext[3].T ($RES_SIM_584) (240) [SCAL] (1) ECO.state_from_a.T = Modelica.Media.Water.IF97_Utilities.T_ph(99999.99999999999 * watersource_mh.medium.p_bar, watersource_mh.h_start, 0, 0) ($RES_SIM_759) (241) [SCAL] (1) ECO.wall.layer[3].port_ext[2].T = ECO.wall.port_ext[2].T ($RES_SIM_585) (242) [SCAL] (1) ECO.wall.layer[3].port_ext[1].T = ECO.wall.port_ext[1].T ($RES_SIM_586) (243) [SCAL] (1) ECO.wall.layer[2].port_ext[10].T = ECO.wall.layer[3].port_int[10].T ($RES_SIM_587) (244) [SCAL] (1) ECO.wall.layer[2].port_ext[9].T = ECO.wall.layer[3].port_int[9].T ($RES_SIM_588) (245) [SCAL] (1) ECO.wall.layer[2].port_ext[8].T = ECO.wall.layer[3].port_int[8].T ($RES_SIM_589) (246) [SCAL] (1) EVA.wall.layer[1].port_ext[16].T = EVA.wall.layer[2].port_int[16].T ($RES_SIM_670) (247) [SCAL] (1) EVA.wall.layer[1].port_ext[15].T = EVA.wall.layer[2].port_int[15].T ($RES_SIM_671) (248) [SCAL] (1) EVA.wall.layer[1].port_ext[14].T = EVA.wall.layer[2].port_int[14].T ($RES_SIM_672) (249) [SCAL] (1) EVA.wall.layer[1].port_ext[13].T = EVA.wall.layer[2].port_int[13].T ($RES_SIM_673) (250) [SCAL] (1) EVA.wall.layer[1].port_ext[12].T = EVA.wall.layer[2].port_int[12].T ($RES_SIM_674) (251) [SCAL] (1) EVA.wall.layer[1].port_ext[11].T = EVA.wall.layer[2].port_int[11].T ($RES_SIM_675) (252) [SCAL] (1) EVA.wall.layer[1].port_ext[10].T = EVA.wall.layer[2].port_int[10].T ($RES_SIM_676) (253) [SCAL] (1) EVA.wall.layer[1].port_ext[9].T = EVA.wall.layer[2].port_int[9].T ($RES_SIM_677) (254) [SCAL] (1) EVA.wall.layer[1].port_ext[8].T = EVA.wall.layer[2].port_int[8].T ($RES_SIM_678) (255) [SCAL] (1) EVA.wall.layer[1].port_ext[7].T = EVA.wall.layer[2].port_int[7].T ($RES_SIM_679) (256) [SCAL] (1) ECO.state_from_a.p = 99999.99999999999 * watersource_mh.medium.p_bar ($RES_SIM_760) (257) [SCAL] (1) ECO.state_from_b.h = EVA.portIn.h_outflow ($RES_SIM_762) (258) [SCAL] (1) ECO.state_from_b.d = Modelica.Media.Water.IF97_Utilities.rho_ph(ECO.portOut.p, EVA.portIn.h_outflow, 0, 0) ($RES_SIM_763) (259) [SCAL] (1) ECO.state_from_b.T = Modelica.Media.Water.IF97_Utilities.T_ph(ECO.portOut.p, EVA.portIn.h_outflow, 0, 0) ($RES_SIM_764) (260) [SCAL] (1) ECO.wall.layer[2].port_ext[7].T = ECO.wall.layer[3].port_int[7].T ($RES_SIM_590) (261) [SCAL] (1) ECO.state_from_b.p = ECO.portOut.p ($RES_SIM_765) (262) [SCAL] (1) ECO.wall.layer[2].port_ext[6].T = ECO.wall.layer[3].port_int[6].T ($RES_SIM_591) (263) [SCAL] (1) ECO.wall.layer[2].port_ext[5].T = ECO.wall.layer[3].port_int[5].T ($RES_SIM_592) (264) [SCAL] (1) ECO.wall.layer[2].port_ext[4].T = ECO.wall.layer[3].port_int[4].T ($RES_SIM_593) (265) [SCAL] (1) ECO.wall.layer[2].port_ext[3].T = ECO.wall.layer[3].port_int[3].T ($RES_SIM_594) (266) [SCAL] (1) ECO.wall.layer[2].port_ext[2].T = ECO.wall.layer[3].port_int[2].T ($RES_SIM_595) (267) [SCAL] (1) ECO.wall.layer[2].port_ext[1].T = ECO.wall.layer[3].port_int[1].T ($RES_SIM_596) (268) [SCAL] (1) ECO.wall.layer[1].port_ext[10].T = ECO.wall.layer[2].port_int[10].T ($RES_SIM_597) (269) [SCAL] (1) ECO.wall.layer[1].port_ext[9].T = ECO.wall.layer[2].port_int[9].T ($RES_SIM_598) (270) [SCAL] (1) ECO.wall.layer[1].port_ext[8].T = ECO.wall.layer[2].port_int[8].T ($RES_SIM_599) (271) [SCAL] (1) EVA.wall.layer[1].port_ext[6].T = EVA.wall.layer[2].port_int[6].T ($RES_SIM_680) (272) [SCAL] (1) EVA.wall.layer[1].port_ext[5].T = EVA.wall.layer[2].port_int[5].T ($RES_SIM_681) (273) [SCAL] (1) EVA.wall.layer[1].port_ext[4].T = EVA.wall.layer[2].port_int[4].T ($RES_SIM_682) (274) [SCAL] (1) EVA.wall.layer[1].port_ext[3].T = EVA.wall.layer[2].port_int[3].T ($RES_SIM_683) (275) [SCAL] (1) EVA.wall.layer[1].port_ext[2].T = EVA.wall.layer[2].port_int[2].T ($RES_SIM_684) (276) [SCAL] (1) EVA.wall.layer[1].port_ext[1].T = EVA.wall.layer[2].port_int[1].T ($RES_SIM_685) (277) [SCAL] (1) EVA.wall.layer[1].port_int[20].T = EVA.wall.port_int[20].T ($RES_SIM_686) (278) [SCAL] (1) EVA.wall.layer[1].port_int[19].T = EVA.wall.port_int[19].T ($RES_SIM_687) (279) [SCAL] (1) EVA.wall.layer[1].port_int[18].T = EVA.wall.port_int[18].T ($RES_SIM_688) (280) [SCAL] (1) EVA.wall.layer[1].port_int[17].T = EVA.wall.port_int[17].T ($RES_SIM_689) (281) [SCAL] (1) EVA.wall.layer[1].port_int[16].T = EVA.wall.port_int[16].T ($RES_SIM_690) (282) [SCAL] (1) EVA.wall.layer[1].port_int[15].T = EVA.wall.port_int[15].T ($RES_SIM_691) (283) [SCAL] (1) EVA.wall.layer[1].port_int[14].T = EVA.wall.port_int[14].T ($RES_SIM_692) (284) [SCAL] (1) EVA.wall.layer[1].port_int[13].T = EVA.wall.port_int[13].T ($RES_SIM_693) (285) [SCAL] (1) EVA.wall.layer[1].port_int[12].T = EVA.wall.port_int[12].T ($RES_SIM_694) (286) [SCAL] (1) EVA.wall.layer[1].port_int[11].T = EVA.wall.port_int[11].T ($RES_SIM_695) (287) [SCAL] (1) EVA.wall.layer[1].port_int[10].T = EVA.wall.port_int[10].T ($RES_SIM_696) (288) [SCAL] (1) EVA.wall.layer[1].port_int[9].T = EVA.wall.port_int[9].T ($RES_SIM_697) (289) [SCAL] (1) EVA.wall.layer[1].port_int[8].T = EVA.wall.port_int[8].T ($RES_SIM_698) (290) [SCAL] (1) EVA.wall.layer[1].port_int[7].T = EVA.wall.port_int[7].T ($RES_SIM_699) (291) [FOR-] (3) ($RES_$AUX_744) (291) [----] for $i1 in 1:3 loop (291) [----] [SCAL] (1) $FUN_1[$i1] = log((EVA.wall.layer[$i1].rext + EVA.wall.layer[$i1].rint) / (EVA.wall.layer[$i1].rint * 2.0)) ($RES_$AUX_745) (291) [----] end for; (292) [FOR-] (3) ($RES_$AUX_742) (292) [----] for $i1 in 1:3 loop (292) [----] [SCAL] (1) $FUN_2[$i1] = log((EVA.wall.layer[$i1].rext * 2.0) / (EVA.wall.layer[$i1].rint + EVA.wall.layer[$i1].rext)) ($RES_$AUX_743) (292) [----] end for; (293) [SCAL] (1) 20.0 * EVA.dAverage = sum(EVA.d) ($RES_$AUX_741) (294) [SCAL] (1) 20.0 * EVA.volAverage = sum(EVA.vol) ($RES_$AUX_740) (295) [FOR-] (30) ($RES_SIM_202) (295) [----] for {$i1 in 1:3, $i2 in 1:10} loop (295) [----] [SCAL] (1) ECO.wall.layer[$i1].port_ext[$i2].Q_flow = ((ECO.wall.layer[$i1].port_ext[$i2].T - ECO.wall.layer[$i1].T[$i2]) * ECO.wall.layer[$i1].numberOfParallelTubes * ((ECO.wall.layer[$i1].length * 3.141592653589793 * 2.0 * ECO.wall.layer[$i1].metal.lambda) / 10.0)) / $FUN_9[$i1] ($RES_SIM_203) (295) [----] end for; (296) [FOR-] (30) ($RES_SIM_204) (296) [----] for {$i1 in 1:3, $i2 in 1:10} loop (296) [----] [SCAL] (1) ECO.wall.layer[$i1].port_int[$i2].Q_flow = ((ECO.wall.layer[$i1].port_int[$i2].T - ECO.wall.layer[$i1].T[$i2]) * ECO.wall.layer[$i1].numberOfParallelTubes * ((ECO.wall.layer[$i1].length * 3.141592653589793 * 2.0 * ECO.wall.layer[$i1].metal.lambda) / 10.0)) / $FUN_8[$i1] ($RES_SIM_205) (296) [----] end for; (297) [FOR-] (3) ($RES_SIM_206) (297) [----] for $i1 in 1:3 loop (297) [----] [SCAL] (1) ECO.wall.layer[$i1].Am = (ECO.wall.layer[$i1].rext ^ 2.0 - ECO.wall.layer[$i1].rint ^ 2.0) * 3.141592653589793 ($RES_SIM_207) (297) [----] end for; (298) [FOR-] (30) ($RES_SIM_208) (298) [----] for {$i1 in 1:3, $i2 in 1:10} loop (298) [----] [SCAL] (1) ECO.wall.layer[$i1].HeatCap * $DER.ECO.wall.layer[$i1].T[$i2] = ECO.wall.layer[$i1].port_int[$i2].Q_flow + ECO.wall.layer[$i1].port_ext[$i2].Q_flow ($RES_SIM_209) (298) [----] end for; (299) [SCAL] (1) $FUN_5 = log10(EVA.geoPipe.r / EVA.di) ($RES_$AUX_739) (300) [SCAL] (1) $FUN_6 = abs(EVA.m_flow) ($RES_$AUX_738) (301) [SCAL] (1) $FUN_7 = sum(EVA.drdp) ($RES_$AUX_737) (302) [FOR-] (3) ($RES_$AUX_735) (302) [----] for $i1 in 1:3 loop (302) [----] [SCAL] (1) $FUN_8[$i1] = log((ECO.wall.layer[$i1].rext + ECO.wall.layer[$i1].rint) / (ECO.wall.layer[$i1].rint * 2.0)) ($RES_$AUX_736) (302) [----] end for; (303) [FOR-] (3) ($RES_$AUX_733) (303) [----] for $i1 in 1:3 loop (303) [----] [SCAL] (1) $FUN_9[$i1] = log((ECO.wall.layer[$i1].rext * 2.0) / (ECO.wall.layer[$i1].rint + ECO.wall.layer[$i1].rext)) ($RES_$AUX_734) (303) [----] end for; (304) [SCAL] (1) 10.0 * ECO.dAverage = sum(ECO.d) ($RES_$AUX_732) (305) [SCAL] (1) 10.0 * ECO.volAverage = sum(ECO.vol) ($RES_$AUX_731) (306) [SCAL] (1) $FUN_12 = log10(ECO.geoPipe.r / ECO.di) ($RES_$AUX_730) (307) [FOR-] (3) ($RES_SIM_210) (307) [----] for $i1 in 1:3 loop (307) [----] [SCAL] (1) ECO.wall.layer[$i1].HeatCap = ECO.wall.layer[$i1].metal.cp * ECO.wall.layer[$i1].Tube_mass ($RES_SIM_211) (307) [----] end for; (308) [FOR-] (3) ($RES_SIM_212) (308) [----] for $i1 in 1:3 loop (308) [----] [SCAL] (1) ECO.wall.layer[$i1].Tube_mass = ((ECO.wall.layer[$i1].length * ECO.wall.layer[$i1].Am * ECO.wall.layer[$i1].metal.rho) / 10.0) * ECO.wall.layer[$i1].numberOfParallelTubes ($RES_SIM_213) (308) [----] end for; (309) [FOR-] (3) ($RES_SIM_214) (309) [----] for $i1 in 1:3 loop (309) [----] [SCAL] (1) ECO.wall.layer[$i1].rext = ECO.wall.layer[$i1].diameterInner * 0.5 + 0.001 ($RES_SIM_215) (309) [----] end for; (310) [FOR-] (3) ($RES_SIM_216) (310) [----] for $i1 in 1:3 loop (310) [----] [SCAL] (1) ECO.wall.layer[$i1].rint = ECO.wall.layer[$i1].diameterInner * 0.5 ($RES_SIM_217) (310) [----] end for; (311) [SCAL] (1) $DER.prescribedHeatFlow.Q_flow = (timeTable.C1signal.u - prescribedHeatFlow.Q_flow) / timeTable.C1signal.timeDelay ($RES_SIM_218) (312) [SCAL] (1) timeTable.C1signal.u = timeTable.originalTable.a * time + timeTable.originalTable.b ($RES_SIM_219) (313) [SCAL] (1) -((-273.15) - watersink_ph.water.T_degC) = watersink_ph.water.state.T ($RES_SIM_300) (314) [SCAL] (1) 99999.99999999999 * watersink_ph.water.p_bar = watersink_ph.water.state.p ($RES_SIM_301) (315) [SCAL] (1) watersink_ph.water.u = watersink_ph.h_start - (99999.99999999999 * watersink_ph.water.p_bar) / watersink_ph.water.d ($RES_SIM_304) (316) [SCAL] (1) watersink_ph.water.sat.psat = 99999.99999999999 * watersink_ph.water.p_bar ($RES_SIM_305) (317) [SCAL] (1) watersink_ph.water.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * watersink_ph.water.p_bar) ($RES_SIM_306) (318) [SCAL] (1) $FUN_13 = abs(ECO.m_flow) ($RES_$AUX_729) (319) [SCAL] (1) -((-273.15) - watersink_ph.water.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * watersink_ph.water.p_bar, watersink_ph.h_start, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * watersink_ph.water.p_bar, watersink_ph.h_start, watersink_ph.water.phase, 0)) ($RES_SIM_307) (320) [SCAL] (1) $FUN_14 = sum(ECO.drdp) ($RES_$AUX_728) (321) [SCAL] (1) watersink_ph.water.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * watersink_ph.water.p_bar, watersink_ph.h_start, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * watersink_ph.water.p_bar, watersink_ph.h_start, watersink_ph.water.phase, 0)) ($RES_SIM_308) (322) [SCAL] (1) watersink_ph.water.phase = if $SEV_35 then 1 else 2 ($RES_SIM_309) (323) [SCAL] (1) EVA.dp = ECO.portOut.p - 99999.99999999999 * watersink_ph.water.p_bar ($RES_SIM_221) (324) [-IF-] (1)if noEvent($SEV_28) then (324) [----] [SCAL] (1) EVA.hOut = watersink_ph.h_start ($RES_SIM_223) (324) [----] else (324) [----] [SCAL] (1) EVA.hOut = EVA.portOut.h_outflow ($RES_SIM_224) (324) [----] end if; (325) [-IF-] (1)if noEvent($SEV_29) then (325) [----] [SCAL] (1) EVA.hIn = ECO.portOut.h_outflow ($RES_SIM_226) (325) [----] else (325) [----] [SCAL] (1) EVA.hIn = EVA.portIn.h_outflow ($RES_SIM_227) (325) [----] end if; (326) [SCAL] (1) watersource_mh.h_port_actual = noEvent(if $SEV_36 then ECO.portIn.h_outflow else watersource_mh.h_start) ($RES_SIM_311) (327) [TUPL] (4) ($FUN_22, $FUN_23, $FUN_24, $FUN_25) = SiemensPower.Components.Pipes.Tests.tube_ownMedia_test.timeTable.originalTable.getInterpolationCoefficients(timeTable.originalTable.table, timeTable.originalTable.offset, timeTable.originalTable.startTime, time, timeTable.originalTable.last, 1e-13, timeTable.originalTable.shiftTime) ($RES_$AUX_718) (328) [TUPL] (4) ($FUN_26, $FUN_27, $FUN_28, $FUN_29) = SiemensPower.Components.Pipes.Tests.tube_ownMedia_test.timeTable1.originalTable.getInterpolationCoefficients(timeTable1.originalTable.table, timeTable1.originalTable.offset, timeTable1.originalTable.startTime, time, timeTable1.originalTable.last, 1e-13, timeTable1.originalTable.shiftTime) ($RES_$AUX_717) (329) [ARRY] (10) prescribedHeatFlow1.portsOut.Q_flow = -0.1 .* (2.5e7 * fill(1.0, 10)) ($RES_SIM_148) (330) [SCAL] (1) ECO.wall.layer[1].port_ext[7].Q_flow + ECO.wall.layer[2].port_int[7].Q_flow = 0.0 ($RES_SIM_400) (331) [SCAL] (1) 99999.99999999999 * $DER.watersink_ph.water.p_bar = (timeTable1.C1signal.u - 99999.99999999999 * watersink_ph.water.p_bar) / timeTable1.C1signal.timeDelay ($RES_SIM_149) (332) [SCAL] (1) ECO.wall.layer[1].port_ext[6].Q_flow + ECO.wall.layer[2].port_int[6].Q_flow = 0.0 ($RES_SIM_401) (333) [SCAL] (1) ECO.wall.layer[1].port_ext[5].Q_flow + ECO.wall.layer[2].port_int[5].Q_flow = 0.0 ($RES_SIM_402) (334) [SCAL] (1) ECO.wall.layer[1].port_ext[4].Q_flow + ECO.wall.layer[2].port_int[4].Q_flow = 0.0 ($RES_SIM_403) (335) [SCAL] (1) ECO.wall.layer[1].port_ext[3].Q_flow + ECO.wall.layer[2].port_int[3].Q_flow = 0.0 ($RES_SIM_404) (336) [SCAL] (1) ECO.wall.layer[1].port_ext[2].Q_flow + ECO.wall.layer[2].port_int[2].Q_flow = 0.0 ($RES_SIM_405) (337) [ARRY] (20) EVA.qMetalFluidDelayed = EVA.qMetalFluid ($RES_SIM_230) (338) [SCAL] (1) ECO.wall.layer[1].port_ext[1].Q_flow + ECO.wall.layer[2].port_int[1].Q_flow = 0.0 ($RES_SIM_406) (339) [ARRY] (20) EVA.heatport.Q_flow = EVA.geoPipe.Nt * (3.141592653589793 * EVA.di) * EVA.dz * EVA.qMetalFluidDelayed ($RES_SIM_231) (340) [SCAL] (1) ECO.wall.layer[1].port_int[10].Q_flow - ECO.wall.port_int[10].Q_flow = 0.0 ($RES_SIM_407) (341) [ARRY] (20) EVA.qMetalFluid = EVA.alpha * (EVA.TWall - EVA.T) ($RES_SIM_232) (342) [SCAL] (1) ECO.wall.layer[1].port_int[9].Q_flow - ECO.wall.port_int[9].Q_flow = 0.0 ($RES_SIM_408) (343) [SCAL] (1) EVA.alpha = EVA.alphaOffset + 400.0 * ($FUN_6 / (($FUN_6 / EVA.A * ($FUN_6 / EVA.A) + 1e-4) ^ 0.25 * EVA.A)) * EVA.alphaFactor ($RES_SIM_233) (344) [SCAL] (1) ECO.wall.layer[1].port_int[8].Q_flow - ECO.wall.port_int[8].Q_flow = 0.0 ($RES_SIM_409) (345) [FOR-] (20) ($RES_SIM_234) (345) [----] for $i1 in 1:20 loop (345) [----] [SCAL] (1) EVA.T[$i1] = SiemensPower.Media.TTSE.Utilities.T_ph(EVA.p, EVA.h[$i1], 0) ($RES_SIM_235) (345) [----] end for; (346) [FOR-] (20) ($RES_SIM_236) (346) [----] for $i1 in 1:20 loop (346) [----] [SCAL] (1) EVA.d[$i1] = SiemensPower.Media.TTSE.Utilities.rho_ph(EVA.p, EVA.h[$i1], 0) ($RES_SIM_237) (346) [----] end for; (347) [FOR-] (20) ($RES_SIM_238) (347) [----] for $i1 in 1:20 loop (347) [----] [SCAL] (1) EVA.drdp[$i1] = SiemensPower.Media.TTSE.Utilities.rho_ph_dp(EVA.p, EVA.h[$i1], 0) ($RES_SIM_239) (347) [----] end for; (348) [SCAL] (1) watersource_mh.medium.phase = watersource_mh.medium.state.phase ($RES_SIM_322) (349) [SCAL] (1) watersource_mh.medium.d = watersource_mh.medium.state.d ($RES_SIM_323) (350) [SCAL] (1) -((-273.15) - watersource_mh.medium.T_degC) = watersource_mh.medium.state.T ($RES_SIM_324) (351) [SCAL] (1) 99999.99999999999 * watersource_mh.medium.p_bar = watersource_mh.medium.state.p ($RES_SIM_325) (352) [SCAL] (1) timeTable1.C1signal.u = timeTable1.originalTable.a * time + timeTable1.originalTable.b ($RES_SIM_150) (353) [SCAL] (1) ECO.dp = 99999.99999999999 * watersource_mh.medium.p_bar - ECO.portOut.p ($RES_SIM_152) (354) [SCAL] (1) watersource_mh.medium.u = watersource_mh.h_start - (99999.99999999999 * watersource_mh.medium.p_bar) / watersource_mh.medium.d ($RES_SIM_328) (355) [-IF-] (1)if noEvent($SEV_24) then (355) [----] [SCAL] (1) ECO.hOut = EVA.portIn.h_outflow ($RES_SIM_154) (355) [----] else (355) [----] [SCAL] (1) ECO.hOut = ECO.portOut.h_outflow ($RES_SIM_155) (355) [----] end if; (356) [SCAL] (1) watersource_mh.medium.sat.psat = 99999.99999999999 * watersource_mh.medium.p_bar ($RES_SIM_329) (357) [-IF-] (1)if noEvent($SEV_25) then (357) [----] [SCAL] (1) ECO.hIn = watersource_mh.h_start ($RES_SIM_157) (357) [----] else (357) [----] [SCAL] (1) ECO.hIn = ECO.portIn.h_outflow ($RES_SIM_158) (357) [----] end if; (358) [SCAL] (1) ECO.wall.layer[1].port_int[7].Q_flow - ECO.wall.port_int[7].Q_flow = 0.0 ($RES_SIM_410) (359) [SCAL] (1) ECO.wall.layer[1].port_int[6].Q_flow - ECO.wall.port_int[6].Q_flow = 0.0 ($RES_SIM_411) (360) [SCAL] (1) ECO.wall.layer[1].port_int[5].Q_flow - ECO.wall.port_int[5].Q_flow = 0.0 ($RES_SIM_412) (361) [SCAL] (1) ECO.wall.layer[1].port_int[4].Q_flow - ECO.wall.port_int[4].Q_flow = 0.0 ($RES_SIM_413) (362) [SCAL] (1) ECO.wall.layer[1].port_int[3].Q_flow - ECO.wall.port_int[3].Q_flow = 0.0 ($RES_SIM_414) (363) [SCAL] (1) ECO.wall.layer[1].port_int[2].Q_flow - ECO.wall.port_int[2].Q_flow = 0.0 ($RES_SIM_415) (364) [FOR-] (20) ($RES_SIM_240) (364) [----] for $i1 in 1:20 loop (364) [----] [SCAL] (1) EVA.drdh[$i1] = SiemensPower.Media.TTSE.Utilities.rho_ph_dh(EVA.p, EVA.h[$i1], 0) ($RES_SIM_241) (364) [----] end for; (365) [SCAL] (1) ECO.wall.layer[1].port_int[1].Q_flow - ECO.wall.port_int[1].Q_flow = 0.0 ($RES_SIM_416) (366) [-IF-] (1)if $SEV_30 then (366) [----] [SCAL] (1) $DER.EVA.h[20] + ((watersink_ph.h_start - EVA.h[20]) * EVA.m_flow) / (EVA.dz * EVA.d[20] * EVA.A) = (EVA.qMetalFluidDelayed[20] * 4.0) / (EVA.di * EVA.d[20]) + $DER.EVA.p / EVA.d[20] ($RES_SIM_243) (366) [----] else (366) [----] [SCAL] (1) $DER.EVA.h[20] + ((EVA.h[20] - EVA.h[19]) * EVA.m_flow) / (EVA.dz * EVA.d[20] * EVA.A) = (EVA.qMetalFluidDelayed[20] * 4.0) / (EVA.di * EVA.d[20]) + $DER.EVA.p / EVA.d[20] ($RES_SIM_244) (366) [----] end if; (367) [SCAL] (1) EVA.wall.layer[3].port_ext[20].Q_flow - EVA.wall.port_ext[20].Q_flow = 0.0 ($RES_SIM_418) (368) [SCAL] (1) EVA.wall.layer[3].port_ext[19].Q_flow - EVA.wall.port_ext[19].Q_flow = 0.0 ($RES_SIM_419) (369) [FOR-] (18) ($RES_SIM_245) (369) [----] for $i1 in 2:19 loop (369) [----] [-IF-] (1)if $SEV_31[$i1] then (369) [----] [----] [SCAL] (1) $DER.EVA.h[$i1] + ((EVA.h[$i1 + 1] - EVA.h[$i1]) * EVA.m_flow) / (EVA.dz * EVA.d[$i1] * EVA.A) = (EVA.qMetalFluidDelayed[$i1] * 4.0) / (EVA.di * EVA.d[$i1]) + $DER.EVA.p / EVA.d[$i1] ($RES_SIM_247) (369) [----] [----] else (369) [----] [----] [SCAL] (1) $DER.EVA.h[$i1] + ((EVA.h[$i1] - EVA.h[$i1 - 1]) * EVA.m_flow) / (EVA.dz * EVA.d[$i1] * EVA.A) = (EVA.qMetalFluidDelayed[$i1] * 4.0) / (EVA.di * EVA.d[$i1]) + $DER.EVA.p / EVA.d[$i1] ($RES_SIM_248) (369) [----] [----] end if; (369) [----] end for; (370) [-IF-] (1)if $SEV_30 then (370) [----] [SCAL] (1) $DER.EVA.h[1] + ((EVA.h[2] - EVA.h[1]) * EVA.m_flow) / (EVA.dz * EVA.d[1] * EVA.A) = (EVA.qMetalFluidDelayed[1] * 4.0) / (EVA.di * EVA.d[1]) + $DER.EVA.p / EVA.d[1] ($RES_SIM_250) (370) [----] else (370) [----] [SCAL] (1) $DER.EVA.h[1] + ((EVA.h[1] - ECO.portOut.h_outflow) * EVA.m_flow) / (EVA.dz * EVA.d[1] * EVA.A) = (EVA.qMetalFluidDelayed[1] * 4.0) / (EVA.di * EVA.d[1]) + $DER.EVA.p / EVA.d[1] ($RES_SIM_251) (370) [----] end if; (371) [SCAL] (1) watersource_mh.medium.sat.Tsat = Modelica.Media.Water.IF97_Utilities.BaseIF97.Basic.tsat(99999.99999999999 * watersource_mh.medium.p_bar) ($RES_SIM_330) (372) [SCAL] (1) -((-273.15) - watersource_mh.medium.T_degC) = Modelica.Media.Water.IF97_Utilities.T_props_ph(99999.99999999999 * watersource_mh.medium.p_bar, watersource_mh.h_start, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * watersource_mh.medium.p_bar, watersource_mh.h_start, watersource_mh.medium.phase, 0)) ($RES_SIM_331) (373) [SCAL] (1) $TEV_1 = $PRE.timeTable1.originalTable.nextEvent ($RES_EVT_802) (374) [SCAL] (1) watersource_mh.medium.d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(99999.99999999999 * watersource_mh.medium.p_bar, watersource_mh.h_start, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(99999.99999999999 * watersource_mh.medium.p_bar, watersource_mh.h_start, watersource_mh.medium.phase, 0)) ($RES_SIM_332) (375) [SCAL] (1) $TEV_2 = $PRE.timeTable.originalTable.nextEvent ($RES_EVT_803) (376) [SCAL] (1) watersource_mh.medium.phase = if $SEV_39 then 1 else 2 ($RES_SIM_333) (377) [ARRY] (10) $DER.ECO.qMetalFluidDelayed = (ECO.qMetalFluid - ECO.qMetalFluidDelayed) / ECO.timeDelayOfInnerHeatTransfer ($RES_SIM_161) (378) [ARRY] (10) ECO.heatport.Q_flow = ECO.geoPipe.Nt * (3.141592653589793 * ECO.di) * ECO.dz * ECO.qMetalFluidDelayed ($RES_SIM_162) (379) [ARRY] (10) ECO.qMetalFluid = ECO.alpha * (ECO.TWall - ECO.T) ($RES_SIM_163) (380) [SCAL] (1) ECO.alpha = ECO.alphaOffset + 400.0 * ($FUN_13 / (($FUN_13 / ECO.A * ($FUN_13 / ECO.A) + 1e-4) ^ 0.25 * ECO.A)) * ECO.alphaFactor ($RES_SIM_164) (381) [FOR-] (10) ($RES_SIM_165) (381) [----] for $i1 in 1:10 loop (381) [----] [SCAL] (1) ECO.T[$i1] = SiemensPower.Media.TTSE.Utilities.T_ph(ECO.p, ECO.h[$i1], 0) ($RES_SIM_166) (381) [----] end for; (382) [FOR-] (10) ($RES_SIM_167) (382) [----] for $i1 in 1:10 loop (382) [----] [SCAL] (1) ECO.d[$i1] = SiemensPower.Media.TTSE.Utilities.rho_ph(ECO.p, ECO.h[$i1], 0) ($RES_SIM_168) (382) [----] end for; (383) [SCAL] (1) EVA.wall.layer[3].port_ext[18].Q_flow - EVA.wall.port_ext[18].Q_flow = 0.0 ($RES_SIM_420) (384) [FOR-] (10) ($RES_SIM_169) (384) [----] for $i1 in 1:10 loop (384) [----] [SCAL] (1) ECO.drdp[$i1] = SiemensPower.Media.TTSE.Utilities.rho_ph_dp(ECO.p, ECO.h[$i1], 0) ($RES_SIM_170) (384) [----] end for; (385) [SCAL] (1) EVA.wall.layer[3].port_ext[17].Q_flow - EVA.wall.port_ext[17].Q_flow = 0.0 ($RES_SIM_421) (386) [SCAL] (1) EVA.wall.layer[3].port_ext[16].Q_flow - EVA.wall.port_ext[16].Q_flow = 0.0 ($RES_SIM_422) (387) [SCAL] (1) EVA.wall.layer[3].port_ext[15].Q_flow - EVA.wall.port_ext[15].Q_flow = 0.0 ($RES_SIM_423) (388) [SCAL] (1) EVA.wall.layer[3].port_ext[14].Q_flow - EVA.wall.port_ext[14].Q_flow = 0.0 ($RES_SIM_424) (389) [SCAL] (1) EVA.wall.layer[3].port_ext[13].Q_flow - EVA.wall.port_ext[13].Q_flow = 0.0 ($RES_SIM_425) (390) [SCAL] (1) EVA.wall.layer[3].port_ext[12].Q_flow - EVA.wall.port_ext[12].Q_flow = 0.0 ($RES_SIM_426) (391) [SCAL] (1) EVA.wall.layer[3].port_ext[11].Q_flow - EVA.wall.port_ext[11].Q_flow = 0.0 ($RES_SIM_427) (392) [SCAL] (1) ((99999.99999999999 * watersink_ph.water.p_bar - ECO.portOut.p) * EVA.A) / EVA.geoPipe.L + (EVA.A * EVA.dphyd) / EVA.geoPipe.L + $DER.EVA.m_flow + (EVA.A * EVA.dpfric) / EVA.geoPipe.L = 0.0 ($RES_SIM_252) (393) [SCAL] (1) EVA.wall.layer[3].port_ext[10].Q_flow - EVA.wall.port_ext[10].Q_flow = 0.0 ($RES_SIM_428) (394) [SCAL] (1) 0.05 * ($FUN_7 * $DER.EVA.p + EVA.drdh * $DER.EVA.h) - (EVA.portIn.m_flow - watersink_ph.port.m_flow) / (EVA.geoPipe.Nt * EVA.V) = 0.0 ($RES_SIM_253)