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.001606/0.001606, allocations: 85.17 kB / 21.5 MB, free: 2.988 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.001635/0.001635, allocations: 141.2 kB / 24.89 MB, free: 9.215 MB / 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.9957/0.9957, allocations: 173.3 MB / 201.5 MB, free: 9.215 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 2.014e-06/2.014e-06, allocations: 0 / 268.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.339e-05/1.54e-05, allocations: 2.312 kB / 268.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.EmptyTanks): time 0.006982/0.006997, allocations: 8.003 MB / 276.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006803/0.0138, allocations: 5.615 MB / 282.1 MB, free: 8.504 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003856/0.01419, allocations: 27.75 kB / 282.1 MB, free: 8.477 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005256/0.01471, allocations: 246.3 kB / 282.4 MB, free: 8.234 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001554/0.01627, allocations: 1.045 MB / 283.4 MB, free: 7.184 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002507/0.01877, allocations: 1.721 MB / 285.1 MB, free: 5.457 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001853/0.02063, allocations: 2.128 MB / 287.3 MB, free: 3.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007242/0.02135, allocations: 0.5406 MB / 287.8 MB, free: 2.762 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00113/0.02248, allocations: 1.037 MB / 288.9 MB, free: 1.723 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006411/0.02312, allocations: 0.6817 MB / 289.5 MB, free: 1.039 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.223e-05/0.0232, allocations: 83.94 kB / 289.6 MB, free: 0.957 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1188/0.142, allocations: 0.999 MB / 290.6 MB, free: 18.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005446/0.1425, allocations: 335.9 kB / 290.9 MB, free: 18.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006318/0.1432, allocations: 334.5 kB / 291.3 MB, free: 18.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002508/0.1457, allocations: 1.538 MB / 292.8 MB, free: 18.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1457, allocations: 0 / 292.8 MB, free: 18.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1457, allocations: 0 / 292.8 MB, free: 18.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.1457, allocations: 0 / 292.8 MB, free: 18.21 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.001892/0.1476, allocations: 1.138 MB / 293.9 MB, free: 17.6 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.1476, allocations: 10.86 kB / 294 MB, free: 17.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003095/0.1479, allocations: 136.4 kB / 294.1 MB, free: 17.59 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006495/0.1486, allocations: 491.3 kB / 294.6 MB, free: 17.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.404e-05/0.1487, allocations: 161.5 kB / 294.7 MB, free: 17.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.081e-05/0.1487, allocations: 60.52 kB / 294.8 MB, free: 17.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008148/0.1496, allocations: 0.8053 MB / 295.6 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.1496, allocations: 0.6094 kB / 295.6 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.907e-05/0.1496, allocations: 20.73 kB / 295.6 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.441e-05/0.1497, allocations: 52.73 kB / 295.7 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.1501, allocations: 267.4 kB / 295.9 MB, free: 16.77 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002505/0.1526, allocations: 1.663 MB / 297.6 MB, free: 16.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004046/0.153, allocations: 327 kB / 297.9 MB, free: 16.1 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001523/0.1532, allocations: 108.2 kB / 298 MB, free: 16.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001145/0.1543, allocations: 0.7925 MB / 298.8 MB, free: 15.81 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.1544, allocations: 40.47 kB / 298.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=56): time 1.543e-06/0.1544, allocations: 4 kB / 298.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=66): time 0.00274/0.1571, allocations: 1.352 MB / 300.2 MB, free: 15.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.1571, allocations: 90.47 kB / 300.3 MB, free: 15.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003423/0.1575, allocations: 484.1 kB / 300.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.1575, allocations: 39.42 kB / 300.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.1576, allocations: 293.4 kB / 301.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.1577, allocations: 240.7 kB / 301.3 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001575/0.1579, allocations: 139.6 kB / 301.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.04e-05/0.158, allocations: 386.4 kB / 301.8 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.1582, allocations: 105.7 kB / 301.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000225/0.1584, allocations: 286.7 kB / 302.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004229/0.1588, allocations: 416.9 kB / 302.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.1588, allocations: 1.375 kB / 302.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0006544/0.1595, allocations: 486.7 kB / 303.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.1595, allocations: 6.875 kB / 303.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.1595, allocations: 4.688 kB / 303.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006852/0.1602, allocations: 322.9 kB / 303.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003737/0.1605, allocations: 177.1 kB / 303.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003981/0.1609, allocations: 0.6431 MB / 304.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.1612, allocations: 28.88 kB / 304.3 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.796e-05/0.1612, allocations: 25.09 kB / 304.3 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002369/0.1615, allocations: 202.9 kB / 304.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000185/0.1617, allocations: 290.7 kB / 304.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003382/0.162, allocations: 408.3 kB / 305.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.154e-06/0.162, allocations: 0 / 305.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.000526/0.1625, allocations: 478.9 kB / 305.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.847e-06/0.1625, allocations: 15.16 kB / 305.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.027e-06/0.1625, allocations: 3.188 kB / 305.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003468/0.1629, allocations: 208.4 kB / 305.9 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003644/0.1632, allocations: 182.7 kB / 306 MB, free: 12.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002976/0.1635, allocations: 0.6186 MB / 306.7 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002122/0.1638, allocations: 26.64 kB / 306.7 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.701e-05/0.1638, allocations: 25.44 kB / 306.7 MB, free: 12.4 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.0001295/0.1639, allocations: 234.2 kB / 306.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.936e-05/0.164, allocations: 61.34 kB / 307 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005776/0.1646, allocations: 468.9 kB / 307.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1646, allocations: 7.422 kB / 307.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.1646, allocations: 1.75 kB / 307.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.1646, allocations: 7.359 kB / 307.5 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009598/0.1656, allocations: 0.8835 MB / 308.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.1656, allocations: 0 / 308.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.1659, allocations: 134 kB / 308.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005034/0.1664, allocations: 307 kB / 308.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/0.1664, allocations: 19.2 kB / 308.8 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003315/0.1667, allocations: 0.6574 MB / 309.5 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1667, allocations: 4.609 kB / 309.5 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006231/0.1674, allocations: 0.6537 MB / 310.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.1675, allocations: 107.2 kB / 310.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.728e-05/0.1675, allocations: 14.03 kB / 310.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.1678, allocations: 25.36 kB / 310.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.932e-05/0.1678, allocations: 48.28 kB / 310.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.575e-05/0.1679, allocations: 22.73 kB / 310.3 MB, free: 11.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001385/0.168, allocations: 207.8 kB / 310.5 MB, free: 11.02 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.168, allocations: 0 / 310.5 MB, free: 11.02 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009941/0.169, allocations: 0.556 MB / 311.1 MB, free: 10.96 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.0005923/0.1696, allocations: 427.4 kB / 311.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.1706, allocations: 0.6661 MB / 312.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.099e-05/0.1706, allocations: 17.22 kB / 312.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002938/0.1709, allocations: 211.7 kB / 312.4 MB, free: 10.76 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008033/0.1717, allocations: 380.5 kB / 312.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.1735, allocations: 1.347 MB / 314.1 MB, free: 9.508 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.359e-05/0.1736, allocations: 195.3 kB / 314.3 MB, free: 9.352 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004115/0.174, allocations: 169.2 kB / 314.5 MB, free: 9.219 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004899/0.1745, allocations: 318.9 kB / 314.8 MB, free: 8.984 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.1745, allocations: 0 / 314.8 MB, free: 8.984 MB / 266.7 MB Notification: Performance of Templates: time 0.02162/0.1962, allocations: 22.93 MB / 337.7 MB, free: 2.793 MB / 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 -s gbode -gbm=radauIIA3 -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.1637329501099885]