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.0009617/0.0009617, allocations: 80.31 kB / 22.21 MB, free: 2.285 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.0009743/0.0009743, allocations: 168.5 kB / 25.61 MB, free: 8.883 MB / 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.9786/0.9786, allocations: 177.2 MB / 206.1 MB, free: 4.527 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.623e-06/1.623e-06, allocations: 3.938 kB / 274.2 MB, free: 4.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.16e-05/2.322e-05, allocations: 2.312 kB / 274.2 MB, free: 4.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.006105/0.006128, allocations: 4.779 MB / 279 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.008148, allocations: 1.369 MB / 280.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002935/0.008441, allocations: 7.938 kB / 280.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003471/0.008788, allocations: 158.7 kB / 280.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005069/0.009295, allocations: 365.1 kB / 280.8 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003551/0.00965, allocations: 215.5 kB / 281.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008034/0.01045, allocations: 1.069 MB / 282.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002568/0.01071, allocations: 198.4 kB / 282.3 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008691/0.01158, allocations: 0.6081 MB / 282.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003284/0.01191, allocations: 331.1 kB / 283.2 MB, free: 11.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.992e-05/0.012, allocations: 88 kB / 283.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.112e-05/0.01209, allocations: 88 kB / 283.4 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.01219, allocations: 195.3 kB / 283.6 MB, free: 11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.01244, allocations: 335.3 kB / 283.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005347/0.01297, allocations: 0.7006 MB / 284.6 MB, free: 9.965 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.01298, allocations: 4 kB / 284.6 MB, free: 9.961 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01298, allocations: 0 / 284.6 MB, free: 9.961 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.01299, allocations: 0 / 284.6 MB, free: 9.961 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.001245/0.01423, allocations: 1.26 MB / 285.9 MB, free: 8.648 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.008e-05/0.01426, allocations: 12.03 kB / 285.9 MB, free: 8.637 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.01442, allocations: 148.3 kB / 286.1 MB, free: 8.492 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004254/0.01484, allocations: 428.2 kB / 286.5 MB, free: 8.043 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.01496, allocations: 156.6 kB / 286.6 MB, free: 7.867 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.945e-05/0.01503, allocations: 72.33 kB / 286.7 MB, free: 7.797 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000816/0.01584, allocations: 1.448 MB / 288.1 MB, free: 6.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.01586, allocations: 192 / 288.1 MB, free: 6.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.23e-05/0.0159, allocations: 40.11 kB / 288.2 MB, free: 5.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.01591, allocations: 12 kB / 288.2 MB, free: 5.969 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002623/0.01617, allocations: 198.8 kB / 288.4 MB, free: 5.773 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00196/0.01813, allocations: 1.619 MB / 290 MB, free: 4.082 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003795/0.01851, allocations: 279.7 kB / 290.3 MB, free: 3.789 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.01864, allocations: 121.1 kB / 290.4 MB, free: 3.668 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.01867, allocations: 8.5 kB / 290.4 MB, free: 3.66 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002226/0.01889, allocations: 203.8 kB / 290.6 MB, free: 3.445 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 3.687e-06/0.01889, allocations: 4 kB / 290.6 MB, free: 3.441 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001859/0.02075, allocations: 0.9209 MB / 291.5 MB, free: 2.508 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000217/0.02097, allocations: 0.8271 MB / 292.4 MB, free: 1.484 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003599/0.02133, allocations: 0.5685 MB / 292.9 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.02137, allocations: 37.7 kB / 293 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.02157, allocations: 411.8 kB / 293.4 MB, free: 456 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.02167, allocations: 202.2 kB / 293.6 MB, free: 252 kB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.02181, allocations: 135.9 kB / 293.7 MB, free: 108 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.02197, allocations: 0.5585 MB / 294.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.02211, allocations: 132.7 kB / 294.4 MB, free: 15.39 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005015/0.02261, allocations: 1.275 MB / 295.7 MB, free: 13.76 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003093/0.02292, allocations: 358 kB / 296 MB, free: 13.35 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.02292, allocations: 0 / 296 MB, free: 13.35 MB / 282.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001018/0.02394, allocations: 0.6709 MB / 296.7 MB, free: 12.64 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.02397, allocations: 63.44 kB / 296.7 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.02398, allocations: 3.984 kB / 296.8 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003105/0.02429, allocations: 159.2 kB / 296.9 MB, free: 12.4 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002876/0.02458, allocations: 115.8 kB / 297 MB, free: 12.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003057/0.02764, allocations: 4.602 MB / 301.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003362/0.02797, allocations: 75.59 kB / 301.7 MB, free: 7.387 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.992e-05/0.028, allocations: 24.09 kB / 301.7 MB, free: 7.363 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.0001735/0.02818, allocations: 208.4 kB / 301.9 MB, free: 7.148 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.208e-05/0.02827, allocations: 95.52 kB / 302 MB, free: 7.055 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.493e-05/0.02834, allocations: 74.56 kB / 302.1 MB, free: 6.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.02835, allocations: 8 kB / 302.1 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.02835, allocations: 0 / 302.1 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000695/0.02905, allocations: 0.789 MB / 302.9 MB, free: 6.07 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.03036, allocations: 1.04 MB / 303.9 MB, free: 4.969 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.03036, allocations: 4 kB / 303.9 MB, free: 4.965 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.03063, allocations: 91.88 kB / 304 MB, free: 4.875 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002184/0.03085, allocations: 131.2 kB / 304.1 MB, free: 4.738 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.03088, allocations: 12 kB / 304.2 MB, free: 4.727 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002248/0.03312, allocations: 4.215 MB / 308.4 MB, free: 292 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.03312, allocations: 0 / 308.4 MB, free: 292 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007244/0.03385, allocations: 0.665 MB / 309 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001735/0.03402, allocations: 143.4 kB / 309.2 MB, free: 15.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.742e-05/0.03408, allocations: 16 kB / 309.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002729/0.03435, allocations: 31.97 kB / 309.2 MB, free: 15.4 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.218e-05/0.03445, allocations: 56.34 kB / 309.3 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.046e-05/0.03447, allocations: 15.98 kB / 309.3 MB, free: 15.33 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002138/0.03468, allocations: 350.6 kB / 309.6 MB, free: 14.99 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.03468, allocations: 0 / 309.6 MB, free: 14.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005651/0.03524, allocations: 255.7 kB / 309.9 MB, free: 14.74 MB / 298.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.0001405/0.03539, allocations: 119.2 kB / 310 MB, free: 14.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.03647, allocations: 0.9499 MB / 311 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.03647, allocations: 8.125 kB / 311 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000373/0.03685, allocations: 0.5341 MB / 311.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.03741, allocations: 215.4 kB / 311.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.03922, allocations: 1.231 MB / 312.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.919e-05/0.03932, allocations: 148.5 kB / 313.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002122/0.03954, allocations: 85.06 kB / 313.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000533/0.04007, allocations: 393.9 kB / 313.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of SimCode: time 8.51e-07/0.04007, allocations: 0 / 313.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of Templates: time 0.02002/0.06009, allocations: 18.32 MB / 331.9 MB, free: 8.941 MB / 314.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.126821934711188]