Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_E.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_E,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_E") translateModel(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_E,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_E") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 103 kB / 17.63 MB, free: 5.41 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.002179/0.002178, allocations: 193.5 kB / 18.56 MB, free: 4.488 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.472/1.472, 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.2779/0.2779, allocations: 48.85 MB / 320.6 MB, free: 11.09 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.811e-05/1.813e-05, allocations: 3.047 kB / 390.8 MB, free: 48.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_E): time 0.0634/0.06343, allocations: 92.91 MB / 483.7 MB, free: 7.629 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01764/0.08112, allocations: 14.45 MB / 498.1 MB, free: 9.141 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001114/0.08227, allocations: 23.88 kB / 498.1 MB, free: 9.117 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.08375, allocations: 0.621 MB / 498.8 MB, free: 8.492 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001887/0.0857, allocations: 0.9325 MB / 499.7 MB, free: 7.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01565/0.1014, allocations: 5.982 MB / 0.4938 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004157/0.1055, allocations: 3.539 MB / 0.4973 GB, free: 14.04 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.1066, allocations: 0.744 MB / 0.498 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001585/0.1082, allocations: 1.13 MB / 0.4991 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001094/0.1093, allocations: 1.036 MB / 0.5001 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.1094, allocations: 92 kB / 0.5002 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01065/0.1201, allocations: 6.092 MB / 0.5062 GB, free: 4.922 MB / 398.1 MB Notification: Performance of combineBinaries: time 0.002393/0.1225, allocations: 2.415 MB / 0.5085 GB, free: 2.484 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 0.0009104/0.1235, allocations: 1.514 MB / 0.51 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003036/0.1238, allocations: 219.4 kB / 0.5102 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of FrontEnd: time 0.0002203/0.124, allocations: 27.94 kB / 0.5102 GB, free: 0.7109 MB / 398.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: 1572 (200) * Number of variables: 1552 (220) Notification: Performance of Bindings: time 0.006057/0.1301, allocations: 7.158 MB / 0.5172 GB, free: 9.391 MB / 414.1 MB Notification: Performance of FunctionAlias: time 0.0005847/0.1307, allocations: 0.5046 MB / 0.5177 GB, free: 8.902 MB / 414.1 MB Notification: Performance of Early Inline: time 0.001336/0.132, allocations: 1.108 MB / 0.5188 GB, free: 7.734 MB / 414.1 MB Notification: Performance of simplify1: time 0.0002232/0.1322, allocations: 224.7 kB / 0.519 GB, free: 7.516 MB / 414.1 MB Notification: Performance of Alias: time 0.004474/0.1367, allocations: 4.098 MB / 0.523 GB, free: 3.031 MB / 414.1 MB Notification: Performance of simplify2: time 0.0002186/0.137, allocations: 159.7 kB / 0.5232 GB, free: 2.875 MB / 414.1 MB Notification: Performance of Events: time 0.0005335/0.1375, allocations: 490.5 kB / 0.5236 GB, free: 2.371 MB / 414.1 MB Notification: Performance of Detect States: time 0.0007122/0.1382, allocations: 0.7516 MB / 0.5244 GB, free: 1.594 MB / 414.1 MB Notification: Performance of Partitioning: time 0.001112/0.1393, allocations: 1.075 MB / 0.5254 GB, free: 448 kB / 414.1 MB Error: Internal error NBAdjacency.Matrix.createPseudo failed for [FOR-] (19) ($RES_$AUX_260) [----] for j in 1:19 loop [----] [SCAL] (1) $FUN_9[integer(1.0 + ((-1.0) + j))] = sum(hexFVb.dMdt[1:j - 1]) ($RES_$AUX_261) [----] end for; Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (134/1502) ***************************** (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] (1) Real hexFVb.Mtot (min = 0.0) (14) [ALGB] (19) Real[19] hexFVa.heatTransfer.Qw (15) [ALGB] (1) Real SensT_A_out.fluidState.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (16) [ALGB] (1) Real SensT_A_out.fluidState.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (17) [ALGB] (1) Real SensT_B_in.fluidState.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (18) [ALGB] (1) Real SensT_B_in.fluidState.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (19) [DISC] (1) Boolean $SEV_11 (20) [DISC] (1) Boolean $SEV_10 (21) [ALGB] (20) final Real[20] hexFVb.heatTransfer.w (min = {-1e5 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}) (22) [ALGB] (19) protected Real[19] hexFVb.vbar (min = {0.0 for $i1 in 1:19}) (23) [ALGB] (1) Real SensT_B_in.fluidState.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (24) [DISC] (20) Integer[20] hexFVa.fluidState.phase (min = {0 for $i1 in 1:20}, max = {2 for $i1 in 1:20}) (25) [DISC] (20) Integer[20] hexFVb.fluidState.phase (min = {0 for $i1 in 1:20}, max = {2 for $i1 in 1:20}) (26) [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}) (27) [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}) (28) [ALGB] (1) Real hexFVb.Dpfric (29) [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}) (30) [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}) (31) [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}) (32) [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}) (33) [ALGB] (19) Real[19] $FUN_9 (34) [ALGB] (1) Real $FUN_8 (35) [ALGB] (19) flow Real[19] counterCurrentFV.side1.Q (36) [ALGB] (1) Real hexFVa.Mtot (min = 0.0) (37) [ALGB] (1) Real $FUN_6 (38) [ALGB] (1) Real $FUN_5 (39) [ALGB] (20) protected Real[20] hexFVb.drdh (40) [ALGB] (19) Real[19] hexFVb.heatTransfer.Qw (41) [ALGB] (19) Real[19] hexFVa.Q_single (42) [ALGB] (20) protected Real[20] hexFVb.drdp (43) [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}) (44) [ALGB] (20) final Real[20] hexFVa.heatTransfer.w (min = {-1e5 for $i1 in 1:20}, max = {1e5 for $i1 in 1:20}) (45) [ALGB] (19) protected Real[19] hexFVa.vbar (min = {0.0 for $i1 in 1:19}) (46) [DER-] (19) Real[19] $DER.hexFVa.htilde (47) [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}) (48) [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}) (49) [ALGB] (19) flow Real[19] hexFVa.wall.Q (50) [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}) (51) [ALGB] (1) Real $FUN_18 (52) [ALGB] (19) Real[19] hexFVb.heatTransfer.Qvol (53) [ALGB] (19) Real[19] $FUN_17 (54) [ALGB] (1) Real hexFVa.Tr (55) [ALGB] (1) Real $FUN_15 (56) [ALGB] (1) Real $FUN_14 (57) [ALGB] (1) Real $FUN_12 (58) [ALGB] (1) Real $FUN_11 (59) [ALGB] (1) Real $FUN_10 (60) [ALGB] (1) Real SensT_B_in.T (61) [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}) (62) [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}) (63) [DISC] (1) Boolean $SEV_9 (64) [DISC] (1) Boolean $SEV_8 (65) [DER-] (1) Real $DER.hexFVa.p (66) [ALGB] (1) Real hexFVb.w (start = hexFVb.wnom / hexFVb.Nt, min = -1e5, max = 1e5) (67) [DISC] (1) Boolean $SEV_6 (68) [ALGB] (20) Real[20] hexFVb.u (69) [DISC] (1) Boolean $SEV_5 (70) [ALGB] (1) Real ValveLin1.w (min = -1e5, max = 1e5) (71) [DISC] (1) Boolean $SEV_4 (72) [ALGB] (1) Real hexFVb.heatTransfer.w_wnom (73) [ALGB] (20) protected Real[20] hexFVa.drdh (74) [ALGB] (1) stream Real SensT_A_in.inlet.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (75) [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}) (76) [ALGB] (20) protected Real[20] hexFVa.drdp (77) [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}) (78) [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}) (79) [ALGB] (19) Real[19] hexFVb.dMdt (80) [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}) (81) [ALGB] (1) Real SensT_B_out.T (82) [ALGB] (1) Real hexFVb.Tr (83) [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}) (84) [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}) (85) [ALGB] (1) Real hexFVa.Kf (86) [ALGB] (19) protected Real[19] hexFVa.drbdh (87) [ALGB] (1) Real hexFVb.Q (88) [ALGB] (19) flow Real[19] hexFVb.heatTransfer.wall.Q (89) [ALGB] (1) Real hexFVb.wout (min = -1e5, max = 1e5) (90) [ALGB] (1) Real hexFVa.Dpfric (91) [ALGB] (1) Real hexFVb.M (min = 0.0) (92) [ALGB] (1) Real hexFVa.Cf (93) [ALGB] (1) stream Real SensT_B_in.inlet.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (94) [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}) (95) [ALGB] (19) protected Real[19] hexFVa.drbdp (96) [ALGB] (19) Real[19] hexFVb.Q_single (97) [ALGB] (1) Real SensT_A_in.T (98) [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}) (99) [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}) (100) [ALGB] (1) stream Real SensT_A_out.outlet.h_outflow (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (101) [DER-] (1) Real $DER.hexFVb.p (102) [ALGB] (1) Real hexFVa.w (start = hexFVa.wnom / hexFVa.Nt, min = -1e5, max = 1e5) (103) [ALGB] (20) Real[20] hexFVa.u (104) [ALGB] (1) Real ValveLin2.w (min = -1e5, max = 1e5) (105) [ALGB] (19) Real[19] hexFVa.dMdt (106) [ALGB] (1) Real hexFVa.Dpfric1 (107) [ALGB] (1) Real SensT_A_out.T (108) [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}) (109) [DER-] (19) Real[19] $DER.hexFVb.htilde (110) [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}) (111) [ALGB] (1) Real SensT_B_out.fluidState.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (112) [ALGB] (19) protected Real[19] hexFVb.drbdh (113) [ALGB] (1) Real SensT_A_in.fluidState.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (114) [ALGB] (1) Real SensT_B_out.fluidState.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (115) [ALGB] (1) Real hexFVa.wout (min = -1e5, max = 1e5) (116) [ALGB] (1) Real SensT_A_in.fluidState.h (start = 1e5, min = -1e10, max = 1e10, nominal = 5e5) (117) [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}) (118) [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}) (119) [ALGB] (19) flow Real[19] hexFVa.heatTransfer.wall.Q (120) [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}) (121) [ALGB] (19) protected Real[19] hexFVb.drbdp (122) [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}) (123) [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}) (124) [ALGB] (1) Real hexFVa.Q (125) [ALGB] (1) Real SensT_A_in.fluidState.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (126) [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}) (127) [ALGB] (1) Real hexFVa.M (min = 0.0) (128) [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}) (129) [ALGB] (1) Real hexFVa.omega_hyd (130) [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}) (131) [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}) (132) [ALGB] (19) Real[19] hexFVa.heatTransfer.Qvol (133) [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}) (134) [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 (138/1332) ***************************** (1) [SCAL] (1) $FUN_8 = (SideB_MassFlowRate.w0 - ValveLin2.w) / hexFVb.Nt ($RES_SIM_120) (2) [SCAL] (1) hexFVb.h[2:20] = hexFVb.htilde ($RES_SIM_81) (3) [SCAL] (1) hexFVb.h[1] = SideB_MassFlowRate.h ($RES_SIM_82) (4) [SCAL] (1) SensT_B_out.outlet.h_outflow = hexFVb.htilde[19] ($RES_SIM_83) (5) [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_282) (6) [SCAL] (1) SensT_B_in.inlet.h_outflow = hexFVb.h[1] ($RES_SIM_84) (7) [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_283) (8) [SCAL] (1) hexFVb.wout = ValveLin2.w / hexFVb.Nt ($RES_SIM_87) (9) [SCAL] (1) hexFVb.heatTransfer.Qw = hexFVb.heatTransfer.wall.Q ($RES_SIM_127) (10) [SCAL] (1) hexFVb.w = SideB_MassFlowRate.w0 / hexFVb.Nt ($RES_SIM_88) (11) [SCAL] (1) hexFVb.heatTransfer.Tw = hexFVb.heatTransfer.wall.T ($RES_SIM_128) (12) [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_287) (13) [FOR-] (20) ($RES_SIM_129) (13) [----] for j in 1:20 loop (13) [----] [SCAL] (1) hexFVb.heatTransfer.T[j] = hexFVb.heatTransfer.fluidState.h ($RES_SIM_130) (13) [----] end for; (14) [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_288) (15) [FOR-] (19) ($RES_SIM_10) (15) [----] for j in 1:19 loop (15) [----] [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_11) (15) [----] end for; (16) [SCAL] (1) hexFVa.Tr = noEvent(hexFVa.M / max(hexFVa.w, 1e-15)) ($RES_SIM_13) (17) [SCAL] (1) hexFVa.Mtot = hexFVa.M * hexFVa.Nt ($RES_SIM_14) (18) [SCAL] (1) hexFVa.M = hexFVa.A * $FUN_18 * hexFVa.l ($RES_SIM_15) (19) [FOR-] (19) ($RES_SIM_214) (19) [----] for $i1 in 1:19 loop (19) [----] [SCAL] (1) counterCurrentFV.side2.Q[$i1] + hexFVa.wall.Q[$i1] = 0.0 ($RES_SIM_215) (19) [----] end for; (20) [SCAL] (1) hexFVa.h[2:20] = hexFVa.htilde ($RES_SIM_17) (21) [FOR-] (19) ($RES_SIM_131) (21) [----] for j in 1:19 loop (21) [----] [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_132) (21) [----] end for; (22) [SCAL] (1) counterCurrentFV.side2.T = hexFVa.wall.T ($RES_SIM_216) (23) [FOR-] (20) ($RES_SIM_91) (23) [----] for j in 1:20 loop (23) [----] [SCAL] (1) hexFVb.T[j] = hexFVb.fluidState.h ($RES_SIM_92) (23) [----] end for; (24) [SCAL] (1) hexFVa.h[1] = SensT_A_in.outlet.h_outflow ($RES_SIM_18) (25) [SCAL] (1) hexFVb.fluidState[j].phase = 0 ($RES_SIM_290) (26) [FOR-] (19) ($RES_SIM_217) (26) [----] for $i1 in 1:19 loop (26) [----] [SCAL] (1) counterCurrentFV.side1.Q[$i1] + hexFVb.wall.Q[$i1] = 0.0 ($RES_SIM_218) (26) [----] end for; (27) [SCAL] (1) SensT_A_out.outlet.h_outflow = hexFVa.htilde[19] ($RES_SIM_19) (28) [SCAL] (1) hexFVb.fluidState[j].h = hexFVb.h[j] ($RES_SIM_291) (29) [FOR-] (20) ($RES_SIM_93) (29) [----] for j in 1:20 loop (29) [----] [SCAL] (1) hexFVb.rho[j] = hexFVb.fluidState.d ($RES_SIM_94) (29) [----] end for; (30) [FOR-] (19) ($RES_SIM_133) (30) [----] for j in 1:19 loop (30) [----] [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_134) (30) [----] end for; (31) [SCAL] (1) hexFVb.fluidState[j].d = Modelica.Media.Water.IF97_Utilities.rho_ph(hexFVb.p, hexFVb.h[j], 0, 0) ($RES_SIM_292) (32) [SCAL] (1) counterCurrentFV.side1.T = hexFVb.wall.T ($RES_SIM_219) (33) [SCAL] (1) hexFVb.fluidState[j].T = Modelica.Media.Water.IF97_Utilities.T_ph(hexFVb.p, hexFVb.h[j], 0, 0) ($RES_SIM_293) (34) [FOR-] (20) ($RES_SIM_95) (34) [----] for j in 1:20 loop (34) [----] [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_96) (34) [----] end for; (35) [SCAL] (1) hexFVb.heatTransfer.w_wnom = $FUN_5 / hexFVb.heatTransfer.wnom ($RES_SIM_135) (36) [SCAL] (1) hexFVb.fluidState[j].p = hexFVb.p ($RES_SIM_294) (37) [ARRY] (19) hexFVb.heatTransfer.Qvol = hexFVb.heatTransfer.Qw ($RES_SIM_136) (38) [SCAL] (1) hexFVa.fluidState[j].phase = 0 ($RES_SIM_295) (39) [FOR-] (20) ($RES_SIM_97) (39) [----] for j in 1:20 loop (39) [----] [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_98) (39) [----] end for; (40) [ARRY] (20) hexFVb.heatTransfer.w = hexFVb.w * fill(1.0, 20) ($RES_SIM_137) (41) [SCAL] (1) hexFVa.fluidState[j].h = hexFVa.h[j] ($RES_SIM_296) (42) [ARRY] (100) hexFVb.heatTransfer.fluidState = hexFVb.fluidState ($RES_SIM_138) (43) [SCAL] (1) hexFVa.fluidState[j].d = Modelica.Media.Water.IF97_Utilities.rho_ph(hexFVa.p, hexFVa.h[j], 0, 0) ($RES_SIM_297) (44) [FOR-] (20) ($RES_SIM_99) (44) [----] for j in 1:20 loop (44) [----] [SCAL] (1) hexFVb.u[j] = hexFVb.w / (hexFVb.A * hexFVb.rho[j]) ($RES_SIM_100) (44) [----] end for; (45) [ARRY] (19) hexFVb.Q_single = hexFVb.heatTransfer.Qvol / hexFVb.Nt ($RES_SIM_139) (46) [SCAL] (1) $TEV_0 = time < SideA_InSpecEnth.startTime ($RES_EVT_300) (47) [SCAL] (1) hexFVa.fluidState[j].T = Modelica.Media.Water.IF97_Utilities.T_ph(hexFVa.p, hexFVa.h[j], 0, 0) ($RES_SIM_298) (48) [SCAL] (1) hexFVa.fluidState[j].p = hexFVa.p ($RES_SIM_299) (49) [SCAL] (1) $SEV_4 = hexFVa.w > (-hexFVa.wnom * hexFVa.wnm) ($RES_EVT_305) (50) [SCAL] (1) $SEV_5 = hexFVa.Kf >= 0.0 ($RES_EVT_306) (51) [SCAL] (1) $SEV_6 = hexFVb.w > (-hexFVb.wnom * hexFVb.wnm) ($RES_EVT_307) (52) [SCAL] (1) $SEV_8 = SideA_MassFlowRate.w0 > 0.0 ($RES_EVT_309) (53) [SCAL] (1) SensT_A_in.inlet.h_outflow = hexFVa.h[1] ($RES_SIM_20) (54) [SCAL] (1) hexFVa.wout = ValveLin1.w / hexFVa.Nt ($RES_SIM_23) (55) [SCAL] (1) hexFVa.w = SideA_MassFlowRate.w0 / hexFVa.Nt ($RES_SIM_24) (56) [FOR-] (20) ($RES_SIM_27) (56) [----] for j in 1:20 loop (56) [----] [SCAL] (1) hexFVa.T[j] = hexFVa.fluidState.h ($RES_SIM_28) (56) [----] end for; (57) [SCAL] (1) SensT_A_in.fluidState.h = homotopy(if $SEV_8 then SensT_A_in.outlet.h_outflow else SensT_A_in.inlet.h_outflow, SensT_A_in.outlet.h_outflow) ($RES_$AUX_269) (58) [FOR-] (20) ($RES_SIM_29) (58) [----] for j in 1:20 loop (58) [----] [SCAL] (1) hexFVa.rho[j] = hexFVa.fluidState.d ($RES_SIM_30) (58) [----] end for; (59) [SCAL] (1) SensT_B_in.fluidState.h = homotopy(if $SEV_9 then SideB_MassFlowRate.h else SensT_B_in.inlet.h_outflow, SideB_MassFlowRate.h) ($RES_$AUX_268) (60) [SCAL] (1) SensT_A_out.fluidState.h = homotopy(if $SEV_10 then SensT_A_out.outlet.h_outflow else SideA_FluidSink.h, SensT_A_out.outlet.h_outflow) ($RES_$AUX_267) (61) [SCAL] (1) SensT_B_out.fluidState.h = homotopy(if $SEV_11 then SensT_B_out.outlet.h_outflow else SideB_FluidSink.h, SensT_B_out.outlet.h_outflow) ($RES_$AUX_266) (62) [SCAL] (1) $FUN_5 = abs(hexFVb.heatTransfer.w[1]) ($RES_$AUX_265) (63) [SCAL] (1) $FUN_6 = exp(-hexFVb.heatTransfer.w_wnom / hexFVb.heatTransfer.sigma) ($RES_$AUX_264) (64) [SCAL] (1) hexFVb.Q = sum(hexFVb.heatTransfer.wall.Q) ($RES_$AUX_263) (65) [SCAL] (1) $FUN_8 = sum(hexFVb.dMdt) ($RES_$AUX_262) (66) [SCAL] (1) $SEV_9 = SideB_MassFlowRate.w0 > 0.0 ($RES_EVT_310) (67) [SCAL] (1) $SEV_10 = ValveLin1.w > 0.0 ($RES_EVT_311) (68) [FOR-] (19) ($RES_$AUX_260) (68) [----] for j in 1:19 loop (68) [----] [SCAL] (1) $FUN_9[integer(1.0 + ((-1.0) + j))] = sum(hexFVb.dMdt[1:j - 1]) ($RES_$AUX_261) (68) [----] end for; (69) [SCAL] (1) $SEV_11 = ValveLin2.w > 0.0 ($RES_EVT_312) (70) [FOR-] (20) ($RES_SIM_31) (70) [----] for j in 1:20 loop (70) [----] [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_32) (70) [----] end for; (71) [FOR-] (20) ($RES_SIM_33) (71) [----] for j in 1:20 loop (71) [----] [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_34) (71) [----] end for; (72) [FOR-] (19) ($RES_SIM_233) (72) [----] for $i1 in 1:19 loop (72) [----] [SCAL] (1) (-hexFVa.wall.Q[$i1]) + hexFVa.heatTransfer.wall.Q[$i1] = 0.0 ($RES_SIM_234) (72) [----] end for; (73) [FOR-] (20) ($RES_SIM_35) (73) [----] for j in 1:20 loop (73) [----] [SCAL] (1) hexFVa.u[j] = hexFVa.w / (hexFVa.A * hexFVa.rho[j]) ($RES_SIM_36) (73) [----] end for; (74) [SCAL] (1) hexFVa.wall.T = hexFVa.heatTransfer.wall.T ($RES_SIM_235) (75) [FOR-] (19) ($RES_SIM_37) (75) [----] for j in 1:19 loop (75) [----] [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_38) (75) [----] end for; (76) [FOR-] (19) ($RES_SIM_236) (76) [----] for $i1 in 1:19 loop (76) [----] [SCAL] (1) (-hexFVb.wall.Q[$i1]) + hexFVb.heatTransfer.wall.Q[$i1] = 0.0 ($RES_SIM_237) (76) [----] end for; (77) [FOR-] (19) ($RES_SIM_39) (77) [----] for j in 1:19 loop (77) [----] [SCAL] (1) hexFVa.dMdt[j] = hexFVa.l * hexFVa.A * (hexFVa.drbdh[j] * $DER.hexFVa.htilde[j] + hexFVa.drbdp[j] * $DER.hexFVa.p) ($RES_SIM_40) (77) [----] end for; (78) [SCAL] (1) $FUN_10 = sum(hexFVb.rhobar) ($RES_$AUX_259) (79) [SCAL] (1) hexFVb.wall.T = hexFVb.heatTransfer.wall.T ($RES_SIM_238) (80) [SCAL] (1) $FUN_11 = abs(hexFVa.heatTransfer.w[1]) ($RES_$AUX_258) (81) [SCAL] (1) $FUN_12 = exp(-hexFVa.heatTransfer.w_wnom / hexFVa.heatTransfer.sigma) ($RES_$AUX_257) (82) [SCAL] (1) hexFVa.Q = sum(hexFVa.heatTransfer.wall.Q) ($RES_$AUX_256) (83) [SCAL] (1) $FUN_14 = sum(hexFVa.dMdt) ($RES_$AUX_255) (84) [SCAL] (1) $FUN_15 = sum(hexFVa.vbar) ($RES_$AUX_254) (85) [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_253) (86) [FOR-] (19) ($RES_$AUX_251) (86) [----] for j in 1:19 loop (86) [----] [SCAL] (1) $FUN_17[integer(1.0 + ((-1.0) + j))] = sum(hexFVa.dMdt[1:j - 1]) ($RES_$AUX_252) (86) [----] end for; (87) [SCAL] (1) $FUN_18 = sum(hexFVa.rhobar) ($RES_$AUX_250) (88) [FOR-] (19) ($RES_SIM_41) (88) [----] for j in 1:19 loop (88) [----] [SCAL] (1) hexFVa.rhobar[j] = (hexFVa.rho[j] + hexFVa.rho[j + 1]) / 2.0 ($RES_SIM_42) (88) [----] end for; (89) [FOR-] (19) ($RES_SIM_43) (89) [----] for j in 1:19 loop (89) [----] [SCAL] (1) hexFVa.drbdp[j] = (hexFVa.drdp[j] + hexFVa.drdp[j + 1]) / 2.0 ($RES_SIM_44) (89) [----] end for; (90) [FOR-] (19) ($RES_SIM_45) (90) [----] for j in 1:19 loop (90) [----] [SCAL] (1) hexFVa.drbdh[j] = (hexFVa.drdh[j] + hexFVa.drdh[j + 1]) / 2.0 ($RES_SIM_46) (90) [----] end for; (91) [FOR-] (19) ($RES_SIM_47) (91) [----] for j in 1:19 loop (91) [----] [SCAL] (1) hexFVa.vbar[j] = 1.0 / hexFVa.rhobar[j] ($RES_SIM_48) (91) [----] end for; (92) [FOR-] (19) ($RES_SIM_49) (92) [----] for j in 1:19 loop (92) [----] [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_50) (92) [----] end for; (93) [SCAL] (1) SensT_A_in.outlet.h_outflow = SideA_InSpecEnth.offset + (if $TEV_0 then 0.0 else SideA_InSpecEnth.height) ($RES_SIM_169) (94) [SCAL] (1) hexFVa.Dpfric = hexFVa.Dpfric1 ($RES_SIM_54) (95) [FOR-] (19) ($RES_SIM_8) (95) [----] for j in 1:19 loop (95) [----] [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_9) (95) [----] end for; (96) [SCAL] (1) (hexFVa.p + hexFVa.Dpfric) - SensT_A_in.fluidState.p = 0.0 ($RES_SIM_55) (97) [SCAL] (1) $FUN_14 = (SideA_MassFlowRate.w0 - ValveLin1.w) / hexFVa.Nt ($RES_SIM_56) (98) [SCAL] (1) hexFVa.Kf = (100.0 * hexFVa.omega_hyd * hexFVa.Cf) / hexFVa.A ^ 3.0 ($RES_SIM_59) (99) [SCAL] (1) hexFVa.Cf = hexFVa.Cfnom * hexFVa.Kfc ($RES_SIM_60) (100) [SCAL] (1) hexFVa.omega_hyd = (4.0 * hexFVa.A) / hexFVa.Dhyd ($RES_SIM_61) (101) [FOR-] (19) ($RES_SIM_101) (101) [----] for j in 1:19 loop (101) [----] [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_102) (101) [----] end for; (102) [SCAL] (1) hexFVa.heatTransfer.Qw = hexFVa.heatTransfer.wall.Q ($RES_SIM_63) (103) [FOR-] (19) ($RES_SIM_103) (103) [----] for j in 1:19 loop (103) [----] [SCAL] (1) hexFVb.dMdt[j] = hexFVb.l * hexFVb.A * (hexFVb.drbdh[j] * $DER.hexFVb.htilde[j] + hexFVb.drbdp[j] * $DER.hexFVb.p) ($RES_SIM_104) (103) [----] end for; (104) [SCAL] (1) hexFVa.heatTransfer.Tw = hexFVa.heatTransfer.wall.T ($RES_SIM_64) (105) [FOR-] (20) ($RES_SIM_65) (105) [----] for j in 1:20 loop (105) [----] [SCAL] (1) hexFVa.heatTransfer.T[j] = hexFVa.heatTransfer.fluidState.h ($RES_SIM_66) (105) [----] end for; (106) [FOR-] (19) ($RES_SIM_105) (106) [----] for j in 1:19 loop (106) [----] [SCAL] (1) hexFVb.rhobar[j] = (hexFVb.rho[j] + hexFVb.rho[j + 1]) / 2.0 ($RES_SIM_106) (106) [----] end for; (107) [FOR-] (19) ($RES_SIM_67) (107) [----] for j in 1:19 loop (107) [----] [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_68) (107) [----] end for; (108) [SCAL] (1) ValveLin2.w = Constant1.k * ValveLin2.Kv * (hexFVb.p - SideB_FluidSink.p0) ($RES_SIM_180) (109) [FOR-] (19) ($RES_SIM_107) (109) [----] for j in 1:19 loop (109) [----] [SCAL] (1) hexFVb.drbdp[j] = (hexFVb.drdp[j] + hexFVb.drdp[j + 1]) / 2.0 ($RES_SIM_108) (109) [----] end for; (110) [FOR-] (19) ($RES_SIM_69) (110) [----] for j in 1:19 loop (110) [----] [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_70) (110) [----] end for; (111) [FOR-] (19) ($RES_SIM_109) (111) [----] for j in 1:19 loop (111) [----] [SCAL] (1) hexFVb.drbdh[j] = (hexFVb.drdh[j] + hexFVb.drdh[j + 1]) / 2.0 ($RES_SIM_110) (111) [----] end for; (112) [SCAL] (1) ValveLin1.w = Constant2.k * ValveLin1.Kv * (hexFVa.p - SideA_FluidSink.p0) ($RES_SIM_185) (113) [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_240) (114) [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_241) (115) [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_242) (116) [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_243) (117) [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_244) (118) [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_245) (119) [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_246) (120) [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_247) (121) [SCAL] (1) hexFVa.heatTransfer.w_wnom = $FUN_11 / hexFVa.heatTransfer.wnom ($RES_SIM_71) (122) [FOR-] (19) ($RES_SIM_111) (122) [----] for j in 1:19 loop (122) [----] [SCAL] (1) hexFVb.vbar[j] = 1.0 / hexFVb.rhobar[j] ($RES_SIM_112) (122) [----] end for; (123) [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_248) (124) [ARRY] (19) hexFVa.heatTransfer.Qvol = hexFVa.heatTransfer.Qw ($RES_SIM_72) (125) [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_249) (126) [ARRY] (20) hexFVa.heatTransfer.w = hexFVa.w * fill(1.0, 20) ($RES_SIM_73) (127) [FOR-] (19) ($RES_SIM_113) (127) [----] for j in 1:19 loop (127) [----] [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_114) (127) [----] end for; (128) [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_272) (129) [ARRY] (100) hexFVa.heatTransfer.fluidState = hexFVa.fluidState ($RES_SIM_74) (130) [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_273) (131) [ARRY] (19) hexFVa.Q_single = hexFVa.heatTransfer.Qvol / hexFVa.Nt ($RES_SIM_75) (132) [SCAL] (1) hexFVb.Tr = noEvent(hexFVb.M / max(hexFVb.w, 1e-15)) ($RES_SIM_77) (133) [SCAL] (1) hexFVb.Mtot = hexFVb.M * hexFVb.Nt ($RES_SIM_78) (134) [SCAL] (1) hexFVb.Dpfric = 0.0 ($RES_SIM_118) (135) [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_277) (136) [SCAL] (1) hexFVb.M = hexFVb.A * $FUN_10 * hexFVb.l ($RES_SIM_79) (137) [SCAL] (1) (hexFVb.p + hexFVb.Dpfric) - SensT_B_in.fluidState.p = 0.0 ($RES_SIM_119) (138) [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_278)