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.001015/0.001015, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.001095/0.001095, allocations: 143.4 kB / 24.89 MB, free: 8.742 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 1.035/1.035, allocations: 173.4 MB / 201.5 MB, free: 8.273 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.563e-06/1.563e-06, allocations: 0 / 268.5 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.412e-05/2.568e-05, allocations: 3.531 kB / 268.5 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004775/0.0048, allocations: 4.806 MB / 273.3 MB, free: 4.941 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002271/0.007071, allocations: 1.405 MB / 274.7 MB, free: 3.539 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002225/0.007294, allocations: 7.938 kB / 274.7 MB, free: 3.531 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003108/0.007605, allocations: 150.6 kB / 274.9 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005379/0.008143, allocations: 369.1 kB / 275.2 MB, free: 3.02 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003615/0.008504, allocations: 215.5 kB / 275.4 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008501/0.009354, allocations: 1.081 MB / 276.5 MB, free: 1.723 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002553/0.009609, allocations: 212.3 kB / 276.7 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005674/0.01018, allocations: 0.6042 MB / 277.3 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003276/0.0105, allocations: 327.1 kB / 277.7 MB, free: 0.5664 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.655e-05/0.01059, allocations: 84 kB / 277.7 MB, free: 496 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.685e-05/0.01068, allocations: 92 kB / 277.8 MB, free: 404 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.98e-05/0.01078, allocations: 199.2 kB / 278 MB, free: 204 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002405/0.01102, allocations: 331.3 kB / 278.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005574/0.01158, allocations: 0.7006 MB / 279 MB, free: 15.17 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.01158, allocations: 0 / 279 MB, free: 15.17 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01158, allocations: 4 kB / 279 MB, free: 15.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.01159, allocations: 0 / 279 MB, free: 15.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.001132/0.01272, allocations: 1.108 MB / 280.2 MB, free: 14.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.999e-05/0.01275, allocations: 8.031 kB / 280.2 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.01289, allocations: 112.8 kB / 280.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.0133, allocations: 357.4 kB / 280.6 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.01341, allocations: 148.7 kB / 280.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.289e-05/0.01347, allocations: 68.38 kB / 280.8 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007647/0.01423, allocations: 1.379 MB / 282.2 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.01425, allocations: 192 / 282.2 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.642e-05/0.01428, allocations: 32.12 kB / 282.2 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.01429, allocations: 12 kB / 282.3 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002342/0.01453, allocations: 174.8 kB / 282.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.01608, allocations: 1.24 MB / 283.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003231/0.01641, allocations: 238 kB / 283.9 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.01652, allocations: 102.3 kB / 284 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.01654, allocations: 8.5 kB / 284 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002019/0.01675, allocations: 206.1 kB / 284.2 MB, free: 9.543 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.973e-06/0.01675, allocations: 0 / 284.2 MB, free: 9.543 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001591/0.01834, allocations: 0.8035 MB / 285 MB, free: 8.727 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00022/0.01856, allocations: 0.8232 MB / 285.8 MB, free: 7.703 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004206/0.01898, allocations: 479.1 kB / 286.3 MB, free: 7.223 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.01902, allocations: 45.7 kB / 286.4 MB, free: 7.172 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.01914, allocations: 266.2 kB / 286.6 MB, free: 6.902 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.498e-05/0.01923, allocations: 198.2 kB / 286.8 MB, free: 6.707 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.01936, allocations: 126.3 kB / 286.9 MB, free: 6.578 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.01946, allocations: 394.6 kB / 287.3 MB, free: 6.184 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.01957, allocations: 116.7 kB / 287.4 MB, free: 6.055 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004403/0.02001, allocations: 1.157 MB / 288.6 MB, free: 4.586 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/0.02028, allocations: 325.7 kB / 288.9 MB, free: 4.227 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.02029, allocations: 0 / 288.9 MB, free: 4.227 MB / 266.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006124/0.0209, allocations: 0.5533 MB / 289.5 MB, free: 3.637 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.02094, allocations: 55.41 kB / 289.5 MB, free: 3.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.02094, allocations: 7.984 kB / 289.5 MB, free: 3.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002771/0.02122, allocations: 145.8 kB / 289.7 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003146/0.02153, allocations: 131.8 kB / 289.8 MB, free: 3.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002553/0.02409, allocations: 3.314 MB / 293.1 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002681/0.02436, allocations: 67.7 kB / 293.2 MB, free: 15.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.02438, allocations: 12 kB / 293.2 MB, free: 15.72 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.0001366/0.02452, allocations: 165.6 kB / 293.3 MB, free: 15.55 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.389e-05/0.02458, allocations: 79.86 kB / 293.4 MB, free: 15.47 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.597e-05/0.02465, allocations: 70.56 kB / 293.5 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.02465, allocations: 8 kB / 293.5 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.02465, allocations: 0 / 293.5 MB, free: 15.39 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005737/0.02523, allocations: 0.718 MB / 294.2 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008463/0.02607, allocations: 0.8178 MB / 295 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.02608, allocations: 3.938 kB / 295 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002971/0.02637, allocations: 115.8 kB / 295.1 MB, free: 13.59 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001874/0.02656, allocations: 105.6 kB / 295.3 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.02658, allocations: 15.94 kB / 295.3 MB, free: 13.46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001807/0.02839, allocations: 2.949 MB / 298.2 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.02839, allocations: 0 / 298.2 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005384/0.02893, allocations: 0.5276 MB / 298.7 MB, free: 9.793 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.02907, allocations: 83.44 kB / 298.8 MB, free: 9.711 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.159e-05/0.02912, allocations: 19.92 kB / 298.8 MB, free: 9.691 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.02935, allocations: 35.97 kB / 298.9 MB, free: 9.656 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.571e-05/0.02944, allocations: 52.41 kB / 298.9 MB, free: 9.605 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/0.02946, allocations: 11.98 kB / 298.9 MB, free: 9.594 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001499/0.02961, allocations: 220.4 kB / 299.2 MB, free: 9.379 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02961, allocations: 0 / 299.2 MB, free: 9.379 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004536/0.03006, allocations: 251.7 kB / 299.4 MB, free: 9.133 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.0001074/0.03017, allocations: 108.4 kB / 299.5 MB, free: 9.02 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008341/0.03101, allocations: 0.8042 MB / 300.3 MB, free: 8.148 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/0.03102, allocations: 8 kB / 300.3 MB, free: 8.141 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003138/0.03133, allocations: 421.6 kB / 300.7 MB, free: 7.699 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004475/0.03178, allocations: 219.4 kB / 300.9 MB, free: 7.484 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001717/0.0335, allocations: 1.249 MB / 302.2 MB, free: 6.207 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001001/0.0336, allocations: 152.6 kB / 302.3 MB, free: 6.039 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002114/0.03381, allocations: 85.12 kB / 302.4 MB, free: 5.957 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004921/0.0343, allocations: 341.1 kB / 302.8 MB, free: 5.621 MB / 282.7 MB Notification: Performance of SimCode: time 7.01e-07/0.0343, allocations: 0 / 302.8 MB, free: 5.621 MB / 282.7 MB Notification: Performance of Templates: time 0.02082/0.05512, allocations: 17.99 MB / 320.8 MB, free: 4 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 -s gbode -gbm=radauIIA3 -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.05724960193038]