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.0009422/0.0009422, allocations: 79.58 kB / 21.18 MB, free: 3.387 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.001013/0.001013, allocations: 161 kB / 24.56 MB, free: 20 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.9726/0.9726, allocations: 177.1 MB / 205 MB, free: 5.602 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.683e-06/1.683e-06, allocations: 0 / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.808e-05/1.977e-05, allocations: 2.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004223/0.004243, allocations: 4.845 MB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002029/0.006272, allocations: 1.374 MB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002382/0.00651, allocations: 11.94 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003182/0.006828, allocations: 158.7 kB / 279.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004911/0.007319, allocations: 353.1 kB / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003217/0.007641, allocations: 227.5 kB / 279.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006975/0.008338, allocations: 1.065 MB / 281 MB, free: 9.457 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002429/0.008581, allocations: 194.4 kB / 281.2 MB, free: 9.258 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005194/0.009101, allocations: 0.6043 MB / 281.8 MB, free: 8.652 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003113/0.009412, allocations: 339 kB / 282.1 MB, free: 8.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.009e-05/0.009502, allocations: 91.98 kB / 282.2 MB, free: 8.23 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.009606, allocations: 88 kB / 282.3 MB, free: 8.145 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.009713, allocations: 203.3 kB / 282.5 MB, free: 7.945 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000237/0.00995, allocations: 331.3 kB / 282.8 MB, free: 7.621 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005564/0.01051, allocations: 0.7201 MB / 283.5 MB, free: 6.898 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.01051, allocations: 0 / 283.5 MB, free: 6.898 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.01051, allocations: 0 / 283.5 MB, free: 6.898 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.01052, allocations: 4 kB / 283.5 MB, free: 6.895 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.001324/0.01184, allocations: 1.26 MB / 284.8 MB, free: 5.582 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.01188, allocations: 12.03 kB / 284.8 MB, free: 5.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.01203, allocations: 140.4 kB / 284.9 MB, free: 5.434 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006429/0.01268, allocations: 465.1 kB / 285.4 MB, free: 4.945 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.01279, allocations: 148.7 kB / 285.5 MB, free: 4.777 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.521e-05/0.01287, allocations: 64.38 kB / 285.6 MB, free: 4.715 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009165/0.01379, allocations: 1.491 MB / 287.1 MB, free: 2.898 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.792e-05/0.0138, allocations: 4.125 kB / 287.1 MB, free: 2.895 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.305e-05/0.01385, allocations: 28.12 kB / 287.1 MB, free: 2.867 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.01386, allocations: 12 kB / 287.1 MB, free: 2.855 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004042/0.01426, allocations: 261.7 kB / 287.4 MB, free: 2.598 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.01622, allocations: 1.704 MB / 289.1 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005359/0.01675, allocations: 314.7 kB / 289.4 MB, free: 496 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001984/0.01695, allocations: 141 kB / 289.5 MB, free: 352 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.834e-05/0.017, allocations: 12.5 kB / 289.6 MB, free: 340 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003298/0.01733, allocations: 231.9 kB / 289.8 MB, free: 88 kB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 3.257e-06/0.01733, allocations: 0 / 289.8 MB, free: 88 kB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.002127/0.01946, allocations: 0.9845 MB / 290.8 MB, free: 15.09 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002354/0.0197, allocations: 0.8232 MB / 291.6 MB, free: 14.07 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000583/0.02028, allocations: 0.5845 MB / 292.2 MB, free: 13.47 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.057e-05/0.02032, allocations: 37.7 kB / 292.2 MB, free: 13.43 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.02052, allocations: 403.8 kB / 292.6 MB, free: 13.03 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/0.02063, allocations: 198.3 kB / 292.8 MB, free: 12.83 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.02077, allocations: 143.9 kB / 292.9 MB, free: 12.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.02092, allocations: 0.5508 MB / 293.5 MB, free: 12.12 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.02112, allocations: 156.6 kB / 293.6 MB, free: 11.96 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005691/0.02169, allocations: 1.295 MB / 294.9 MB, free: 10.29 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004114/0.0221, allocations: 406.1 kB / 295.3 MB, free: 9.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.0221, allocations: 0 / 295.3 MB, free: 9.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009305/0.02303, allocations: 0.7139 MB / 296 MB, free: 9.09 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.206e-05/0.02307, allocations: 63.39 kB / 296.1 MB, free: 9.016 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.335e-06/0.02308, allocations: 4 kB / 296.1 MB, free: 9.012 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003798/0.02346, allocations: 175.1 kB / 296.3 MB, free: 8.832 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002984/0.02376, allocations: 111.8 kB / 296.4 MB, free: 8.723 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003448/0.02721, allocations: 4.711 MB / 301.1 MB, free: 3.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003504/0.02756, allocations: 75.59 kB / 301.2 MB, free: 3.699 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/0.02759, allocations: 23.98 kB / 301.2 MB, free: 3.676 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.0001799/0.02777, allocations: 207.3 kB / 301.4 MB, free: 3.465 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.718e-05/0.02786, allocations: 91.58 kB / 301.5 MB, free: 3.375 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.548e-05/0.02793, allocations: 74.56 kB / 301.6 MB, free: 3.297 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.02793, allocations: 12 kB / 301.6 MB, free: 3.285 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.02794, allocations: 4 kB / 301.6 MB, free: 3.281 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008012/0.02874, allocations: 0.8319 MB / 302.4 MB, free: 2.332 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00127/0.03001, allocations: 1.176 MB / 303.6 MB, free: 1.094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.03001, allocations: 0 / 303.6 MB, free: 1.094 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002803/0.03029, allocations: 95.88 kB / 303.7 MB, free: 1 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002388/0.03053, allocations: 127.2 kB / 303.8 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.03056, allocations: 15.98 kB / 303.8 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1067/0.1373, allocations: 4.293 MB / 308.1 MB, free: 35.84 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1373, allocations: 1.469 kB / 308.1 MB, free: 35.84 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.1383, allocations: 0.7303 MB / 308.8 MB, free: 35.63 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002352/0.1385, allocations: 138.4 kB / 309 MB, free: 35.63 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.003e-05/0.1386, allocations: 15.33 kB / 309 MB, free: 35.63 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002899/0.1389, allocations: 42.34 kB / 309 MB, free: 35.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000131/0.139, allocations: 55.47 kB / 309.1 MB, free: 35.62 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.139, allocations: 15.48 kB / 309.1 MB, free: 35.62 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003145/0.1394, allocations: 379.7 kB / 309.5 MB, free: 35.49 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1394, allocations: 0.625 kB / 309.5 MB, free: 35.49 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006673/0.14, allocations: 254.8 kB / 309.7 MB, free: 35.49 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.0001283/0.1402, allocations: 118.9 kB / 309.8 MB, free: 35.41 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001028/0.1412, allocations: 0.9833 MB / 310.8 MB, free: 34.82 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.1412, allocations: 2.312 kB / 310.8 MB, free: 34.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004367/0.1416, allocations: 0.5601 MB / 311.4 MB, free: 34.46 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006211/0.1422, allocations: 216.5 kB / 311.6 MB, free: 34.45 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002267/0.1445, allocations: 1.237 MB / 312.8 MB, free: 33.89 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/0.1447, allocations: 150.8 kB / 313 MB, free: 33.81 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003093/0.145, allocations: 83.61 kB / 313.1 MB, free: 33.8 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.1451, allocations: 56.27 kB / 313.1 MB, free: 33.8 MB / 282.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1451, allocations: 0 / 313.1 MB, free: 33.8 MB / 282.7 MB Notification: Performance of Templates: time 0.01879/0.1639, allocations: 16.95 MB / 330.1 MB, free: 23.88 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.307750622741878]