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.0009847/0.0009847, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.0009569/0.0009569, 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.9682/0.9682, allocations: 173.4 MB / 201.1 MB, free: 9.348 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.603e-06/1.603e-06, allocations: 0 / 268 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.555e-05/1.715e-05, allocations: 6.25 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.00428/0.004297, allocations: 4.845 MB / 272.8 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.006123, allocations: 1.347 MB / 274.2 MB, free: 244 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001932/0.006317, allocations: 15.88 kB / 274.2 MB, free: 228 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003108/0.006627, allocations: 158.6 kB / 274.3 MB, free: 68 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004817/0.007109, allocations: 349.2 kB / 274.7 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003507/0.00746, allocations: 215.6 kB / 274.9 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008263/0.008286, allocations: 1.069 MB / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000242/0.008528, allocations: 206.2 kB / 276.2 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007301/0.009258, allocations: 0.6081 MB / 276.8 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002984/0.009556, allocations: 327.1 kB / 277.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.067e-05/0.009647, allocations: 88 kB / 277.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.569e-05/0.009743, allocations: 92 kB / 277.3 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.009859, allocations: 199.3 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002296/0.01009, allocations: 335.2 kB / 277.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005548/0.01064, allocations: 0.7162 MB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.01065, allocations: 0 / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.01065, allocations: 0 / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.01065, allocations: 3.984 kB / 278.5 MB, free: 11.88 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.001265/0.01192, allocations: 1.256 MB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.01195, allocations: 12.92 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000156/0.01211, allocations: 144.3 kB / 279.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.01257, allocations: 461.1 kB / 280.4 MB, free: 9.934 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.01269, allocations: 152.7 kB / 280.5 MB, free: 9.762 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.948e-05/0.01277, allocations: 64.38 kB / 280.6 MB, free: 9.699 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009158/0.01368, allocations: 1.491 MB / 282.1 MB, free: 7.879 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.0137, allocations: 192 / 282.1 MB, free: 7.879 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.786e-05/0.01374, allocations: 28.12 kB / 282.1 MB, free: 7.852 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.01376, allocations: 15.98 kB / 282.1 MB, free: 7.836 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003831/0.01414, allocations: 257.8 kB / 282.4 MB, free: 7.582 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002085/0.01623, allocations: 1.708 MB / 284.1 MB, free: 5.797 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004748/0.0167, allocations: 311.3 kB / 284.4 MB, free: 5.473 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.01688, allocations: 133.1 kB / 284.5 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.681e-05/0.01691, allocations: 16.5 kB / 284.5 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.01718, allocations: 224.3 kB / 284.7 MB, free: 5.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.544e-06/0.01718, allocations: 3.984 kB / 284.7 MB, free: 5.086 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.00198/0.01916, allocations: 0.9873 MB / 285.7 MB, free: 4.082 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002235/0.01939, allocations: 0.8271 MB / 286.6 MB, free: 3.059 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004385/0.01983, allocations: 0.5768 MB / 287.1 MB, free: 2.465 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.019e-05/0.01987, allocations: 45.7 kB / 287.2 MB, free: 2.414 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000193/0.02006, allocations: 395.8 kB / 287.6 MB, free: 2.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.02016, allocations: 194.3 kB / 287.8 MB, free: 1.828 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.0203, allocations: 136 kB / 287.9 MB, free: 1.688 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.02045, allocations: 0.5547 MB / 288.4 MB, free: 1.121 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.02064, allocations: 156.7 kB / 288.6 MB, free: 0.957 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000575/0.02122, allocations: 1.306 MB / 289.9 MB, free: 15.29 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007041/0.02192, allocations: 398.1 kB / 290.3 MB, free: 14.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.02193, allocations: 0 / 290.3 MB, free: 14.84 MB / 282.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008952/0.02282, allocations: 0.7217 MB / 291 MB, free: 14.08 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/0.02286, allocations: 67.39 kB / 291.1 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.02286, allocations: 0 / 291.1 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003418/0.0232, allocations: 171.1 kB / 291.2 MB, free: 13.82 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002725/0.02348, allocations: 111.9 kB / 291.4 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003184/0.02666, allocations: 4.706 MB / 296.1 MB, free: 8.773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002916/0.02695, allocations: 71.64 kB / 296.1 MB, free: 8.703 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/0.02698, allocations: 20 kB / 296.2 MB, free: 8.684 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.0001572/0.02714, allocations: 204.5 kB / 296.4 MB, free: 8.473 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.078e-05/0.02723, allocations: 99.52 kB / 296.4 MB, free: 8.375 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.874e-05/0.0273, allocations: 74.56 kB / 296.5 MB, free: 8.293 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.0273, allocations: 8 kB / 296.5 MB, free: 8.285 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.02731, allocations: 4 kB / 296.5 MB, free: 8.281 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001049/0.02835, allocations: 0.8242 MB / 297.4 MB, free: 7.348 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.02951, allocations: 1.188 MB / 298.5 MB, free: 6.094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.02951, allocations: 0 / 298.5 MB, free: 6.094 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/0.02978, allocations: 95.88 kB / 298.6 MB, free: 6 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002132/0.02999, allocations: 123.6 kB / 298.8 MB, free: 5.871 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.03001, allocations: 16 kB / 298.8 MB, free: 5.855 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002329/0.03234, allocations: 4.32 MB / 303.1 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.03235, allocations: 4.125 kB / 303.1 MB, free: 1.293 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008185/0.03316, allocations: 0.7392 MB / 303.8 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001731/0.03334, allocations: 135.4 kB / 304 MB, free: 400 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.864e-05/0.03339, allocations: 20 kB / 304 MB, free: 380 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.03365, allocations: 36.03 kB / 304 MB, free: 344 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.425e-05/0.03374, allocations: 52.41 kB / 304.1 MB, free: 292 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.13e-05/0.03376, allocations: 19.98 kB / 304.1 MB, free: 272 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.1221/0.1559, allocations: 369 kB / 304.5 MB, free: 39.71 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1559, allocations: 0 / 304.5 MB, free: 39.71 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00108/0.157, allocations: 256.2 kB / 304.7 MB, free: 39.71 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.0001742/0.1572, allocations: 123.4 kB / 304.8 MB, free: 39.62 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.1585, allocations: 0.9719 MB / 305.8 MB, free: 39.05 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.1585, allocations: 4.438 kB / 305.8 MB, free: 39.05 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000525/0.159, allocations: 0.5621 MB / 306.4 MB, free: 38.69 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007789/0.1598, allocations: 222.1 kB / 306.6 MB, free: 38.68 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002534/0.1624, allocations: 1.229 MB / 307.8 MB, free: 38.14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001463/0.1625, allocations: 154.3 kB / 308 MB, free: 38.05 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002989/0.1628, allocations: 84.33 kB / 308 MB, free: 38.05 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.1629, allocations: 56.56 kB / 308.1 MB, free: 38.05 MB / 282.7 MB Notification: Performance of SimCode: time 9.81e-07/0.1629, allocations: 0 / 308.1 MB, free: 38.05 MB / 282.7 MB Notification: Performance of Templates: time 0.02127/0.1842, allocations: 16.91 MB / 325 MB, free: 30.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.408297849353403]