Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007168/0.0007168, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001012/0.001729, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0006863/0.0006863, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009879/0.001674, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8887/0.8887, allocations: 177.5 MB / 190 MB, free: 4.812 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07924/0.968, allocations: 53.87 MB / 243.9 MB, free: 14.86 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") translateModel(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.578e-06/1.067e-05, allocations: 5.406 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.003574/0.003585, allocations: 4.855 MB / 250 MB, free: 8.711 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.005718, allocations: 1.421 MB / 251.5 MB, free: 7.281 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002055/0.005923, allocations: 15.88 kB / 251.5 MB, free: 7.266 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.006148, allocations: 154.6 kB / 251.6 MB, free: 7.113 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004096/0.006557, allocations: 361.1 kB / 252 MB, free: 6.758 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.006884, allocations: 223.5 kB / 252.2 MB, free: 6.539 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006443/0.007528, allocations: 1.077 MB / 253.3 MB, free: 5.461 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002213/0.00775, allocations: 216.2 kB / 253.5 MB, free: 5.23 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005547/0.008304, allocations: 0.7178 MB / 254.2 MB, free: 4.508 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002803/0.008585, allocations: 323.1 kB / 254.5 MB, free: 4.191 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.264e-05/0.008677, allocations: 88 kB / 254.6 MB, free: 4.105 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.008778, allocations: 88 kB / 254.7 MB, free: 4.02 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.64e-05/0.008864, allocations: 147.5 kB / 254.8 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.009053, allocations: 279.5 kB / 255.1 MB, free: 3.602 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004612/0.009515, allocations: 0.6306 MB / 255.7 MB, free: 2.969 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.009523, allocations: 3.938 kB / 255.8 MB, free: 2.965 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.009524, allocations: 0 / 255.8 MB, free: 2.965 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.009534, allocations: 0 / 255.8 MB, free: 2.965 MB / 250.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.001095/0.01063, allocations: 1.299 MB / 257 MB, free: 1.621 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 1.947e-05/0.01065, allocations: 8.625 kB / 257.1 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.01075, allocations: 112.8 kB / 257.2 MB, free: 1.504 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003229/0.01107, allocations: 357.5 kB / 257.5 MB, free: 1.125 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.984e-05/0.01116, allocations: 156.6 kB / 257.7 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.661e-05/0.01122, allocations: 64.38 kB / 257.7 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009487/0.01217, allocations: 1.379 MB / 259.1 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/0.01218, allocations: 4.141 kB / 259.1 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.01221, allocations: 28.12 kB / 259.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.01222, allocations: 16 kB / 259.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002099/0.01243, allocations: 174.8 kB / 259.3 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.01374, allocations: 1.24 MB / 260.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002927/0.01403, allocations: 249.8 kB / 260.8 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.89e-05/0.01413, allocations: 94.33 kB / 260.9 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.01416, allocations: 16.48 kB / 260.9 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001862/0.01435, allocations: 198.2 kB / 261.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.323e-06/0.01435, allocations: 0 / 261.1 MB, free: 13.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001495/0.01584, allocations: 0.8074 MB / 261.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.795e-05/0.01587, allocations: 59.91 kB / 262 MB, free: 12.24 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002559/0.01613, allocations: 483.1 kB / 262.5 MB, free: 11.76 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.01616, allocations: 41.7 kB / 262.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.01627, allocations: 266.3 kB / 262.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.641e-05/0.01637, allocations: 206.2 kB / 263 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.01648, allocations: 130.2 kB / 263.1 MB, free: 11.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.01658, allocations: 386.6 kB / 263.5 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.01669, allocations: 124.6 kB / 263.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004242/0.01711, allocations: 1.157 MB / 264.7 MB, free: 9.113 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005043/0.01762, allocations: 333.7 kB / 265.1 MB, free: 8.742 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.01762, allocations: 0 / 265.1 MB, free: 8.742 MB / 266.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0005794/0.0182, allocations: 0.5532 MB / 265.6 MB, free: 8.152 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.01823, allocations: 59.41 kB / 265.7 MB, free: 8.082 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.01824, allocations: 7.984 kB / 265.7 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002563/0.0185, allocations: 145.8 kB / 265.8 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003123/0.01881, allocations: 135.8 kB / 266 MB, free: 7.793 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/0.02106, allocations: 3.29 MB / 269.2 MB, free: 4.332 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.02133, allocations: 75.59 kB / 269.3 MB, free: 4.258 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.02136, allocations: 19.98 kB / 269.3 MB, free: 4.238 MB / 266.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.0001291/0.02148, allocations: 161.7 kB / 269.5 MB, free: 4.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.318e-05/0.02156, allocations: 75.86 kB / 269.6 MB, free: 3.996 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.598e-05/0.02162, allocations: 70.56 kB / 269.6 MB, free: 3.926 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.02163, allocations: 4 kB / 269.6 MB, free: 3.922 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.02163, allocations: 0 / 269.6 MB, free: 3.922 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005533/0.02218, allocations: 0.7181 MB / 270.4 MB, free: 3.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007943/0.02298, allocations: 0.8138 MB / 271.2 MB, free: 2.238 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.02298, allocations: 3.938 kB / 271.2 MB, free: 2.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002918/0.02327, allocations: 128.5 kB / 271.3 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/0.0234, allocations: 83.38 kB / 271.4 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001906/0.02359, allocations: 113.6 kB / 271.5 MB, free: 1.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.02361, allocations: 12 kB / 271.5 MB, free: 1.898 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001901/0.02551, allocations: 2.942 MB / 274.5 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.02551, allocations: 0 / 274.5 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000487/0.026, allocations: 0.5238 MB / 275 MB, free: 14.23 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.126e-05/0.02605, allocations: 19.94 kB / 275 MB, free: 14.21 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.02628, allocations: 31.97 kB / 275 MB, free: 14.18 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.483e-05/0.02635, allocations: 60.48 kB / 275.1 MB, free: 14.12 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.69e-05/0.02637, allocations: 19.92 kB / 275.1 MB, free: 14.11 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001536/0.02652, allocations: 220.3 kB / 275.3 MB, free: 13.89 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02652, allocations: 0 / 275.3 MB, free: 13.89 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003907/0.02692, allocations: 259.7 kB / 275.6 MB, free: 13.64 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 9.004e-05/0.02701, allocations: 104.4 kB / 275.7 MB, free: 13.53 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006205/0.02763, allocations: 0.8049 MB / 276.5 MB, free: 12.66 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/0.02764, allocations: 16.19 kB / 276.5 MB, free: 12.64 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003037/0.02794, allocations: 454.6 kB / 276.9 MB, free: 12.17 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.02906, allocations: 1.99 MB / 278.9 MB, free: 9.785 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008927/0.03799, allocations: 1.269 MB / 280.2 MB, free: 8.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000101/0.03809, allocations: 152.7 kB / 280.3 MB, free: 8.312 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002093/0.0383, allocations: 85.2 kB / 280.4 MB, free: 8.227 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004906/0.03879, allocations: 349.1 kB / 280.8 MB, free: 7.883 MB / 282.7 MB Notification: Performance of SimCode: time 6.62e-07/0.03879, allocations: 0 / 280.8 MB, free: 7.883 MB / 282.7 MB Notification: Performance of Templates: time 0.1032/0.142, allocations: 20.01 MB / 300.8 MB, free: 33.16 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/FluidHeatFlow/Examples/WaterPump/WaterPump.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.02826826274395]