Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.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_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D") translateModel(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 104.1 kB / 17.63 MB, free: 5.547 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.001162/0.001162, allocations: 193.9 kB / 18.56 MB, free: 4.625 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.408/1.408, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2845/0.2845, allocations: 48.84 MB / 320.6 MB, free: 11.1 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.661e-05, allocations: 4.031 kB / 390.8 MB, free: 48.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D): time 0.02732/0.02736, allocations: 40.13 MB / 430.9 MB, free: 12.56 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01332/0.04073, allocations: 15.2 MB / 446.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004571/0.04123, allocations: 15.88 kB / 446.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006845/0.04192, allocations: 222.5 kB / 446.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01373/0.05574, allocations: 4.701 MB / 451 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003612/0.05938, allocations: 1.227 MB / 452.3 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001875/0.06127, allocations: 1.45 MB / 453.7 MB, free: 5.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004622/0.06174, allocations: 338.7 kB / 454 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006115/0.06236, allocations: 466.6 kB / 454.5 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004629/0.06284, allocations: 430.4 kB / 454.9 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.798e-05/0.0629, allocations: 40 kB / 455 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009414/0.07232, allocations: 5.631 MB / 460.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.0009318/0.0733, allocations: 1.068 MB / 461.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 0.000436/0.07375, allocations: 0.686 MB / 462.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001734/0.07393, allocations: 103.7 kB / 462.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.0001506/0.07409, allocations: 15.94 kB / 462.5 MB, free: 12.96 MB / 350.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: 226 (91) * Number of variables: 216 (93) Notification: Performance of Bindings: time 0.002631/0.07673, allocations: 2.934 MB / 465.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of FunctionAlias: time 0.0002368/0.07697, allocations: 164.2 kB / 465.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of Early Inline: time 0.0006051/0.07759, allocations: 428.9 kB / 466 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simplify1: time 7.93e-05/0.07768, allocations: 79.89 kB / 466.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of Alias: time 0.001724/0.07941, allocations: 1.534 MB / 467.6 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simplify2: time 6.836e-05/0.07949, allocations: 55.94 kB / 467.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of Events: time 0.0001857/0.07968, allocations: 159.6 kB / 467.8 MB, free: 7.297 MB / 350.1 MB Notification: Performance of Detect States: time 0.0003554/0.08004, allocations: 320 kB / 468.1 MB, free: 6.969 MB / 350.1 MB Notification: Performance of Partitioning: time 0.0004953/0.08055, allocations: 470.5 kB / 468.6 MB, free: 6.477 MB / 350.1 MB Error: Internal error NBAdjacency.Matrix.createPseudo failed for [FOR-] (4) ($RES_$AUX_117) [----] for j in 1:4 loop [----] [SCAL] (1) $FUN_5[integer(1.0 + ((-1.0) + j))] = sum(hex.dMdt[1:j - 1]) ($RES_$AUX_118) [----] end for; Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (64/190) *************************** (1) [ALGB] (5) Real[5] hex.fluidState.p (start = {5e6 for $i1 in 1:5}, min = {611.657 for $i1 in 1:5}, max = {1e8 for $i1 in 1:5}, nominal = {1e6 for $i1 in 1:5}) (2) [ALGB] (1) Real hex.omega_hyd (3) [ALGB] (5) protected Real[5] hex.drdp (4) [ALGB] (1) Real hex.Dpfric1 (5) [ALGB] (5) Real[5] hex.fluidState.h (start = {1e5 for $i1 in 1:5}, min = {-1e10 for $i1 in 1:5}, max = {1e10 for $i1 in 1:5}, nominal = {5e5 for $i1 in 1:5}) (6) [ALGB] (4) Real[4] hex.heatTransfer.Qvol (7) [ALGB] (5) Real[5] hex.fluidState.d (start = {150.0 for $i1 in 1:5}, min = {0.0 for $i1 in 1:5}, max = {1e5 for $i1 in 1:5}, nominal = {500.0 for $i1 in 1:5}) (8) [ALGB] (5) protected Real[5] hex.drdh (9) [ALGB] (1) Real MassFlowRateStep.y (10) [ALGB] (4) Real[4] hex.heatTransfer.wall.T (start = {288.15 for $i1 in 1:4}, min = {0.0 for $i1 in 1:4}, nominal = {300.0 for $i1 in 1:4}) (11) [ALGB] (1) Real hex.Kf (12) [ALGB] (4) flow Real[4] hex.heatTransfer.wall.Q (13) [ALGB] (1) Real valve.outlet.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (14) [ALGB] (5) Real[5] hex.heatTransfer.T (start = {500.0 for $i1 in 1:5}, min = {273.15 for $i1 in 1:5}, max = {2273.15 for $i1 in 1:5}, nominal = {500.0 for $i1 in 1:5}) (15) [ALGB] (4) protected Real[4] hex.drbdp (16) [ALGB] (5) Real[5] hex.fluidState.T (start = {500.0 for $i1 in 1:5}, min = {273.15 for $i1 in 1:5}, max = {2273.15 for $i1 in 1:5}, nominal = {500.0 for $i1 in 1:5}) (17) [ALGB] (1) Real hex.Cf (18) [DER-] (4) Real[4] $DER.hex.htilde (19) [ALGB] (5) final input Real[5] hex.heatTransfer.fluidState.p = {hex.fluidState[1].p, hex.fluidState[2].p, hex.fluidState[3].p, hex.fluidState[4].p, hex.fluidState[5].p} (start = {5e6 for $i1 in 1:5}, min = {611.657 for $i1 in 1:5}, max = {1e8 for $i1 in 1:5}, nominal = {1e6 for $i1 in 1:5}) (20) [ALGB] (1) Real $FUN_6 (21) [ALGB] (4) Real[4] $FUN_5 (22) [ALGB] (4) protected Real[4] hex.drbdh (23) [ALGB] (4) Real[4] hex.dMdt (24) [ALGB] (1) Real hex.Mtot (min = 0.0) (25) [ALGB] (1) Real $FUN_3 (26) [ALGB] (5) final input Real[5] hex.heatTransfer.fluidState.h = {hex.fluidState[1].h, hex.fluidState[2].h, hex.fluidState[3].h, hex.fluidState[4].h, hex.fluidState[5].h} (start = {1e5 for $i1 in 1:5}, min = {-1e10 for $i1 in 1:5}, max = {1e10 for $i1 in 1:5}, nominal = {5e5 for $i1 in 1:5}) (27) [ALGB] (1) Real $FUN_2 (28) [ALGB] (5) final input Real[5] hex.heatTransfer.fluidState.d = {hex.fluidState[1].d, hex.fluidState[2].d, hex.fluidState[3].d, hex.fluidState[4].d, hex.fluidState[5].d} (start = {150.0 for $i1 in 1:5}, min = {0.0 for $i1 in 1:5}, max = {1e5 for $i1 in 1:5}, nominal = {500.0 for $i1 in 1:5}) (29) [ALGB] (1) Real gamma = ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.Medium.specificHeatCapacityCp(hex.fluidState[1]) / ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.Medium.specificHeatCapacityCv(hex.fluidState[1]) (30) [ALGB] (5) Real[5] hex.rho (start = {150.0 for $i1 in 1:5}, min = {0.0 for $i1 in 1:5}, max = {1e5 for $i1 in 1:5}, nominal = {500.0 for $i1 in 1:5}) (31) [ALGB] (1) Real hex.w (start = hex.wnom / hex.Nt, min = -1e5, max = 1e5) (32) [ALGB] (5) Real[5] hex.u (33) [ALGB] (1) stream Real hex.infl.h_outflow (start = hex.hstartin, min = -1e10, max = 1e10, nominal = 5e5) (34) [ALGB] (5) final input Real[5] hex.heatTransfer.fluidState.T = {hex.fluidState[1].T, hex.fluidState[2].T, hex.fluidState[3].T, hex.fluidState[4].T, hex.fluidState[5].T} (start = {500.0 for $i1 in 1:5}, min = {273.15 for $i1 in 1:5}, max = {2273.15 for $i1 in 1:5}, nominal = {500.0 for $i1 in 1:5}) (35) [ALGB] (4) flow Real[4] heatSource.wall.Q (36) [ALGB] (5) final Real[5] hex.heatTransfer.w (min = {-1e5 for $i1 in 1:5}, max = {1e5 for $i1 in 1:5}) (37) [ALGB] (4) Real[4] heatSource.wall.T (start = {288.15 for $i1 in 1:4}, min = {0.0 for $i1 in 1:4}, nominal = {300.0 for $i1 in 1:4}) (38) [ALGB] (1) Real dMtot_dp = hex.Mtot / (gamma * sensP.p) (39) [ALGB] (4) Real[4] hex.wall.T (start = {288.15 for $i1 in 1:4}, min = {0.0 for $i1 in 1:4}, nominal = {300.0 for $i1 in 1:4}) (40) [ALGB] (5) Real[5] hex.h (start = {hex.hstart[$h1] for $h1 in 1:5}, min = {-1e10 for $i1 in 1:5}, max = {1e10 for $i1 in 1:5}, nominal = {5e5 for $i1 in 1:5}) (41) [ALGB] (4) flow Real[4] hex.wall.Q (42) [ALGB] (4) protected Real[4] hex.vbar (min = {0.0 for $i1 in 1:4}) (43) [DER-] (1) Real $DER.sensP.p (44) [ALGB] (4) Real[4] hex.heatTransfer.Qw (45) [ALGB] (4) Real[4] hex.wbar (start = {hex.wnom / hex.Nt for $wbar1 in 1:4}, min = {-1e5 for $i1 in 1:4}, max = {1e5 for $i1 in 1:4}) (46) [ALGB] (1) Real tau = dMtot_dp / valve.Kv (47) [DISC] (5) Integer[5] hex.fluidState.phase (min = {0 for $i1 in 1:5}, max = {2 for $i1 in 1:5}) (48) [ALGB] (4) protected Real[4] hex.rhobar (start = {150.0 for $i1 in 1:4}, min = {0.0 for $i1 in 1:4}, max = {1e5 for $i1 in 1:4}, nominal = {500.0 for $i1 in 1:4}) (49) [ALGB] (1) flow Real hex.outfl.m_flow (start = -hex.wnom, min = -1e5, max = 1e60) (50) [ALGB] (5) Real[5] hex.T (start = {500.0 for $i1 in 1:5}, min = {273.15 for $i1 in 1:5}, max = {2273.15 for $i1 in 1:5}, nominal = {500.0 for $i1 in 1:5}) (51) [DISC] (1) Boolean $SEV_4 (52) [ALGB] (1) stream Real hex.outfl.h_outflow (start = hex.hstartout, min = -1e10, max = 1e10, nominal = 5e5) (53) [ALGB] (1) Real hex.Q (54) [DISC] (1) Boolean $SEV_3 (55) [ALGB] (1) Real valve.w (min = -1e5, max = 1e5) (56) [ALGB] (1) Real hex.Tr (57) [ALGB] (1) Real hex.M (min = 0.0) (58) [ALGB] (1) Real hex.Dpfric (59) [DISC] (1) Boolean $TEV_0 (60) [ALGB] (4) Real[4] hex.heatTransfer.Tw (start = {500.0 for $i1 in 1:4}, min = {273.15 for $i1 in 1:4}, max = {2273.15 for $i1 in 1:4}, nominal = {500.0 for $i1 in 1:4}) (61) [ALGB] (1) Real MassFlowRateSource.flange.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (62) [ALGB] (4) Real[4] hex.Q_single (63) [DISC] (5) final input Integer[5] hex.heatTransfer.fluidState.phase = {hex.fluidState[1].phase, hex.fluidState[2].phase, hex.fluidState[3].phase, hex.fluidState[4].phase, hex.fluidState[5].phase} (min = {0 for $i1 in 1:5}, max = {2 for $i1 in 1:5}) (64) [ALGB] (1) Real hex.wout (min = -1e5, max = 1e5) System Equations (66/180) *************************** (1) [FOR-] (5) ($RES_SIM_50) (1) [----] for j in 1:5 loop (1) [----] [SCAL] (1) hex.drdh[j] = Modelica.Media.Water.IF97_Utilities.ddhp_props(hex.fluidState.phase, hex.fluidState.T, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(hex.fluidState.phase, hex.fluidState.T, hex.fluidState.p, 0)) ($RES_SIM_51) (1) [----] end for; (2) [SCAL] (1) valve.w = Constant1.k * valve.Kv * (sensP.p - valve.outlet.p) ($RES_SIM_16) (3) [FOR-] (5) ($RES_SIM_52) (3) [----] for j in 1:5 loop (3) [----] [SCAL] (1) hex.u[j] = hex.w / (hex.A * hex.rho[j]) ($RES_SIM_53) (3) [----] end for; (4) [FOR-] (4) ($RES_SIM_54) (4) [----] for j in 1:4 loop (4) [----] [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.sensP.p = hex.Q_single[j] ($RES_SIM_55) (4) [----] end for; (5) [FOR-] (4) ($RES_SIM_56) (5) [----] for j in 1:4 loop (5) [----] [SCAL] (1) hex.dMdt[j] = hex.l * hex.A * (hex.drbdh[j] * $DER.hex.htilde[j] + hex.drbdp[j] * $DER.sensP.p) ($RES_SIM_57) (5) [----] end for; (6) [SCAL] (1) valve.w + hex.outfl.m_flow = 0.0 ($RES_SIM_92) (7) [FOR-] (4) ($RES_SIM_58) (7) [----] for j in 1:4 loop (7) [----] [SCAL] (1) hex.rhobar[j] = (hex.rho[j] + hex.rho[j + 1]) / 2.0 ($RES_SIM_59) (7) [----] end for; (8) [SCAL] (1) $SEV_3 = hex.w > (-hex.wnom * hex.wnm) ($RES_EVT_132) (9) [SCAL] (1) $SEV_4 = hex.Kf >= 0.0 ($RES_EVT_133) (10) [FOR-] (4) ($RES_SIM_96) (10) [----] for $i1 in 1:4 loop (10) [----] [SCAL] (1) heatSource.wall.Q[$i1] + hex.wall.Q[$i1] = 0.0 ($RES_SIM_97) (10) [----] end for; (11) [SCAL] (1) heatSource.wall.T = hex.wall.T ($RES_SIM_98) (12) [SCAL] (1) tau = dMtot_dp / valve.Kv ($RES_BND_110) (13) [ARRY] (5) hex.heatTransfer.fluidState.phase = {hex.fluidState[1].phase, hex.fluidState[2].phase, hex.fluidState[3].phase, hex.fluidState[4].phase, hex.fluidState[5].phase} ($RES_BND_111) (14) [ARRY] (5) hex.heatTransfer.fluidState.h = {hex.fluidState[1].h, hex.fluidState[2].h, hex.fluidState[3].h, hex.fluidState[4].h, hex.fluidState[5].h} ($RES_BND_112) (15) [ARRY] (5) hex.heatTransfer.fluidState.d = {hex.fluidState[1].d, hex.fluidState[2].d, hex.fluidState[3].d, hex.fluidState[4].d, hex.fluidState[5].d} ($RES_BND_113) (16) [ARRY] (5) hex.heatTransfer.fluidState.T = {hex.fluidState[1].T, hex.fluidState[2].T, hex.fluidState[3].T, hex.fluidState[4].T, hex.fluidState[5].T} ($RES_BND_114) (17) [ARRY] (5) hex.heatTransfer.fluidState.p = {hex.fluidState[1].p, hex.fluidState[2].p, hex.fluidState[3].p, hex.fluidState[4].p, hex.fluidState[5].p} ($RES_BND_115) (18) [FOR-] (4) ($RES_SIM_104) (18) [----] for $i1 in 1:4 loop (18) [----] [SCAL] (1) (-hex.wall.Q[$i1]) + hex.heatTransfer.wall.Q[$i1] = 0.0 ($RES_SIM_105) (18) [----] end for; (19) [SCAL] (1) valve.outlet.p = FluidSink.p0 + 100.0 * valve.w ($RES_SIM_23) (20) [SCAL] (1) hex.wall.T = hex.heatTransfer.wall.T ($RES_SIM_106) (21) [FOR-] (4) ($RES_SIM_60) (21) [----] for j in 1:4 loop (21) [----] [SCAL] (1) hex.drbdp[j] = (hex.drdp[j] + hex.drdp[j + 1]) / 2.0 ($RES_SIM_61) (21) [----] end for; (22) [FOR-] (4) ($RES_SIM_62) (22) [----] for j in 1:4 loop (22) [----] [SCAL] (1) hex.drbdh[j] = (hex.drdh[j] + hex.drdh[j + 1]) / 2.0 ($RES_SIM_63) (22) [----] end for; (23) [FOR-] (4) ($RES_SIM_64) (23) [----] for j in 1:4 loop (23) [----] [SCAL] (1) hex.vbar[j] = 1.0 / hex.rhobar[j] ($RES_SIM_65) (23) [----] end for; (24) [FOR-] (4) ($RES_SIM_66) (24) [----] for j in 1:4 loop (24) [----] [SCAL] (1) hex.wbar[j] = MassFlowRateStep.y / hex.Nt - (hex.dMdt[j] / 2.0 + $FUN_5[integer(1.0 + ((-1.0) + j))]) ($RES_SIM_67) (24) [----] end for; (25) [SCAL] (1) hex.Tr = noEvent(hex.M / max(hex.w, 1e-15)) ($RES_SIM_30) (26) [SCAL] (1) hex.Mtot = hex.M * hex.Nt ($RES_SIM_31) (27) [SCAL] (1) hex.M = hex.A * $FUN_6 * hex.l ($RES_SIM_32) (28) [SCAL] (1) hex.h[2:5] = hex.htilde ($RES_SIM_34) (29) [SCAL] (1) hex.h[1] = MassFlowRateSource.h ($RES_SIM_35) (30) [SCAL] (1) hex.Dpfric = hex.Dpfric1 ($RES_SIM_71) (31) [SCAL] (1) hex.outfl.h_outflow = hex.htilde[4] ($RES_SIM_36) (32) [SCAL] (1) (sensP.p + hex.Dpfric) - MassFlowRateSource.flange.p = 0.0 ($RES_SIM_72) (33) [SCAL] (1) hex.Q = sum(hex.heatTransfer.wall.Q) ($RES_$AUX_122) (34) [SCAL] (1) hex.infl.h_outflow = hex.h[1] ($RES_SIM_37) (35) [SCAL] (1) $FUN_2 = (MassFlowRateStep.y + hex.outfl.m_flow) / hex.Nt ($RES_SIM_73) (36) [SCAL] (1) $FUN_2 = sum(hex.dMdt) ($RES_$AUX_121) (37) [SCAL] (1) $FUN_3 = sum(hex.vbar) ($RES_$AUX_120) (38) [SCAL] (1) hex.Kf = (5.0 * hex.omega_hyd * hex.Cf) / hex.A ^ 3.0 ($RES_SIM_76) (39) [SCAL] (1) hex.Cf = hex.Cfnom * hex.Kfc ($RES_SIM_77) (40) [SCAL] (1) hex.omega_hyd = (4.0 * hex.A) / hex.Dhyd ($RES_SIM_78) (41) [SCAL] (1) hex.Dpfric1 = homotopy(0.25 * $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_119) (42) [SCAL] (1) hex.wout = -hex.outfl.m_flow / hex.Nt ($RES_SIM_40) (43) [SCAL] (1) hex.w = MassFlowRateStep.y / hex.Nt ($RES_SIM_41) (44) [SCAL] (1) hex.fluidState[j].phase = 0 ($RES_SIM_123) (45) [FOR-] (4) ($RES_$AUX_117) (45) [----] for j in 1:4 loop (45) [----] [SCAL] (1) $FUN_5[integer(1.0 + ((-1.0) + j))] = sum(hex.dMdt[1:j - 1]) ($RES_$AUX_118) (45) [----] end for; (46) [SCAL] (1) hex.fluidState[j].h = hex.h[j] ($RES_SIM_124) (47) [SCAL] (1) $FUN_6 = sum(hex.rhobar) ($RES_$AUX_116) (48) [SCAL] (1) hex.fluidState[j].d = Modelica.Media.Water.IF97_Utilities.rho_ph(sensP.p, hex.h[j], 0, 0) ($RES_SIM_125) (49) [FOR-] (5) ($RES_SIM_44) (49) [----] for j in 1:5 loop (49) [----] [SCAL] (1) hex.T[j] = hex.fluidState.h ($RES_SIM_45) (49) [----] end for; (50) [SCAL] (1) hex.fluidState[j].T = Modelica.Media.Water.IF97_Utilities.T_ph(sensP.p, hex.h[j], 0, 0) ($RES_SIM_126) (51) [SCAL] (1) hex.heatTransfer.Qw = hex.heatTransfer.wall.Q ($RES_SIM_80) (52) [SCAL] (1) hex.fluidState[j].p = sensP.p ($RES_SIM_127) (53) [SCAL] (1) hex.heatTransfer.Tw = hex.heatTransfer.wall.T ($RES_SIM_81) (54) [FOR-] (5) ($RES_SIM_46) (54) [----] for j in 1:5 loop (54) [----] [SCAL] (1) hex.rho[j] = hex.fluidState.d ($RES_SIM_47) (54) [----] end for; (55) [FOR-] (5) ($RES_SIM_82) (55) [----] for j in 1:5 loop (55) [----] [SCAL] (1) hex.heatTransfer.T[j] = hex.heatTransfer.fluidState.h ($RES_SIM_83) (55) [----] end for; (56) [FOR-] (5) ($RES_SIM_48) (56) [----] for j in 1:5 loop (56) [----] [SCAL] (1) hex.drdp[j] = Modelica.Media.Water.IF97_Utilities.ddph_props(hex.fluidState.phase, hex.fluidState.T, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(hex.fluidState.phase, hex.fluidState.T, hex.fluidState.p, 0)) ($RES_SIM_49) (56) [----] end for; (57) [FOR-] (4) ($RES_SIM_84) (57) [----] for j in 1:4 loop (57) [----] [SCAL] (1) hex.heatTransfer.wall.T[j] = hex.heatTransfer.T[j + 1] ($RES_SIM_85) (57) [----] end for; (58) [ARRY] (4) hex.heatTransfer.Qvol = hex.heatTransfer.Qw ($RES_SIM_86) (59) [ARRY] (5) hex.heatTransfer.w = hex.w * fill(1.0, 5) ($RES_SIM_87) (60) [ARRY] (25) hex.heatTransfer.fluidState = hex.fluidState ($RES_SIM_88) (61) [ARRY] (4) hex.Q_single = hex.heatTransfer.Qvol / hex.Nt ($RES_SIM_89) (62) [SCAL] (1) $TEV_0 = time < MassFlowRateStep.startTime ($RES_EVT_128) (63) [FOR-] (4) ($RES_SIM_9) (63) [----] for i in 1:4 loop (63) [----] [SCAL] (1) heatSource.wall.Q[i] = -ExtPower.k / 4.0 ($RES_SIM_10) (63) [----] end for; (64) [SCAL] (1) gamma = Modelica.Media.Water.IF97_Utilities.cp_props_ph(hex.fluidState.phase, hex.fluidState.T, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(hex.fluidState.phase, hex.fluidState.T, 0, 0)) / Modelica.Media.Water.IF97_Utilities.cv_props_ph(hex.fluidState.phase, hex.fluidState.T, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(hex.fluidState.phase, hex.fluidState.T, hex.fluidState.p, 0)) ($RES_BND_107) (65) [SCAL] (1) MassFlowRateStep.y = MassFlowRateStep.offset + (if $TEV_0 then 0.0 else MassFlowRateStep.height) ($RES_SIM_12) (66) [SCAL] (1) dMtot_dp = hex.Mtot / (gamma * sensP.p) ($RES_BND_108)