Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_F.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_F,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_F") translateModel(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_F,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_F") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 100.2 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.001485/0.001485, allocations: 193.9 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.474/1.474, 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.2778/0.2778, allocations: 48.84 MB / 320.6 MB, free: 11.09 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.149e-05/2.15e-05, allocations: 4.031 kB / 390.8 MB, free: 48.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_F): time 0.06503/0.06506, allocations: 93.22 MB / 484 MB, free: 7.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01737/0.08245, allocations: 14.55 MB / 498.5 MB, free: 8.727 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001313/0.08381, allocations: 23.81 kB / 498.6 MB, free: 8.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.08538, allocations: 0.6443 MB / 499.2 MB, free: 8.055 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001962/0.08744, allocations: 1.003 MB / 0.4885 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01717/0.1046, allocations: 6.007 MB / 0.4943 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00567/0.1103, allocations: 3.749 MB / 0.498 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001368/0.1117, allocations: 0.8025 MB / 0.4988 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002229/0.1139, allocations: 1.188 MB / 0.4999 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001449/0.1154, allocations: 1.098 MB / 0.501 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001614/0.1156, allocations: 96 kB / 0.5011 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009665/0.1253, allocations: 6.107 MB / 0.5071 GB, free: 3.973 MB / 398.1 MB Notification: Performance of combineBinaries: time 0.002911/0.1282, allocations: 2.582 MB / 0.5096 GB, free: 1.367 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 0.00129/0.1295, allocations: 1.618 MB / 0.5112 GB, free: 15.73 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004297/0.13, allocations: 227.3 kB / 0.5114 GB, free: 15.51 MB / 414.1 MB Notification: Performance of FrontEnd: time 0.0002581/0.1302, allocations: 31.88 kB / 0.5114 GB, free: 15.48 MB / 414.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: 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: 1595 (205) * Number of variables: 1647 (225) Notification: Performance of Bindings: time 0.006406/0.1366, allocations: 7.534 MB / 0.5188 GB, free: 7.777 MB / 414.1 MB Notification: Performance of FunctionAlias: time 0.0007046/0.1373, allocations: 0.5392 MB / 0.5193 GB, free: 7.254 MB / 414.1 MB Notification: Performance of Early Inline: time 0.001511/0.1389, allocations: 1.162 MB / 0.5204 GB, free: 6.008 MB / 414.1 MB Notification: Performance of simplify1: time 0.0002693/0.1391, allocations: 235.6 kB / 0.5207 GB, free: 5.777 MB / 414.1 MB Notification: Performance of Alias: time 0.004754/0.1439, allocations: 4.309 MB / 0.5249 GB, free: 1.039 MB / 414.1 MB Notification: Performance of simplify2: time 0.0003071/0.1442, allocations: 171.7 kB / 0.525 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of Events: time 0.0005605/0.1448, allocations: 0.5105 MB / 0.5255 GB, free: 352 kB / 414.1 MB Notification: Performance of Detect States: time 0.2127/0.3575, allocations: 0.7969 MB / 0.5263 GB, free: 28.8 MB / 414.1 MB Notification: Performance of Partitioning: time 0.001212/0.3588, allocations: 1.127 MB / 0.5274 GB, free: 28.61 MB / 414.1 MB Error: Internal error NBAdjacency.Matrix.createPseudo failed for [FOR-] (19) ($RES_$AUX_270) [----] for j in 1:19 loop [----] [SCAL] (1) $FUN_9[integer(1.0 + ((-1.0) + j))] = sum(hexFVb.dMdt[1:j - 1]) ($RES_$AUX_271) [----] end for; Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (141/1599) ***************************** (1) [ALGB] (20) Real[20] hexFVb.fluidState.T (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}) (2) [ALGB] (20) Real[20] hexFVa.fluidState.T (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}) (3) [ALGB] (1) stream Real SensT_A_in.outlet.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (4) [ALGB] (19) Real[19] hexFVb.wbar (start = {hexFVb.wnom / hexFVb.Nt for $wbar1 in 1:19}, min = {-1e5 for $i1 in 1:19}, max = {1e5 for $i1 in 1:19}) (5) [ALGB] (1) Real hexFVa.heatTransfer.w_wnom (6) [ALGB] (19) Real[19] hexFVb.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}) (7) [ALGB] (20) Real[20] hexFVb.heatTransfer.T (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}) (8) [ALGB] (19) flow Real[19] hexFVb.wall.Q (9) [ALGB] (19) Real[19] counterCurrentFV.side2.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}) (10) [DISC] (1) Boolean $TEV_0 (11) [ALGB] (19) flow Real[19] counterCurrentFV.side2.Q (12) [ALGB] (1) stream Real SensT_B_out.outlet.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (13) [ALGB] (19) flow Real[19] metalTubeFV.ext.Q (14) [ALGB] (1) Real hexFVb.Mtot (min = 0.0) (15) [ALGB] (19) Real[19] hexFVa.heatTransfer.Qw (16) [ALGB] (1) Real SensT_A_out.fluidState.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (17) [ALGB] (19) Real[19] metalTubeFV.ext.T (start = {metalTubeFV.Tvolstart[$T1] for $T1 in 1:19}, min = {0.0 for $i1 in 1:19}, nominal = {300.0 for $i1 in 1:19}) (18) [ALGB] (1) Real SensT_A_out.fluidState.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (19) [ALGB] (1) Real SensT_B_in.fluidState.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (20) [ALGB] (1) Real SensT_B_in.fluidState.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (21) [DISC] (1) Boolean $SEV_12 (22) [DISC] (1) Boolean $SEV_11 (23) [DISC] (1) Boolean $SEV_10 (24) [ALGB] (20) final Real[20] hexFVb.heatTransfer.w (min = {-1e5 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}) (25) [ALGB] (19) protected Real[19] hexFVb.vbar (min = {0.0 for $i1 in 1:19}) (26) [ALGB] (1) Real SensT_B_in.fluidState.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (27) [DISC] (20) Integer[20] hexFVa.fluidState.phase (min = {0 for $i1 in 1:20}, max = {2 for $i1 in 1:20}) (28) [DISC] (20) Integer[20] hexFVb.fluidState.phase (min = {0 for $i1 in 1:20}, max = {2 for $i1 in 1:20}) (29) [ALGB] (19) Real[19] hexFVa.wbar (start = {hexFVa.wnom / hexFVa.Nt for $wbar1 in 1:19}, min = {-1e5 for $i1 in 1:19}, max = {1e5 for $i1 in 1:19}) (30) [ALGB] (20) final input Real[20] hexFVb.heatTransfer.fluidState.p = {hexFVb.fluidState[1].p, hexFVb.fluidState[2].p, hexFVb.fluidState[3].p, hexFVb.fluidState[4].p, hexFVb.fluidState[5].p, hexFVb.fluidState[6].p, hexFVb.fluidState[7].p, hexFVb.fluidState[8].p, hexFVb.fluidState[9].p, hexFVb.fluidState[10].p, hexFVb.fluidState[11].p, hexFVb.fluidState[12].p, hexFVb.fluidState[13].p, hexFVb.fluidState[14].p, hexFVb.fluidState[15].p, hexFVb.fluidState[16].p, hexFVb.fluidState[17].p, hexFVb.fluidState[18].p, hexFVb.fluidState[19].p, hexFVb.fluidState[20].p} (start = {5e6 for $i1 in 1:20}, min = {611.657 for $i1 in 1:20}, max = {1e8 for $i1 in 1:20}, nominal = {1e6 for $i1 in 1:20}) (31) [ALGB] (1) Real hexFVb.Dpfric (32) [ALGB] (19) protected Real[19] hexFVa.rhobar (start = {150.0 for $i1 in 1:19}, min = {0.0 for $i1 in 1:19}, max = {1e5 for $i1 in 1:19}, nominal = {500.0 for $i1 in 1:19}) (33) [ALGB] (20) final input Real[20] hexFVb.heatTransfer.fluidState.h = {hexFVb.fluidState[1].h, hexFVb.fluidState[2].h, hexFVb.fluidState[3].h, hexFVb.fluidState[4].h, hexFVb.fluidState[5].h, hexFVb.fluidState[6].h, hexFVb.fluidState[7].h, hexFVb.fluidState[8].h, hexFVb.fluidState[9].h, hexFVb.fluidState[10].h, hexFVb.fluidState[11].h, hexFVb.fluidState[12].h, hexFVb.fluidState[13].h, hexFVb.fluidState[14].h, hexFVb.fluidState[15].h, hexFVb.fluidState[16].h, hexFVb.fluidState[17].h, hexFVb.fluidState[18].h, hexFVb.fluidState[19].h, hexFVb.fluidState[20].h} (start = {1e5 for $i1 in 1:20}, min = {-1e10 for $i1 in 1:20}, max = {1e10 for $i1 in 1:20}, nominal = {5e5 for $i1 in 1:20}) (34) [ALGB] (20) final input Real[20] hexFVb.heatTransfer.fluidState.d = {hexFVb.fluidState[1].d, hexFVb.fluidState[2].d, hexFVb.fluidState[3].d, hexFVb.fluidState[4].d, hexFVb.fluidState[5].d, hexFVb.fluidState[6].d, hexFVb.fluidState[7].d, hexFVb.fluidState[8].d, hexFVb.fluidState[9].d, hexFVb.fluidState[10].d, hexFVb.fluidState[11].d, hexFVb.fluidState[12].d, hexFVb.fluidState[13].d, hexFVb.fluidState[14].d, hexFVb.fluidState[15].d, hexFVb.fluidState[16].d, hexFVb.fluidState[17].d, hexFVb.fluidState[18].d, hexFVb.fluidState[19].d, hexFVb.fluidState[20].d} (start = {150.0 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}, nominal = {500.0 for $i1 in 1:20}) (35) [ALGB] (19) Real[19] counterCurrentFV.side1.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}) (36) [ALGB] (19) Real[19] $FUN_9 (37) [ALGB] (1) Real $FUN_8 (38) [ALGB] (19) flow Real[19] counterCurrentFV.side1.Q (39) [ALGB] (1) Real hexFVa.Mtot (min = 0.0) (40) [ALGB] (1) Real $FUN_6 (41) [ALGB] (1) Real $FUN_5 (42) [ALGB] (20) protected Real[20] hexFVb.drdh (43) [ALGB] (19) Real[19] hexFVb.heatTransfer.Qw (44) [ALGB] (19) Real[19] hexFVa.Q_single (45) [ALGB] (1) Real $FUN_20 (46) [ALGB] (20) protected Real[20] hexFVb.drdp (47) [ALGB] (20) final input Real[20] hexFVb.heatTransfer.fluidState.T = {hexFVb.fluidState[1].T, hexFVb.fluidState[2].T, hexFVb.fluidState[3].T, hexFVb.fluidState[4].T, hexFVb.fluidState[5].T, hexFVb.fluidState[6].T, hexFVb.fluidState[7].T, hexFVb.fluidState[8].T, hexFVb.fluidState[9].T, hexFVb.fluidState[10].T, hexFVb.fluidState[11].T, hexFVb.fluidState[12].T, hexFVb.fluidState[13].T, hexFVb.fluidState[14].T, hexFVb.fluidState[15].T, hexFVb.fluidState[16].T, hexFVb.fluidState[17].T, hexFVb.fluidState[18].T, hexFVb.fluidState[19].T, hexFVb.fluidState[20].T} (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}) (48) [ALGB] (20) final Real[20] hexFVa.heatTransfer.w (min = {-1e5 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}) (49) [ALGB] (19) protected Real[19] hexFVa.vbar (min = {0.0 for $i1 in 1:19}) (50) [DER-] (19) Real[19] $DER.hexFVa.htilde (51) [ALGB] (20) Real[20] hexFVb.rho (start = {150.0 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}, nominal = {500.0 for $i1 in 1:20}) (52) [ALGB] (19) Real[19] hexFVa.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}) (53) [ALGB] (1) Real $FUN_19 (54) [ALGB] (19) flow Real[19] hexFVa.wall.Q (55) [ALGB] (19) Real[19] hexFVa.heatTransfer.Tvol (start = {500.0 for $i1 in 1:19}, min = {273.15 for $i1 in 1:19}, max = {2273.15 for $i1 in 1:19}, nominal = {500.0 for $i1 in 1:19}) (56) [ALGB] (1) Real $FUN_18 (57) [ALGB] (19) Real[19] hexFVb.heatTransfer.Qvol (58) [ALGB] (19) Real[19] $FUN_17 (59) [ALGB] (1) Real hexFVa.Tr (60) [ALGB] (1) Real $FUN_15 (61) [ALGB] (1) Real $FUN_14 (62) [ALGB] (1) Real $FUN_12 (63) [ALGB] (1) Real $FUN_11 (64) [ALGB] (1) Real $FUN_10 (65) [ALGB] (1) Real SensT_B_in.T (66) [ALGB] (20) final input Real[20] hexFVa.heatTransfer.fluidState.T = {hexFVa.fluidState[1].T, hexFVa.fluidState[2].T, hexFVa.fluidState[3].T, hexFVa.fluidState[4].T, hexFVa.fluidState[5].T, hexFVa.fluidState[6].T, hexFVa.fluidState[7].T, hexFVa.fluidState[8].T, hexFVa.fluidState[9].T, hexFVa.fluidState[10].T, hexFVa.fluidState[11].T, hexFVa.fluidState[12].T, hexFVa.fluidState[13].T, hexFVa.fluidState[14].T, hexFVa.fluidState[15].T, hexFVa.fluidState[16].T, hexFVa.fluidState[17].T, hexFVa.fluidState[18].T, hexFVa.fluidState[19].T, hexFVa.fluidState[20].T} (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}) (67) [ALGB] (20) Real[20] hexFVa.heatTransfer.T (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}) (68) [DISC] (1) Boolean $SEV_9 (69) [DER-] (1) Real $DER.hexFVa.p (70) [ALGB] (1) Real hexFVb.w (start = hexFVb.wnom / hexFVb.Nt, min = -1e5, max = 1e5) (71) [DISC] (1) Boolean $SEV_7 (72) [DISC] (1) Boolean $SEV_6 (73) [ALGB] (20) Real[20] hexFVb.u (74) [DISC] (1) Boolean $SEV_5 (75) [ALGB] (1) Real ValveLin1.w (min = -1e5, max = 1e5) (76) [ALGB] (1) Real hexFVb.heatTransfer.w_wnom (77) [ALGB] (20) protected Real[20] hexFVa.drdh (78) [ALGB] (1) stream Real SensT_A_in.inlet.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (79) [ALGB] (20) final input Real[20] hexFVa.heatTransfer.fluidState.d = {hexFVa.fluidState[1].d, hexFVa.fluidState[2].d, hexFVa.fluidState[3].d, hexFVa.fluidState[4].d, hexFVa.fluidState[5].d, hexFVa.fluidState[6].d, hexFVa.fluidState[7].d, hexFVa.fluidState[8].d, hexFVa.fluidState[9].d, hexFVa.fluidState[10].d, hexFVa.fluidState[11].d, hexFVa.fluidState[12].d, hexFVa.fluidState[13].d, hexFVa.fluidState[14].d, hexFVa.fluidState[15].d, hexFVa.fluidState[16].d, hexFVa.fluidState[17].d, hexFVa.fluidState[18].d, hexFVa.fluidState[19].d, hexFVa.fluidState[20].d} (start = {150.0 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}, nominal = {500.0 for $i1 in 1:20}) (80) [ALGB] (20) protected Real[20] hexFVa.drdp (81) [ALGB] (20) Real[20] hexFVb.h (start = {hexFVb.hstart[$h1] for $h1 in 1:20}, min = {-1e10 for $i1 in 1:20}, max = {1e10 for $i1 in 1:20}, nominal = {5e5 for $i1 in 1:20}) (82) [ALGB] (20) final input Real[20] hexFVa.heatTransfer.fluidState.h = {hexFVa.fluidState[1].h, hexFVa.fluidState[2].h, hexFVa.fluidState[3].h, hexFVa.fluidState[4].h, hexFVa.fluidState[5].h, hexFVa.fluidState[6].h, hexFVa.fluidState[7].h, hexFVa.fluidState[8].h, hexFVa.fluidState[9].h, hexFVa.fluidState[10].h, hexFVa.fluidState[11].h, hexFVa.fluidState[12].h, hexFVa.fluidState[13].h, hexFVa.fluidState[14].h, hexFVa.fluidState[15].h, hexFVa.fluidState[16].h, hexFVa.fluidState[17].h, hexFVa.fluidState[18].h, hexFVa.fluidState[19].h, hexFVa.fluidState[20].h} (start = {1e5 for $i1 in 1:20}, min = {-1e10 for $i1 in 1:20}, max = {1e10 for $i1 in 1:20}, nominal = {5e5 for $i1 in 1:20}) (83) [ALGB] (19) Real[19] hexFVb.dMdt (84) [ALGB] (20) final input Real[20] hexFVa.heatTransfer.fluidState.p = {hexFVa.fluidState[1].p, hexFVa.fluidState[2].p, hexFVa.fluidState[3].p, hexFVa.fluidState[4].p, hexFVa.fluidState[5].p, hexFVa.fluidState[6].p, hexFVa.fluidState[7].p, hexFVa.fluidState[8].p, hexFVa.fluidState[9].p, hexFVa.fluidState[10].p, hexFVa.fluidState[11].p, hexFVa.fluidState[12].p, hexFVa.fluidState[13].p, hexFVa.fluidState[14].p, hexFVa.fluidState[15].p, hexFVa.fluidState[16].p, hexFVa.fluidState[17].p, hexFVa.fluidState[18].p, hexFVa.fluidState[19].p, hexFVa.fluidState[20].p} (start = {5e6 for $i1 in 1:20}, min = {611.657 for $i1 in 1:20}, max = {1e8 for $i1 in 1:20}, nominal = {1e6 for $i1 in 1:20}) (85) [ALGB] (1) Real SensT_B_out.T (86) [ALGB] (1) Real hexFVb.Tr (87) [ALGB] (20) Real[20] hexFVb.T (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}) (88) [ALGB] (19) Real[19] hexFVb.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}) (89) [ALGB] (1) Real hexFVa.Kf (90) [ALGB] (19) protected Real[19] hexFVa.drbdh (91) [ALGB] (1) Real hexFVb.Q (92) [ALGB] (19) flow Real[19] hexFVb.heatTransfer.wall.Q (93) [ALGB] (1) Real hexFVb.wout (min = -1e5, max = 1e5) (94) [ALGB] (1) Real hexFVa.Dpfric (95) [ALGB] (1) Real hexFVb.M (min = 0.0) (96) [ALGB] (1) Real hexFVa.Cf (97) [ALGB] (1) stream Real SensT_B_in.inlet.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (98) [ALGB] (19) flow Real[19] metalTubeFV.int.Q (99) [DISC] (20) final input Integer[20] hexFVa.heatTransfer.fluidState.phase = {hexFVa.fluidState[1].phase, hexFVa.fluidState[2].phase, hexFVa.fluidState[3].phase, hexFVa.fluidState[4].phase, hexFVa.fluidState[5].phase, hexFVa.fluidState[6].phase, hexFVa.fluidState[7].phase, hexFVa.fluidState[8].phase, hexFVa.fluidState[9].phase, hexFVa.fluidState[10].phase, hexFVa.fluidState[11].phase, hexFVa.fluidState[12].phase, hexFVa.fluidState[13].phase, hexFVa.fluidState[14].phase, hexFVa.fluidState[15].phase, hexFVa.fluidState[16].phase, hexFVa.fluidState[17].phase, hexFVa.fluidState[18].phase, hexFVa.fluidState[19].phase, hexFVa.fluidState[20].phase} (min = {0 for $i1 in 1:20}, max = {2 for $i1 in 1:20}) (100) [ALGB] (19) protected Real[19] hexFVa.drbdp (101) [ALGB] (19) Real[19] hexFVb.Q_single (102) [ALGB] (1) Real SensT_A_in.T (103) [ALGB] (19) Real[19] metalTubeFV.int.T (start = {metalTubeFV.Tvolstart[$T1] for $T1 in 1:19}, min = {0.0 for $i1 in 1:19}, nominal = {300.0 for $i1 in 1:19}) (104) [DISC] (20) final input Integer[20] hexFVb.heatTransfer.fluidState.phase = {hexFVb.fluidState[1].phase, hexFVb.fluidState[2].phase, hexFVb.fluidState[3].phase, hexFVb.fluidState[4].phase, hexFVb.fluidState[5].phase, hexFVb.fluidState[6].phase, hexFVb.fluidState[7].phase, hexFVb.fluidState[8].phase, hexFVb.fluidState[9].phase, hexFVb.fluidState[10].phase, hexFVb.fluidState[11].phase, hexFVb.fluidState[12].phase, hexFVb.fluidState[13].phase, hexFVb.fluidState[14].phase, hexFVb.fluidState[15].phase, hexFVb.fluidState[16].phase, hexFVb.fluidState[17].phase, hexFVb.fluidState[18].phase, hexFVb.fluidState[19].phase, hexFVb.fluidState[20].phase} (min = {0 for $i1 in 1:20}, max = {2 for $i1 in 1:20}) (105) [ALGB] (19) Real[19] hexFVa.heatTransfer.Tw (start = {500.0 for $i1 in 1:19}, min = {273.15 for $i1 in 1:19}, max = {2273.15 for $i1 in 1:19}, nominal = {500.0 for $i1 in 1:19}) (106) [ALGB] (1) stream Real SensT_A_out.outlet.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (107) [DER-] (19) Real[19] $DER.metalTubeFV.Tvol (108) [DER-] (1) Real $DER.hexFVb.p (109) [ALGB] (1) Real hexFVa.w (start = hexFVa.wnom / hexFVa.Nt, min = -1e5, max = 1e5) (110) [ALGB] (20) Real[20] hexFVa.u (111) [ALGB] (1) Real ValveLin2.w (min = -1e5, max = 1e5) (112) [ALGB] (19) Real[19] hexFVa.dMdt (113) [ALGB] (1) Real hexFVa.Dpfric1 (114) [ALGB] (1) Real SensT_A_out.T (115) [ALGB] (20) Real[20] hexFVa.h (start = {hexFVa.hstart[$h1] for $h1 in 1:20}, min = {-1e10 for $i1 in 1:20}, max = {1e10 for $i1 in 1:20}, nominal = {5e5 for $i1 in 1:20}) (116) [DER-] (19) Real[19] $DER.hexFVb.htilde (117) [ALGB] (19) protected Real[19] hexFVb.rhobar (start = {150.0 for $i1 in 1:19}, min = {0.0 for $i1 in 1:19}, max = {1e5 for $i1 in 1:19}, nominal = {500.0 for $i1 in 1:19}) (118) [ALGB] (1) Real SensT_B_out.fluidState.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (119) [ALGB] (19) protected Real[19] hexFVb.drbdh (120) [ALGB] (1) Real SensT_A_in.fluidState.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (121) [ALGB] (1) Real SensT_B_out.fluidState.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (122) [ALGB] (1) Real hexFVa.wout (min = -1e5, max = 1e5) (123) [ALGB] (1) Real SensT_A_in.fluidState.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (124) [ALGB] (20) Real[20] hexFVa.rho (start = {150.0 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}, nominal = {500.0 for $i1 in 1:20}) (125) [ALGB] (20) Real[20] hexFVa.fluidState.p (start = {5e6 for $i1 in 1:20}, min = {611.657 for $i1 in 1:20}, max = {1e8 for $i1 in 1:20}, nominal = {1e6 for $i1 in 1:20}) (126) [ALGB] (19) flow Real[19] hexFVa.heatTransfer.wall.Q (127) [ALGB] (20) Real[20] hexFVb.fluidState.p (start = {5e6 for $i1 in 1:20}, min = {611.657 for $i1 in 1:20}, max = {1e8 for $i1 in 1:20}, nominal = {1e6 for $i1 in 1:20}) (128) [ALGB] (19) protected Real[19] hexFVb.drbdp (129) [ALGB] (20) Real[20] hexFVa.T (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}) (130) [ALGB] (19) Real[19] hexFVa.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}) (131) [ALGB] (1) Real hexFVa.Q (132) [ALGB] (1) Real SensT_A_in.fluidState.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (133) [ALGB] (20) Real[20] hexFVa.fluidState.h (start = {1e5 for $i1 in 1:20}, min = {-1e10 for $i1 in 1:20}, max = {1e10 for $i1 in 1:20}, nominal = {5e5 for $i1 in 1:20}) (134) [ALGB] (1) Real hexFVa.M (min = 0.0) (135) [ALGB] (20) Real[20] hexFVb.fluidState.h (start = {1e5 for $i1 in 1:20}, min = {-1e10 for $i1 in 1:20}, max = {1e10 for $i1 in 1:20}, nominal = {5e5 for $i1 in 1:20}) (136) [ALGB] (1) Real hexFVa.omega_hyd (137) [ALGB] (20) Real[20] hexFVb.fluidState.d (start = {150.0 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}, nominal = {500.0 for $i1 in 1:20}) (138) [ALGB] (20) Real[20] hexFVa.fluidState.d (start = {150.0 for $i1 in 1:20}, min = {0.0 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}, nominal = {500.0 for $i1 in 1:20}) (139) [ALGB] (19) Real[19] hexFVa.heatTransfer.Qvol (140) [ALGB] (19) Real[19] hexFVb.heatTransfer.Tw (start = {500.0 for $i1 in 1:19}, min = {273.15 for $i1 in 1:19}, max = {2273.15 for $i1 in 1:19}, nominal = {500.0 for $i1 in 1:19}) (141) [ALGB] (19) Real[19] hexFVb.heatTransfer.Tvol (start = {500.0 for $i1 in 1:19}, min = {273.15 for $i1 in 1:19}, max = {2273.15 for $i1 in 1:19}, nominal = {500.0 for $i1 in 1:19}) System Equations (145/1357) ***************************** (1) [ARRY] (20) hexFVa.heatTransfer.fluidState.d = {hexFVa.fluidState[1].d, hexFVa.fluidState[2].d, hexFVa.fluidState[3].d, hexFVa.fluidState[4].d, hexFVa.fluidState[5].d, hexFVa.fluidState[6].d, hexFVa.fluidState[7].d, hexFVa.fluidState[8].d, hexFVa.fluidState[9].d, hexFVa.fluidState[10].d, hexFVa.fluidState[11].d, hexFVa.fluidState[12].d, hexFVa.fluidState[13].d, hexFVa.fluidState[14].d, hexFVa.fluidState[15].d, hexFVa.fluidState[16].d, hexFVa.fluidState[17].d, hexFVa.fluidState[18].d, hexFVa.fluidState[19].d, hexFVa.fluidState[20].d} ($RES_BND_255) (2) [ARRY] (20) hexFVa.heatTransfer.fluidState.T = {hexFVa.fluidState[1].T, hexFVa.fluidState[2].T, hexFVa.fluidState[3].T, hexFVa.fluidState[4].T, hexFVa.fluidState[5].T, hexFVa.fluidState[6].T, hexFVa.fluidState[7].T, hexFVa.fluidState[8].T, hexFVa.fluidState[9].T, hexFVa.fluidState[10].T, hexFVa.fluidState[11].T, hexFVa.fluidState[12].T, hexFVa.fluidState[13].T, hexFVa.fluidState[14].T, hexFVa.fluidState[15].T, hexFVa.fluidState[16].T, hexFVa.fluidState[17].T, hexFVa.fluidState[18].T, hexFVa.fluidState[19].T, hexFVa.fluidState[20].T} ($RES_BND_256) (3) [ARRY] (19) hexFVa.Q_single = hexFVa.heatTransfer.Qvol / hexFVa.Nt ($RES_SIM_80) (4) [ARRY] (20) hexFVa.heatTransfer.fluidState.p = {hexFVa.fluidState[1].p, hexFVa.fluidState[2].p, hexFVa.fluidState[3].p, hexFVa.fluidState[4].p, hexFVa.fluidState[5].p, hexFVa.fluidState[6].p, hexFVa.fluidState[7].p, hexFVa.fluidState[8].p, hexFVa.fluidState[9].p, hexFVa.fluidState[10].p, hexFVa.fluidState[11].p, hexFVa.fluidState[12].p, hexFVa.fluidState[13].p, hexFVa.fluidState[14].p, hexFVa.fluidState[15].p, hexFVa.fluidState[16].p, hexFVa.fluidState[17].p, hexFVa.fluidState[18].p, hexFVa.fluidState[19].p, hexFVa.fluidState[20].p} ($RES_BND_257) (5) [SCAL] (1) hexFVb.Tr = noEvent(hexFVb.M / max(hexFVb.w, 1e-15)) ($RES_SIM_82) (6) [SCAL] (1) hexFVb.Mtot = hexFVb.M * hexFVb.Nt ($RES_SIM_83) (7) [SCAL] (1) hexFVb.Dpfric = 0.0 ($RES_SIM_123) (8) [SCAL] (1) SensT_A_in.fluidState.d = Modelica.Media.Water.IF97_Utilities.rho_ph(SensT_A_in.fluidState.p, SensT_A_in.fluidState.h, 0, 0) ($RES_SIM_282) (9) [SCAL] (1) hexFVb.M = hexFVb.A * $FUN_10 * hexFVb.l ($RES_SIM_84) (10) [SCAL] (1) (hexFVb.p + hexFVb.Dpfric) - SensT_B_in.fluidState.p = 0.0 ($RES_SIM_124) (11) [SCAL] (1) SensT_A_in.T = Modelica.Media.Water.IF97_Utilities.T_ph(SensT_A_in.fluidState.p, SensT_A_in.fluidState.h, 0, 0) ($RES_SIM_283) (12) [SCAL] (1) $FUN_8 = (SideB_MassFlowRate.w0 - ValveLin2.w) / hexFVb.Nt ($RES_SIM_125) (13) [SCAL] (1) hexFVb.h[2:20] = hexFVb.htilde ($RES_SIM_86) (14) [SCAL] (1) hexFVb.h[1] = SideB_MassFlowRate.h ($RES_SIM_87) (15) [SCAL] (1) SensT_B_out.outlet.h_outflow = hexFVb.htilde[19] ($RES_SIM_88) (16) [SCAL] (1) SensT_B_in.fluidState.d = Modelica.Media.Water.IF97_Utilities.rho_ph(SensT_B_in.fluidState.p, SensT_B_in.fluidState.h, 0, 0) ($RES_SIM_287) (17) [SCAL] (1) SensT_B_in.inlet.h_outflow = hexFVb.h[1] ($RES_SIM_89) (18) [SCAL] (1) SensT_B_in.T = Modelica.Media.Water.IF97_Utilities.T_ph(SensT_B_in.fluidState.p, SensT_B_in.fluidState.h, 0, 0) ($RES_SIM_288) (19) [SCAL] (1) metalTubeFV.int.Q = ((66.13879270715354 * metalTubeFV.lambda * (metalTubeFV.int.T - metalTubeFV.Tvol)) / $FUN_19) .* metalTubeFV.Nt ($RES_SIM_10) (20) [SCAL] (1) 10.526315789473685 * metalTubeFV.rhomcm * metalTubeFV.Nt * metalTubeFV.Am * $DER.metalTubeFV.Tvol = metalTubeFV.int.Q + metalTubeFV.ext.Q ($RES_SIM_11) (21) [FOR-] (19) ($RES_SIM_13) (21) [----] for j in 1:19 loop (21) [----] [SCAL] (1) counterCurrentFV.side2.T[({19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1})[j]] = counterCurrentFV.side1.T[j] ($RES_SIM_14) (21) [----] end for; (22) [FOR-] (19) ($RES_SIM_15) (22) [----] for j in 1:19 loop (22) [----] [SCAL] (1) counterCurrentFV.side2.Q[({19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1})[j]] + counterCurrentFV.side1.Q[j] = 0.0 ($RES_SIM_16) (22) [----] end for; (23) [SCAL] (1) hexFVa.Tr = noEvent(hexFVa.M / max(hexFVa.w, 1e-15)) ($RES_SIM_18) (24) [SCAL] (1) SensT_A_in.fluidState.h = homotopy(if $SEV_9 then SensT_A_in.outlet.h_outflow else SensT_A_in.inlet.h_outflow, SensT_A_in.outlet.h_outflow) ($RES_$AUX_279) (25) [SCAL] (1) hexFVb.wout = ValveLin2.w / hexFVb.Nt ($RES_SIM_92) (26) [SCAL] (1) hexFVa.Mtot = hexFVa.M * hexFVa.Nt ($RES_SIM_19) (27) [SCAL] (1) hexFVb.heatTransfer.Qw = hexFVb.heatTransfer.wall.Q ($RES_SIM_132) (28) [SCAL] (1) SensT_B_in.fluidState.h = homotopy(if $SEV_10 then SideB_MassFlowRate.h else SensT_B_in.inlet.h_outflow, SideB_MassFlowRate.h) ($RES_$AUX_278) (29) [SCAL] (1) hexFVb.w = SideB_MassFlowRate.w0 / hexFVb.Nt ($RES_SIM_93) (30) [SCAL] (1) hexFVb.heatTransfer.Tw = hexFVb.heatTransfer.wall.T ($RES_SIM_133) (31) [SCAL] (1) SensT_A_out.fluidState.h = homotopy(if $SEV_11 then SensT_A_out.outlet.h_outflow else SideA_FluidSink.h, SensT_A_out.outlet.h_outflow) ($RES_$AUX_277) (32) [SCAL] (1) SensT_A_out.fluidState.d = Modelica.Media.Water.IF97_Utilities.rho_ph(SideA_FluidSink.p0, SensT_A_out.fluidState.h, 0, 0) ($RES_SIM_292) (33) [FOR-] (19) ($RES_SIM_219) (33) [----] for $i1 in 1:19 loop (33) [----] [SCAL] (1) metalTubeFV.int.Q[$i1] + hexFVa.wall.Q[$i1] = 0.0 ($RES_SIM_220) (33) [----] end for; (34) [FOR-] (20) ($RES_SIM_134) (34) [----] for j in 1:20 loop (34) [----] [SCAL] (1) hexFVb.heatTransfer.T[j] = hexFVb.heatTransfer.fluidState.h ($RES_SIM_135) (34) [----] end for; (35) [SCAL] (1) SensT_B_out.fluidState.h = homotopy(if $SEV_12 then SensT_B_out.outlet.h_outflow else SideB_FluidSink.h, SensT_B_out.outlet.h_outflow) ($RES_$AUX_276) (36) [SCAL] (1) SensT_A_out.T = Modelica.Media.Water.IF97_Utilities.T_ph(SideA_FluidSink.p0, SensT_A_out.fluidState.h, 0, 0) ($RES_SIM_293) (37) [SCAL] (1) $FUN_5 = abs(hexFVb.heatTransfer.w[1]) ($RES_$AUX_275) (38) [FOR-] (20) ($RES_SIM_96) (38) [----] for j in 1:20 loop (38) [----] [SCAL] (1) hexFVb.T[j] = hexFVb.fluidState.h ($RES_SIM_97) (38) [----] end for; (39) [FOR-] (19) ($RES_SIM_136) (39) [----] for j in 1:19 loop (39) [----] [SCAL] (1) hexFVb.heatTransfer.Tvol[j] = if not hexFVb.heatTransfer.useAverageTemperature then hexFVb.heatTransfer.T[j + 1] else if not hexFVb.heatTransfer.adaptiveAverageTemperature then (hexFVb.heatTransfer.T[j] + hexFVb.heatTransfer.T[j + 1]) / 2.0 else (hexFVb.heatTransfer.T[j] + hexFVb.heatTransfer.T[j + 1]) / 2.0 + ((hexFVb.heatTransfer.T[j + 1] - hexFVb.heatTransfer.T[j]) / 2.0) * $FUN_6 ($RES_SIM_137) (39) [----] end for; (40) [SCAL] (1) $FUN_6 = exp(-hexFVb.heatTransfer.w_wnom / hexFVb.heatTransfer.sigma) ($RES_$AUX_274) (41) [SCAL] (1) hexFVb.Q = sum(hexFVb.heatTransfer.wall.Q) ($RES_$AUX_273) (42) [FOR-] (20) ($RES_SIM_98) (42) [----] for j in 1:20 loop (42) [----] [SCAL] (1) hexFVb.rho[j] = hexFVb.fluidState.d ($RES_SIM_99) (42) [----] end for; (43) [FOR-] (19) ($RES_SIM_138) (43) [----] for j in 1:19 loop (43) [----] [SCAL] (1) hexFVb.heatTransfer.Qw[j] = hexFVb.heatTransfer.gamma * hexFVb.heatTransfer.kc * hexFVb.heatTransfer.l * hexFVb.heatTransfer.omega * (hexFVb.heatTransfer.Tw[j] - hexFVb.heatTransfer.Tvol[j]) * hexFVb.heatTransfer.Nt ($RES_SIM_139) (43) [----] end for; (44) [SCAL] (1) $FUN_8 = sum(hexFVb.dMdt) ($RES_$AUX_272) (45) [SCAL] (1) SensT_B_out.fluidState.d = Modelica.Media.Water.IF97_Utilities.rho_ph(SideB_FluidSink.p0, SensT_B_out.fluidState.h, 0, 0) ($RES_SIM_297) (46) [SCAL] (1) SensT_B_out.T = Modelica.Media.Water.IF97_Utilities.T_ph(SideB_FluidSink.p0, SensT_B_out.fluidState.h, 0, 0) ($RES_SIM_298) (47) [FOR-] (19) ($RES_$AUX_270) (47) [----] for j in 1:19 loop (47) [----] [SCAL] (1) $FUN_9[integer(1.0 + ((-1.0) + j))] = sum(hexFVb.dMdt[1:j - 1]) ($RES_$AUX_271) (47) [----] end for; (48) [SCAL] (1) hexFVb.fluidState[j].phase = 0 ($RES_SIM_300) (49) [SCAL] (1) hexFVb.fluidState[j].h = hexFVb.h[j] ($RES_SIM_301) (50) [SCAL] (1) hexFVb.fluidState[j].d = Modelica.Media.Water.IF97_Utilities.rho_ph(hexFVb.p, hexFVb.h[j], 0, 0) ($RES_SIM_302) (51) [SCAL] (1) hexFVa.M = hexFVa.A * $FUN_18 * hexFVa.l ($RES_SIM_20) (52) [SCAL] (1) hexFVb.fluidState[j].T = Modelica.Media.Water.IF97_Utilities.T_ph(hexFVb.p, hexFVb.h[j], 0, 0) ($RES_SIM_303) (53) [SCAL] (1) hexFVb.fluidState[j].p = hexFVb.p ($RES_SIM_304) (54) [SCAL] (1) hexFVa.h[2:20] = hexFVa.htilde ($RES_SIM_22) (55) [SCAL] (1) hexFVa.fluidState[j].phase = 0 ($RES_SIM_305) (56) [SCAL] (1) metalTubeFV.int.T = hexFVa.wall.T ($RES_SIM_221) (57) [SCAL] (1) hexFVa.h[1] = SensT_A_in.outlet.h_outflow ($RES_SIM_23) (58) [SCAL] (1) hexFVa.fluidState[j].h = hexFVa.h[j] ($RES_SIM_306) (59) [FOR-] (19) ($RES_SIM_222) (59) [----] for $i1 in 1:19 loop (59) [----] [SCAL] (1) counterCurrentFV.side2.Q[$i1] + metalTubeFV.ext.Q[$i1] = 0.0 ($RES_SIM_223) (59) [----] end for; (60) [SCAL] (1) SensT_A_out.outlet.h_outflow = hexFVa.htilde[19] ($RES_SIM_24) (61) [SCAL] (1) hexFVa.fluidState[j].d = Modelica.Media.Water.IF97_Utilities.rho_ph(hexFVa.p, hexFVa.h[j], 0, 0) ($RES_SIM_307) (62) [SCAL] (1) SensT_A_in.inlet.h_outflow = hexFVa.h[1] ($RES_SIM_25) (63) [SCAL] (1) hexFVa.fluidState[j].T = Modelica.Media.Water.IF97_Utilities.T_ph(hexFVa.p, hexFVa.h[j], 0, 0) ($RES_SIM_308) (64) [SCAL] (1) counterCurrentFV.side2.T = metalTubeFV.ext.T ($RES_SIM_224) (65) [SCAL] (1) hexFVa.fluidState[j].p = hexFVa.p ($RES_SIM_309) (66) [FOR-] (19) ($RES_SIM_225) (66) [----] for $i1 in 1:19 loop (66) [----] [SCAL] (1) counterCurrentFV.side1.Q[$i1] + hexFVb.wall.Q[$i1] = 0.0 ($RES_SIM_226) (66) [----] end for; (67) [SCAL] (1) hexFVb.heatTransfer.w_wnom = $FUN_5 / hexFVb.heatTransfer.wnom ($RES_SIM_140) (68) [SCAL] (1) hexFVa.wout = ValveLin1.w / hexFVa.Nt ($RES_SIM_28) (69) [ARRY] (19) hexFVb.heatTransfer.Qvol = hexFVb.heatTransfer.Qw ($RES_SIM_141) (70) [SCAL] (1) $FUN_10 = sum(hexFVb.rhobar) ($RES_$AUX_269) (71) [SCAL] (1) counterCurrentFV.side1.T = hexFVb.wall.T ($RES_SIM_227) (72) [SCAL] (1) hexFVa.w = SideA_MassFlowRate.w0 / hexFVa.Nt ($RES_SIM_29) (73) [ARRY] (20) hexFVb.heatTransfer.w = hexFVb.w * fill(1.0, 20) ($RES_SIM_142) (74) [SCAL] (1) $FUN_11 = abs(hexFVa.heatTransfer.w[1]) ($RES_$AUX_268) (75) [ARRY] (100) hexFVb.heatTransfer.fluidState = hexFVb.fluidState ($RES_SIM_143) (76) [SCAL] (1) $FUN_12 = exp(-hexFVa.heatTransfer.w_wnom / hexFVa.heatTransfer.sigma) ($RES_$AUX_267) (77) [ARRY] (19) hexFVb.Q_single = hexFVb.heatTransfer.Qvol / hexFVb.Nt ($RES_SIM_144) (78) [SCAL] (1) hexFVa.Q = sum(hexFVa.heatTransfer.wall.Q) ($RES_$AUX_266) (79) [SCAL] (1) $FUN_14 = sum(hexFVa.dMdt) ($RES_$AUX_265) (80) [SCAL] (1) $FUN_15 = sum(hexFVa.vbar) ($RES_$AUX_264) (81) [SCAL] (1) hexFVa.Dpfric1 = homotopy(0.05263157894736842 * $FUN_15 * (hexFVa.w * sqrt(hexFVa.w * hexFVa.w + (hexFVa.wnom / hexFVa.Nt) * hexFVa.wnf * ((hexFVa.wnom / hexFVa.Nt) * hexFVa.wnf))) * hexFVa.Kf, (hexFVa.dpnom / (hexFVa.wnom / hexFVa.Nt)) * hexFVa.w) ($RES_$AUX_263) (82) [SCAL] (1) $TEV_0 = time < SideA_InSpecEnth.startTime ($RES_EVT_310) (83) [FOR-] (19) ($RES_$AUX_261) (83) [----] for j in 1:19 loop (83) [----] [SCAL] (1) $FUN_17[integer(1.0 + ((-1.0) + j))] = sum(hexFVa.dMdt[1:j - 1]) ($RES_$AUX_262) (83) [----] end for; (84) [SCAL] (1) $FUN_18 = sum(hexFVa.rhobar) ($RES_$AUX_260) (85) [SCAL] (1) $SEV_5 = hexFVa.w > (-hexFVa.wnom * hexFVa.wnm) ($RES_EVT_316) (86) [SCAL] (1) $SEV_6 = hexFVa.Kf >= 0.0 ($RES_EVT_317) (87) [SCAL] (1) $SEV_7 = hexFVb.w > (-hexFVb.wnom * hexFVb.wnm) ($RES_EVT_318) (88) [FOR-] (20) ($RES_SIM_32) (88) [----] for j in 1:20 loop (88) [----] [SCAL] (1) hexFVa.T[j] = hexFVa.fluidState.h ($RES_SIM_33) (88) [----] end for; (89) [FOR-] (20) ($RES_SIM_34) (89) [----] for j in 1:20 loop (89) [----] [SCAL] (1) hexFVa.rho[j] = hexFVa.fluidState.d ($RES_SIM_35) (89) [----] end for; (90) [FOR-] (20) ($RES_SIM_36) (90) [----] for j in 1:20 loop (90) [----] [SCAL] (1) hexFVa.drdp[j] = Modelica.Media.Water.IF97_Utilities.ddph_props(hexFVa.fluidState.phase, hexFVa.fluidState.T, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(hexFVa.fluidState.phase, hexFVa.fluidState.T, hexFVa.fluidState.p, 0)) ($RES_SIM_37) (90) [----] end for; (91) [FOR-] (20) ($RES_SIM_38) (91) [----] for j in 1:20 loop (91) [----] [SCAL] (1) hexFVa.drdh[j] = Modelica.Media.Water.IF97_Utilities.ddhp_props(hexFVa.fluidState.phase, hexFVa.fluidState.T, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(hexFVa.fluidState.phase, hexFVa.fluidState.T, hexFVa.fluidState.p, 0)) ($RES_SIM_39) (91) [----] end for; (92) [SCAL] (1) $FUN_19 = log((0.5 * (metalTubeFV.rint + metalTubeFV.rext)) / metalTubeFV.rint) ($RES_$AUX_259) (93) [SCAL] (1) $FUN_20 = log((2.0 * metalTubeFV.rext) / (metalTubeFV.rint + metalTubeFV.rext)) ($RES_$AUX_258) (94) [SCAL] (1) $SEV_9 = SideA_MassFlowRate.w0 > 0.0 ($RES_EVT_320) (95) [SCAL] (1) $SEV_10 = SideB_MassFlowRate.w0 > 0.0 ($RES_EVT_321) (96) [SCAL] (1) $SEV_11 = ValveLin1.w > 0.0 ($RES_EVT_322) (97) [SCAL] (1) $SEV_12 = ValveLin2.w > 0.0 ($RES_EVT_323) (98) [FOR-] (20) ($RES_SIM_40) (98) [----] for j in 1:20 loop (98) [----] [SCAL] (1) hexFVa.u[j] = hexFVa.w / (hexFVa.A * hexFVa.rho[j]) ($RES_SIM_41) (98) [----] end for; (99) [FOR-] (19) ($RES_SIM_42) (99) [----] for j in 1:19 loop (99) [----] [SCAL] (1) (hexFVa.wbar[j] * (hexFVa.h[j + 1] - hexFVa.h[j]) + hexFVa.rhobar[j] * hexFVa.l * hexFVa.A * $DER.hexFVa.htilde[j]) - hexFVa.l * hexFVa.A * $DER.hexFVa.p = hexFVa.Q_single[j] ($RES_SIM_43) (99) [----] end for; (100) [FOR-] (19) ($RES_SIM_241) (100) [----] for $i1 in 1:19 loop (100) [----] [SCAL] (1) (-hexFVa.wall.Q[$i1]) + hexFVa.heatTransfer.wall.Q[$i1] = 0.0 ($RES_SIM_242) (100) [----] end for; (101) [FOR-] (19) ($RES_SIM_44) (101) [----] for j in 1:19 loop (101) [----] [SCAL] (1) hexFVa.dMdt[j] = hexFVa.l * hexFVa.A * (hexFVa.drbdh[j] * $DER.hexFVa.htilde[j] + hexFVa.drbdp[j] * $DER.hexFVa.p) ($RES_SIM_45) (101) [----] end for; (102) [SCAL] (1) hexFVa.wall.T = hexFVa.heatTransfer.wall.T ($RES_SIM_243) (103) [FOR-] (19) ($RES_SIM_244) (103) [----] for $i1 in 1:19 loop (103) [----] [SCAL] (1) (-hexFVb.wall.Q[$i1]) + hexFVb.heatTransfer.wall.Q[$i1] = 0.0 ($RES_SIM_245) (103) [----] end for; (104) [FOR-] (19) ($RES_SIM_46) (104) [----] for j in 1:19 loop (104) [----] [SCAL] (1) hexFVa.rhobar[j] = (hexFVa.rho[j] + hexFVa.rho[j + 1]) / 2.0 ($RES_SIM_47) (104) [----] end for; (105) [SCAL] (1) hexFVb.wall.T = hexFVb.heatTransfer.wall.T ($RES_SIM_246) (106) [FOR-] (19) ($RES_SIM_48) (106) [----] for j in 1:19 loop (106) [----] [SCAL] (1) hexFVa.drbdp[j] = (hexFVa.drdp[j] + hexFVa.drdp[j + 1]) / 2.0 ($RES_SIM_49) (106) [----] end for; (107) [FOR-] (19) ($RES_SIM_50) (107) [----] for j in 1:19 loop (107) [----] [SCAL] (1) hexFVa.drbdh[j] = (hexFVa.drdh[j] + hexFVa.drdh[j + 1]) / 2.0 ($RES_SIM_51) (107) [----] end for; (108) [FOR-] (19) ($RES_SIM_52) (108) [----] for j in 1:19 loop (108) [----] [SCAL] (1) hexFVa.vbar[j] = 1.0 / hexFVa.rhobar[j] ($RES_SIM_53) (108) [----] end for; (109) [SCAL] (1) metalTubeFV.ext.Q = ((66.13879270715354 * metalTubeFV.lambda * (metalTubeFV.ext.T - metalTubeFV.Tvol)) / $FUN_20) .* metalTubeFV.Nt ($RES_SIM_9) (110) [FOR-] (19) ($RES_SIM_54) (110) [----] for j in 1:19 loop (110) [----] [SCAL] (1) hexFVa.wbar[j] = SideA_MassFlowRate.w0 / hexFVa.Nt - (hexFVa.dMdt[j] / 2.0 + $FUN_17[integer(1.0 + ((-1.0) + j))]) ($RES_SIM_55) (110) [----] end for; (111) [SCAL] (1) hexFVa.Dpfric = hexFVa.Dpfric1 ($RES_SIM_59) (112) [SCAL] (1) SensT_A_in.outlet.h_outflow = SideA_InSpecEnth.offset + (if $TEV_0 then 0.0 else SideA_InSpecEnth.height) ($RES_SIM_174) (113) [SCAL] (1) (hexFVa.p + hexFVa.Dpfric) - SensT_A_in.fluidState.p = 0.0 ($RES_SIM_60) (114) [FOR-] (20) ($RES_SIM_100) (114) [----] for j in 1:20 loop (114) [----] [SCAL] (1) hexFVb.drdp[j] = Modelica.Media.Water.IF97_Utilities.ddph_props(hexFVb.fluidState.phase, hexFVb.fluidState.T, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(hexFVb.fluidState.phase, hexFVb.fluidState.T, hexFVb.fluidState.p, 0)) ($RES_SIM_101) (114) [----] end for; (115) [SCAL] (1) $FUN_14 = (SideA_MassFlowRate.w0 - ValveLin1.w) / hexFVa.Nt ($RES_SIM_61) (116) [FOR-] (20) ($RES_SIM_102) (116) [----] for j in 1:20 loop (116) [----] [SCAL] (1) hexFVb.drdh[j] = Modelica.Media.Water.IF97_Utilities.ddhp_props(hexFVb.fluidState.phase, hexFVb.fluidState.T, Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(hexFVb.fluidState.phase, hexFVb.fluidState.T, hexFVb.fluidState.p, 0)) ($RES_SIM_103) (116) [----] end for; (117) [SCAL] (1) hexFVa.Kf = (100.0 * hexFVa.omega_hyd * hexFVa.Cf) / hexFVa.A ^ 3.0 ($RES_SIM_64) (118) [FOR-] (20) ($RES_SIM_104) (118) [----] for j in 1:20 loop (118) [----] [SCAL] (1) hexFVb.u[j] = hexFVb.w / (hexFVb.A * hexFVb.rho[j]) ($RES_SIM_105) (118) [----] end for; (119) [SCAL] (1) hexFVa.Cf = hexFVa.Cfnom * hexFVa.Kfc ($RES_SIM_65) (120) [SCAL] (1) hexFVa.omega_hyd = (4.0 * hexFVa.A) / hexFVa.Dhyd ($RES_SIM_66) (121) [FOR-] (19) ($RES_SIM_106) (121) [----] for j in 1:19 loop (121) [----] [SCAL] (1) (hexFVb.wbar[j] * (hexFVb.h[j + 1] - hexFVb.h[j]) + hexFVb.rhobar[j] * hexFVb.l * hexFVb.A * $DER.hexFVb.htilde[j]) - hexFVb.l * hexFVb.A * $DER.hexFVb.p = hexFVb.Q_single[j] ($RES_SIM_107) (121) [----] end for; (122) [SCAL] (1) hexFVa.heatTransfer.Qw = hexFVa.heatTransfer.wall.Q ($RES_SIM_68) (123) [FOR-] (19) ($RES_SIM_108) (123) [----] for j in 1:19 loop (123) [----] [SCAL] (1) hexFVb.dMdt[j] = hexFVb.l * hexFVb.A * (hexFVb.drbdh[j] * $DER.hexFVb.htilde[j] + hexFVb.drbdp[j] * $DER.hexFVb.p) ($RES_SIM_109) (123) [----] end for; (124) [SCAL] (1) hexFVa.heatTransfer.Tw = hexFVa.heatTransfer.wall.T ($RES_SIM_69) (125) [SCAL] (1) ValveLin2.w = Constant1.k * ValveLin2.Kv * (hexFVb.p - SideB_FluidSink.p0) ($RES_SIM_185) (126) [FOR-] (20) ($RES_SIM_70) (126) [----] for j in 1:20 loop (126) [----] [SCAL] (1) hexFVa.heatTransfer.T[j] = hexFVa.heatTransfer.fluidState.h ($RES_SIM_71) (126) [----] end for; (127) [FOR-] (19) ($RES_SIM_110) (127) [----] for j in 1:19 loop (127) [----] [SCAL] (1) hexFVb.rhobar[j] = (hexFVb.rho[j] + hexFVb.rho[j + 1]) / 2.0 ($RES_SIM_111) (127) [----] end for; (128) [ARRY] (20) hexFVb.heatTransfer.fluidState.phase = {hexFVb.fluidState[1].phase, hexFVb.fluidState[2].phase, hexFVb.fluidState[3].phase, hexFVb.fluidState[4].phase, hexFVb.fluidState[5].phase, hexFVb.fluidState[6].phase, hexFVb.fluidState[7].phase, hexFVb.fluidState[8].phase, hexFVb.fluidState[9].phase, hexFVb.fluidState[10].phase, hexFVb.fluidState[11].phase, hexFVb.fluidState[12].phase, hexFVb.fluidState[13].phase, hexFVb.fluidState[14].phase, hexFVb.fluidState[15].phase, hexFVb.fluidState[16].phase, hexFVb.fluidState[17].phase, hexFVb.fluidState[18].phase, hexFVb.fluidState[19].phase, hexFVb.fluidState[20].phase} ($RES_BND_248) (129) [FOR-] (19) ($RES_SIM_72) (129) [----] for j in 1:19 loop (129) [----] [SCAL] (1) hexFVa.heatTransfer.Tvol[j] = if not hexFVa.heatTransfer.useAverageTemperature then hexFVa.heatTransfer.T[j + 1] else if not hexFVa.heatTransfer.adaptiveAverageTemperature then (hexFVa.heatTransfer.T[j] + hexFVa.heatTransfer.T[j + 1]) / 2.0 else (hexFVa.heatTransfer.T[j] + hexFVa.heatTransfer.T[j + 1]) / 2.0 + ((hexFVa.heatTransfer.T[j + 1] - hexFVa.heatTransfer.T[j]) / 2.0) * $FUN_12 ($RES_SIM_73) (129) [----] end for; (130) [FOR-] (19) ($RES_SIM_112) (130) [----] for j in 1:19 loop (130) [----] [SCAL] (1) hexFVb.drbdp[j] = (hexFVb.drdp[j] + hexFVb.drdp[j + 1]) / 2.0 ($RES_SIM_113) (130) [----] end for; (131) [ARRY] (20) hexFVb.heatTransfer.fluidState.h = {hexFVb.fluidState[1].h, hexFVb.fluidState[2].h, hexFVb.fluidState[3].h, hexFVb.fluidState[4].h, hexFVb.fluidState[5].h, hexFVb.fluidState[6].h, hexFVb.fluidState[7].h, hexFVb.fluidState[8].h, hexFVb.fluidState[9].h, hexFVb.fluidState[10].h, hexFVb.fluidState[11].h, hexFVb.fluidState[12].h, hexFVb.fluidState[13].h, hexFVb.fluidState[14].h, hexFVb.fluidState[15].h, hexFVb.fluidState[16].h, hexFVb.fluidState[17].h, hexFVb.fluidState[18].h, hexFVb.fluidState[19].h, hexFVb.fluidState[20].h} ($RES_BND_249) (132) [FOR-] (19) ($RES_SIM_74) (132) [----] for j in 1:19 loop (132) [----] [SCAL] (1) hexFVa.heatTransfer.Qw[j] = hexFVa.heatTransfer.gamma * hexFVa.heatTransfer.kc * hexFVa.heatTransfer.l * hexFVa.heatTransfer.omega * (hexFVa.heatTransfer.Tw[j] - hexFVa.heatTransfer.Tvol[j]) * hexFVa.heatTransfer.Nt ($RES_SIM_75) (132) [----] end for; (133) [FOR-] (19) ($RES_SIM_114) (133) [----] for j in 1:19 loop (133) [----] [SCAL] (1) hexFVb.drbdh[j] = (hexFVb.drdh[j] + hexFVb.drdh[j + 1]) / 2.0 ($RES_SIM_115) (133) [----] end for; (134) [SCAL] (1) hexFVa.heatTransfer.w_wnom = $FUN_11 / hexFVa.heatTransfer.wnom ($RES_SIM_76) (135) [FOR-] (19) ($RES_SIM_116) (135) [----] for j in 1:19 loop (135) [----] [SCAL] (1) hexFVb.vbar[j] = 1.0 / hexFVb.rhobar[j] ($RES_SIM_117) (135) [----] end for; (136) [ARRY] (19) hexFVa.heatTransfer.Qvol = hexFVa.heatTransfer.Qw ($RES_SIM_77) (137) [SCAL] (1) ValveLin1.w = Constant2.k * ValveLin1.Kv * (hexFVa.p - SideA_FluidSink.p0) ($RES_SIM_190) (138) [ARRY] (20) hexFVa.heatTransfer.w = hexFVa.w * fill(1.0, 20) ($RES_SIM_78) (139) [FOR-] (19) ($RES_SIM_118) (139) [----] for j in 1:19 loop (139) [----] [SCAL] (1) hexFVb.wbar[j] = SideB_MassFlowRate.w0 / hexFVb.Nt - (hexFVb.dMdt[j] / 2.0 + $FUN_9[integer(1.0 + ((-1.0) + j))]) ($RES_SIM_119) (139) [----] end for; (140) [ARRY] (100) hexFVa.heatTransfer.fluidState = hexFVa.fluidState ($RES_SIM_79) (141) [ARRY] (20) hexFVb.heatTransfer.fluidState.d = {hexFVb.fluidState[1].d, hexFVb.fluidState[2].d, hexFVb.fluidState[3].d, hexFVb.fluidState[4].d, hexFVb.fluidState[5].d, hexFVb.fluidState[6].d, hexFVb.fluidState[7].d, hexFVb.fluidState[8].d, hexFVb.fluidState[9].d, hexFVb.fluidState[10].d, hexFVb.fluidState[11].d, hexFVb.fluidState[12].d, hexFVb.fluidState[13].d, hexFVb.fluidState[14].d, hexFVb.fluidState[15].d, hexFVb.fluidState[16].d, hexFVb.fluidState[17].d, hexFVb.fluidState[18].d, hexFVb.fluidState[19].d, hexFVb.fluidState[20].d} ($RES_BND_250) (142) [ARRY] (20) hexFVb.heatTransfer.fluidState.T = {hexFVb.fluidState[1].T, hexFVb.fluidState[2].T, hexFVb.fluidState[3].T, hexFVb.fluidState[4].T, hexFVb.fluidState[5].T, hexFVb.fluidState[6].T, hexFVb.fluidState[7].T, hexFVb.fluidState[8].T, hexFVb.fluidState[9].T, hexFVb.fluidState[10].T, hexFVb.fluidState[11].T, hexFVb.fluidState[12].T, hexFVb.fluidState[13].T, hexFVb.fluidState[14].T, hexFVb.fluidState[15].T, hexFVb.fluidState[16].T, hexFVb.fluidState[17].T, hexFVb.fluidState[18].T, hexFVb.fluidState[19].T, hexFVb.fluidState[20].T} ($RES_BND_251) (143) [ARRY] (20) hexFVb.heatTransfer.fluidState.p = {hexFVb.fluidState[1].p, hexFVb.fluidState[2].p, hexFVb.fluidState[3].p, hexFVb.fluidState[4].p, hexFVb.fluidState[5].p, hexFVb.fluidState[6].p, hexFVb.fluidState[7].p, hexFVb.fluidState[8].p, hexFVb.fluidState[9].p, hexFVb.fluidState[10].p, hexFVb.fluidState[11].p, hexFVb.fluidState[12].p, hexFVb.fluidState[13].p, hexFVb.fluidState[14].p, hexFVb.fluidState[15].p, hexFVb.fluidState[16].p, hexFVb.fluidState[17].p, hexFVb.fluidState[18].p, hexFVb.fluidState[19].p, hexFVb.fluidState[20].p} ($RES_BND_252) (144) [ARRY] (20) hexFVa.heatTransfer.fluidState.phase = {hexFVa.fluidState[1].phase, hexFVa.fluidState[2].phase, hexFVa.fluidState[3].phase, hexFVa.fluidState[4].phase, hexFVa.fluidState[5].phase, hexFVa.fluidState[6].phase, hexFVa.fluidState[7].phase, hexFVa.fluidState[8].phase, hexFVa.fluidState[9].phase, hexFVa.fluidState[10].phase, hexFVa.fluidState[11].phase, hexFVa.fluidState[12].phase, hexFVa.fluidState[13].phase, hexFVa.fluidState[14].phase, hexFVa.fluidState[15].phase, hexFVa.fluidState[16].phase, hexFVa.fluidState[17].phase, hexFVa.fluidState[18].phase, hexFVa.fluidState[19].phase, hexFVa.fluidState[20].phase} ($RES_BND_253) (145) [ARRY] (20) hexFVa.heatTransfer.fluidState.h = {hexFVa.fluidState[1].h, hexFVa.fluidState[2].h, hexFVa.fluidState[3].h, hexFVa.fluidState[4].h, hexFVa.fluidState[5].h, hexFVa.fluidState[6].h, hexFVa.fluidState[7].h, hexFVa.fluidState[8].h, hexFVa.fluidState[9].h, hexFVa.fluidState[10].h, hexFVa.fluidState[11].h, hexFVa.fluidState[12].h, hexFVa.fluidState[13].h, hexFVa.fluidState[14].h, hexFVa.fluidState[15].h, hexFVa.fluidState[16].h, hexFVa.fluidState[17].h, hexFVa.fluidState[18].h, hexFVa.fluidState[19].h, hexFVa.fluidState[20].h} ($RES_BND_254)