Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.StraightPipe.dp_turbulent_DPMFLOW,tolerance=1e-05,outputFormat="empty",numberOfIntervals=10100,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW") translateModel(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW,tolerance=1e-05,outputFormat="empty",numberOfIntervals=10100,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 107.8 kB / 16.42 MB, free: 6.465 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.001104/0.001104, allocations: 189.5 kB / 17.36 MB, free: 5.73 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.199/1.199, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.165/0.165, allocations: 38 MB / 308.6 MB, free: 5.992 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.716e-05/1.718e-05, allocations: 6.219 kB / 433.6 MB, free: 14.47 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW): time 0.002033/0.002058, allocations: 1.823 MB / 435.5 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001703/0.003773, allocations: 1.68 MB / 437.2 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.482e-05/0.003838, allocations: 4 kB / 437.2 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000184/0.004029, allocations: 39.69 kB / 437.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.004256, allocations: 83.62 kB / 437.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005195/0.004783, allocations: 402.6 kB / 437.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000177/0.004969, allocations: 199.3 kB / 437.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.239e-05/0.005008, allocations: 8.219 kB / 437.9 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.005121, allocations: 91.67 kB / 438 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.856e-05/0.005228, allocations: 99.64 kB / 438.1 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.005248, allocations: 4 kB / 438.1 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005844/0.005837, allocations: 0.7016 MB / 438.8 MB, free: 9.332 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.000137/0.005982, allocations: 233.8 kB / 439 MB, free: 9.102 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 6.595e-05/0.006054, allocations: 162.2 kB / 439.1 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 2.547e-05/0.006084, allocations: 15.94 kB / 439.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.138e-05/0.006099, allocations: 0 / 439.2 MB, free: 8.926 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 (30) * Number of variables: 240 (30) Notification: Performance of Bindings: time 0.0006889/0.006792, allocations: 1.028 MB / 440.2 MB, free: 7.793 MB / 318.1 MB Notification: Performance of FunctionAlias: time 6.908e-05/0.006867, allocations: 59.78 kB / 440.3 MB, free: 7.734 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0002583/0.007132, allocations: 431.8 kB / 440.7 MB, free: 7.285 MB / 318.1 MB Notification: Performance of simplify1: time 1.495e-05/0.007153, allocations: 11.98 kB / 440.7 MB, free: 7.273 MB / 318.1 MB Notification: Performance of Alias: time 0.0003486/0.007506, allocations: 359.1 kB / 441 MB, free: 6.848 MB / 318.1 MB Notification: Performance of simplify2: time 1.408e-05/0.007528, allocations: 4 kB / 441 MB, free: 6.844 MB / 318.1 MB Notification: Performance of Events: time 7.2e-05/0.007605, allocations: 67.8 kB / 441.1 MB, free: 6.777 MB / 318.1 MB Notification: Performance of Detect States: time 0.0001024/0.007713, allocations: 97.91 kB / 441.2 MB, free: 6.668 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0001205/0.00784, allocations: 133.4 kB / 441.3 MB, free: 6.531 MB / 318.1 MB Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (4) DP = {Modelica.Fluid.Dissipation.PressureLoss.StraightPipe.dp_turbulent_DP(m_flow_IN_con[i], m_flow_IN_var[i], input_mdot[i]) for i in 1:4} ($RES_SIM_1) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (28/241) *************************** (1) [ALGB] (4) Real[4] DP = {input_dp[i] for i in 1:4} (start = {0.0 for $i1 in 1:4}) (2) [ALGB] (16) Real[4, 4] dp_IN_con.K = {K[$dp_IN_con1] for $dp_IN_con1 in 1:4} (3) [ALGB] (16) Real[4, 4] dp_IN_con.L = {L for $dp_IN_con1 in 1:4} (4) [ALGB] (1) Real input_DP.y (5) [DISC] (16) enumeration Modelica.Fluid.Dissipation.Utilities.Types.Roughness(Neglected, Considered)[4, 4] m_flow_IN_con.roughness = {roughness for $m_flow_IN_con1 in 1:4} (6) [ALGB] (4) Real[4] K = {0.0, 0.1 * 2e-4, 0.1 * 0.002, 0.1 * 0.02} (7) [ALGB] (4) Real[4] M_FLOW (start = {0.0 for $i1 in 1:4}) (8) [ALGB] (4) Real[4] Re = {(0.1 * 1000.0 * velocity[i]) / 0.001 for i in 1:4} (9) [ALGB] (4) Real[4] lambda_FRI = {(0.1 * zeta_TOT[i]) / 1.0 for i in 1:4} (10) [DISC] (16) enumeration Modelica.Fluid.Dissipation.Utilities.Types.Roughness(Neglected, Considered)[4, 4] dp_IN_con.roughness = {roughness for $dp_IN_con1 in 1:4} (11) [ALGB] (16) Real[4, 4] m_flow_IN_var.rho = {rho for $m_flow_IN_var1 in 1:4} (min = {0.0 for $i1 in 1:4}) (12) [ALGB] (4) Real[4] input_dp = {1.0 for $i1 in 1:4} .* input_DP.y (start = {0.0 for $i1 in 1:4}) (13) [ALGB] (16) Real[4, 4] m_flow_IN_var.eta = {eta for $m_flow_IN_var1 in 1:4} (min = {0.0 for $i1 in 1:4}) (14) [ALGB] (4) Real[4] DP_plot = {DP[i] for i in 1:4} (15) [ALGB] (4) Real[4] $FUN_1 (16) [ALGB] (16) Real[4, 4] m_flow_IN_con.d_hyd = {d_hyd for $m_flow_IN_con1 in 1:4} (min = {0.0 for $i1 in 1:4}) (17) [ALGB] (16) Real[4, 4] dp_IN_con.d_hyd = {d_hyd for $dp_IN_con1 in 1:4} (min = {0.0 for $i1 in 1:4}) (18) [ALGB] (4) Real[4] input_mdot (start = {0.0 for $i1 in 1:4}) (19) [ALGB] (1) Real A_cross = (0.1 ^ 2.0 * 3.141592653589793) / 4.0 (20) [DISC] (1) enumeration Modelica.Fluid.Dissipation.Utilities.Types.Roughness(Neglected, Considered) roughness = Modelica.Fluid.Dissipation.Utilities.Types.Roughness.Considered (21) [ALGB] (16) Real[4, 4] dp_IN_var.eta = {eta for $dp_IN_var1 in 1:4} (min = {0.0 for $i1 in 1:4}) (22) [ALGB] (16) Real[4, 4] dp_IN_var.rho = {rho for $dp_IN_var1 in 1:4} (min = {0.0 for $i1 in 1:4}) (23) [ALGB] (16) Real[4, 4] m_flow_IN_con.L = {L for $m_flow_IN_con1 in 1:4} (24) [ALGB] (16) Real[4, 4] m_flow_IN_con.K = {K[$m_flow_IN_con1] for $m_flow_IN_con1 in 1:4} (25) [ALGB] (4) Real[4] velocity = {M_FLOW[i] / (A_cross * 1000.0) for i in 1:4} (26) [DISC] (1) Boolean $TEV_1 (27) [ALGB] (4) Real[4] zeta_TOT = {(abs(DP_plot[i]) * 2.0) / max(1e-15, 1000.0 * velocity[i] ^ 2.0) for i in 1:4} (28) [DISC] (1) Boolean $TEV_0 System Equations (28/97) ************************** (1) [SCAL] (1) $TEV_1 = time < (input_DP.startTime + input_DP.duration) ($RES_EVT_52) (2) [FOR-] (4) ($RES_BND_43) (2) [----] for $i1 in 1:4 loop (2) [----] [SCAL] (1) DP_plot[$i1] = DP[$i1] ($RES_BND_44) (2) [----] end for; (3) [FOR-] (4) ($RES_BND_37) (3) [----] for $i1 in 1:4 loop (3) [----] [SCAL] (1) dp_IN_var[$i1].rho = 1000.0 ($RES_BND_38) (3) [----] end for; (4) [FOR-] (4) ($RES_BND_45) (4) [----] for $i1 in 1:4 loop (4) [----] [SCAL] (1) zeta_TOT[$i1] = (2.0 * $FUN_1[$i1]) / max(1e-15, 1000.0 * velocity[$i1] ^ 2.0) ($RES_BND_46) (4) [----] end for; (5) [FOR-] (4) ($RES_BND_39) (5) [----] for $i1 in 1:4 loop (5) [----] [SCAL] (1) velocity[$i1] = M_FLOW[$i1] / (A_cross * 1000.0) ($RES_BND_40) (5) [----] end for; (6) [FOR-] (4) ($RES_BND_47) (6) [----] for $i1 in 1:4 loop (6) [----] [SCAL] (1) lambda_FRI[$i1] = (0.1 * zeta_TOT[$i1]) / 1.0 ($RES_BND_48) (6) [----] end for; (7) [ARRY] (4) K = {0.0, 2e-5, 2e-4, 0.002} ($RES_BND_7) (8) [SCAL] (1) roughness = Modelica.Fluid.Dissipation.Utilities.Types.Roughness.Considered ($RES_BND_5) (9) [FOR-] (4) ($RES_BND_11) (9) [----] for $i1 in 1:4 loop (9) [----] [SCAL] (1) input_dp[$i1] = input_DP.y ($RES_BND_12) (9) [----] end for; (10) [SCAL] (1) A_cross = 0.007853981633974483 ($RES_BND_4) (11) [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) (12) [FOR-] (4) ($RES_BND_13) (12) [----] for $i1 in 1:4 loop (12) [----] [SCAL] (1) DP[$i1] = input_dp[$i1] ($RES_BND_14) (12) [----] end for; (13) [ARRY] (4) DP = {Modelica.Fluid.Dissipation.PressureLoss.StraightPipe.dp_turbulent_DP(m_flow_IN_con[i], m_flow_IN_var[i], input_mdot[i]) for i in 1:4} ($RES_SIM_1) (14) [ARRY] (4) M_FLOW = {Modelica.Fluid.Dissipation.PressureLoss.StraightPipe.dp_turbulent_MFLOW(dp_IN_con[i], dp_IN_var[i], input_dp[i]) for i in 1:4} ($RES_SIM_0) (15) [FOR-] (4) ($RES_BND_21) (15) [----] for $i1 in 1:4 loop (15) [----] [SCAL] (1) m_flow_IN_con[$i1].K = K[$i1] ($RES_BND_22) (15) [----] end for; (16) [FOR-] (4) ($RES_BND_15) (16) [----] for $i1 in 1:4 loop (16) [----] [SCAL] (1) m_flow_IN_con[$i1].roughness = roughness ($RES_BND_16) (16) [----] end for; (17) [FOR-] (4) ($RES_BND_23) (17) [----] for $i1 in 1:4 loop (17) [----] [SCAL] (1) m_flow_IN_var[$i1].eta = 0.001 ($RES_BND_24) (17) [----] end for; (18) [FOR-] (4) ($RES_BND_17) (18) [----] for $i1 in 1:4 loop (18) [----] [SCAL] (1) m_flow_IN_con[$i1].d_hyd = 0.1 ($RES_BND_18) (18) [----] end for; (19) [FOR-] (4) ($RES_$AUX_49) (19) [----] for $i1 in 1:4 loop (19) [----] [SCAL] (1) $FUN_1[$i1] = abs(DP_plot[$i1]) ($RES_$AUX_50) (19) [----] end for; (20) [FOR-] (4) ($RES_BND_31) (20) [----] for $i1 in 1:4 loop (20) [----] [SCAL] (1) dp_IN_con[$i1].L = 1.0 ($RES_BND_32) (20) [----] end for; (21) [FOR-] (4) ($RES_BND_25) (21) [----] for $i1 in 1:4 loop (21) [----] [SCAL] (1) m_flow_IN_var[$i1].rho = 1000.0 ($RES_BND_26) (21) [----] end for; (22) [FOR-] (4) ($RES_BND_19) (22) [----] for $i1 in 1:4 loop (22) [----] [SCAL] (1) m_flow_IN_con[$i1].L = 1.0 ($RES_BND_20) (22) [----] end for; (23) [FOR-] (4) ($RES_BND_33) (23) [----] for $i1 in 1:4 loop (23) [----] [SCAL] (1) dp_IN_con[$i1].K = K[$i1] ($RES_BND_34) (23) [----] end for; (24) [FOR-] (4) ($RES_BND_27) (24) [----] for $i1 in 1:4 loop (24) [----] [SCAL] (1) dp_IN_con[$i1].roughness = roughness ($RES_BND_28) (24) [----] end for; (25) [FOR-] (4) ($RES_BND_29) (25) [----] for $i1 in 1:4 loop (25) [----] [SCAL] (1) dp_IN_con[$i1].d_hyd = 0.1 ($RES_BND_30) (25) [----] end for; (26) [FOR-] (4) ($RES_BND_41) (26) [----] for $i1 in 1:4 loop (26) [----] [SCAL] (1) Re[$i1] = (0.1 * 1000.0 * velocity[$i1]) / 0.001 ($RES_BND_42) (26) [----] end for; (27) [FOR-] (4) ($RES_BND_35) (27) [----] for $i1 in 1:4 loop (27) [----] [SCAL] (1) dp_IN_var[$i1].eta = 0.001 ($RES_BND_36) (27) [----] end for; (28) [SCAL] (1) $TEV_0 = time < input_DP.startTime ($RES_EVT_51)