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.002649/0.002649, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.003134/0.003134, allocations: 165.3 kB / 24.27 MB, free: 156 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 1.551/1.551, allocations: 177.1 MB / 204.6 MB, free: 5.57 MB / 186.7 MB " [Timeout remaining time 178] 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 2.264e-06/2.264e-06, allocations: 0 / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.418e-05/3.645e-05, allocations: 2.312 kB / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.WaterPump): time 0.007661/0.007698, allocations: 4.803 MB / 277.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003173/0.01087, allocations: 1.367 MB / 278.5 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003963/0.01127, allocations: 11.94 kB / 278.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000447/0.01171, allocations: 154.6 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007984/0.01251, allocations: 353.2 kB / 279 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004982/0.01301, allocations: 227.4 kB / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.01435, allocations: 1.062 MB / 280.3 MB, free: 9.809 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003591/0.01471, allocations: 198.4 kB / 280.5 MB, free: 9.605 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008852/0.0156, allocations: 0.6119 MB / 281.1 MB, free: 8.992 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005348/0.01613, allocations: 327.1 kB / 281.4 MB, free: 8.672 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001575/0.01629, allocations: 88 kB / 281.5 MB, free: 8.586 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001956/0.01649, allocations: 92 kB / 281.6 MB, free: 8.496 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002236/0.01671, allocations: 203.3 kB / 281.8 MB, free: 8.297 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004544/0.01716, allocations: 343.2 kB / 282.1 MB, free: 7.961 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001397/0.01856, allocations: 1.121 MB / 283.2 MB, free: 6.836 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.01857, allocations: 0 / 283.2 MB, free: 6.836 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.01857, allocations: 0 / 283.2 MB, free: 6.836 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.01858, allocations: 3.938 kB / 283.2 MB, free: 6.832 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.002552/0.02113, allocations: 1.31 MB / 284.5 MB, free: 5.469 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.02117, allocations: 8.031 kB / 284.6 MB, free: 5.461 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002805/0.02145, allocations: 144.3 kB / 284.7 MB, free: 5.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009212/0.02237, allocations: 477.2 kB / 285.2 MB, free: 4.82 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002007/0.02257, allocations: 152.7 kB / 285.3 MB, free: 4.648 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.0227, allocations: 68.38 kB / 285.4 MB, free: 4.582 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.02478, allocations: 1.631 MB / 287 MB, free: 2.629 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.395e-05/0.0248, allocations: 192 / 287 MB, free: 2.629 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.294e-05/0.02487, allocations: 28.12 kB / 287 MB, free: 2.602 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.02489, allocations: 16 kB / 287 MB, free: 2.586 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.02604, allocations: 471.7 kB / 287.5 MB, free: 2.125 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003894/0.02994, allocations: 1.954 MB / 289.5 MB, free: 92 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001275/0.03121, allocations: 486.7 kB / 289.9 MB, free: 15.59 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005461/0.03176, allocations: 225.1 kB / 290.2 MB, free: 15.37 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.355e-05/0.03182, allocations: 12.5 kB / 290.2 MB, free: 15.36 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007268/0.03255, allocations: 319.8 kB / 290.5 MB, free: 15.03 MB / 282.7 MB Notification: Performance of pre-optimization done (n=56): time 2.935e-06/0.03255, allocations: 0 / 290.5 MB, free: 15.03 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.004795/0.03735, allocations: 1.261 MB / 291.7 MB, free: 13.76 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006148/0.03796, allocations: 0.8309 MB / 292.6 MB, free: 12.73 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.03898, allocations: 0.7252 MB / 293.3 MB, free: 11.99 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.021e-05/0.03906, allocations: 45.7 kB / 293.3 MB, free: 11.94 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004239/0.03948, allocations: 427.8 kB / 293.8 MB, free: 11.51 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000237/0.03972, allocations: 207.2 kB / 294 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002677/0.03999, allocations: 144 kB / 294.1 MB, free: 11.16 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004237/0.04041, allocations: 0.5938 MB / 294.7 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005857/0.04099, allocations: 252.5 kB / 294.9 MB, free: 10.3 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/0.04258, allocations: 1.435 MB / 296.4 MB, free: 8.496 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.04377, allocations: 0.5762 MB / 297 MB, free: 7.859 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.04377, allocations: 0 / 297 MB, free: 7.859 MB / 282.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002336/0.04611, allocations: 0.9365 MB / 297.9 MB, free: 6.887 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.676e-05/0.04618, allocations: 59.41 kB / 298 MB, free: 6.816 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.04619, allocations: 8 kB / 298 MB, free: 6.809 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007859/0.04697, allocations: 239 kB / 298.2 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005935/0.04757, allocations: 107.9 kB / 298.3 MB, free: 6.461 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008153/0.05572, allocations: 5.417 MB / 303.7 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008577/0.05658, allocations: 71.66 kB / 303.8 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-05/0.05664, allocations: 27.98 kB / 303.8 MB, free: 0.707 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.0004296/0.05706, allocations: 267 kB / 304.1 MB, free: 448 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.05723, allocations: 95.58 kB / 304.2 MB, free: 352 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001651/0.05739, allocations: 74.56 kB / 304.2 MB, free: 272 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.0574, allocations: 4 kB / 304.2 MB, free: 268 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.0574, allocations: 0 / 304.2 MB, free: 268 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1258/0.1832, allocations: 1.01 MB / 305.3 MB, free: 35.71 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002605/0.1858, allocations: 1.467 MB / 306.7 MB, free: 35.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1858, allocations: 1.156 kB / 306.7 MB, free: 35.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005464/0.1863, allocations: 97.55 kB / 306.8 MB, free: 35.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005285/0.1868, allocations: 173.5 kB / 307 MB, free: 35.31 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.895e-05/0.1869, allocations: 14.7 kB / 307 MB, free: 35.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004492/0.1914, allocations: 4.766 MB / 311.8 MB, free: 31.65 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1914, allocations: 1.062 kB / 311.8 MB, free: 31.65 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002056/0.1934, allocations: 1.052 MB / 312.8 MB, free: 31.43 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003552/0.1938, allocations: 140.7 kB / 313 MB, free: 31.39 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.1939, allocations: 18.41 kB / 313 MB, free: 31.39 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005619/0.1945, allocations: 36.42 kB / 313 MB, free: 31.39 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001872/0.1946, allocations: 54.64 kB / 313.1 MB, free: 31.39 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.732e-05/0.1947, allocations: 16.28 kB / 313.1 MB, free: 31.39 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005168/0.1952, allocations: 475.1 kB / 313.5 MB, free: 31.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1952, allocations: 3.094 kB / 313.5 MB, free: 31.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008066/0.196, allocations: 257.1 kB / 313.8 MB, free: 31.24 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.0001429/0.1961, allocations: 117.2 kB / 313.9 MB, free: 31.16 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001856/0.198, allocations: 1.171 MB / 315.1 MB, free: 30.56 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.198, allocations: 1.281 kB / 315.1 MB, free: 30.56 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008387/0.1988, allocations: 0.6505 MB / 315.7 MB, free: 30.15 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00088/0.1997, allocations: 219.6 kB / 315.9 MB, free: 30.09 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002292/0.202, allocations: 1.273 MB / 317.2 MB, free: 29.44 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.2023, allocations: 318.2 kB / 317.5 MB, free: 29.34 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000339/0.2027, allocations: 82.42 kB / 317.6 MB, free: 29.32 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.2028, allocations: 56.78 kB / 317.7 MB, free: 29.3 MB / 282.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2028, allocations: 1.531 kB / 317.7 MB, free: 29.3 MB / 282.7 MB Notification: Performance of Templates: time 0.02218/0.225, allocations: 16.94 MB / 334.6 MB, free: 17.48 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Thermal.FluidHeatFlow.Examples.WaterPump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.310605612001382]