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.00124/0.00124, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.0008589/0.0008589, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 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 0.8685/0.8685, allocations: 173.3 MB / 201.1 MB, free: 9.305 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.322e-06/1.322e-06, allocations: 0 / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.7e-05/1.832e-05, allocations: 10.19 kB / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004189/0.004207, allocations: 4.834 MB / 272.8 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.005875, allocations: 1.347 MB / 274.2 MB, free: 204 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002253/0.0061, allocations: 11.88 kB / 274.2 MB, free: 192 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003238/0.006424, allocations: 158.7 kB / 274.3 MB, free: 32 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005005/0.006924, allocations: 357.1 kB / 274.7 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.007247, allocations: 219.5 kB / 274.9 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006816/0.007928, allocations: 1.062 MB / 276 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004363/0.008365, allocations: 194.3 kB / 276.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005151/0.00888, allocations: 0.6158 MB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003034/0.009183, allocations: 327.1 kB / 277.1 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.039e-05/0.009274, allocations: 88 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.427e-05/0.009368, allocations: 88 kB / 277.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.947e-05/0.009467, allocations: 191.3 kB / 277.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002254/0.009693, allocations: 339.2 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005264/0.01022, allocations: 0.6968 MB / 278.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.01022, allocations: 0 / 278.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.01022, allocations: 3.938 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.01023, allocations: 0 / 278.5 MB, free: 11.86 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.001242/0.01147, allocations: 1.248 MB / 279.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.0115, allocations: 8.922 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.01165, allocations: 156.3 kB / 279.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004593/0.01211, allocations: 448.2 kB / 280.3 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/0.01222, allocations: 148.7 kB / 280.5 MB, free: 9.77 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.996e-05/0.01229, allocations: 72.33 kB / 280.5 MB, free: 9.699 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009136/0.01321, allocations: 1.483 MB / 282 MB, free: 7.883 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.01322, allocations: 192 / 282 MB, free: 7.883 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.137e-05/0.01326, allocations: 32.12 kB / 282.1 MB, free: 7.852 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.01327, allocations: 12 kB / 282.1 MB, free: 7.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003775/0.01365, allocations: 261.7 kB / 282.3 MB, free: 7.582 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.01566, allocations: 1.712 MB / 284 MB, free: 5.793 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000465/0.01612, allocations: 310.7 kB / 284.3 MB, free: 5.469 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001744/0.0163, allocations: 137.1 kB / 284.5 MB, free: 5.332 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.207e-05/0.01633, allocations: 12.5 kB / 284.5 MB, free: 5.32 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.01659, allocations: 219.9 kB / 284.7 MB, free: 5.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.484e-06/0.0166, allocations: 4 kB / 284.7 MB, free: 5.086 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001997/0.01859, allocations: 0.9796 MB / 285.7 MB, free: 4.09 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002076/0.0188, allocations: 0.831 MB / 286.5 MB, free: 3.062 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004325/0.01923, allocations: 0.569 MB / 287.1 MB, free: 2.477 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.853e-05/0.01927, allocations: 45.7 kB / 287.1 MB, free: 2.426 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.01946, allocations: 403.8 kB / 287.5 MB, free: 2.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.01957, allocations: 203.3 kB / 287.7 MB, free: 1.824 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.0197, allocations: 132 kB / 287.8 MB, free: 1.688 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.01985, allocations: 0.5547 MB / 288.4 MB, free: 1.121 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/0.02004, allocations: 152.7 kB / 288.5 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007713/0.02081, allocations: 1.306 MB / 289.9 MB, free: 15.29 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.02121, allocations: 398.1 kB / 290.2 MB, free: 14.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.02121, allocations: 0 / 290.2 MB, free: 14.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008859/0.0221, allocations: 0.7217 MB / 291 MB, free: 14.08 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.371e-05/0.02213, allocations: 67.34 kB / 291 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.02214, allocations: 4 kB / 291 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003286/0.02246, allocations: 171.2 kB / 291.2 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002781/0.02274, allocations: 107.9 kB / 291.3 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003108/0.02585, allocations: 4.709 MB / 296 MB, free: 8.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003095/0.02616, allocations: 75.69 kB / 296.1 MB, free: 8.699 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.035e-05/0.02619, allocations: 23.98 kB / 296.1 MB, free: 8.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.000158/0.02635, allocations: 211.7 kB / 296.3 MB, free: 8.461 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.725e-05/0.02644, allocations: 99.53 kB / 296.4 MB, free: 8.363 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.947e-05/0.02651, allocations: 78.55 kB / 296.5 MB, free: 8.281 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.02651, allocations: 8 kB / 296.5 MB, free: 8.273 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.02651, allocations: 0 / 296.5 MB, free: 8.273 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001003/0.02751, allocations: 0.828 MB / 297.3 MB, free: 7.336 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001165/0.02868, allocations: 1.173 MB / 298.5 MB, free: 6.094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.02868, allocations: 3.938 kB / 298.5 MB, free: 6.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002733/0.02896, allocations: 95.88 kB / 298.6 MB, free: 5.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002143/0.02917, allocations: 123.3 kB / 298.7 MB, free: 5.867 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.0292, allocations: 16 kB / 298.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002237/0.03143, allocations: 4.316 MB / 303.1 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.03143, allocations: 4.125 kB / 303.1 MB, free: 1.293 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000793/0.03223, allocations: 0.7355 MB / 303.8 MB, free: 0.5273 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.03239, allocations: 147.3 kB / 303.9 MB, free: 392 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.038e-05/0.03244, allocations: 12 kB / 303.9 MB, free: 380 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.03269, allocations: 35.97 kB / 304 MB, free: 344 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003276/0.03302, allocations: 52.41 kB / 304 MB, free: 292 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.03304, allocations: 15.98 kB / 304.1 MB, free: 276 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0959/0.1289, allocations: 375.1 kB / 304.4 MB, free: 39.28 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1289, allocations: 0 / 304.4 MB, free: 39.28 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007679/0.1297, allocations: 252.7 kB / 304.7 MB, free: 39.28 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.0001273/0.1298, allocations: 118 kB / 304.8 MB, free: 39.19 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009965/0.1308, allocations: 0.9759 MB / 305.8 MB, free: 38.62 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.1308, allocations: 10.25 kB / 305.8 MB, free: 38.62 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003788/0.1312, allocations: 0.5633 MB / 306.3 MB, free: 38.26 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005568/0.1318, allocations: 218.3 kB / 306.5 MB, free: 38.25 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.1336, allocations: 1.225 MB / 307.8 MB, free: 37.71 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001085/0.1337, allocations: 159.3 kB / 307.9 MB, free: 37.62 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002189/0.134, allocations: 82.83 kB / 308 MB, free: 37.62 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.966e-05/0.1341, allocations: 55.81 kB / 308.1 MB, free: 37.62 MB / 282.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1341, allocations: 0.5469 kB / 308.1 MB, free: 37.62 MB / 282.7 MB Notification: Performance of Templates: time 0.01631/0.1504, allocations: 17.76 MB / 325.8 MB, free: 29.05 MB / 282.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 -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.119943073950708]