Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A_Fast.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A_Fast,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A_Fast") translateModel(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A_Fast,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A_Fast") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001332, allocations: 103 kB / 17.63 MB, free: 5.527 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.0009772/0.0009771, allocations: 193.5 kB / 18.56 MB, free: 4.602 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.344/1.344, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2683/0.2683, allocations: 48.84 MB / 320.6 MB, free: 11.08 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.435e-05/3.437e-05, allocations: 2.281 kB / 390.8 MB, free: 48.83 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_A_Fast): time 0.04442/0.04448, allocations: 52.33 MB / 443.1 MB, free: 368 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00303/0.04756, allocations: 1.301 MB / 444.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003508/0.04793, allocations: 11.94 kB / 444.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007555/0.04869, allocations: 266.2 kB / 444.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008056/0.04957, allocations: 457.5 kB / 445.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001962/0.05157, allocations: 0.8133 MB / 445.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001646/0.05322, allocations: 1.629 MB / 447.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005884/0.05382, allocations: 400.9 kB / 447.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007186/0.05455, allocations: 0.5063 MB / 448.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005127/0.05508, allocations: 467.6 kB / 448.9 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.048e-05/0.05516, allocations: 48 kB / 448.9 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06273/0.1179, allocations: 30.36 MB / 479.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of combineBinaries: time 0.00155/0.1195, allocations: 1.153 MB / 480.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006042/0.1201, allocations: 0.7281 MB / 481.2 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002395/0.1204, allocations: 115.6 kB / 481.3 MB, free: 9.809 MB / 366.1 MB Notification: Performance of FrontEnd: time 0.000204/0.1206, allocations: 12 kB / 481.3 MB, free: 9.797 MB / 366.1 MB Notification: Could not parse annotation "Evaluate" in the backend. Notification: Could not parse annotation "choices" in the backend. Notification: Could not parse annotation "Evaluate" in the backend. Notification: Could not parse annotation "choices" in the backend. Notification: Could not parse annotation "Evaluate" in the backend. Notification: Could not parse annotation "choices" in the backend. Notification: Could not parse annotation "Evaluate" in the backend. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 (101) * Number of variables: 636 (102) Notification: Performance of Bindings: time 0.002876/0.1235, allocations: 3.042 MB / 484.4 MB, free: 6.637 MB / 366.1 MB Notification: Performance of FunctionAlias: time 0.0002753/0.1237, allocations: 204.5 kB / 484.6 MB, free: 6.445 MB / 366.1 MB Notification: Performance of Early Inline: time 0.0005544/0.1243, allocations: 408.3 kB / 485 MB, free: 6.02 MB / 366.1 MB Notification: Performance of simplify1: time 9.804e-05/0.1244, allocations: 91.86 kB / 485 MB, free: 5.93 MB / 366.1 MB Notification: Performance of Alias: time 0.002214/0.1266, allocations: 1.826 MB / 486.9 MB, free: 3.891 MB / 366.1 MB Notification: Performance of simplify2: time 7.13e-05/0.1267, allocations: 59.92 kB / 486.9 MB, free: 3.832 MB / 366.1 MB Notification: Performance of Events: time 0.0002622/0.127, allocations: 195.4 kB / 487.1 MB, free: 3.641 MB / 366.1 MB Notification: Performance of Detect States: time 0.000422/0.1274, allocations: 321.6 kB / 487.4 MB, free: 3.312 MB / 366.1 MB Notification: Performance of Partitioning: time 0.0005228/0.128, allocations: 462.1 kB / 487.9 MB, free: 2.824 MB / 366.1 MB Error: Internal error NBAdjacency.Matrix.createPseudo failed for [FOR-] (19) ($RES_$AUX_130) [----] for j in 1:19 loop [----] [SCAL] (1) $FUN_5[integer(1.0 + ((-1.0) + j))] = sum(hex.dMdt[1:j - 1]) ($RES_$AUX_131) [----] end for; Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (65/617) *************************** (1) [ALGB] (1) Real T_out.h (min = -1e10, max = 1e10, nominal = 1e6) (2) [ALGB] (1) Real ExtPower.y (3) [ALGB] (20) Real[20] hex.fluidState.p (start = {1e5 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, max = {1e8 for $i1 in 1:20}, nominal = {1e5 for $i1 in 1:20}) (4) [ALGB] (1) Real hex.omega_hyd (5) [ALGB] (20) protected Real[20] hex.drdp (6) [ALGB] (1) Real hex.Dpfric1 (7) [ALGB] (19) Real[19] hex.heatTransfer.Qvol (8) [ALGB] (1) stream Real T_in.inlet.h_outflow (min = -1e10, max = 1e10, nominal = 1e6) (9) [ALGB] (1) stream Real T_out.outlet.h_outflow (min = -1e10, max = 1e10, nominal = 1e6) (10) [ALGB] (20) protected Real[20] hex.drdh (11) [ALGB] (19) Real[19] hex.heatTransfer.wall.T (start = {288.15 for $i1 in 1:19}, min = {0.0 for $i1 in 1:19}, nominal = {300.0 for $i1 in 1:19}) (12) [ALGB] (1) Real T_out.T (13) [ALGB] (1) Real hex.Kf (14) [ALGB] (19) flow Real[19] hex.heatTransfer.wall.Q (15) [ALGB] (1) Real T_in.h (min = -1e10, max = 1e10, nominal = 1e6) (16) [ALGB] (20) Real[20] hex.heatTransfer.T (start = {288.15 for $i1 in 1:20}, min = {1.0 for $i1 in 1:20}, max = {1e4 for $i1 in 1:20}, nominal = {300.0 for $i1 in 1:20}) (17) [ALGB] (19) protected Real[19] hex.drbdp (18) [ALGB] (20) Real[20] hex.fluidState.T (start = {288.15 for $i1 in 1:20}, min = {1.0 for $i1 in 1:20}, max = {1e4 for $i1 in 1:20}, nominal = {300.0 for $i1 in 1:20}) (19) [ALGB] (1) Real hex.Cf (20) [DER-] (19) Real[19] $DER.hex.htilde (21) [ALGB] (20) final input Real[20] hex.heatTransfer.fluidState.p = {hex.fluidState[1].p, hex.fluidState[2].p, hex.fluidState[3].p, hex.fluidState[4].p, hex.fluidState[5].p, hex.fluidState[6].p, hex.fluidState[7].p, hex.fluidState[8].p, hex.fluidState[9].p, hex.fluidState[10].p, hex.fluidState[11].p, hex.fluidState[12].p, hex.fluidState[13].p, hex.fluidState[14].p, hex.fluidState[15].p, hex.fluidState[16].p, hex.fluidState[17].p, hex.fluidState[18].p, hex.fluidState[19].p, hex.fluidState[20].p} (start = {1e5 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, max = {1e8 for $i1 in 1:20}, nominal = {1e5 for $i1 in 1:20}) (22) [ALGB] (1) Real $FUN_9 (23) [ALGB] (1) Real $FUN_6 (24) [ALGB] (19) Real[19] $FUN_5 (25) [ALGB] (19) protected Real[19] hex.drbdh (26) [ALGB] (19) Real[19] hex.dMdt (27) [ALGB] (1) Real hex.Mtot (min = 0.0) (28) [ALGB] (1) Real $FUN_3 (29) [ALGB] (1) Real $FUN_2 (30) [DER-] (1) Real $DER.hex.p (31) [ALGB] (1) Real T_in.T (32) [ALGB] (20) Real[20] hex.rho (start = {1.0 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}, nominal = {1.0 for $i1 in 1:20}) (33) [ALGB] (1) Real hex.w (start = hex.wnom / hex.Nt, min = -1e5, max = 1e5) (34) [ALGB] (20) Real[20] hex.u (35) [ALGB] (20) final input Real[20] hex.heatTransfer.fluidState.T = {hex.fluidState[1].T, hex.fluidState[2].T, hex.fluidState[3].T, hex.fluidState[4].T, hex.fluidState[5].T, hex.fluidState[6].T, hex.fluidState[7].T, hex.fluidState[8].T, hex.fluidState[9].T, hex.fluidState[10].T, hex.fluidState[11].T, hex.fluidState[12].T, hex.fluidState[13].T, hex.fluidState[14].T, hex.fluidState[15].T, hex.fluidState[16].T, hex.fluidState[17].T, hex.fluidState[18].T, hex.fluidState[19].T, hex.fluidState[20].T} (start = {288.15 for $i1 in 1:20}, min = {1.0 for $i1 in 1:20}, max = {1e4 for $i1 in 1:20}, nominal = {300.0 for $i1 in 1:20}) (36) [ALGB] (19) flow Real[19] heatSource.wall.Q (37) [ALGB] (20) final Real[20] hex.heatTransfer.w (min = {-1e5 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}) (38) [ALGB] (19) Real[19] heatSource.wall.T (start = {288.15 for $i1 in 1:19}, min = {0.0 for $i1 in 1:19}, nominal = {300.0 for $i1 in 1:19}) (39) [ALGB] (19) Real[19] hex.wall.T (start = {288.15 for $i1 in 1:19}, min = {0.0 for $i1 in 1:19}, nominal = {300.0 for $i1 in 1:19}) (40) [ALGB] (1) Real MassFlowRate.y (41) [ALGB] (20) Real[20] hex.h (start = {hex.hstart[$h1] for $h1 in 1:20}, min = {-1e10 for $i1 in 1:20}, max = {1e10 for $i1 in 1:20}, nominal = {1e6 for $i1 in 1:20}) (42) [ALGB] (19) flow Real[19] hex.wall.Q (43) [ALGB] (19) protected Real[19] hex.vbar (min = {0.0 for $i1 in 1:19}) (44) [ALGB] (19) Real[19] hex.heatTransfer.Qw (45) [ALGB] (19) Real[19] hex.wbar (start = {hex.wnom / hex.Nt for $wbar1 in 1:19}, min = {-1e5 for $i1 in 1:19}, max = {1e5 for $i1 in 1:19}) (46) [ALGB] (1) Real tau (47) [ALGB] (19) protected Real[19] hex.rhobar (start = {1.0 for $i1 in 1:19}, min = {0.0 for $i1 in 1:19}, max = {1e5 for $i1 in 1:19}, nominal = {1.0 for $i1 in 1:19}) (48) [DISC] (1) Boolean $SEV_6 (49) [ALGB] (20) Real[20] hex.T (start = {288.15 for $i1 in 1:20}, min = {1.0 for $i1 in 1:20}, max = {1e4 for $i1 in 1:20}, nominal = {300.0 for $i1 in 1:20}) (50) [DISC] (1) Boolean $SEV_5 (51) [DISC] (1) Boolean $SEV_4 (52) [ALGB] (1) Real hex.Q (53) [DISC] (1) Boolean $SEV_3 (54) [ALGB] (1) Real valve.w (min = -1e5, max = 1e5) (55) [ALGB] (1) Real hex.Tr (56) [ALGB] (1) Real hex.M (min = 0.0) (57) [DISC] (1) Boolean $TEV_2 (58) [DISC] (1) Boolean $TEV_1 (59) [ALGB] (1) Real hex.Dpfric (60) [DISC] (1) Boolean $TEV_0 (61) [ALGB] (19) Real[19] hex.heatTransfer.Tw (start = {288.15 for $i1 in 1:19}, min = {1.0 for $i1 in 1:19}, max = {1e4 for $i1 in 1:19}, nominal = {300.0 for $i1 in 1:19}) (62) [ALGB] (1) stream Real T_in.outlet.h_outflow (min = -1e10, max = 1e10, nominal = 1e6) (63) [ALGB] (19) Real[19] hex.Q_single (64) [ALGB] (1) Real T_in.fluidState.p (start = 1e5, min = 0.0, max = 1e8, nominal = 1e5) (65) [ALGB] (1) Real hex.wout (min = -1e5, max = 1e5) System Equations (67/529) *************************** (1) [FOR-] (19) ($RES_SIM_51) (1) [----] for j in 1:19 loop (1) [----] [SCAL] (1) (hex.wbar[j] * (hex.h[j + 1] - hex.h[j]) + hex.rhobar[j] * hex.l * hex.A * $DER.hex.htilde[j]) - hex.l * hex.A * $DER.hex.p = hex.Q_single[j] ($RES_SIM_52) (1) [----] end for; (2) [SCAL] (1) MassFlowRate.y = MassFlowRate.offset + (if $TEV_2 then 0.0 else MassFlowRate.height) ($RES_SIM_16) (3) [FOR-] (19) ($RES_SIM_17) (3) [----] for i in 1:19 loop (3) [----] [SCAL] (1) heatSource.wall.Q[i] = -ExtPower.y / 19.0 ($RES_SIM_18) (3) [----] end for; (4) [FOR-] (19) ($RES_SIM_53) (4) [----] for j in 1:19 loop (4) [----] [SCAL] (1) hex.dMdt[j] = hex.l * hex.A * (hex.drbdh[j] * $DER.hex.htilde[j] + hex.drbdp[j] * $DER.hex.p) ($RES_SIM_54) (4) [----] end for; (5) [SCAL] (1) hex.fluidState[j].p = hex.p ($RES_SIM_136) (6) [SCAL] (1) hex.fluidState[j].T = (hex.h[j] - 104929.29464256502 - (hex.p - 101325.0) * 9.260700016004721e-4) / 4181.885502948851 + 298.15 ($RES_SIM_137) (7) [SCAL] (1) valve.w = Constant1.k * valve.Kv * (hex.p - fluidSink.p0) ($RES_SIM_90) (8) [FOR-] (19) ($RES_SIM_55) (8) [----] for j in 1:19 loop (8) [----] [SCAL] (1) hex.rhobar[j] = (hex.rho[j] + hex.rho[j + 1]) / 2.0 ($RES_SIM_56) (8) [----] end for; (9) [SCAL] (1) T_in.T = (T_in.h - 104929.29464256502 - (T_in.fluidState.p - 101325.0) * 9.260700016004721e-4) / 4181.885502948851 + 298.15 ($RES_SIM_139) (10) [FOR-] (19) ($RES_SIM_57) (10) [----] for j in 1:19 loop (10) [----] [SCAL] (1) hex.drbdp[j] = (hex.drdp[j] + hex.drdp[j + 1]) / 2.0 ($RES_SIM_58) (10) [----] end for; (11) [FOR-] (19) ($RES_SIM_59) (11) [----] for j in 1:19 loop (11) [----] [SCAL] (1) hex.drbdh[j] = (hex.drdh[j] + hex.drdh[j + 1]) / 2.0 ($RES_SIM_60) (11) [----] end for; (12) [SCAL] (1) hex.Q = sum(hex.heatTransfer.wall.Q) ($RES_$AUX_135) (13) [SCAL] (1) T_out.T = (T_out.h - 104929.29464256502 - (fluidSink.p0 - 101325.0) * 9.260700016004721e-4) / 4181.885502948851 + 298.15 ($RES_SIM_141) (14) [SCAL] (1) $FUN_2 = sum(hex.dMdt) ($RES_$AUX_134) (15) [FOR-] (19) ($RES_SIM_61) (15) [----] for j in 1:19 loop (15) [----] [SCAL] (1) hex.vbar[j] = 1.0 / hex.rhobar[j] ($RES_SIM_62) (15) [----] end for; (16) [SCAL] (1) $FUN_3 = sum(hex.vbar) ($RES_$AUX_133) (17) [SCAL] (1) hex.Dpfric1 = homotopy(0.05263157894736842 * $FUN_3 * (hex.w * sqrt(hex.w * hex.w + (hex.wnom / hex.Nt) * hex.wnf * ((hex.wnom / hex.Nt) * hex.wnf))) * hex.Kf, (hex.dpnom / (hex.wnom / hex.Nt)) * hex.w) ($RES_$AUX_132) (18) [SCAL] (1) hex.Tr = noEvent(hex.M / max(hex.w, 1e-15)) ($RES_SIM_27) (19) [FOR-] (19) ($RES_SIM_63) (19) [----] for j in 1:19 loop (19) [----] [SCAL] (1) hex.wbar[j] = MassFlowRate.y / hex.Nt - (hex.dMdt[j] / 2.0 + $FUN_5[integer(1.0 + ((-1.0) + j))]) ($RES_SIM_64) (19) [----] end for; (20) [SCAL] (1) hex.Mtot = hex.M * hex.Nt ($RES_SIM_28) (21) [FOR-] (19) ($RES_$AUX_130) (21) [----] for j in 1:19 loop (21) [----] [SCAL] (1) $FUN_5[integer(1.0 + ((-1.0) + j))] = sum(hex.dMdt[1:j - 1]) ($RES_$AUX_131) (21) [----] end for; (22) [SCAL] (1) hex.M = hex.A * $FUN_6 * hex.l ($RES_SIM_29) (23) [SCAL] (1) hex.Dpfric = hex.Dpfric1 ($RES_SIM_68) (24) [SCAL] (1) (hex.p + hex.Dpfric) - T_in.fluidState.p = 0.0 ($RES_SIM_69) (25) [SCAL] (1) $TEV_0 = time < ExtPower.startTime ($RES_EVT_142) (26) [SCAL] (1) $TEV_1 = time < InSpecEnthalpy.startTime ($RES_EVT_143) (27) [SCAL] (1) $TEV_2 = time < MassFlowRate.startTime ($RES_EVT_144) (28) [SCAL] (1) $SEV_3 = hex.w > (-hex.wnom * hex.wnm) ($RES_EVT_148) (29) [SCAL] (1) $SEV_4 = hex.Kf >= 0.0 ($RES_EVT_149) (30) [ARRY] (20) hex.heatTransfer.fluidState.p = {hex.fluidState[1].p, hex.fluidState[2].p, hex.fluidState[3].p, hex.fluidState[4].p, hex.fluidState[5].p, hex.fluidState[6].p, hex.fluidState[7].p, hex.fluidState[8].p, hex.fluidState[9].p, hex.fluidState[10].p, hex.fluidState[11].p, hex.fluidState[12].p, hex.fluidState[13].p, hex.fluidState[14].p, hex.fluidState[15].p, hex.fluidState[16].p, hex.fluidState[17].p, hex.fluidState[18].p, hex.fluidState[19].p, hex.fluidState[20].p} ($RES_BND_124) (31) [ARRY] (20) hex.heatTransfer.fluidState.T = {hex.fluidState[1].T, hex.fluidState[2].T, hex.fluidState[3].T, hex.fluidState[4].T, hex.fluidState[5].T, hex.fluidState[6].T, hex.fluidState[7].T, hex.fluidState[8].T, hex.fluidState[9].T, hex.fluidState[10].T, hex.fluidState[11].T, hex.fluidState[12].T, hex.fluidState[13].T, hex.fluidState[14].T, hex.fluidState[15].T, hex.fluidState[16].T, hex.fluidState[17].T, hex.fluidState[18].T, hex.fluidState[19].T, hex.fluidState[20].T} ($RES_BND_125) (32) [SCAL] (1) $FUN_6 = sum(hex.rhobar) ($RES_$AUX_129) (33) [FOR-] (19) ($RES_SIM_113) (33) [----] for $i1 in 1:19 loop (33) [----] [SCAL] (1) heatSource.wall.Q[$i1] + hex.wall.Q[$i1] = 0.0 ($RES_SIM_114) (33) [----] end for; (34) [SCAL] (1) T_in.h = homotopy(if $SEV_5 then T_in.outlet.h_outflow else T_in.inlet.h_outflow, T_in.outlet.h_outflow) ($RES_$AUX_128) (35) [SCAL] (1) hex.h[2:20] = hex.htilde ($RES_SIM_31) (36) [SCAL] (1) T_out.h = homotopy(if $SEV_6 then T_out.outlet.h_outflow else fluidSink.h, T_out.outlet.h_outflow) ($RES_$AUX_127) (37) [SCAL] (1) hex.h[1] = T_in.outlet.h_outflow ($RES_SIM_32) (38) [SCAL] (1) heatSource.wall.T = hex.wall.T ($RES_SIM_115) (39) [SCAL] (1) $FUN_9 = sum(hex.rho) ($RES_$AUX_126) (40) [SCAL] (1) T_out.outlet.h_outflow = hex.htilde[19] ($RES_SIM_33) (41) [SCAL] (1) T_in.inlet.h_outflow = hex.h[1] ($RES_SIM_34) (42) [SCAL] (1) $FUN_2 = (MassFlowRate.y - valve.w) / hex.Nt ($RES_SIM_70) (43) [FOR-] (19) ($RES_SIM_119) (43) [----] for $i1 in 1:19 loop (43) [----] [SCAL] (1) (-hex.wall.Q[$i1]) + hex.heatTransfer.wall.Q[$i1] = 0.0 ($RES_SIM_120) (43) [----] end for; (44) [SCAL] (1) hex.wout = valve.w / hex.Nt ($RES_SIM_37) (45) [SCAL] (1) hex.Kf = (5.0 * hex.omega_hyd * hex.Cf) / hex.A ^ 3.0 ($RES_SIM_73) (46) [SCAL] (1) hex.w = MassFlowRate.y / hex.Nt ($RES_SIM_38) (47) [SCAL] (1) hex.Cf = hex.Cfnom * hex.Kfc ($RES_SIM_74) (48) [SCAL] (1) hex.omega_hyd = (4.0 * hex.A) / hex.Dhyd ($RES_SIM_75) (49) [SCAL] (1) hex.heatTransfer.Qw = hex.heatTransfer.wall.Q ($RES_SIM_77) (50) [SCAL] (1) $SEV_5 = MassFlowRate.y > 0.0 ($RES_EVT_150) (51) [SCAL] (1) hex.heatTransfer.Tw = hex.heatTransfer.wall.T ($RES_SIM_78) (52) [SCAL] (1) $SEV_6 = valve.w > 0.0 ($RES_EVT_151) (53) [FOR-] (20) ($RES_SIM_79) (53) [----] for j in 1:20 loop (53) [----] [SCAL] (1) hex.heatTransfer.T[j] = hex.heatTransfer.fluidState.p ($RES_SIM_80) (53) [----] end for; (54) [SCAL] (1) hex.wall.T = hex.heatTransfer.wall.T ($RES_SIM_121) (55) [FOR-] (20) ($RES_SIM_41) (55) [----] for j in 1:20 loop (55) [----] [SCAL] (1) hex.T[j] = hex.fluidState.p ($RES_SIM_42) (55) [----] end for; (56) [FOR-] (20) ($RES_SIM_43) (56) [----] for j in 1:20 loop (56) [----] [SCAL] (1) hex.rho[j] = (1.0 + (hex.fluidState.T - 101325.0) * 4.5154260364919865e-10 - (hex.fluidState.p - 298.15) * 2.571314017648316e-4) * 997.0480319717385 ($RES_SIM_44) (56) [----] end for; (57) [FOR-] (20) ($RES_SIM_45) (57) [----] for j in 1:20 loop (57) [----] [SCAL] (1) hex.drdp[j] = 5.06982799284244e-7 ($RES_SIM_46) (57) [----] end for; (58) [FOR-] (19) ($RES_SIM_81) (58) [----] for j in 1:19 loop (58) [----] [SCAL] (1) hex.heatTransfer.wall.T[j] = hex.heatTransfer.T[j + 1] ($RES_SIM_82) (58) [----] end for; (59) [FOR-] (20) ($RES_SIM_47) (59) [----] for j in 1:20 loop (59) [----] [SCAL] (1) hex.drdh[j] = -6.130544652812209e-5 ($RES_SIM_48) (59) [----] end for; (60) [ARRY] (19) hex.heatTransfer.Qvol = hex.heatTransfer.Qw ($RES_SIM_83) (61) [ARRY] (20) hex.heatTransfer.w = hex.w * fill(1.0, 20) ($RES_SIM_84) (62) [FOR-] (20) ($RES_SIM_49) (62) [----] for j in 1:20 loop (62) [----] [SCAL] (1) hex.u[j] = hex.w / (hex.A * hex.rho[j]) ($RES_SIM_50) (62) [----] end for; (63) [ARRY] (40) hex.heatTransfer.fluidState = hex.fluidState ($RES_SIM_85) (64) [ARRY] (19) hex.Q_single = hex.heatTransfer.Qvol / hex.Nt ($RES_SIM_86) (65) [SCAL] (1) tau = (10.0 * Ahex * (0.05 * $FUN_9)) / whex ($RES_SIM_5) (66) [SCAL] (1) ExtPower.y = ExtPower.offset + (if $TEV_0 then 0.0 else ExtPower.height) ($RES_SIM_13) (67) [SCAL] (1) T_in.outlet.h_outflow = InSpecEnthalpy.offset + (if $TEV_1 then 0.0 else InSpecEnthalpy.height) ($RES_SIM_14)