Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009762/0.0009762, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001078/0.001078, allocations: 164.2 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9717/0.9717, allocations: 177 MB / 205.2 MB, free: 5.047 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.[0-9,]+.|tank2.aboveLevel.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.[0-9,]+.|tank2.aboveLevel.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 273.4 MB, free: 1.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.226e-05/2.4e-05, allocations: 2.312 kB / 273.4 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.008703/0.008727, allocations: 8.021 MB / 281.5 MB, free: 8.945 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007426/0.01615, allocations: 5.485 MB / 286.9 MB, free: 3.445 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007594/0.01691, allocations: 31.69 kB / 287 MB, free: 3.414 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006651/0.01758, allocations: 230.5 kB / 287.2 MB, free: 3.188 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002188/0.01976, allocations: 1.033 MB / 288.2 MB, free: 2.148 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003165/0.02293, allocations: 1.679 MB / 289.9 MB, free: 476 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1217/0.1446, allocations: 1.918 MB / 291.8 MB, free: 16.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009801/0.1456, allocations: 444 kB / 292.3 MB, free: 16.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001968/0.1475, allocations: 0.9525 MB / 293.2 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001263/0.1488, allocations: 0.6257 MB / 293.8 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002145/0.149, allocations: 66.19 kB / 293.9 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002121/0.1511, allocations: 0.9811 MB / 294.9 MB, free: 15.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000368/0.1515, allocations: 288.2 kB / 295.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005545/0.1521, allocations: 287.4 kB / 295.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003015/0.1551, allocations: 1.43 MB / 296.9 MB, free: 15.72 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1551, allocations: 2.141 kB / 296.9 MB, free: 15.72 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1551, allocations: 0 / 296.9 MB, free: 15.72 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.297e-05/0.1551, allocations: 1.188 kB / 296.9 MB, free: 15.72 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.00236/0.1575, allocations: 1.066 MB / 297.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1575, allocations: 10.38 kB / 298 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003791/0.1579, allocations: 115.4 kB / 298.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000821/0.1587, allocations: 458.6 kB / 298.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.697e-05/0.1587, allocations: 42.19 kB / 298.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.536e-05/0.1588, allocations: 62.22 kB / 298.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007343/0.1596, allocations: 0.7241 MB / 299.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.1596, allocations: 0 / 299.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.92e-05/0.1596, allocations: 23.98 kB / 299.4 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.666e-05/0.1597, allocations: 44.39 kB / 299.4 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000469/0.1602, allocations: 238.5 kB / 299.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002491/0.1627, allocations: 1.55 MB / 301.2 MB, free: 13.67 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/0.163, allocations: 264.3 kB / 301.5 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.1632, allocations: 82.83 kB / 301.5 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.512e-05/0.1633, allocations: 21.89 kB / 301.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.1633, allocations: 50.14 kB / 301.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 2.304e-06/0.1633, allocations: 0 / 301.6 MB, free: 13.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=58): time 0.002506/0.1658, allocations: 1.106 MB / 302.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.1658, allocations: 83.23 kB / 302.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004241/0.1662, allocations: 480.3 kB / 303.3 MB, free: 13.06 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.603e-05/0.1663, allocations: 45.42 kB / 303.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.1664, allocations: 278.7 kB / 303.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001195/0.1665, allocations: 210.8 kB / 303.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.1667, allocations: 139 kB / 303.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.598e-05/0.1668, allocations: 378.2 kB / 304.3 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.167, allocations: 98.78 kB / 304.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.1672, allocations: 280.8 kB / 304.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.1676, allocations: 392.5 kB / 305 MB, free: 11.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1676, allocations: 0 / 305 MB, free: 11.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0006115/0.1682, allocations: 437.3 kB / 305.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.1682, allocations: 10.84 kB / 305.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.1683, allocations: 3.188 kB / 305.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.1696, allocations: 312.7 kB / 305.8 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004638/0.17, allocations: 169.4 kB / 306 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003714/0.1704, allocations: 0.6011 MB / 306.6 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003686/0.1708, allocations: 32.06 kB / 306.6 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.507e-05/0.1708, allocations: 24.97 kB / 306.6 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00027/0.1711, allocations: 181.1 kB / 306.8 MB, free: 11.24 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002054/0.1713, allocations: 280.9 kB / 307.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003571/0.1716, allocations: 387.9 kB / 307.4 MB, free: 10.83 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.647e-06/0.1716, allocations: 6.031 kB / 307.4 MB, free: 10.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.0005454/0.1722, allocations: 424.7 kB / 307.9 MB, free: 10.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.1722, allocations: 5.188 kB / 307.9 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1722, allocations: 5.875 kB / 307.9 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00085/0.1731, allocations: 206.4 kB / 308.1 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004463/0.1735, allocations: 181.1 kB / 308.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002323/0.1737, allocations: 0.5717 MB / 308.8 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.1741, allocations: 37.03 kB / 308.9 MB, free: 10.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.555e-05/0.1741, allocations: 26.2 kB / 308.9 MB, free: 10.22 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (tank1.ports_m_flow_out[1],tank2.ports_m_flow_out[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[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 {(1,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001763/0.1743, allocations: 231.3 kB / 309.1 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.855e-05/0.1744, allocations: 57.28 kB / 309.2 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006228/0.175, allocations: 416.5 kB / 309.6 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.175, allocations: 7.25 kB / 309.6 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.295e-06/0.175, allocations: 3.938 kB / 309.6 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.175, allocations: 4.641 kB / 309.6 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.1762, allocations: 0.896 MB / 310.5 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.1762, allocations: 3.938 kB / 310.5 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003624/0.1766, allocations: 121.1 kB / 310.6 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000923/0.1775, allocations: 266.6 kB / 310.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.292e-05/0.1776, allocations: 14.28 kB / 310.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000371/0.1779, allocations: 0.6306 MB / 311.5 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.1779, allocations: 0 / 311.5 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007268/0.1787, allocations: 0.6027 MB / 312.1 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.572e-05/0.1788, allocations: 58.25 kB / 312.2 MB, free: 8.355 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.165e-05/0.1788, allocations: 17.19 kB / 312.2 MB, free: 8.352 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002908/0.1791, allocations: 27.02 kB / 312.2 MB, free: 8.332 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.714e-05/0.1792, allocations: 47.12 kB / 312.3 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.94e-05/0.1793, allocations: 19.23 kB / 312.3 MB, free: 8.277 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001651/0.1794, allocations: 199.3 kB / 312.5 MB, free: 8.113 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1794, allocations: 4 kB / 312.5 MB, free: 8.109 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00128/0.1807, allocations: 0.5205 MB / 313 MB, free: 7.625 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007507/0.1815, allocations: 428.5 kB / 313.4 MB, free: 7.242 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001119/0.1826, allocations: 0.5497 MB / 314 MB, free: 6.762 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.682e-05/0.1826, allocations: 5.016 kB / 314 MB, free: 6.758 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.1829, allocations: 207.1 kB / 314.2 MB, free: 6.582 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.184, allocations: 367.7 kB / 314.5 MB, free: 6.289 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.1859, allocations: 1.212 MB / 315.7 MB, free: 5.07 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.186, allocations: 191.8 kB / 315.9 MB, free: 4.863 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004818/0.1864, allocations: 137.5 kB / 316.1 MB, free: 4.738 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000557/0.187, allocations: 299 kB / 316.4 MB, free: 4.445 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.187, allocations: 0 / 316.4 MB, free: 4.445 MB / 266.7 MB Notification: Performance of Templates: time 0.02865/0.2157, allocations: 20.6 MB / 337 MB, free: 212 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.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.1740086590871215]