Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InversePowerLaws.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001937/0.001937, allocations: 87.56 kB / 20.94 MB, free: 3.609 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00203/0.00203, allocations: 169 kB / 24.25 MB, free: 312 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.592/1.592, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 1.077/1.077, allocations: 115 MB / 376 MB, free: 7.586 MB / 346.7 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(IBPSA.Fluid.BaseClasses.FlowModels.Validation.InversePowerLaws,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InversePowerLaws") translateModel(IBPSA.Fluid.BaseClasses.FlowModels.Validation.InversePowerLaws,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.BaseClasses.FlowModels.Validation.InversePowerLaws") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 1.476e-05/1.476e-05, allocations: 4.844 kB / 481.5 MB, free: 11.97 MB / 410.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.BaseClasses.FlowModels.Validation.InversePowerLaws): time 0.001897/0.001912, allocations: 1.409 MB / 482.9 MB, free: 11.04 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.003045, allocations: 0.9214 MB / 483.8 MB, free: 10.45 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.469e-05/0.003079, allocations: 1.906 kB / 483.8 MB, free: 10.45 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 3.835e-05/0.003118, allocations: 7.312 kB / 483.8 MB, free: 10.45 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.003223, allocations: 23.67 kB / 483.8 MB, free: 10.43 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005493/0.003772, allocations: 231.9 kB / 484.1 MB, free: 10.33 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001366/0.003909, allocations: 105.6 kB / 484.2 MB, free: 10.29 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.02e-05/0.003949, allocations: 2.438 kB / 484.2 MB, free: 10.29 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.631e-05/0.004025, allocations: 62.72 kB / 484.2 MB, free: 10.27 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.454e-05/0.00411, allocations: 41.84 kB / 484.3 MB, free: 10.26 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.00413, allocations: 7.844 kB / 484.3 MB, free: 10.26 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004858/0.004616, allocations: 378.5 kB / 484.7 MB, free: 10.19 MB / 410.7 MB Notification: Performance of combineBinaries: time 0.0001264/0.004742, allocations: 136.6 kB / 484.8 MB, free: 10.12 MB / 410.7 MB Notification: Performance of replaceArrayConstructors: time 4.422e-05/0.004786, allocations: 67.3 kB / 484.9 MB, free: 10.09 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.345e-05/0.0048, allocations: 3.062 kB / 484.9 MB, free: 10.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.775e-06/0.004807, allocations: 1.188 kB / 484.9 MB, free: 10.09 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 (5) * Number of variables: 11 (5) Notification: Performance of [SIM] Bindings: time 0.0006614/0.005469, allocations: 0.5925 MB / 485.5 MB, free: 9.609 MB / 410.7 MB Notification: Performance of [SIM] FunctionAlias: time 0.0002184/0.005687, allocations: 172.9 kB / 485.6 MB, free: 9.527 MB / 410.7 MB Notification: Performance of [SIM] Early Inline: time 0.0006312/0.006318, allocations: 0.7468 MB / 486.4 MB, free: 9.145 MB / 410.7 MB Notification: Performance of [SIM] Simplify 1: time 7.752e-05/0.006396, allocations: 89.22 kB / 486.5 MB, free: 9.074 MB / 410.7 MB Notification: Performance of [SIM] Alias: time 0.0003688/0.006765, allocations: 277.9 kB / 486.7 MB, free: 8.863 MB / 410.7 MB Notification: Performance of [SIM] Simplify 2: time 6.074e-05/0.006826, allocations: 73.66 kB / 486.8 MB, free: 8.801 MB / 410.7 MB Notification: Performance of [SIM] Remove Stream: time 4.783e-05/0.006873, allocations: 73.39 kB / 486.9 MB, free: 8.727 MB / 410.7 MB Notification: Performance of [SIM] Detect States: time 0.0001344/0.007008, allocations: 185.2 kB / 487.1 MB, free: 8.566 MB / 410.7 MB Notification: Performance of [SIM] Events: time 4.583e-05/0.007054, allocations: 35.92 kB / 487.1 MB, free: 8.555 MB / 410.7 MB Notification: Performance of [SIM] Partitioning: time 0.0001712/0.007225, allocations: 164.9 kB / 487.2 MB, free: 8.438 MB / 410.7 MB Notification: Performance of [SIM] Causalize: time 0.0002287/0.007454, allocations: 142.5 kB / 487.4 MB, free: 8.383 MB / 410.7 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.0002814/0.007735, allocations: 415.1 kB / 487.8 MB, free: 8.219 MB / 410.7 MB Notification: Performance of [INI] Simplify: time 0.0002237/0.007959, allocations: 183.2 kB / 488 MB, free: 8.074 MB / 410.7 MB Notification: Performance of [INI] Inline: time 0.0004857/0.008444, allocations: 0.6793 MB / 488.7 MB, free: 7.789 MB / 410.7 MB Notification: Performance of [INI] Partitioning: time 1.725e-05/0.008462, allocations: 17.23 kB / 488.7 MB, free: 7.77 MB / 410.7 MB Notification: Performance of [INI] Cleanup: time 8.122e-05/0.008543, allocations: 93.73 kB / 488.8 MB, free: 7.73 MB / 410.7 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [FOR-] (27) ($RES_AUX_14) [----] for $i1 in 1:3 loop [----] [TUPL] (9) ($FUN_3[$i1], $FUN_4[$i1], $FUN_5[$i1], $FUN_6[$i1], $FUN_7[$i1], $FUN_8[$i1], $FUN_9[$i1], $FUN_10[$i1], $FUN_11[$i1]) = IBPSA.Fluid.BaseClasses.FlowModels.powerLawData(k, n[$i1], m_flow_turbulent); ($RES_AUX_15) [----] end for; slice: {12, 13, 14, 15, 16, 17, 18, 19, 20, 21, ...} [SCAL] (1) m_flow_turbulent = m_flow_nominal * 0.3; ($RES_BND_34) Error: Internal error NBSorting.tarjan failed to sort system: System Variables (25/71) ************************** (1|1) [ALGB] (3) Real[3] m_flow (2|4) [ALGB] (1) Real dp (3|5) [ALGB] (3) Real[3] dpCalc (4|8) [ALGB] (3) Real[3] deltaDp (5|11) [ALGB] (3) Real[3] $FUN_1 (6|14) [ALGB] (3) Real[3] $FUN_2 (7|17) [PRMT] (3) Real[3] $FUN_3 (fixed = {false for $i10 in 1:3}) (8|20) [PRMT] (3) Real[3] $FUN_4 (fixed = {false for $i11 in 1:3}) (9|23) [PRMT] (3) Real[3] $FUN_5 (fixed = {false for $i12 in 1:3}) (10|26) [PRMT] (3) Real[3] $FUN_6 (fixed = {false for $i13 in 1:3}) (11|29) [PRMT] (3) Real[3] $FUN_7 (fixed = {false for $i14 in 1:3}) (12|32) [PRMT] (3) Real[3] $FUN_8 (fixed = {false for $i15 in 1:3}) (13|35) [PRMT] (3) Real[3] $FUN_9 (fixed = {false for $i16 in 1:3}) (14|38) [PRMT] (3) Real[3] $FUN_10 (fixed = {false for $i17 in 1:3}) (15|41) [PRMT] (3) Real[3] $FUN_11 (fixed = {false for $i18 in 1:3}) (16|44) [PRMT] (3) protected parameter Real[3] b5 (fixed = {false for $f1 in 1:3}) (17|47) [PRMT] (3) protected parameter Real[3] b3 (fixed = {false for $f1 in 1:3}) (18|50) [PRMT] (3) protected parameter Real[3] b1 (fixed = {false for $f1 in 1:3}) (19|53) [PRMT] (3) protected parameter Real[3] C (fixed = {false for $f1 in 1:3}) (20|56) [PRMT] (3) protected parameter Real[3] a5 (fixed = {false for $f1 in 1:3}) (21|59) [PRMT] (3) protected parameter Real[3] a3 (fixed = {false for $f1 in 1:3}) (22|62) [PRMT] (3) protected parameter Real[3] a1 (fixed = {false for $f1 in 1:3}) (23|65) [PRMT] (3) protected parameter Real[3] m (fixed = {false for $f1 in 1:3}, min = 0.5, max = 1.0) (24|68) [PRMT] (3) protected parameter Real[3] dp_turbulent (fixed = {false for $f1 in 1:3}) (25|71) [PRMT] (1) parameter Real m_flow_turbulent = m_flow_nominal * 0.3 (fixed = true, min = 0.0) System Equations (22/59) ************************** (1|1) [FOR-] (3) ($RES_SIM_2) (1|1) [----] for $i1 in 1:3 loop (1|1) [----] [SCAL] (1) m_flow[$i1] = $FUN_2[$i1]; ($RES_SIM_3) (1|1) [----] end for; (2|4) [FOR-] (3) ($RES_SIM_4) (2|4) [----] for $i1 in 1:3 loop (2|4) [----] [SCAL] (1) dpCalc[$i1] = $FUN_1[$i1]; ($RES_SIM_5) (2|4) [----] end for; (3|7) [FOR-] (3) ($RES_SIM_6) (3|7) [----] for $i1 in 1:3 loop (3|7) [----] [SCAL] (1) deltaDp[$i1] = dp - dpCalc[$i1]; ($RES_SIM_7) (3|7) [----] end for; (4|10) [SCAL] (1) dp = 20.0 * (0.5 * ((-0.5) + time)); ($RES_SIM_8) (5|11) [FOR-] (3) ($RES_AUX_12) (5|11) [----] for $i1 in 1:3 loop (5|11) [----] [SCAL] (1) $FUN_1[$i1] = if noEvent(abs(m_flow[$i1]) < m_flow_turbulent) then m_flow[$i1] * (b1[$i1] + m_flow[$i1] * m_flow[$i1] * (b3[$i1] + m_flow[$i1] * m_flow[$i1] * b5[$i1])) else if noEvent(m_flow[$i1] > 0.0) then C[$i1] * m_flow[$i1] ^ n[$i1] else -C[$i1] * abs(m_flow[$i1]) ^ n[$i1]; ($RES_AUX_13) (5|11) [----] end for; (6|14) [FOR-] (3) ($RES_AUX_10) (6|14) [----] for $i1 in 1:3 loop (6|14) [----] [SCAL] (1) $FUN_2[$i1] = if noEvent(abs(dp) < dp_turbulent[$i1]) then dp * (a1[$i1] + dp * dp * (a3[$i1] + dp * dp * a5[$i1])) else if noEvent(dp > 0.0) then k * dp ^ m[$i1] else -k * abs(dp) ^ m[$i1]; ($RES_AUX_11) (6|14) [----] end for; (7|17) [FOR-] (3) ($RES_SIM_32) (7|17) [----] for $i1 in 1:3 loop (7|17) [----] [SCAL] (1) b5[$i1] = $FUN_11[$i1]; ($RES_SIM_33) (7|17) [----] end for; (8|20) [FOR-] (3) ($RES_SIM_30) (8|20) [----] for $i1 in 1:3 loop (8|20) [----] [SCAL] (1) b3[$i1] = $FUN_10[$i1]; ($RES_SIM_31) (8|20) [----] end for; (9|23) [FOR-] (3) ($RES_SIM_28) (9|23) [----] for $i1 in 1:3 loop (9|23) [----] [SCAL] (1) b1[$i1] = $FUN_9[$i1]; ($RES_SIM_29) (9|23) [----] end for; (10|26) [FOR-] (3) ($RES_SIM_26) (10|26) [----] for $i1 in 1:3 loop (10|26) [----] [SCAL] (1) C[$i1] = $FUN_8[$i1]; ($RES_SIM_27) (10|26) [----] end for; (11|29) [FOR-] (3) ($RES_SIM_24) (11|29) [----] for $i1 in 1:3 loop (11|29) [----] [SCAL] (1) a5[$i1] = $FUN_7[$i1]; ($RES_SIM_25) (11|29) [----] end for; (12|32) [FOR-] (3) ($RES_SIM_22) (12|32) [----] for $i1 in 1:3 loop (12|32) [----] [SCAL] (1) a3[$i1] = $FUN_6[$i1]; ($RES_SIM_23) (12|32) [----] end for; (13|35) [FOR-] (3) ($RES_SIM_20) (13|35) [----] for $i1 in 1:3 loop (13|35) [----] [SCAL] (1) a1[$i1] = $FUN_5[$i1]; ($RES_SIM_21) (13|35) [----] end for; (14|38) [FOR-] (3) ($RES_SIM_18) (14|38) [----] for $i1 in 1:3 loop (14|38) [----] [SCAL] (1) m[$i1] = $FUN_4[$i1]; ($RES_SIM_19) (14|38) [----] end for; (15|41) [FOR-] (3) ($RES_SIM_16) (15|41) [----] for $i1 in 1:3 loop (15|41) [----] [SCAL] (1) dp_turbulent[$i1] = $FUN_3[$i1]; ($RES_SIM_17) (15|41) [----] end for; (16|44) [ARRY] (3) C = $START.C; ($RES_SIM_47) (17|47) [ARRY] (3) b1 = $START.b1; ($RES_SIM_48) (18|50) [FOR-] (2) ($RES_SIM_49) (18|50) [----] for $i19 in 1:1:2 loop (18|50) [----] [SCAL] (1) $FUN_5[$i19] = $START.$FUN_5[$i19]; ($RES_SIM_50) (18|50) [----] end for; (19|52) [FOR-] (2) ($RES_SIM_51) (19|52) [----] for $i20 in 1:1:2 loop (19|52) [----] [SCAL] (1) $FUN_7[$i20] = $START.$FUN_7[$i20]; ($RES_SIM_52) (19|52) [----] end for; (20|54) [FOR-] (2) ($RES_SIM_53) (20|54) [----] for $i21 in 1:1:2 loop (20|54) [----] [SCAL] (1) b5[$i21] = $START.b5[$i21]; ($RES_SIM_54) (20|54) [----] end for; (21|56) [FOR-] (2) ($RES_SIM_55) (21|56) [----] for $i22 in 1:1:2 loop (21|56) [----] [SCAL] (1) a3[$i22] = $START.a3[$i22]; ($RES_SIM_56) (21|56) [----] end for; (22|58) [FOR-] (2) ($RES_SIM_57) (22|58) [----] for $i23 in 1:1:2 loop (22|58) [----] [SCAL] (1) m[$i23] = $START.m[$i23]; ($RES_SIM_58) (22|58) [----] end for; =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 1 var 2 --> eqn 2 var 3 --> eqn -1 var 4 --> eqn 10 var 5 --> eqn -1 var 6 --> eqn -1 var 7 --> eqn -1 var 8 --> eqn 7 var 9 --> eqn 8 var 10 --> eqn 9 var 11 --> eqn 4 var 12 --> eqn 5 var 13 --> eqn 6 var 14 --> eqn 14 var 15 --> eqn 15 var 16 --> eqn 3 var 17 --> eqn -1 var 18 --> eqn -1 var 19 --> eqn -1 var 20 --> eqn 38 var 21 --> eqn 39 var 22 --> eqn 40 var 23 --> eqn 50 var 24 --> eqn 51 var 25 --> eqn -1 var 26 --> eqn 32 var 27 --> eqn 33 var 28 --> eqn 34 var 29 --> eqn 52 var 30 --> eqn 53 var 31 --> eqn -1 var 32 --> eqn 26 var 33 --> eqn 27 var 34 --> eqn 28 var 35 --> eqn 23 var 36 --> eqn 24 var 37 --> eqn 25 var 38 --> eqn 20 var 39 --> eqn 21 var 40 --> eqn 22 var 41 --> eqn 17 var 42 --> eqn 18 var 43 --> eqn 19 var 44 --> eqn 54 var 45 --> eqn 55 var 46 --> eqn -1 var 47 --> eqn 11 var 48 --> eqn 12 var 49 --> eqn 13 var 50 --> eqn 47 var 51 --> eqn 48 var 52 --> eqn 49 var 53 --> eqn 44 var 54 --> eqn 45 var 55 --> eqn 46 var 56 --> eqn 29 var 57 --> eqn 30 var 58 --> eqn 31 var 59 --> eqn 56 var 60 --> eqn 57 var 61 --> eqn -1 var 62 --> eqn 35 var 63 --> eqn 36 var 64 --> eqn 37 var 65 --> eqn 58 var 66 --> eqn 59 var 67 --> eqn 16 var 68 --> eqn 41 var 69 --> eqn 42 var 70 --> eqn 43 var 71 --> eqn -1 equation to variable ********************** eqn 1 --> var 1 eqn 2 --> var 2 eqn 3 --> var 16 eqn 4 --> var 11 eqn 5 --> var 12 eqn 6 --> var 13 eqn 7 --> var 8 eqn 8 --> var 9 eqn 9 --> var 10 eqn 10 --> var 4 eqn 11 --> var 47 eqn 12 --> var 48 eqn 13 --> var 49 eqn 14 --> var 14 eqn 15 --> var 15 eqn 16 --> var 67 eqn 17 --> var 41 eqn 18 --> var 42 eqn 19 --> var 43 eqn 20 --> var 38 eqn 21 --> var 39 eqn 22 --> var 40 eqn 23 --> var 35 eqn 24 --> var 36 eqn 25 --> var 37 eqn 26 --> var 32 eqn 27 --> var 33 eqn 28 --> var 34 eqn 29 --> var 56 eqn 30 --> var 57 eqn 31 --> var 58 eqn 32 --> var 26 eqn 33 --> var 27 eqn 34 --> var 28 eqn 35 --> var 62 eqn 36 --> var 63 eqn 37 --> var 64 eqn 38 --> var 20 eqn 39 --> var 21 eqn 40 --> var 22 eqn 41 --> var 68 eqn 42 --> var 69 eqn 43 --> var 70 eqn 44 --> var 53 eqn 45 --> var 54 eqn 46 --> var 55 eqn 47 --> var 50 eqn 48 --> var 51 eqn 49 --> var 52 eqn 50 --> var 23 eqn 51 --> var 24 eqn 52 --> var 29 eqn 53 --> var 30 eqn 54 --> var 44 eqn 55 --> var 45 eqn 56 --> var 59 eqn 57 --> var 60 eqn 58 --> var 65 eqn 59 --> var 66 Error: Internal error NBInitialization.main failed to apply modules! " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 3.4310198060702533]