Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=10100,variableFilter="time|MIN|A_cross|roughness|d_hyd|K.1.|K.2.|K.3.|K.4.|L|eta|rho|input_mdot.1.|input_mdot.2.|input_mdot.3.|input_mdot.4.|input_dp.1.|input_dp.2.|input_dp.3.|input_dp.4.|M_FLOW.1.|M_FLOW.2.|M_FLOW.3.|M_FLOW.4.|DP.1.|DP.2.|DP.3.|DP.4.|velocity.1.|velocity.2.|velocity.3.|velocity.4.|Re.1.|Re.2.|Re.3.|Re.4.|DP_plot.1.|DP_plot.2.|DP_plot.3.|DP_plot.4.|zeta_TOT.1.|zeta_TOT.2.|zeta_TOT.3.|zeta_TOT.4.|lambda_FRI.1.|lambda_FRI.2.|lambda_FRI.3.|lambda_FRI.4.|input_DP.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW") translateModel(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW,tolerance=1e-05,outputFormat="mat",numberOfIntervals=10100,variableFilter="time|MIN|A_cross|roughness|d_hyd|K.1.|K.2.|K.3.|K.4.|L|eta|rho|input_mdot.1.|input_mdot.2.|input_mdot.3.|input_mdot.4.|input_dp.1.|input_dp.2.|input_dp.3.|input_dp.4.|M_FLOW.1.|M_FLOW.2.|M_FLOW.3.|M_FLOW.4.|DP.1.|DP.2.|DP.3.|DP.4.|velocity.1.|velocity.2.|velocity.3.|velocity.4.|Re.1.|Re.2.|Re.3.|Re.4.|DP_plot.1.|DP_plot.2.|DP_plot.3.|DP_plot.4.|zeta_TOT.1.|zeta_TOT.2.|zeta_TOT.3.|zeta_TOT.4.|lambda_FRI.1.|lambda_FRI.2.|lambda_FRI.3.|lambda_FRI.4.|input_DP.y",fileNamePrefix="ModelicaTest_4.0.0_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.0012/0.0012, allocations: 106.3 kB / 18.41 MB, free: 4.703 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.00115/0.00115, allocations: 195.5 kB / 19.35 MB, free: 3.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.22/1.22, allocations: 222.9 MB / 243 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1939/0.1939, allocations: 44.18 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.769e-05/1.771e-05, allocations: 9.031 kB / 409.9 MB, free: 26.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_turbulent_DPMFLOW): time 0.002189/0.00222, allocations: 1.816 MB / 411.7 MB, free: 24.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.003882, allocations: 1.64 MB / 413.3 MB, free: 23.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.967e-05/0.003943, allocations: 0 / 413.3 MB, free: 23.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.004124, allocations: 43.75 kB / 413.4 MB, free: 23.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002014/0.004333, allocations: 83.58 kB / 413.4 MB, free: 22.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000564/0.004914, allocations: 405.1 kB / 413.8 MB, free: 22.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001709/0.005093, allocations: 187.3 kB / 414 MB, free: 22.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.682e-05/0.005137, allocations: 8.172 kB / 414 MB, free: 22.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001029/0.005246, allocations: 99.66 kB / 414.1 MB, free: 22.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.201e-05/0.005345, allocations: 99.64 kB / 414.2 MB, free: 22.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.423e-05/0.005366, allocations: 8 kB / 414.2 MB, free: 22.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005323/0.005903, allocations: 0.6899 MB / 414.9 MB, free: 21.51 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0001312/0.006043, allocations: 245.7 kB / 415.2 MB, free: 21.27 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 6.102e-05/0.00611, allocations: 162.2 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.092e-05/0.006136, allocations: 11.94 kB / 415.3 MB, free: 21.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.368e-05/0.006154, allocations: 7.938 kB / 415.3 MB, free: 21.09 MB / 302.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.0006517/0.00681, allocations: 1.035 MB / 416.4 MB, free: 19.94 MB / 302.1 MB Notification: Performance of FunctionAlias: time 6.539e-05/0.006882, allocations: 47.89 kB / 416.4 MB, free: 19.89 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0002424/0.007131, allocations: 435.8 kB / 416.8 MB, free: 19.44 MB / 302.1 MB Notification: Performance of simplify1: time 1.281e-05/0.007149, allocations: 7.984 kB / 416.9 MB, free: 19.43 MB / 302.1 MB Notification: Performance of Alias: time 0.0003072/0.007461, allocations: 359.1 kB / 417.2 MB, free: 19.01 MB / 302.1 MB Notification: Performance of simplify2: time 1.343e-05/0.007483, allocations: 7.938 kB / 417.2 MB, free: 19 MB / 302.1 MB Notification: Performance of Events: time 6.425e-05/0.007553, allocations: 55.94 kB / 417.3 MB, free: 18.95 MB / 302.1 MB Notification: Performance of Detect States: time 7.814e-05/0.007637, allocations: 100.1 kB / 417.4 MB, free: 18.83 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001163/0.00776, allocations: 136.7 kB / 417.5 MB, free: 18.69 MB / 302.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)