Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.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.001432/0.001432, allocations: 76.06 kB / 21.69 MB, free: 2.855 MB / 18.57 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.000941/0.000941, allocations: 147.8 kB / 24.98 MB, free: 9.312 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9163/0.9163, allocations: 173.3 MB / 201.5 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 3.938 kB / 268.1 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.218e-05/2.399e-05, allocations: 6.25 kB / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006439/0.006463, allocations: 4.83 MB / 272.9 MB, free: 1.883 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002945/0.009408, allocations: 1.335 MB / 274.2 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003797/0.009788, allocations: 15.88 kB / 274.2 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004419/0.01023, allocations: 162.6 kB / 274.4 MB, free: 372 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001054/0.01128, allocations: 357.1 kB / 274.7 MB, free: 12 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000531/0.01181, allocations: 215.5 kB / 275 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001196/0.01301, allocations: 1.069 MB / 276 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003715/0.01338, allocations: 198.3 kB / 276.2 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008242/0.01421, allocations: 0.6003 MB / 276.8 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000442/0.01465, allocations: 339 kB / 277.2 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.82e-05/0.01475, allocations: 88 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.026e-05/0.01484, allocations: 88 kB / 277.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.01494, allocations: 203.3 kB / 277.5 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002455/0.01519, allocations: 343.2 kB / 277.9 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005931/0.01578, allocations: 0.7085 MB / 278.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.01579, allocations: 3.938 kB / 278.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.01579, allocations: 0 / 278.6 MB, free: 12.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.0158, allocations: 0 / 278.6 MB, free: 12.17 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 127 * Number of variables: 127 Notification: Performance of Generate backend data structure: time 0.001391/0.01719, allocations: 1.252 MB / 279.8 MB, free: 10.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.01722, allocations: 8.922 kB / 279.8 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001684/0.01739, allocations: 152.3 kB / 280 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005228/0.01792, allocations: 465 kB / 280.4 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001177/0.01803, allocations: 148.7 kB / 280.6 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.43e-05/0.01811, allocations: 68.38 kB / 280.6 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009891/0.0191, allocations: 1.483 MB / 282.1 MB, free: 8.176 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.01911, allocations: 4.188 kB / 282.1 MB, free: 8.172 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.496e-05/0.01916, allocations: 28.12 kB / 282.2 MB, free: 8.145 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.01917, allocations: 12 kB / 282.2 MB, free: 8.133 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004349/0.01961, allocations: 257.8 kB / 282.4 MB, free: 7.879 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001997/0.0216, allocations: 1.712 MB / 284.1 MB, free: 6.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005094/0.02211, allocations: 311.7 kB / 284.4 MB, free: 5.766 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001937/0.02231, allocations: 137.1 kB / 284.6 MB, free: 5.629 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.451e-05/0.02234, allocations: 12.5 kB / 284.6 MB, free: 5.617 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003011/0.02264, allocations: 228 kB / 284.8 MB, free: 5.379 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.754e-06/0.02264, allocations: 4 kB / 284.8 MB, free: 5.375 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002128/0.02477, allocations: 0.9912 MB / 285.8 MB, free: 4.367 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000242/0.02501, allocations: 0.8232 MB / 286.6 MB, free: 3.348 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004838/0.0255, allocations: 0.5768 MB / 287.2 MB, free: 2.754 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/0.02554, allocations: 37.7 kB / 287.2 MB, free: 2.711 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002038/0.02574, allocations: 403.8 kB / 287.6 MB, free: 2.309 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.02585, allocations: 190.3 kB / 287.8 MB, free: 2.121 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.02599, allocations: 136 kB / 288 MB, free: 1.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.02615, allocations: 0.5508 MB / 288.5 MB, free: 1.418 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/0.02636, allocations: 160.6 kB / 288.7 MB, free: 1.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006487/0.02701, allocations: 1.306 MB / 290 MB, free: 15.58 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004484/0.02746, allocations: 394.1 kB / 290.4 MB, free: 15.14 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.02747, allocations: 4 kB / 290.4 MB, free: 15.13 MB / 282.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009626/0.02843, allocations: 0.7294 MB / 291.1 MB, free: 14.36 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.011e-05/0.02847, allocations: 59.39 kB / 291.1 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.02847, allocations: 4 kB / 291.1 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000359/0.02883, allocations: 163.2 kB / 291.3 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002903/0.02912, allocations: 115.8 kB / 291.4 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00361/0.03273, allocations: 4.708 MB / 296.1 MB, free: 9.066 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.03305, allocations: 71.64 kB / 296.2 MB, free: 8.996 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.895e-05/0.03308, allocations: 20 kB / 296.2 MB, free: 8.977 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (oneWayValve.backward,trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(9,3), (1,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0001855/0.03327, allocations: 208.4 kB / 296.4 MB, free: 8.762 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.082e-05/0.03336, allocations: 99.52 kB / 296.5 MB, free: 8.664 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.745e-05/0.03344, allocations: 78.55 kB / 296.6 MB, free: 8.578 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.03344, allocations: 8 kB / 296.6 MB, free: 8.57 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.03344, allocations: 0 / 296.6 MB, free: 8.57 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008226/0.03427, allocations: 0.828 MB / 297.4 MB, free: 7.633 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.03566, allocations: 1.184 MB / 298.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.03567, allocations: 0 / 298.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002736/0.03594, allocations: 95.88 kB / 298.7 MB, free: 6.289 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002287/0.03617, allocations: 127.3 kB / 298.8 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.03619, allocations: 16 kB / 298.8 MB, free: 6.141 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002739/0.03893, allocations: 4.312 MB / 303.2 MB, free: 1.59 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.03894, allocations: 8.109 kB / 303.2 MB, free: 1.582 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000875/0.03981, allocations: 0.7431 MB / 303.9 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001774/0.03999, allocations: 135.4 kB / 304 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.641e-05/0.04005, allocations: 12 kB / 304.1 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002793/0.04032, allocations: 39.97 kB / 304.1 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.04044, allocations: 52.39 kB / 304.1 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.978e-05/0.04046, allocations: 16.03 kB / 304.2 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002826/0.04074, allocations: 378.7 kB / 304.5 MB, free: 196 kB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04074, allocations: 0 / 304.5 MB, free: 196 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.09496/0.1357, allocations: 254.2 kB / 304.8 MB, free: 46.07 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (speed.phi) * Number of discrete variables: 4 ($whenCondition1,trapezoid.T_start,trapezoid.count,oneWayValve.backward) * Number of discrete states: 1 (trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,3), (1,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000189/0.1359, allocations: 112.2 kB / 304.9 MB, free: 45.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001216/0.1371, allocations: 0.9747 MB / 305.9 MB, free: 45.41 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.1371, allocations: 3.094 kB / 305.9 MB, free: 45.41 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004641/0.1376, allocations: 0.5661 MB / 306.4 MB, free: 45.05 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006645/0.1382, allocations: 209.9 kB / 306.6 MB, free: 45.04 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.1403, allocations: 1.237 MB / 307.9 MB, free: 44.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.1404, allocations: 158.7 kB / 308 MB, free: 44.42 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000246/0.1407, allocations: 86.94 kB / 308.1 MB, free: 44.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.1408, allocations: 52.8 kB / 308.2 MB, free: 44.41 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.1408, allocations: 0 / 308.2 MB, free: 44.41 MB / 282.7 MB Notification: Performance of Templates: time 0.01735/0.1581, allocations: 16.91 MB / 325.1 MB, free: 35.24 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2087780069559813]