Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.001427/0.001427, allocations: 83.89 kB / 21.19 MB, free: 3.379 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.001495/0.001495, allocations: 145.1 kB / 24.54 MB, free: 24 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.9671/0.9671, allocations: 173.4 MB / 201.1 MB, free: 9.297 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.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|tank1.level|tank2.level|tank2.ports.[0-9,]+..m_flow",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.363e-06/1.363e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.022e-05/3.158e-05, allocations: 6.25 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.007935/0.007967, allocations: 8.009 MB / 276 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006938/0.01491, allocations: 5.593 MB / 281.6 MB, free: 8.75 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005823/0.01549, allocations: 31.69 kB / 281.6 MB, free: 8.719 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006482/0.01614, allocations: 246.3 kB / 281.8 MB, free: 8.477 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001958/0.01809, allocations: 1.049 MB / 282.9 MB, free: 7.422 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003281/0.02137, allocations: 1.808 MB / 284.7 MB, free: 5.609 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002521/0.0239, allocations: 2.186 MB / 286.9 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007967/0.02469, allocations: 0.5454 MB / 287.4 MB, free: 2.848 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00139/0.02608, allocations: 1.025 MB / 288.5 MB, free: 1.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009938/0.02708, allocations: 0.787 MB / 289.2 MB, free: 1.031 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000157/0.02723, allocations: 84 kB / 289.3 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001487/0.02872, allocations: 0.8931 MB / 290.2 MB, free: 56 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1147/0.1435, allocations: 339 kB / 290.6 MB, free: 18.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007374/0.1442, allocations: 336.1 kB / 290.9 MB, free: 18.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003037/0.1472, allocations: 1.543 MB / 292.4 MB, free: 18.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.1472, allocations: 0 / 292.4 MB, free: 18.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1472, allocations: 1.219 kB / 292.4 MB, free: 18.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.274e-05/0.1473, allocations: 0 / 292.4 MB, free: 18.09 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002558/0.1498, allocations: 1.296 MB / 293.7 MB, free: 17.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.1499, allocations: 10.41 kB / 293.7 MB, free: 17.34 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003748/0.1502, allocations: 163.3 kB / 293.9 MB, free: 17.28 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007933/0.151, allocations: 0.5666 MB / 294.5 MB, free: 17.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.1511, allocations: 161.9 kB / 294.6 MB, free: 16.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.1513, allocations: 70.27 kB / 294.7 MB, free: 16.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.1523, allocations: 0.8635 MB / 295.5 MB, free: 16.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.1523, allocations: 2 kB / 295.6 MB, free: 16.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.511e-05/0.1524, allocations: 21.36 kB / 295.6 MB, free: 16.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.693e-05/0.1525, allocations: 50.44 kB / 295.6 MB, free: 16.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007445/0.1532, allocations: 364.7 kB / 296 MB, free: 16.44 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003217/0.1564, allocations: 2.294 MB / 298.3 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006263/0.1571, allocations: 340.7 kB / 298.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002687/0.1573, allocations: 158.7 kB / 298.8 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00142/0.1588, allocations: 0.9562 MB / 299.7 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.1588, allocations: 47.92 kB / 299.8 MB, free: 15.07 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 2.365e-06/0.1588, allocations: 0 / 299.8 MB, free: 15.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.003505/0.1623, allocations: 1.633 MB / 301.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.436e-05/0.1624, allocations: 88.17 kB / 301.5 MB, free: 14.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005871/0.1629, allocations: 0.5407 MB / 302 MB, free: 14.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.036e-05/0.163, allocations: 43.3 kB / 302.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.1632, allocations: 408.8 kB / 302.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001524/0.1633, allocations: 242.1 kB / 302.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002095/0.1635, allocations: 156 kB / 302.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1637, allocations: 0.5505 MB / 303.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002818/0.1639, allocations: 152.1 kB / 303.6 MB, free: 13.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003485/0.1643, allocations: 398.3 kB / 303.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006123/0.1649, allocations: 0.5096 MB / 304.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.1649, allocations: 1.375 kB / 304.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001156/0.1661, allocations: 0.6785 MB / 305.1 MB, free: 12.81 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.471e-05/0.1661, allocations: 6.75 kB / 305.1 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.1661, allocations: 4.219 kB / 305.1 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007479/0.1668, allocations: 296.3 kB / 305.4 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003702/0.1672, allocations: 169 kB / 305.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000543/0.1678, allocations: 0.9523 MB / 306.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.1681, allocations: 30.08 kB / 306.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.953e-05/0.1681, allocations: 31.91 kB / 306.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003488/0.1685, allocations: 278.9 kB / 306.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003006/0.1688, allocations: 398.6 kB / 307.3 MB, free: 11.56 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005322/0.1693, allocations: 0.5134 MB / 307.8 MB, free: 11.31 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.564e-06/0.1693, allocations: 0 / 307.8 MB, free: 11.31 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.0009101/0.1702, allocations: 0.659 MB / 308.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.204e-05/0.1702, allocations: 10.12 kB / 308.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1702, allocations: 6.125 kB / 308.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000339/0.1706, allocations: 193.8 kB / 308.6 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003286/0.1709, allocations: 166.7 kB / 308.8 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003867/0.1713, allocations: 0.9044 MB / 309.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.1715, allocations: 29.84 kB / 309.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.367e-05/0.1716, allocations: 36.81 kB / 309.8 MB, free: 10.38 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 4 (tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,9)} Notification: Performance of prepare postOptimizeDAE: time 0.000158/0.1717, allocations: 314.2 kB / 310.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.1718, allocations: 95.77 kB / 310.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008589/0.1727, allocations: 0.5997 MB / 310.8 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.311e-06/0.1727, allocations: 7.844 kB / 310.8 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1727, allocations: 0 / 310.8 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.1727, allocations: 6.141 kB / 310.8 MB, free: 9.863 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001505/0.1742, allocations: 1.225 MB / 312 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1742, allocations: 0 / 312 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002978/0.1745, allocations: 110.6 kB / 312.1 MB, free: 9.254 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005403/0.1751, allocations: 290.8 kB / 312.4 MB, free: 9.211 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.516e-05/0.1751, allocations: 22.84 kB / 312.4 MB, free: 9.199 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004774/0.1756, allocations: 0.9561 MB / 313.4 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1756, allocations: 0 / 313.4 MB, free: 8.34 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.1766, allocations: 0.8573 MB / 314.2 MB, free: 7.953 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.1768, allocations: 141.6 kB / 314.4 MB, free: 7.879 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.561e-05/0.1769, allocations: 16.91 kB / 314.4 MB, free: 7.867 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.1771, allocations: 27.61 kB / 314.4 MB, free: 7.859 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.237e-05/0.1772, allocations: 53.23 kB / 314.5 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.1773, allocations: 33.97 kB / 314.5 MB, free: 7.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002436/0.1775, allocations: 349.4 kB / 314.9 MB, free: 7.668 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1775, allocations: 0 / 314.9 MB, free: 7.668 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001418/0.1789, allocations: 0.5585 MB / 315.4 MB, free: 7.566 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007308/0.1797, allocations: 446.8 kB / 315.8 MB, free: 7.398 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.181, allocations: 0.799 MB / 316.6 MB, free: 6.793 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.181, allocations: 0 / 316.6 MB, free: 6.793 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004047/0.1814, allocations: 273.8 kB / 316.9 MB, free: 6.578 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009491/0.1824, allocations: 373.7 kB / 317.3 MB, free: 6.312 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00239/0.1848, allocations: 1.403 MB / 318.7 MB, free: 5.023 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001342/0.1849, allocations: 203.4 kB / 318.9 MB, free: 4.855 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0006032/0.1855, allocations: 267.5 kB / 319.1 MB, free: 4.645 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.1856, allocations: 72.48 kB / 319.2 MB, free: 4.574 MB / 266.7 MB Notification: Performance of SimCode: time 1.774e-06/0.1856, allocations: 0 / 319.2 MB, free: 4.574 MB / 266.7 MB Notification: Performance of Templates: time 0.02344/0.2091, allocations: 20.69 MB / 339.9 MB, free: 276 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/Tanks/EmptyTanks/EmptyTanks.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.39521419769153]