Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW.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/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/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(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|roughness|K|L|geometry.1.|geometry.2.|geometry.3.|geometry.4.|geometry.5.|d_ann|D_ann|d_cir|a_ell|b_ell|a_rec|b_rec|a_tri|h_tri|beta|eta|rho|input_mdot_1.1.|input_mdot_1.2.|input_mdot_1.3.|input_mdot_1.4.|input_mdot_1.5.|input_dp_1.1.|input_dp_1.2.|input_dp_1.3.|input_dp_1.4.|input_dp_1.5.|M_FLOW_1.1.|M_FLOW_1.2.|M_FLOW_1.3.|M_FLOW_1.4.|M_FLOW_1.5.|DP_1.1.|DP_1.2.|DP_1.3.|DP_1.4.|DP_1.5.|MIN|A_crossT.1.|A_crossT.2.|A_crossT.3.|A_crossT.4.|A_crossT.5.|perimeterT.1.|perimeterT.2.|perimeterT.3.|perimeterT.4.|perimeterT.5.|d_hydT.1.|d_hydT.2.|d_hydT.3.|d_hydT.4.|d_hydT.5.|A_cross|d_hyd|perimeter|velocity_1.1.|velocity_1.2.|velocity_1.3.|velocity_1.4.|velocity_1.5.|Re_1.1.|Re_1.2.|Re_1.3.|Re_1.4.|Re_1.5.|DP_plot_1.1.|DP_plot_1.2.|DP_plot_1.3.|DP_plot_1.4.|DP_plot_1.5.|zeta_TOT_1.1.|zeta_TOT_1.2.|zeta_TOT_1.3.|zeta_TOT_1.4.|zeta_TOT_1.5.|input_DP.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW") translateModel(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|roughness|K|L|geometry.1.|geometry.2.|geometry.3.|geometry.4.|geometry.5.|d_ann|D_ann|d_cir|a_ell|b_ell|a_rec|b_rec|a_tri|h_tri|beta|eta|rho|input_mdot_1.1.|input_mdot_1.2.|input_mdot_1.3.|input_mdot_1.4.|input_mdot_1.5.|input_dp_1.1.|input_dp_1.2.|input_dp_1.3.|input_dp_1.4.|input_dp_1.5.|M_FLOW_1.1.|M_FLOW_1.2.|M_FLOW_1.3.|M_FLOW_1.4.|M_FLOW_1.5.|DP_1.1.|DP_1.2.|DP_1.3.|DP_1.4.|DP_1.5.|MIN|A_crossT.1.|A_crossT.2.|A_crossT.3.|A_crossT.4.|A_crossT.5.|perimeterT.1.|perimeterT.2.|perimeterT.3.|perimeterT.4.|perimeterT.5.|d_hydT.1.|d_hydT.2.|d_hydT.3.|d_hydT.4.|d_hydT.5.|A_cross|d_hyd|perimeter|velocity_1.1.|velocity_1.2.|velocity_1.3.|velocity_1.4.|velocity_1.5.|Re_1.1.|Re_1.2.|Re_1.3.|Re_1.4.|Re_1.5.|DP_plot_1.1.|DP_plot_1.2.|DP_plot_1.3.|DP_plot_1.4.|DP_plot_1.5.|zeta_TOT_1.1.|zeta_TOT_1.2.|zeta_TOT_1.3.|zeta_TOT_1.4.|zeta_TOT_1.5.|input_DP.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 113.4 kB / 17.1 MB, free: 5.961 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.001115/0.001115, allocations: 197.4 kB / 18.03 MB, free: 5.043 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.59/1.59, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2257/0.2257, allocations: 43.52 MB / 314.8 MB, free: 452 kB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.756e-05/2.757e-05, allocations: 6.219 kB / 442.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW): time 0.003435/0.003472, allocations: 2.191 MB / 444.7 MB, free: 3.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004573/0.008059, allocations: 3.295 MB / 448 MB, free: 168 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002762/0.008349, allocations: 4 kB / 448 MB, free: 164 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004514/0.008809, allocations: 95.38 kB / 448 MB, free: 68 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007032/0.009522, allocations: 143.3 kB / 448.2 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002161/0.01169, allocations: 0.8797 MB / 449.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005515/0.01225, allocations: 366.5 kB / 449.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.264e-05/0.01232, allocations: 9.109 kB / 449.4 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002531/0.01257, allocations: 191.3 kB / 449.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.01284, allocations: 203.4 kB / 449.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.647e-05/0.01287, allocations: 4 kB / 449.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002468/0.01535, allocations: 1.945 MB / 451.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of combineBinaries: time 0.0005678/0.01593, allocations: 0.5076 MB / 452.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002722/0.01621, allocations: 324.5 kB / 452.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.753e-05/0.01626, allocations: 19.94 kB / 452.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.733e-05/0.01631, allocations: 4 kB / 452.6 MB, free: 11.48 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 (64) * Number of variables: 880 (64) Notification: Performance of Bindings: time 0.002384/0.0187, allocations: 2.084 MB / 454.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of FunctionAlias: time 0.0002204/0.01893, allocations: 118.3 kB / 454.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of Early Inline: time 0.0009596/0.0199, allocations: 0.9528 MB / 455.8 MB, free: 8.184 MB / 334.1 MB Notification: Performance of simplify1: time 2.571e-05/0.01993, allocations: 15.98 kB / 455.8 MB, free: 8.168 MB / 334.1 MB Notification: Performance of Alias: time 0.0009853/0.02092, allocations: 0.7053 MB / 456.5 MB, free: 7.375 MB / 334.1 MB Notification: Performance of simplify2: time 4.037e-05/0.02097, allocations: 7.984 kB / 456.5 MB, free: 7.367 MB / 334.1 MB Notification: Performance of Events: time 0.0002542/0.02123, allocations: 148.8 kB / 456.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of Detect States: time 0.000225/0.02147, allocations: 198.3 kB / 456.8 MB, free: 7.02 MB / 334.1 MB Notification: Performance of Partitioning: time 0.0003525/0.02183, allocations: 289.8 kB / 457.1 MB, free: 6.719 MB / 334.1 MB Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (5) DP_1 = {Modelica.Fluid.Dissipation.PressureLoss.Channel.dp_internalFlowOverall_DP(m_flow_IN_con_1[i], m_flow_IN_var_1[i], input_mdot_1[i]) for i in 1:5} ($RES_SIM_1) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (55/895) *************************** (1) [DISC] (5) Boolean[5] $SEV_2[$i1] (2) [DISC] (25) enumeration Modelica.Fluid.Dissipation.Utilities.Types.Roughness(Neglected, Considered)[5, 5] dp_IN_con_1.roughness = {roughness for $dp_IN_con_11 in 1:5} (3) [ALGB] (5) Real[5] $FUN_1 (4) [ALGB] (5) Real[5] M_FLOW_1 (start = {0.0 for $i1 in 1:5}) (5) [DISC] (5) enumeration Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow(Annular, Circular, Elliptical, Rectangular, Isosceles)[5] geometry = {Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Annular, Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Circular, Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Elliptical, Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Rectangular, Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Isosceles} (6) [ALGB] (25) Real[5, 5] dp_IN_con_1.a_ell = {a_ell for $dp_IN_con_11 in 1:5} (7) [ALGB] (25) Real[5, 5] dp_IN_con_1.a_tri = {a_tri for $dp_IN_con_11 in 1:5} (8) [ALGB] (5) Real[5] input_dp_1 = {1.0 for $i1 in 1:5} .* input_DP.y (start = {0.0 for $i1 in 1:5}) (9) [ALGB] (25) Real[5, 5] dp_IN_con_1.beta = {beta for $dp_IN_con_11 in 1:5} (10) [DISC] (5) Boolean[5] $SEV_1[$i1] (11) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.a_tri = {a_tri for $m_flow_IN_con_11 in 1:5} (12) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.a_ell = {a_ell for $m_flow_IN_con_11 in 1:5} (13) [ALGB] (25) Real[5, 5] m_flow_IN_var_1.rho = {rho for $m_flow_IN_var_11 in 1:5} (min = {0.0 for $i1 in 1:5}) (14) [ALGB] (25) Real[5, 5] dp_IN_var_1.eta = {eta for $dp_IN_var_11 in 1:5} (min = {0.0 for $i1 in 1:5}) (15) [DISC] (1) enumeration Modelica.Fluid.Dissipation.Utilities.Types.Roughness(Neglected, Considered) roughness = Modelica.Fluid.Dissipation.Utilities.Types.Roughness.Considered (16) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.K = {K for $m_flow_IN_con_11 in 1:5} (17) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.L = {L for $m_flow_IN_con_11 in 1:5} (18) [ALGB] (25) Real[5, 5] dp_IN_con_1.d_cir = {d_cir for $dp_IN_con_11 in 1:5} (min = {0.0 for $i1 in 1:5}) (19) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.a_rec = {a_rec for $m_flow_IN_con_11 in 1:5} (20) [DISC] (5) Boolean[5] $SEV_0[$i1] (21) [ALGB] (25) Real[5, 5] m_flow_IN_var_1.eta = {eta for $m_flow_IN_var_11 in 1:5} (min = {0.0 for $i1 in 1:5}) (22) [ALGB] (5) Real[5] DP_1 = {input_dp_1[i] for i in 1:5} (start = {0.0 for $i1 in 1:5}) (23) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.D_ann = {D_ann for $m_flow_IN_con_11 in 1:5} (min = {0.0 for $i1 in 1:5}) (24) [ALGB] (25) Real[5, 5] dp_IN_con_1.d_ann = {d_ann for $dp_IN_con_11 in 1:5} (min = {0.0 for $i1 in 1:5}) (25) [ALGB] (1) Real beta = tan(0.2414213562373095 / (2.0 * 0.12071067811865475)) (26) [ALGB] (25) Real[5, 5] dp_IN_var_1.rho = {rho for $dp_IN_var_11 in 1:5} (min = {0.0 for $i1 in 1:5}) (27) [ALGB] (5) protected Real[5] zeta_TOT_1 = {(abs(DP_plot_1[i]) * 2.0) / max(1000.0 * velocity_1[i] ^ 2.0, 1e-15) for i in 1:5} (28) [DISC] (25) enumeration Modelica.Fluid.Dissipation.Utilities.Types.Roughness(Neglected, Considered)[5, 5] m_flow_IN_con_1.roughness = {roughness for $m_flow_IN_con_11 in 1:5} (29) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.h_tri = {h_tri for $m_flow_IN_con_11 in 1:5} (30) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.b_ell = {b_ell for $m_flow_IN_con_11 in 1:5} (31) [ALGB] (5) Real[5] input_mdot_1 (start = {0.0 for $i1 in 1:5}) (32) [ALGB] (5) protected Real[5] DP_plot_1 = {DP_1[i] for i in 1:5} (33) [ALGB] (25) Real[5, 5] dp_IN_con_1.b_rec = {b_rec for $dp_IN_con_11 in 1:5} (34) [DISC] (5) Boolean[5] $SEV_4[$i1] (35) [ALGB] (5) protected Real[5] Re_1 = {(0.1 * 1000.0 * velocity_1[i]) / 0.001 for i in 1:5} (36) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.b_rec = {b_rec for $m_flow_IN_con_11 in 1:5} (37) [DISC] (25) enumeration Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow(Annular, Circular, Elliptical, Rectangular, Isosceles)[5, 5] m_flow_IN_con_1.geometry = {geometry[$m_flow_IN_con_11] for $m_flow_IN_con_11 in 1:5} (38) [ALGB] (5) protected Real[5] velocity_1 = {input_mdot_1[i] / (A_crossT[i] * 1000.0) for i in 1:5} (39) [DISC] (1) Boolean $TEV_1 (40) [ALGB] (25) Real[5, 5] dp_IN_con_1.K = {K for $dp_IN_con_11 in 1:5} (41) [DISC] (1) Boolean $TEV_0 (42) [ALGB] (25) Real[5, 5] dp_IN_con_1.L = {L for $dp_IN_con_11 in 1:5} (43) [ALGB] (25) Real[5, 5] dp_IN_con_1.b_ell = {b_ell for $dp_IN_con_11 in 1:5} (44) [DISC] (5) Boolean[5] $SEV_3[$i1] (45) [ALGB] (25) Real[5, 5] dp_IN_con_1.h_tri = {h_tri for $dp_IN_con_11 in 1:5} (46) [ALGB] (5) protected Real[5] A_crossT = {max(1e-15, if geometry[i] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Annular then 0.7853981633974483 * (0.2 ^ 2.0 - 0.1 ^ 2.0) else if geometry[i] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Circular then 0.1 ^ 2.0 * 0.7853981633974483 else if geometry[i] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Elliptical then 0.07500000000000001 * 3.141592653589793 * 0.037500000000000006 else if geometry[i] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Rectangular then 0.1 * 0.1 else if geometry[i] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Isosceles then 0.5 * 0.12071067811865475 * 0.2414213562373095 else 0.0) for i in 1:5} (47) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.beta = {beta for $m_flow_IN_con_11 in 1:5} (48) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.d_ann = {d_ann for $m_flow_IN_con_11 in 1:5} (min = {0.0 for $i1 in 1:5}) (49) [ALGB] (25) Real[5, 5] dp_IN_con_1.D_ann = {D_ann for $dp_IN_con_11 in 1:5} (min = {0.0 for $i1 in 1:5}) (50) [DISC] (25) enumeration Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow(Annular, Circular, Elliptical, Rectangular, Isosceles)[5, 5] dp_IN_con_1.geometry = {geometry[$dp_IN_con_11] for $dp_IN_con_11 in 1:5} (51) [ALGB] (25) Real[5, 5] m_flow_IN_con_1.d_cir = {d_cir for $m_flow_IN_con_11 in 1:5} (min = {0.0 for $i1 in 1:5}) (52) [ALGB] (25) Real[5, 5] dp_IN_con_1.a_rec = {a_rec for $dp_IN_con_11 in 1:5} (53) [ALGB] (5) protected Real[5] perimeterT = {max(1e-15, if geometry[i] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Annular then 3.141592653589793 * (0.1 + 0.2) else if geometry[i] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Circular then 0.1 * 3.141592653589793 else if geometry[i] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Elliptical then 3.141592653589793 * (0.07500000000000001 ^ 2.0 * 2.0 + 0.037500000000000006 ^ 2.0) ^ 0.5 else if geometry[i] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Rectangular then (0.1 + 0.1) * 2.0 else if geometry[i] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Isosceles then 0.2414213562373095 + (0.12071067811865475 ^ 2.0 + (0.2414213562373095 / 2.0) ^ 2.0) ^ 0.5 * 2.0 else 0.0) for i in 1:5} (54) [ALGB] (5) protected Real[5] d_hydT = {(A_crossT[i] * 4.0) / perimeterT[i] for i in 1:5} (min = {0.0 for $i1 in 1:5}) (55) [ALGB] (1) Real input_DP.y System Equations (55/255) *************************** (1) [FOR-] (5) ($RES_BND_99) (1) [----] for $i1 in 1:5 loop (1) [----] [SCAL] (1) Re_1[$i1] = (0.1 * 1000.0 * velocity_1[$i1]) / 0.001 ($RES_BND_100) (1) [----] end for; (2) [FOR-] (5) ($RES_EVT_110) (2) [----] for $i1 in 1:5 loop (2) [----] [SCAL] (1) $SEV_0[$i1] = geometry[$i1] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Annular ($RES_EVT_111) (2) [----] end for; (3) [FOR-] (5) ($RES_EVT_112) (3) [----] for $i1 in 1:5 loop (3) [----] [SCAL] (1) $SEV_1[$i1] = geometry[$i1] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Circular ($RES_EVT_113) (3) [----] end for; (4) [FOR-] (5) ($RES_BND_21) (4) [----] for $i1 in 1:5 loop (4) [----] [SCAL] (1) DP_1[$i1] = input_dp_1[$i1] ($RES_BND_22) (4) [----] end for; (5) [FOR-] (5) ($RES_EVT_114) (5) [----] for $i1 in 1:5 loop (5) [----] [SCAL] (1) $SEV_2[$i1] = geometry[$i1] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Elliptical ($RES_EVT_115) (5) [----] end for; (6) [FOR-] (5) ($RES_BND_23) (6) [----] for $i1 in 1:5 loop (6) [----] [SCAL] (1) m_flow_IN_con_1[$i1].roughness = roughness ($RES_BND_24) (6) [----] end for; (7) [FOR-] (5) ($RES_EVT_116) (7) [----] for $i1 in 1:5 loop (7) [----] [SCAL] (1) $SEV_3[$i1] = geometry[$i1] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Rectangular ($RES_EVT_117) (7) [----] end for; (8) [FOR-] (5) ($RES_BND_25) (8) [----] for $i1 in 1:5 loop (8) [----] [SCAL] (1) m_flow_IN_con_1[$i1].geometry = geometry[$i1] ($RES_BND_26) (8) [----] end for; (9) [FOR-] (5) ($RES_EVT_118) (9) [----] for $i1 in 1:5 loop (9) [----] [SCAL] (1) $SEV_4[$i1] = geometry[$i1] == Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Isosceles ($RES_EVT_119) (9) [----] end for; (10) [FOR-] (5) ($RES_BND_41) (10) [----] for $i1 in 1:5 loop (10) [----] [SCAL] (1) m_flow_IN_con_1[$i1].a_rec = 0.1 ($RES_BND_42) (10) [----] end for; (11) [FOR-] (5) ($RES_BND_27) (11) [----] for $i1 in 1:5 loop (11) [----] [SCAL] (1) m_flow_IN_con_1[$i1].K = 0.0 ($RES_BND_28) (11) [----] end for; (12) [FOR-] (5) ($RES_BND_43) (12) [----] for $i1 in 1:5 loop (12) [----] [SCAL] (1) m_flow_IN_con_1[$i1].b_rec = 0.1 ($RES_BND_44) (12) [----] end for; (13) [FOR-] (5) ($RES_BND_29) (13) [----] for $i1 in 1:5 loop (13) [----] [SCAL] (1) m_flow_IN_con_1[$i1].L = 1.0 ($RES_BND_30) (13) [----] end for; (14) [FOR-] (5) ($RES_BND_45) (14) [----] for $i1 in 1:5 loop (14) [----] [SCAL] (1) m_flow_IN_con_1[$i1].a_tri = 0.2414213562373095 ($RES_BND_46) (14) [----] end for; (15) [FOR-] (5) ($RES_$AUX_106) (15) [----] for $i1 in 1:5 loop (15) [----] [SCAL] (1) $FUN_1[$i1] = abs(DP_plot_1[$i1]) ($RES_$AUX_107) (15) [----] end for; (16) [FOR-] (5) ($RES_BND_61) (16) [----] for $i1 in 1:5 loop (16) [----] [SCAL] (1) dp_IN_con_1[$i1].L = 1.0 ($RES_BND_62) (16) [----] end for; (17) [SCAL] (1) beta = 1.5574077246549023 ($RES_$AUX_105) (18) [FOR-] (5) ($RES_BND_47) (18) [----] for $i1 in 1:5 loop (18) [----] [SCAL] (1) m_flow_IN_con_1[$i1].h_tri = 0.12071067811865475 ($RES_BND_48) (18) [----] end for; (19) [FOR-] (5) ($RES_BND_63) (19) [----] for $i1 in 1:5 loop (19) [----] [SCAL] (1) dp_IN_con_1[$i1].d_ann = 0.1 ($RES_BND_64) (19) [----] end for; (20) [FOR-] (5) ($RES_BND_49) (20) [----] for $i1 in 1:5 loop (20) [----] [SCAL] (1) m_flow_IN_con_1[$i1].beta = beta ($RES_BND_50) (20) [----] end for; (21) [FOR-] (5) ($RES_BND_65) (21) [----] for $i1 in 1:5 loop (21) [----] [SCAL] (1) dp_IN_con_1[$i1].D_ann = 0.2 ($RES_BND_66) (21) [----] end for; (22) [FOR-] (5) ($RES_BND_81) (22) [----] for $i1 in 1:5 loop (22) [----] [SCAL] (1) dp_IN_con_1[$i1].beta = beta ($RES_BND_82) (22) [----] end for; (23) [FOR-] (5) ($RES_BND_67) (23) [----] for $i1 in 1:5 loop (23) [----] [SCAL] (1) dp_IN_con_1[$i1].d_cir = 0.1 ($RES_BND_68) (23) [----] end for; (24) [FOR-] (5) ($RES_BND_83) (24) [----] for $i1 in 1:5 loop (24) [----] [SCAL] (1) dp_IN_var_1[$i1].eta = 0.001 ($RES_BND_84) (24) [----] end for; (25) [FOR-] (5) ($RES_BND_69) (25) [----] for $i1 in 1:5 loop (25) [----] [SCAL] (1) dp_IN_con_1[$i1].a_ell = 0.07500000000000001 ($RES_BND_70) (25) [----] end for; (26) [FOR-] (5) ($RES_BND_85) (26) [----] for $i1 in 1:5 loop (26) [----] [SCAL] (1) dp_IN_var_1[$i1].rho = 1000.0 ($RES_BND_86) (26) [----] end for; (27) [ARRY] (5) geometry = {Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Annular, Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Circular, Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Elliptical, Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Rectangular, Modelica.Fluid.Dissipation.Utilities.Types.GeometryOfInternalFlow.Isosceles} ($RES_BND_6) (28) [FOR-] (5) ($RES_BND_88) (28) [----] for $i1 in 1:5 loop (28) [----] [SCAL] (1) A_crossT[$i1] = max(1e-15, if $SEV_0[$i1] then 0.7853981633974483 * (0.2 ^ 2.0 - 0.1 ^ 2.0) else if $SEV_1[$i1] then 0.7853981633974483 * 0.1 ^ 2.0 else if $SEV_2[$i1] then 3.141592653589793 * 0.07500000000000001 * 0.037500000000000006 else if $SEV_3[$i1] then 0.1 * 0.1 else if $SEV_4[$i1] then 0.5 * 0.12071067811865475 * 0.2414213562373095 else 0.0) ($RES_BND_89) (28) [----] end for; (29) [SCAL] (1) roughness = Modelica.Fluid.Dissipation.Utilities.Types.Roughness.Considered ($RES_BND_3) (30) [FOR-] (5) ($RES_BND_101) (30) [----] for $i1 in 1:5 loop (30) [----] [SCAL] (1) DP_plot_1[$i1] = DP_1[$i1] ($RES_BND_102) (30) [----] end for; (31) [FOR-] (5) ($RES_BND_103) (31) [----] for $i1 in 1:5 loop (31) [----] [SCAL] (1) zeta_TOT_1[$i1] = (2.0 * $FUN_1[$i1]) / max(1000.0 * velocity_1[$i1] ^ 2.0, 1e-15) ($RES_BND_104) (31) [----] end for; (32) [SCAL] (1) $TEV_0 = time < input_DP.startTime ($RES_EVT_108) (33) [FOR-] (5) ($RES_BND_31) (33) [----] for $i1 in 1:5 loop (33) [----] [SCAL] (1) m_flow_IN_con_1[$i1].d_ann = 0.1 ($RES_BND_32) (33) [----] end for; (34) [SCAL] (1) $TEV_1 = time < (input_DP.startTime + input_DP.duration) ($RES_EVT_109) (35) [FOR-] (5) ($RES_BND_33) (35) [----] for $i1 in 1:5 loop (35) [----] [SCAL] (1) m_flow_IN_con_1[$i1].D_ann = 0.2 ($RES_BND_34) (35) [----] end for; (36) [FOR-] (5) ($RES_BND_19) (36) [----] for $i1 in 1:5 loop (36) [----] [SCAL] (1) input_dp_1[$i1] = input_DP.y ($RES_BND_20) (36) [----] end for; (37) [FOR-] (5) ($RES_BND_35) (37) [----] for $i1 in 1:5 loop (37) [----] [SCAL] (1) m_flow_IN_con_1[$i1].d_cir = 0.1 ($RES_BND_36) (37) [----] end for; (38) [FOR-] (5) ($RES_BND_51) (38) [----] for $i1 in 1:5 loop (38) [----] [SCAL] (1) m_flow_IN_var_1[$i1].eta = 0.001 ($RES_BND_52) (38) [----] end for; (39) [FOR-] (5) ($RES_BND_37) (39) [----] for $i1 in 1:5 loop (39) [----] [SCAL] (1) m_flow_IN_con_1[$i1].a_ell = 0.07500000000000001 ($RES_BND_38) (39) [----] end for; (40) [FOR-] (5) ($RES_BND_53) (40) [----] for $i1 in 1:5 loop (40) [----] [SCAL] (1) m_flow_IN_var_1[$i1].rho = 1000.0 ($RES_BND_54) (40) [----] end for; (41) [FOR-] (5) ($RES_BND_39) (41) [----] for $i1 in 1:5 loop (41) [----] [SCAL] (1) m_flow_IN_con_1[$i1].b_ell = 0.037500000000000006 ($RES_BND_40) (41) [----] end for; (42) [FOR-] (5) ($RES_BND_55) (42) [----] for $i1 in 1:5 loop (42) [----] [SCAL] (1) dp_IN_con_1[$i1].roughness = roughness ($RES_BND_56) (42) [----] end for; (43) [FOR-] (5) ($RES_BND_71) (43) [----] for $i1 in 1:5 loop (43) [----] [SCAL] (1) dp_IN_con_1[$i1].b_ell = 0.037500000000000006 ($RES_BND_72) (43) [----] end for; (44) [FOR-] (5) ($RES_BND_57) (44) [----] for $i1 in 1:5 loop (44) [----] [SCAL] (1) dp_IN_con_1[$i1].geometry = geometry[$i1] ($RES_BND_58) (44) [----] end for; (45) [FOR-] (5) ($RES_BND_73) (45) [----] for $i1 in 1:5 loop (45) [----] [SCAL] (1) dp_IN_con_1[$i1].a_rec = 0.1 ($RES_BND_74) (45) [----] end for; (46) [FOR-] (5) ($RES_BND_59) (46) [----] for $i1 in 1:5 loop (46) [----] [SCAL] (1) dp_IN_con_1[$i1].K = 0.0 ($RES_BND_60) (46) [----] end for; (47) [FOR-] (5) ($RES_BND_90) (47) [----] for $i1 in 1:5 loop (47) [----] [SCAL] (1) perimeterT[$i1] = max(1e-15, if $SEV_0[$i1] then 3.141592653589793 * (0.1 + 0.2) else if $SEV_1[$i1] then 3.141592653589793 * 0.1 else if $SEV_2[$i1] then 3.141592653589793 * (2.0 * 0.07500000000000001 ^ 2.0 + 0.037500000000000006 ^ 2.0) ^ 0.5 else if $SEV_3[$i1] then 2.0 * (0.1 + 0.1) else if $SEV_4[$i1] then 0.2414213562373095 + 2.0 * (0.12071067811865475 ^ 2.0 + (0.5 * 0.2414213562373095) ^ 2.0) ^ 0.5 else 0.0) ($RES_BND_91) (47) [----] end for; (48) [FOR-] (5) ($RES_BND_75) (48) [----] for $i1 in 1:5 loop (48) [----] [SCAL] (1) dp_IN_con_1[$i1].b_rec = 0.1 ($RES_BND_76) (48) [----] end for; (49) [FOR-] (5) ($RES_BND_92) (49) [----] for $i1 in 1:5 loop (49) [----] [SCAL] (1) d_hydT[$i1] = (4.0 * A_crossT[$i1]) / perimeterT[$i1] ($RES_BND_93) (49) [----] end for; (50) [SCAL] (1) input_DP.y = input_DP.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (input_DP.height * (time - input_DP.startTime)) / input_DP.duration else input_DP.height) ($RES_SIM_2) (51) [FOR-] (5) ($RES_BND_77) (51) [----] for $i1 in 1:5 loop (51) [----] [SCAL] (1) dp_IN_con_1[$i1].a_tri = 0.2414213562373095 ($RES_BND_78) (51) [----] end for; (52) [ARRY] (5) DP_1 = {Modelica.Fluid.Dissipation.PressureLoss.Channel.dp_internalFlowOverall_DP(m_flow_IN_con_1[i], m_flow_IN_var_1[i], input_mdot_1[i]) for i in 1:5} ($RES_SIM_1) (53) [ARRY] (5) M_FLOW_1 = {Modelica.Fluid.Dissipation.PressureLoss.Channel.dp_internalFlowOverall_MFLOW(dp_IN_con_1[i], dp_IN_var_1[i], input_dp_1[i]) for i in 1:5} ($RES_SIM_0) (54) [FOR-] (5) ($RES_BND_79) (54) [----] for $i1 in 1:5 loop (54) [----] [SCAL] (1) dp_IN_con_1[$i1].h_tri = 0.12071067811865475 ($RES_BND_80) (54) [----] end for; (55) [FOR-] (5) ($RES_BND_97) (55) [----] for $i1 in 1:5 loop (55) [----] [SCAL] (1) velocity_1[$i1] = input_mdot_1[$i1] / (A_crossT[$i1] * 1000.0) ($RES_BND_98) (55) [----] end for;