Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump.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.001375/0.001375, allocations: 77.94 kB / 21.28 MB, free: 0.5273 MB / 14.72 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.001454/0.001454, allocations: 158.2 kB / 24.54 MB, free: 3.832 MB / 14.72 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.427/1.427, allocations: 177.2 MB / 204.9 MB, free: 9.27 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/package.mo): time 0.1387/0.1387, allocations: 19.71 MB / 281 MB, free: 13.05 MB / 270.1 MB " [Timeout remaining time 180] Using package ThermoPower with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 4.0.0-dev/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(ThermoPower.Test.WaterComponents.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump") translateModel(ThermoPower.Test.WaterComponents.WaterPump,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ThermoPower_4.0.0-dev_ThermoPower.Test.WaterComponents.WaterPump") [Timeout 660] "Notification: ThermoPower requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002869/0.002869, allocations: 71.91 kB / 417.6 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.288, allocations: 60.45 MB / 478.1 MB, free: 15.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.WaterPump): time 0.03808/0.3261, allocations: 31.75 MB / 0.4979 GB, free: 2.43 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.3374, allocations: 7.61 MB / 0.5053 GB, free: 10.79 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003878/0.3378, allocations: 19.81 kB / 0.5053 GB, free: 10.77 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004935/0.3383, allocations: 127 kB / 0.5055 GB, free: 10.64 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007867/0.3391, allocations: 282.3 kB / 0.5057 GB, free: 10.37 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01192/0.351, allocations: 4.466 MB / 0.5101 GB, free: 5.906 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008823/0.3519, allocations: 0.6036 MB / 0.5107 GB, free: 5.301 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003249/0.3522, allocations: 181.5 kB / 0.5108 GB, free: 5.121 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009384/0.3532, allocations: 0.5377 MB / 0.5114 GB, free: 4.582 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004105/0.3536, allocations: 270.9 kB / 0.5116 GB, free: 4.316 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.596e-05/0.3536, allocations: 24 kB / 0.5117 GB, free: 4.293 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01091/0.3645, allocations: 5.908 MB / 0.5174 GB, free: 14.38 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.3647, allocations: 67.69 kB / 0.5175 GB, free: 14.31 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002404/0.3649, allocations: 147.3 kB / 0.5176 GB, free: 14.17 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006903/0.3718, allocations: 3.652 MB / 0.5212 GB, free: 10.51 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3718, allocations: 0 / 0.5212 GB, free: 10.51 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3718, allocations: 0 / 0.5212 GB, free: 10.51 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.3718, allocations: 0 / 0.5212 GB, free: 10.51 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.002575/0.3744, allocations: 0.9967 MB / 0.5222 GB, free: 9.48 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.3744, allocations: 8.031 kB / 0.5222 GB, free: 9.473 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001784/0.3746, allocations: 52.66 kB / 0.5222 GB, free: 9.422 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.3751, allocations: 253.3 kB / 0.5225 GB, free: 9.148 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.543e-05/0.3752, allocations: 76.47 kB / 0.5225 GB, free: 9.062 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.537e-05/0.3752, allocations: 28.12 kB / 0.5226 GB, free: 9.035 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007545/0.376, allocations: 324.4 kB / 0.5229 GB, free: 8.699 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.376, allocations: 3.984 kB / 0.5229 GB, free: 8.695 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.381e-05/0.376, allocations: 8 kB / 0.5229 GB, free: 8.688 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.376, allocations: 8 kB / 0.5229 GB, free: 8.68 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007924/0.3768, allocations: 269.7 kB / 0.5232 GB, free: 8.418 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.3783, allocations: 0.8675 MB / 0.524 GB, free: 7.504 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006413/0.3789, allocations: 198.7 kB / 0.5242 GB, free: 7.301 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003153/0.3792, allocations: 112.7 kB / 0.5243 GB, free: 7.188 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06114/0.4404, allocations: 17.57 MB / 0.5415 GB, free: 5.598 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.468e-05/0.4404, allocations: 42.55 kB / 0.5415 GB, free: 5.547 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 2.865e-06/0.4404, allocations: 0 / 0.5415 GB, free: 5.547 MB / 446.1 MB Notification: Performance of matching and sorting (n=20): time 0.002822/0.4432, allocations: 0.5719 MB / 0.5421 GB, free: 4.961 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.4433, allocations: 59.41 kB / 0.5421 GB, free: 4.891 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.4436, allocations: 252.2 kB / 0.5424 GB, free: 4.637 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.695e-05/0.4436, allocations: 29.64 kB / 0.5424 GB, free: 4.602 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.4437, allocations: 192.6 kB / 0.5426 GB, free: 4.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.151e-05/0.4438, allocations: 75.31 kB / 0.5426 GB, free: 4.336 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.986e-05/0.4439, allocations: 41.7 kB / 0.5427 GB, free: 4.289 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.4441, allocations: 338.8 kB / 0.543 GB, free: 3.949 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003151/0.4444, allocations: 100.8 kB / 0.5431 GB, free: 3.848 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003587/0.4447, allocations: 129.8 kB / 0.5432 GB, free: 3.711 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006234/0.4454, allocations: 230.4 kB / 0.5434 GB, free: 3.477 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4454, allocations: 0 / 0.5434 GB, free: 3.477 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.001113/0.4465, allocations: 353.9 kB / 0.5438 GB, free: 3.121 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.4465, allocations: 8 kB / 0.5438 GB, free: 3.113 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.4465, allocations: 0 / 0.5438 GB, free: 3.113 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006029/0.4471, allocations: 100.8 kB / 0.5439 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.4474, allocations: 55.98 kB / 0.5439 GB, free: 2.957 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007359/0.4481, allocations: 0.6381 MB / 0.5446 GB, free: 2.293 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/0.4484, allocations: 31.91 kB / 0.5446 GB, free: 2.262 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.207e-05/0.4484, allocations: 11.98 kB / 0.5446 GB, free: 2.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004274/0.4489, allocations: 187.9 kB / 0.5448 GB, free: 2.062 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003131/0.4492, allocations: 123.4 kB / 0.5449 GB, free: 1.93 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005776/0.4497, allocations: 214.4 kB / 0.5451 GB, free: 1.711 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.152e-06/0.4498, allocations: 0 / 0.5451 GB, free: 1.711 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0009492/0.4507, allocations: 337.9 kB / 0.5454 GB, free: 1.371 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.4507, allocations: 4 kB / 0.5454 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.555e-06/0.4507, allocations: 0 / 0.5454 GB, free: 1.367 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002184/0.4509, allocations: 56.91 kB / 0.5455 GB, free: 1.309 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.4512, allocations: 63.86 kB / 0.5455 GB, free: 1.246 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002318/0.4535, allocations: 1.684 MB / 0.5472 GB, free: 15.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.4538, allocations: 35.86 kB / 0.5472 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.4538, allocations: 7.984 kB / 0.5472 GB, free: 15.42 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (Pump.int_Np,Pump.inletFluidState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.4539, allocations: 192.2 kB / 0.5474 GB, free: 15.22 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.672e-05/0.454, allocations: 31.81 kB / 0.5474 GB, free: 15.19 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001325/0.4553, allocations: 0.6104 MB / 0.548 GB, free: 14.56 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.4553, allocations: 0 / 0.548 GB, free: 14.56 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.4553, allocations: 0 / 0.548 GB, free: 14.56 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.88e-05/0.4554, allocations: 51.67 kB / 0.5481 GB, free: 14.51 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.982e-05/0.4555, allocations: 0 / 0.5481 GB, free: 14.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002339/0.4557, allocations: 23.97 kB / 0.5481 GB, free: 14.49 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.565e-05/0.4558, allocations: 23.95 kB / 0.5481 GB, free: 14.46 MB / 462.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:534:7-536:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): Pump.w = 2.0 * Pump.w_single 2/2 (1): Pump.q_single = Pump.w_single / Pump.rho 3/3 (1): Pump.head = if noEvent(Pump.s > 0.0) or not Pump.CheckValve then (Pump.n / 1500.0) ^ 2.0 * ThermoPower.Test.WaterComponents.WaterPump.Pump.flowCharacteristic(Pump.q_single * 1500.0 / (Pump.n + 1e-6), {0.0, 0.001, 0.0015}, {60.0, 30.0, 0.0}) else (Pump.n / 1500.0) ^ 2.0 * 60.0 - Pump.s * 30.59148638933785 4/4 (1): Pump.head = 0.10197162129779283 * Pump.dp / Pump.rho 5/5 (1): Pump.dp = Pump.outfl.p - Source.p0 6/6 (1): Pump.w = Valve.Kv * Step.y * (Pump.outfl.p - Sink.p) 7/7 (1): Pump.hin = if Pump.w >= 0.0 then Source.h else Sink.h 8/8 (16): $cse1 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(Source.p0, Pump.hin, 0, 0) 9/24 (1): Pump.rho = $cse1.rho 10/25 (1): Pump.q_single = if noEvent(Pump.s > 0.0) or not Pump.CheckValve then 5e-4 * Pump.s else 0.0 Variables: 1: Pump.s:VARIABLE(start = 1.0 unit = \"1\" ) \"Auxiliary non-dimensional variable\" type: Real 2: Pump.rho:VARIABLE(min = 0.0 max = 1e5 start = 1000.0 unit = \"kg/m3\" nominal = 1000.0 ) \"Liquid density\" type: Real 3: $cse1.dpT:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse1.region:DISCRETE(protected = true ) type: Integer unreplaceable 5: $cse1.pd:VARIABLE(protected = true ) type: Real unreplaceable 6: $cse1.vp:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse1.phase:DISCRETE(protected = true ) type: Integer unreplaceable 8: $cse1.rho:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse1.vt:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse1.cp:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse1.p:VARIABLE(protected = true ) type: Real unreplaceable 12: $cse1.T:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse1.R_s:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse1.s:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse1.x:VARIABLE(protected = true ) type: Real unreplaceable 16: $cse1.pt:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse1.h:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse1.cv:VARIABLE(protected = true ) type: Real unreplaceable 19: Pump.hin:VARIABLE(min = -1e10 max = 1e10 start = 1e5 unit = \"J/kg\" nominal = 5e5 ) \"Enthalpy of entering fluid\" type: Real 20: Pump.w:VARIABLE(min = -1e5 max = 1e5 unit = \"kg/s\" ) \"Mass flow rate (total)\" type: Real 21: Pump.outfl.p:VARIABLE(flow=false min = 611.657 max = 1e8 start = 5e6 unit = \"Pa\" nominal = 1e6 ) \"Thermodynamic pressure in the connection point\" type: Real 22: Pump.dp:VARIABLE(unit = \"Pa\" ) \"Outlet pressure minus inlet pressure\" type: Real 23: Pump.head:VARIABLE(min = 0.0 unit = \"m\" ) \"Pump head\" type: Real 24: Pump.q_single:VARIABLE(start = 5e-4 * Pump.wstart unit = \"m3/s\" ) \"Volume flow rate (single pump)\" type: Real 25: Pump.w_single:VARIABLE(min = -1e5 max = 1e5 start = 0.5 * Pump.wstart unit = \"kg/s\" ) \"Mass flow rate (single pump)\" type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9818:5-9819:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001023/0.4568, allocations: 445.6 kB / 0.5486 GB, free: 14.03 MB / 462.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model ThermoPower.Test.WaterComponents.WaterPump could not be translated " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.7914530789712444] Failed to read output from testmodel.py, exit status != 0: 0.46737729699816555 0.48091795600000004 0.105820038 Calling exit ...