Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.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.001015/0.001015, allocations: 83.59 kB / 21.18 MB, free: 3.383 MB / 18.57 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.0009239/0.0009239, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 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 0.9457/0.9457, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|speed.phi",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.19e-05/1.3e-05, allocations: 2.312 kB / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004039/0.004052, allocations: 4.849 MB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002242/0.006295, allocations: 1.37 MB / 279.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003005/0.006595, allocations: 11.94 kB / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000324/0.006919, allocations: 150.6 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00056/0.007479, allocations: 361.1 kB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004449/0.007924, allocations: 223.5 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009047/0.008829, allocations: 1.068 MB / 281 MB, free: 9.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002624/0.009091, allocations: 202.3 kB / 281.2 MB, free: 9.293 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001011/0.0101, allocations: 0.6159 MB / 281.8 MB, free: 8.676 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003512/0.01045, allocations: 319.1 kB / 282.1 MB, free: 8.363 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.977e-05/0.01054, allocations: 84 kB / 282.2 MB, free: 8.281 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.01064, allocations: 92 kB / 282.3 MB, free: 8.191 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.01075, allocations: 203.3 kB / 282.5 MB, free: 7.992 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002392/0.01099, allocations: 335.3 kB / 282.8 MB, free: 7.664 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005946/0.01158, allocations: 0.7084 MB / 283.5 MB, free: 6.953 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.01159, allocations: 0 / 283.5 MB, free: 6.953 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.01159, allocations: 0 / 283.5 MB, free: 6.953 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.0116, allocations: 0 / 283.5 MB, free: 6.953 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.001364/0.01297, allocations: 1.248 MB / 284.8 MB, free: 5.652 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.013, allocations: 12.03 kB / 284.8 MB, free: 5.641 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001626/0.01316, allocations: 144.4 kB / 284.9 MB, free: 5.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000474/0.01364, allocations: 448.2 kB / 285.4 MB, free: 5.031 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001233/0.01376, allocations: 156.7 kB / 285.5 MB, free: 4.855 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.792e-05/0.01383, allocations: 60.38 kB / 285.6 MB, free: 4.797 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009327/0.01476, allocations: 1.487 MB / 287.1 MB, free: 2.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.01478, allocations: 192 / 287.1 MB, free: 2.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.301e-05/0.01482, allocations: 32.12 kB / 287.1 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.01483, allocations: 15.94 kB / 287.1 MB, free: 2.934 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003816/0.01521, allocations: 257.8 kB / 287.4 MB, free: 2.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/0.01727, allocations: 1.712 MB / 289.1 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004637/0.01773, allocations: 318.7 kB / 289.4 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.0179, allocations: 133.1 kB / 289.5 MB, free: 432 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.424e-05/0.01793, allocations: 20.44 kB / 289.5 MB, free: 412 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002708/0.0182, allocations: 223.9 kB / 289.7 MB, free: 168 kB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.824e-06/0.0182, allocations: 4 kB / 289.8 MB, free: 164 kB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001974/0.02018, allocations: 0.9845 MB / 290.7 MB, free: 15.17 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000208/0.02039, allocations: 0.8271 MB / 291.6 MB, free: 14.14 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004212/0.02081, allocations: 0.5806 MB / 292.1 MB, free: 13.55 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.02085, allocations: 37.7 kB / 292.2 MB, free: 13.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/0.02104, allocations: 403.8 kB / 292.6 MB, free: 13.1 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.02114, allocations: 194.3 kB / 292.8 MB, free: 12.91 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.02127, allocations: 143.9 kB / 292.9 MB, free: 12.76 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.02142, allocations: 0.5547 MB / 293.5 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001842/0.0216, allocations: 156.6 kB / 293.6 MB, free: 12.03 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005444/0.02214, allocations: 1.295 MB / 294.9 MB, free: 10.37 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006278/0.02277, allocations: 406 kB / 295.3 MB, free: 9.914 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.02278, allocations: 0 / 295.3 MB, free: 9.914 MB / 282.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008921/0.02367, allocations: 0.7178 MB / 296 MB, free: 9.16 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.276e-05/0.0237, allocations: 59.41 kB / 296.1 MB, free: 9.09 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.02371, allocations: 4 kB / 296.1 MB, free: 9.086 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003317/0.02404, allocations: 171.2 kB / 296.3 MB, free: 8.91 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002694/0.02431, allocations: 115.7 kB / 296.4 MB, free: 8.797 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003419/0.02773, allocations: 4.711 MB / 301.1 MB, free: 3.848 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004098/0.02814, allocations: 71.59 kB / 301.1 MB, free: 3.777 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.096e-05/0.02818, allocations: 27.98 kB / 301.2 MB, free: 3.75 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.0001682/0.02834, allocations: 204.5 kB / 301.4 MB, free: 3.539 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.711e-05/0.02843, allocations: 91.58 kB / 301.5 MB, free: 3.449 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.627e-05/0.0285, allocations: 70.56 kB / 301.5 MB, free: 3.379 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.0285, allocations: 12 kB / 301.5 MB, free: 3.367 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.0285, allocations: 4 kB / 301.5 MB, free: 3.363 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000745/0.02925, allocations: 0.8358 MB / 302.4 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.03038, allocations: 1.18 MB / 303.6 MB, free: 1.164 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.03039, allocations: 0 / 303.6 MB, free: 1.164 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002729/0.03066, allocations: 95.88 kB / 303.7 MB, free: 1.07 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002144/0.03087, allocations: 127.2 kB / 303.8 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.0309, allocations: 12 kB / 303.8 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1105/0.1414, allocations: 4.299 MB / 308.1 MB, free: 32.62 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.1414, allocations: 0.75 kB / 308.1 MB, free: 32.62 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.1424, allocations: 0.7257 MB / 308.8 MB, free: 32.41 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002425/0.1427, allocations: 138 kB / 309 MB, free: 32.41 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.901e-05/0.1428, allocations: 15.98 kB / 309 MB, free: 32.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/0.1431, allocations: 42.44 kB / 309 MB, free: 32.41 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.1432, allocations: 57.09 kB / 309.1 MB, free: 32.41 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.1433, allocations: 17.3 kB / 309.1 MB, free: 32.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003281/0.1436, allocations: 372.9 kB / 309.4 MB, free: 32.28 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1436, allocations: 0.7188 kB / 309.4 MB, free: 32.28 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007068/0.1443, allocations: 257.5 kB / 309.7 MB, free: 32.27 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.0001251/0.1444, allocations: 121 kB / 309.8 MB, free: 32.19 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.1455, allocations: 0.9765 MB / 310.8 MB, free: 31.61 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.1455, allocations: 2.531 kB / 310.8 MB, free: 31.61 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004386/0.1459, allocations: 0.5654 MB / 311.4 MB, free: 31.24 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006956/0.1466, allocations: 218 kB / 311.6 MB, free: 31.23 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.1489, allocations: 1.239 MB / 312.8 MB, free: 30.67 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.149, allocations: 150.4 kB / 313 MB, free: 30.6 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002809/0.1493, allocations: 82.14 kB / 313 MB, free: 30.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.1494, allocations: 54.62 kB / 313.1 MB, free: 30.58 MB / 282.7 MB Notification: Performance of SimCode: time 6.81e-07/0.1494, allocations: 0 / 313.1 MB, free: 30.58 MB / 282.7 MB Notification: Performance of Templates: time 0.02257/0.172, allocations: 17.8 MB / 330.9 MB, free: 20.48 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.sim & ./Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.189676049631089]