Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestST2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 108.6 kB / 21.08 MB, free: 0.8594 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001461/0.001461, allocations: 186 kB / 24.34 MB, free: 4.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.22/1.22, allocations: 207.6 MB / 235.1 MB, free: 10.03 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2596/0.2596, allocations: 49.56 MB / 336.9 MB, free: 4.172 MB / 270.1 MB " [Timeout remaining time 180] 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.WaterComponents.TestST2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestST2") translateModel(ThermoPower.Test.WaterComponents.TestST2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.WaterComponents.TestST2") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 1.683e-05/1.683e-05, allocations: 2.281 kB / 477.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestST2): time 0.03699/0.03701, allocations: 37.24 MB / 0.5024 GB, free: 7.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01734/0.05434, allocations: 14.8 MB / 0.5168 GB, free: 8.41 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000251/0.0546, allocations: 11.88 kB / 0.5168 GB, free: 8.398 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004505/0.05505, allocations: 146.9 kB / 0.517 GB, free: 8.254 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004038/0.05545, allocations: 226.5 kB / 0.5172 GB, free: 8.031 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01395/0.0694, allocations: 6.5 MB / 0.5235 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007745/0.07017, allocations: 0.6923 MB / 0.5242 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003085/0.07048, allocations: 190.5 kB / 0.5244 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003047/0.07078, allocations: 255 kB / 0.5246 GB, free: 380 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002665/0.07105, allocations: 215 kB / 0.5248 GB, free: 164 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.005e-05/0.07109, allocations: 28 kB / 0.5249 GB, free: 136 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01007/0.08116, allocations: 7.929 MB / 0.5326 GB, free: 8.195 MB / 414.1 MB Notification: Performance of combineBinaries: time 0.0006215/0.08178, allocations: 0.7502 MB / 0.5333 GB, free: 7.438 MB / 414.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002988/0.08208, allocations: 493.5 kB / 0.5338 GB, free: 6.949 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.736e-05/0.08215, allocations: 71.75 kB / 0.5339 GB, free: 6.879 MB / 414.1 MB Notification: Performance of FrontEnd: time 6.944e-05/0.08222, allocations: 8 kB / 0.5339 GB, free: 6.871 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 (61) * Number of variables: 65 (65) Notification: Performance of Bindings: time 0.001732/0.08396, allocations: 1.758 MB / 0.5356 GB, free: 4.973 MB / 414.1 MB Notification: Performance of FunctionAlias: time 0.0001308/0.08409, allocations: 131.8 kB / 0.5357 GB, free: 4.836 MB / 414.1 MB Notification: Performance of Early Inline: time 0.000814/0.0849, allocations: 0.8041 MB / 0.5365 GB, free: 4.004 MB / 414.1 MB Notification: Performance of Simplify 1: time 0.0002278/0.08513, allocations: 184.2 kB / 0.5367 GB, free: 3.77 MB / 414.1 MB Warning: NBAlias.setStartFixed: Alias set with conflicting unfixed start values detected. Use -d=dumprepl for more information. Notification: Performance of Alias: time 0.001919/0.08705, allocations: 1.441 MB / 0.5381 GB, free: 2.145 MB / 414.1 MB Notification: Performance of Simplify 2: time 0.000143/0.08719, allocations: 120.6 kB / 0.5382 GB, free: 1.98 MB / 414.1 MB Notification: Performance of Remove Stream: time 7.011e-05/0.08726, allocations: 68.41 kB / 0.5383 GB, free: 1.887 MB / 414.1 MB Notification: Performance of Detect States: time 0.0002274/0.08749, allocations: 176.5 kB / 0.5384 GB, free: 1.66 MB / 414.1 MB Notification: Performance of Events: time 6.512e-05/0.08755, allocations: 31.91 kB / 0.5385 GB, free: 1.629 MB / 414.1 MB Notification: Performance of Partitioning: time 0.0001772/0.08773, allocations: 152 kB / 0.5386 GB, free: 1.465 MB / 414.1 MB Error: Internal error NBSorting.tarjan failed to sort system: System Variables (33/33) ************************** (1|1) [ALGB] (1) Real Step1.y (2|2) [DSTA] (1) flow Real ST.shaft_b.tau (3|3) [DSTA] (1) Real ST.tau (4|4) [DISC] (1) Integer ST.fluidState_in.phase (min = 0, max = 2) (5|5) [DER-] (1) Real $DER.Speed1.phi (6|6) [DSTA] (1) Real ST.omega (7|7) [ALGB] (1) Real ValveLin1.outlet.p (start = 5e6, min = 611.657, max = 1e8, nominal = 1e6) (8|8) [ALGB] (1) Real ST.hout (start = ST.hstartout, min = -1e10, max = 1e10, nominal = 5e5) (9|9) [DSTA] (1) Real Inertia1.a (fixed = true, start = 0.0) (10|10) [DSTA] (1) Real $DER.Inertia1.phi (11|11) [DDER] (1) Real $DER.Inertia1.w (12|12) [DDER] (1) Real $DER.ST.P_HP (13|13) [ALGB] (1) Real ST.hiso (start = ST.hstartout, min = -1e10, max = 1e10, nominal = 5e5) (14|14) [ALGB] (1) Real ST.fluidState_in.d (start = 150.0, min = 0.0, max = 1e5, nominal = 500.0) (15|15) [ALGB] (1) Real ST.fluidState_in.h (start = ST.hstartin, min = -1e10, max = 1e10, nominal = 5e5) (16|16) [DER-] (1) Real $DER.ST.P_LP (17|17) [ALGB] (1) Real ST.Pm (18|18) [ALGB] (1) Real ST.fluidState_in.p (start = ST.pstartin, min = 611.657, max = 1e8, nominal = 1e6) (19|19) [ALGB] (1) Real ST.Kv (20|20) [ALGB] (1) Real ValveLin1.w (min = -1e5, max = 1e5) (21|21) [STAT] (1) flow Real Inertia1.flange_b.tau (22|22) [ALGB] (1) Real ST.fluidState_in.T (start = 500.0, min = 273.15, max = 2273.15, nominal = 500.0) (23|23) [DISC] (1) Boolean $TEV_0 (24|24) [DSTA] (1) Real Inertia1.phi (fixed = true, start = 0.0, StateSelect = default) (25|25) [DDER] (1) Real $DER.ST.tau (26|26) [DDER] (1) flow Real $DER.ST.shaft_b.tau (27|27) [DER-] (1) flow Real $DER.Inertia1.flange_b.tau (28|28) [DER-] (1) Real $DER.$DER.Inertia1.w (29|29) [DDER] (1) Real $DER.Inertia1.a (30|30) [DDER] (1) Real $DER.$DER.Inertia1.phi (31|31) [DDER] (1) Real $DER.ST.omega (32|32) [DSTA] (1) Real ST.P_HP (start = ST.P_HPstart) (33|33) [DSTA] (1) Real Inertia1.w (fixed = true, start = omega, StateSelect = default) System Equations (31/31) ************************** (1|1) [SCAL] (1) ST.P_HP + ST.P_LP = -ST.tau * ST.omega ($RES_SIM_42) (2|2) [SCAL] (1) ST.T_LP * $DER.ST.P_LP = ST.Pm * (1.0 - ST.hpFraction) - ST.P_LP ($RES_SIM_43) (3|3) [SCAL] (1) ST.T_HP * $DER.ST.P_HP = ST.Pm * ST.hpFraction - ST.P_HP ($RES_SIM_44) (4|4) [SCAL] (1) $DER.Inertia1.phi = ST.omega ($RES_SIM_38) (5|5) [SCAL] (1) ST.Pm = ValveLin1.w * ST.eta_mech * (SourceP1.h - ST.hout) ($RES_SIM_45) (6|6) [SCAL] (1) ST.shaft_b.tau = ST.tau ($RES_SIM_39) (7|7) [SCAL] (1) SourceP1.h - ST.hout = ST.eta_iso * (SourceP1.h - ST.hiso) ($RES_SIM_46) (8|8) [SCAL] (1) ST.hiso = Modelica.Media.Water.IF97_Utilities.isentropicEnthalpy_props(SinkP1.p0, Modelica.Media.Water.IF97_Utilities.s_ph(ST.fluidState_in.p, ST.fluidState_in.h, ST.fluidState_in.phase, 0), Modelica.Media.Water.IF97_Utilities.waterBaseProp_ps(SinkP1.p0, Modelica.Media.Water.IF97_Utilities.s_ph(ST.fluidState_in.p, ST.fluidState_in.h, ST.fluidState_in.phase, 0), 0, 0)) ($RES_SIM_47) (9|9) [SCAL] (1) ValveLin1.w = ST.Kv * ValveLin1.outlet.p ($RES_SIM_48) (10|10) [SCAL] (1) ST.Kv = ST.wnom / ST.pnom ($RES_SIM_49) (11|11) [SCAL] (1) ST.fluidState_in.phase = 0 ($RES_SIM_64) (12|12) [SCAL] (1) ST.fluidState_in.h = SourceP1.h ($RES_SIM_65) (13|13) [SCAL] (1) $TEV_0 = time < Step1.startTime ($RES_EVT_69) (14|14) [SCAL] (1) Step1.y = Step1.offset + (if $TEV_0 then 0.0 else Step1.height) ($RES_SIM_8) (15|15) [SCAL] (1) ST.fluidState_in.d = Modelica.Media.Water.IF97_Utilities.rho_ph(ValveLin1.outlet.p, SourceP1.h, 0, 0) ($RES_SIM_66) (16|16) [SCAL] (1) Speed1.phi = Inertia1.phi ($RES_SIM_7) (17|17) [SCAL] (1) ST.fluidState_in.T = Modelica.Media.Water.IF97_Utilities.T_ph(ValveLin1.outlet.p, SourceP1.h, 0, 0) ($RES_SIM_67) (18|18) [SCAL] (1) Constant1.k = $DER.Speed1.phi ($RES_SIM_6) (19|19) [SCAL] (1) ST.fluidState_in.p = ValveLin1.outlet.p ($RES_SIM_68) (20|20) [SCAL] (1) ValveLin1.w = Step1.y * ValveLin1.Kv * (SourceP1.p0 - ValveLin1.outlet.p) ($RES_SIM_12) (21|21) [SCAL] (1) Inertia1.J * Inertia1.a = Inertia1.flange_b.tau - ST.shaft_b.tau ($RES_SIM_20) (22|22) [SCAL] (1) Inertia1.a = $DER.Inertia1.w ($RES_SIM_21) (23|23) [SCAL] (1) Inertia1.w = $DER.Inertia1.phi ($RES_SIM_22) (24|24) [SCAL] (1) Constant1.k = ST.omega ($RES_SIM_71) (25|25) [SCAL] (1) $DER.ST.P_HP + $DER.ST.P_LP = -($DER.ST.tau * ST.omega + ST.tau * $DER.ST.omega) ($RES_SIM_72) (26|26) [SCAL] (1) $DER.$DER.Inertia1.phi = $DER.ST.omega ($RES_SIM_73) (27|27) [SCAL] (1) $DER.ST.shaft_b.tau = $DER.ST.tau ($RES_SIM_74) (28|28) [SCAL] (1) Inertia1.J * $DER.Inertia1.a = $DER.Inertia1.flange_b.tau - $DER.ST.shaft_b.tau ($RES_SIM_75) (29|29) [SCAL] (1) $DER.Inertia1.a = $DER.$DER.Inertia1.w ($RES_SIM_76) (30|30) [SCAL] (1) Inertia1.a = $DER.$DER.Inertia1.phi ($RES_SIM_77) (31|31) [SCAL] (1) 0.0 = $DER.ST.omega ($RES_SIM_78) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 14 var 2 --> eqn 6 var 3 --> eqn 1 var 4 --> eqn 11 var 5 --> eqn 18 var 6 --> eqn 24 var 7 --> eqn 20 var 8 --> eqn 7 var 9 --> eqn 30 var 10 --> eqn 4 var 11 --> eqn 22 var 12 --> eqn -1 var 13 --> eqn 8 var 14 --> eqn 15 var 15 --> eqn 12 var 16 --> eqn 2 var 17 --> eqn 5 var 18 --> eqn 19 var 19 --> eqn 10 var 20 --> eqn 9 var 21 --> eqn 21 var 22 --> eqn 17 var 23 --> eqn 13 var 24 --> eqn 16 var 25 --> eqn 25 var 26 --> eqn 27 var 27 --> eqn 28 var 28 --> eqn 29 var 29 --> eqn -1 var 30 --> eqn 26 var 31 --> eqn 31 var 32 --> eqn 3 var 33 --> eqn 23 equation to variable ********************** eqn 1 --> var 3 eqn 2 --> var 16 eqn 3 --> var 32 eqn 4 --> var 10 eqn 5 --> var 17 eqn 6 --> var 2 eqn 7 --> var 8 eqn 8 --> var 13 eqn 9 --> var 20 eqn 10 --> var 19 eqn 11 --> var 4 eqn 12 --> var 15 eqn 13 --> var 23 eqn 14 --> var 1 eqn 15 --> var 14 eqn 16 --> var 24 eqn 17 --> var 22 eqn 18 --> var 5 eqn 19 --> var 18 eqn 20 --> var 7 eqn 21 --> var 21 eqn 22 --> var 11 eqn 23 --> var 33 eqn 24 --> var 6 eqn 25 --> var 25 eqn 26 --> var 30 eqn 27 --> var 26 eqn 28 --> var 27 eqn 29 --> var 28 eqn 30 --> var 9 eqn 31 --> var 31 " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.5011669397354126] Failed to read output from testmodel.py, exit status != 0: 0.25572887621819973 0.266384124 0.18174093700000002 Calling exit ...