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.0009815/0.0009815, allocations: 81.91 kB / 21.43 MB, free: 3.062 MB / 18.57 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.0009852/0.0009852, allocations: 157.6 kB / 24.81 MB, free: 9.316 MB / 18.57 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.9299/0.9299, allocations: 177 MB / 205.1 MB, free: 5.469 MB / 186.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.483e-06/1.483e-06, allocations: 0 / 273.3 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.029e-05/1.177e-05, allocations: 2.312 kB / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.003705/0.003716, allocations: 4.782 MB / 278.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001754/0.00547, allocations: 1.363 MB / 279.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002338/0.005704, allocations: 11.94 kB / 279.5 MB, free: 11.03 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002942/0.005998, allocations: 154.7 kB / 279.6 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004773/0.006475, allocations: 357.1 kB / 280 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005736/0.007049, allocations: 223.5 kB / 280.2 MB, free: 10.31 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00078/0.007829, allocations: 1.073 MB / 281.3 MB, free: 9.234 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002637/0.008092, allocations: 198.4 kB / 281.5 MB, free: 9.031 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007543/0.008847, allocations: 0.612 MB / 282.1 MB, free: 8.418 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003442/0.009191, allocations: 323.1 kB / 282.4 MB, free: 8.102 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.009294, allocations: 88 kB / 282.5 MB, free: 8.016 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.009398, allocations: 88 kB / 282.6 MB, free: 7.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.0095, allocations: 195.3 kB / 282.8 MB, free: 7.738 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002279/0.009728, allocations: 339.2 kB / 283.1 MB, free: 7.406 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005486/0.01028, allocations: 0.7006 MB / 283.8 MB, free: 6.703 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.784e-06/0.01028, allocations: 0 / 283.8 MB, free: 6.703 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.01028, allocations: 4 kB / 283.8 MB, free: 6.699 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.01029, allocations: 7.938 kB / 283.8 MB, free: 6.691 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.001208/0.0115, allocations: 1.26 MB / 285.1 MB, free: 5.379 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.01153, allocations: 11.98 kB / 285.1 MB, free: 5.367 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.01167, allocations: 144.4 kB / 285.2 MB, free: 5.227 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.01208, allocations: 436.2 kB / 285.6 MB, free: 4.773 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.01218, allocations: 152.7 kB / 285.8 MB, free: 4.602 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.769e-05/0.01225, allocations: 64.38 kB / 285.8 MB, free: 4.539 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.01335, allocations: 1.456 MB / 287.3 MB, free: 2.754 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.01336, allocations: 12.09 kB / 287.3 MB, free: 2.742 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/0.0134, allocations: 28.12 kB / 287.3 MB, free: 2.715 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.01341, allocations: 12 kB / 287.4 MB, free: 2.703 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002563/0.01367, allocations: 202.8 kB / 287.6 MB, free: 2.504 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001751/0.01542, allocations: 1.615 MB / 289.2 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003616/0.01578, allocations: 283.8 kB / 289.4 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.0159, allocations: 117 kB / 289.6 MB, free: 412 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.176e-05/0.01593, allocations: 16.5 kB / 289.6 MB, free: 396 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002273/0.01616, allocations: 203.8 kB / 289.8 MB, free: 176 kB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.114e-06/0.01616, allocations: 0 / 289.8 MB, free: 176 kB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001795/0.01796, allocations: 0.9209 MB / 290.7 MB, free: 15.24 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002307/0.01819, allocations: 0.8193 MB / 291.5 MB, free: 14.22 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/0.01856, allocations: 0.5685 MB / 292.1 MB, free: 13.64 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.049e-05/0.0186, allocations: 45.7 kB / 292.1 MB, free: 13.59 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.0188, allocations: 403.8 kB / 292.5 MB, free: 13.18 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.0189, allocations: 206.2 kB / 292.7 MB, free: 12.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.01903, allocations: 135.9 kB / 292.9 MB, free: 12.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.01919, allocations: 0.5663 MB / 293.4 MB, free: 12.26 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.01931, allocations: 128.7 kB / 293.5 MB, free: 12.12 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007602/0.02007, allocations: 1.275 MB / 294.8 MB, free: 10.48 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.02037, allocations: 362.1 kB / 295.2 MB, free: 10.07 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.02037, allocations: 4 kB / 295.2 MB, free: 10.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007377/0.02111, allocations: 0.6629 MB / 295.8 MB, free: 9.367 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.601e-05/0.02115, allocations: 63.41 kB / 295.9 MB, free: 9.293 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.513e-06/0.02115, allocations: 7.938 kB / 295.9 MB, free: 9.285 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002778/0.02143, allocations: 155.4 kB / 296.1 MB, free: 9.125 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002647/0.0217, allocations: 111.8 kB / 296.2 MB, free: 9.016 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0028/0.0245, allocations: 4.602 MB / 300.8 MB, free: 4.191 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005446/0.02504, allocations: 75.59 kB / 300.8 MB, free: 4.117 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.673e-05/0.02507, allocations: 19.98 kB / 300.9 MB, free: 4.098 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.0001518/0.02522, allocations: 203.2 kB / 301.1 MB, free: 3.891 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.068e-05/0.0253, allocations: 95.52 kB / 301.2 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.69e-05/0.02537, allocations: 74.56 kB / 301.2 MB, free: 3.723 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.02537, allocations: 8 kB / 301.2 MB, free: 3.715 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.02538, allocations: 4 kB / 301.2 MB, free: 3.711 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006479/0.02602, allocations: 0.7889 MB / 302 MB, free: 2.805 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009855/0.02701, allocations: 1.044 MB / 303.1 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.02701, allocations: 0 / 303.1 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002491/0.02726, allocations: 103.8 kB / 303.2 MB, free: 1.605 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001956/0.02746, allocations: 127.2 kB / 303.3 MB, free: 1.473 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.02748, allocations: 11.98 kB / 303.3 MB, free: 1.461 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1035/0.131, allocations: 4.206 MB / 307.5 MB, free: 35.55 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-06/0.131, allocations: 2.062 kB / 307.5 MB, free: 35.55 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007932/0.1318, allocations: 0.6643 MB / 308.2 MB, free: 35.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.132, allocations: 135.9 kB / 308.3 MB, free: 35.34 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.404e-05/0.132, allocations: 15.86 kB / 308.3 MB, free: 35.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002688/0.1323, allocations: 35.98 kB / 308.4 MB, free: 35.34 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.87e-05/0.1324, allocations: 56.86 kB / 308.4 MB, free: 35.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.1324, allocations: 12.84 kB / 308.4 MB, free: 35.34 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002209/0.1326, allocations: 353.6 kB / 308.8 MB, free: 35.21 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1326, allocations: 2.391 kB / 308.8 MB, free: 35.21 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005795/0.1332, allocations: 253.1 kB / 309 MB, free: 35.21 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.325e-05/0.1333, allocations: 122.8 kB / 309.2 MB, free: 35.12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007699/0.1341, allocations: 0.942 MB / 310.1 MB, free: 34.55 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.1341, allocations: 2.188 kB / 310.1 MB, free: 34.55 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003614/0.1344, allocations: 0.5533 MB / 310.7 MB, free: 34.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005245/0.135, allocations: 220.4 kB / 310.9 MB, free: 34.17 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001714/0.1367, allocations: 1.214 MB / 312.1 MB, free: 33.62 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001158/0.1368, allocations: 151.4 kB / 312.2 MB, free: 33.54 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002416/0.137, allocations: 84.02 kB / 312.3 MB, free: 33.54 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005547/0.1376, allocations: 398.4 kB / 312.7 MB, free: 33.47 MB / 282.7 MB Notification: Performance of SimCode: time 7.82e-07/0.1376, allocations: 1.562 kB / 312.7 MB, free: 33.47 MB / 282.7 MB Notification: Performance of Templates: time 0.01713/0.1547, allocations: 17.97 MB / 330.7 MB, free: 22.82 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.060285045299679]