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.001043/0.001043, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.0009896/0.0009896, allocations: 170.3 kB / 24.82 MB, free: 9.266 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.9299/0.9299, allocations: 177.1 MB / 205.3 MB, free: 5.469 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.693e-06/1.693e-06, allocations: 0 / 273.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.286e-05/2.456e-05, allocations: 4.844 kB / 273.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.004246/0.004271, allocations: 4.774 MB / 278.2 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.006054, allocations: 1.359 MB / 279.5 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.006278, allocations: 15.88 kB / 279.5 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003196/0.006598, allocations: 150.7 kB / 279.7 MB, free: 10.94 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004953/0.007093, allocations: 361.1 kB / 280 MB, free: 10.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003469/0.00744, allocations: 223.5 kB / 280.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007621/0.008202, allocations: 1.062 MB / 281.3 MB, free: 9.297 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002532/0.008455, allocations: 194.4 kB / 281.5 MB, free: 9.098 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006001/0.009055, allocations: 0.612 MB / 282.1 MB, free: 8.484 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003161/0.009371, allocations: 331 kB / 282.4 MB, free: 8.16 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.016e-05/0.009461, allocations: 88 kB / 282.5 MB, free: 8.074 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.009562, allocations: 88 kB / 282.6 MB, free: 7.988 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.00967, allocations: 199.3 kB / 282.8 MB, free: 7.793 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002227/0.009893, allocations: 331.3 kB / 283.1 MB, free: 7.469 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005471/0.01044, allocations: 0.7084 MB / 283.8 MB, free: 6.758 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.01044, allocations: 0 / 283.8 MB, free: 6.758 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01044, allocations: 0 / 283.8 MB, free: 6.758 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.01045, allocations: 0 / 283.8 MB, free: 6.758 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.001254/0.01171, allocations: 1.267 MB / 285.1 MB, free: 5.438 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.01175, allocations: 16.02 kB / 285.1 MB, free: 5.422 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.01189, allocations: 140.4 kB / 285.3 MB, free: 5.285 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004339/0.01233, allocations: 448.1 kB / 285.7 MB, free: 4.816 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.01245, allocations: 152.7 kB / 285.9 MB, free: 4.645 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.694e-05/0.01252, allocations: 64.38 kB / 285.9 MB, free: 4.582 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000859/0.01338, allocations: 1.448 MB / 287.4 MB, free: 2.805 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.0134, allocations: 192 / 287.4 MB, free: 2.805 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.114e-05/0.01344, allocations: 32.12 kB / 287.4 MB, free: 2.773 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.11e-05/0.01345, allocations: 16 kB / 287.4 MB, free: 2.758 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002629/0.01371, allocations: 206.7 kB / 287.6 MB, free: 2.555 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.01552, allocations: 1.611 MB / 289.2 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003881/0.01591, allocations: 283.7 kB / 289.5 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.01603, allocations: 109.1 kB / 289.6 MB, free: 476 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.623e-05/0.01607, allocations: 20.5 kB / 289.6 MB, free: 456 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002377/0.01631, allocations: 207.8 kB / 289.8 MB, free: 228 kB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 3.186e-06/0.01631, allocations: 7.984 kB / 289.8 MB, free: 220 kB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001849/0.01816, allocations: 0.9092 MB / 290.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000239/0.0184, allocations: 0.8271 MB / 291.6 MB, free: 14.27 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003631/0.01876, allocations: 0.5646 MB / 292.1 MB, free: 13.69 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.0188, allocations: 49.64 kB / 292.2 MB, free: 13.64 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000199/0.019, allocations: 411.7 kB / 292.6 MB, free: 13.23 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.01911, allocations: 198.2 kB / 292.8 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.01924, allocations: 139.9 kB / 292.9 MB, free: 12.89 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.0194, allocations: 0.5624 MB / 293.5 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.01954, allocations: 128.6 kB / 293.6 MB, free: 12.18 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005287/0.02006, allocations: 1.279 MB / 294.9 MB, free: 10.53 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000308/0.02037, allocations: 362.1 kB / 295.2 MB, free: 10.12 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.02038, allocations: 0 / 295.2 MB, free: 10.12 MB / 282.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007629/0.02114, allocations: 0.6631 MB / 295.9 MB, free: 9.418 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.531e-05/0.02118, allocations: 67.41 kB / 296 MB, free: 9.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.02119, allocations: 0 / 296 MB, free: 9.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003074/0.0215, allocations: 151.2 kB / 296.1 MB, free: 9.184 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002688/0.02177, allocations: 115.8 kB / 296.2 MB, free: 9.07 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003283/0.02505, allocations: 4.598 MB / 300.8 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003094/0.02536, allocations: 71.7 kB / 300.9 MB, free: 4.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.02538, allocations: 19.94 kB / 300.9 MB, free: 4.16 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.0001633/0.02555, allocations: 212.4 kB / 301.1 MB, free: 3.941 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.19e-05/0.02563, allocations: 99.52 kB / 301.2 MB, free: 3.844 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.147e-05/0.0257, allocations: 78.56 kB / 301.3 MB, free: 3.766 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.0257, allocations: 4 kB / 301.3 MB, free: 3.762 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.02571, allocations: 0 / 301.3 MB, free: 3.762 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006722/0.02638, allocations: 0.7928 MB / 302.1 MB, free: 2.852 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.02744, allocations: 1.04 MB / 303.1 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.02744, allocations: 4 kB / 303.1 MB, free: 1.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002519/0.02769, allocations: 99.88 kB / 303.2 MB, free: 1.652 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/0.0279, allocations: 123.2 kB / 303.4 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.299e-05/0.02792, allocations: 15.94 kB / 303.4 MB, free: 1.508 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1193/0.1472, allocations: 4.204 MB / 307.6 MB, free: 35.67 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1472, allocations: 1.781 kB / 307.6 MB, free: 35.67 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009048/0.1481, allocations: 0.6637 MB / 308.2 MB, free: 35.46 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000234/0.1484, allocations: 134.3 kB / 308.4 MB, free: 35.46 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.903e-05/0.1484, allocations: 18.92 kB / 308.4 MB, free: 35.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002685/0.1487, allocations: 35.7 kB / 308.4 MB, free: 35.46 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.1488, allocations: 55.08 kB / 308.5 MB, free: 35.46 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.1488, allocations: 13.73 kB / 308.5 MB, free: 35.46 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002747/0.1491, allocations: 356.9 kB / 308.8 MB, free: 35.32 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1491, allocations: 0 / 308.8 MB, free: 35.32 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00066/0.1498, allocations: 256.4 kB / 309.1 MB, free: 35.32 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.0001315/0.1499, allocations: 124.8 kB / 309.2 MB, free: 35.23 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008718/0.1508, allocations: 0.9336 MB / 310.1 MB, free: 34.66 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.1508, allocations: 3.922 kB / 310.2 MB, free: 34.66 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003783/0.1512, allocations: 0.5473 MB / 310.7 MB, free: 34.29 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005494/0.1517, allocations: 218.8 kB / 310.9 MB, free: 34.29 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002034/0.1537, allocations: 1.231 MB / 312.1 MB, free: 33.73 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000145/0.1539, allocations: 151 kB / 312.3 MB, free: 33.66 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002968/0.1542, allocations: 84.12 kB / 312.4 MB, free: 33.65 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006126/0.1548, allocations: 394.8 kB / 312.8 MB, free: 33.58 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1548, allocations: 0 / 312.8 MB, free: 33.58 MB / 282.7 MB Notification: Performance of Templates: time 0.01954/0.1743, allocations: 17.99 MB / 330.7 MB, free: 22.84 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.120170710142702]