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.001347/0.001347, allocations: 85.17 kB / 21.5 MB, free: 2.988 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.001289/0.001289, allocations: 143.2 kB / 24.89 MB, free: 8.789 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.8726/0.8726, allocations: 173.4 MB / 201.5 MB, free: 8.238 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.703e-06/1.703e-06, allocations: 0 / 268.5 MB, free: 9.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.464e-05/1.634e-05, allocations: 8.984 kB / 268.5 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.003787/0.003803, allocations: 4.761 MB / 273.2 MB, free: 5.023 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.005406, allocations: 1.386 MB / 274.6 MB, free: 3.645 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001858/0.005591, allocations: 7.938 kB / 274.6 MB, free: 3.637 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002797/0.005871, allocations: 158.7 kB / 274.8 MB, free: 3.48 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000442/0.006313, allocations: 369 kB / 275.1 MB, free: 3.117 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.006601, allocations: 219.5 kB / 275.4 MB, free: 2.902 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007095/0.00731, allocations: 1.081 MB / 276.4 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002488/0.007559, allocations: 212.3 kB / 276.6 MB, free: 1.59 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006576/0.008217, allocations: 0.608 MB / 277.2 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002934/0.00851, allocations: 323.1 kB / 277.6 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.284e-05/0.008593, allocations: 88 kB / 277.6 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.439e-05/0.008677, allocations: 88 kB / 277.7 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.008784, allocations: 195.3 kB / 277.9 MB, free: 308 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002259/0.009009, allocations: 343.3 kB / 278.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000494/0.009504, allocations: 0.6967 MB / 279 MB, free: 15.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.009506, allocations: 4 kB / 279 MB, free: 15.26 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.009506, allocations: 0 / 279 MB, free: 15.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.009513, allocations: 0 / 279 MB, free: 15.26 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.001075/0.01059, allocations: 1.108 MB / 280.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.01062, allocations: 8.031 kB / 280.1 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.01073, allocations: 112.8 kB / 280.2 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.01112, allocations: 357.4 kB / 280.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.01122, allocations: 144.7 kB / 280.7 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.637e-05/0.01129, allocations: 80.36 kB / 280.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007134/0.012, allocations: 1.375 MB / 282.1 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.339e-05/0.01202, allocations: 192 / 282.1 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.965e-05/0.01205, allocations: 32.12 kB / 282.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.01206, allocations: 16 kB / 282.2 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002192/0.01228, allocations: 166.9 kB / 282.3 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00143/0.01371, allocations: 1.236 MB / 283.6 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/0.01403, allocations: 241.9 kB / 283.8 MB, free: 9.957 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001048/0.01414, allocations: 98.33 kB / 283.9 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.278e-05/0.01417, allocations: 16.48 kB / 283.9 MB, free: 9.844 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.01439, allocations: 206.1 kB / 284.1 MB, free: 9.633 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.533e-06/0.01439, allocations: 0 / 284.1 MB, free: 9.633 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001541/0.01593, allocations: 0.7996 MB / 284.9 MB, free: 8.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002146/0.01615, allocations: 0.8232 MB / 285.7 MB, free: 7.797 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.01641, allocations: 475.1 kB / 286.2 MB, free: 7.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.01645, allocations: 45.7 kB / 286.3 MB, free: 7.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.01656, allocations: 266.3 kB / 286.5 MB, free: 7 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.363e-05/0.01666, allocations: 206.2 kB / 286.7 MB, free: 6.797 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.01677, allocations: 130.3 kB / 286.8 MB, free: 6.664 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.965e-05/0.01687, allocations: 390.5 kB / 287.2 MB, free: 6.273 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.01698, allocations: 116.7 kB / 287.3 MB, free: 6.145 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004291/0.01741, allocations: 1.161 MB / 288.5 MB, free: 4.672 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002555/0.01767, allocations: 325.7 kB / 288.8 MB, free: 4.312 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.01767, allocations: 4 kB / 288.8 MB, free: 4.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000594/0.01827, allocations: 0.5415 MB / 289.4 MB, free: 3.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.055e-05/0.01831, allocations: 67.39 kB / 289.4 MB, free: 3.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.01831, allocations: 0 / 289.4 MB, free: 3.652 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002671/0.01858, allocations: 141.8 kB / 289.6 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002507/0.01883, allocations: 111.8 kB / 289.7 MB, free: 3.398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002368/0.0212, allocations: 3.296 MB / 293 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002574/0.02146, allocations: 67.7 kB / 293 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.354e-05/0.02148, allocations: 16 kB / 293.1 MB, free: 15.85 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.0001361/0.02162, allocations: 157.8 kB / 293.2 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.106e-05/0.02169, allocations: 79.84 kB / 293.3 MB, free: 15.61 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.33e-05/0.02176, allocations: 78.5 kB / 293.4 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.02176, allocations: 8 kB / 293.4 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.02177, allocations: 0 / 293.4 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005765/0.02234, allocations: 0.7141 MB / 294.1 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000828/0.02317, allocations: 0.8177 MB / 294.9 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.02317, allocations: 0 / 294.9 MB, free: 13.83 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/0.02341, allocations: 103.9 kB / 295 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001807/0.0236, allocations: 109.6 kB / 295.1 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.02361, allocations: 7.938 kB / 295.1 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001701/0.02532, allocations: 2.941 MB / 298.1 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.02532, allocations: 0 / 298.1 MB, free: 10.5 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005067/0.02582, allocations: 0.5276 MB / 298.6 MB, free: 9.949 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001389/0.02596, allocations: 83.48 kB / 298.7 MB, free: 9.867 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.585e-05/0.02602, allocations: 23.98 kB / 298.7 MB, free: 9.844 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.02624, allocations: 31.97 kB / 298.7 MB, free: 9.812 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.017e-05/0.02632, allocations: 56.34 kB / 298.8 MB, free: 9.758 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.02634, allocations: 15.98 kB / 298.8 MB, free: 9.742 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001433/0.02648, allocations: 212.4 kB / 299 MB, free: 9.535 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.02648, allocations: 0 / 299 MB, free: 9.535 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004218/0.0269, allocations: 259.7 kB / 299.3 MB, free: 9.281 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.0001173/0.02702, allocations: 112.2 kB / 299.4 MB, free: 9.164 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006682/0.02769, allocations: 0.7886 MB / 300.2 MB, free: 8.309 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/0.0277, allocations: 8.125 kB / 300.2 MB, free: 8.301 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003035/0.028, allocations: 437.6 kB / 300.6 MB, free: 7.844 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004313/0.02843, allocations: 211.3 kB / 300.8 MB, free: 7.637 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/0.03012, allocations: 1.244 MB / 302 MB, free: 6.363 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.002e-05/0.03021, allocations: 152.5 kB / 302.2 MB, free: 6.195 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001773/0.03039, allocations: 85.06 kB / 302.3 MB, free: 6.113 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004594/0.03085, allocations: 341.1 kB / 302.6 MB, free: 5.777 MB / 282.7 MB Notification: Performance of SimCode: time 1.282e-06/0.03085, allocations: 0 / 302.6 MB, free: 5.777 MB / 282.7 MB Notification: Performance of Templates: time 0.01764/0.04849, allocations: 17.79 MB / 320.4 MB, free: 4.355 MB / 298.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.178899333346635]