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.001073/0.001073, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001925/0.001925, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 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.9998/0.9998, allocations: 177 MB / 204.8 MB, free: 5.605 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.372e-06/1.372e-06, allocations: 0 / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.248e-05/2.386e-05, allocations: 6.25 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.007277/0.007301, allocations: 8.033 MB / 280.9 MB, free: 9.395 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006024/0.01333, allocations: 5.467 MB / 286.4 MB, free: 3.914 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004618/0.01379, allocations: 27.75 kB / 286.4 MB, free: 3.887 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006006/0.01439, allocations: 226.5 kB / 286.7 MB, free: 3.664 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001565/0.01595, allocations: 1.041 MB / 287.7 MB, free: 2.617 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002387/0.01834, allocations: 1.765 MB / 289.5 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.133/0.1513, allocations: 1.973 MB / 291.4 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008089/0.1521, allocations: 437 kB / 291.9 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001548/0.1537, allocations: 0.9413 MB / 292.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001201/0.1549, allocations: 0.7159 MB / 293.5 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001407/0.155, allocations: 66.56 kB / 293.6 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001689/0.1567, allocations: 0.8797 MB / 294.5 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002806/0.157, allocations: 288.4 kB / 294.7 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003292/0.1573, allocations: 287.8 kB / 295 MB, free: 15.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002274/0.1596, allocations: 1.433 MB / 296.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1596, allocations: 2.281 kB / 296.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1596, allocations: 0.6562 kB / 296.5 MB, free: 15.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.1596, allocations: 0 / 296.5 MB, free: 15.61 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.001748/0.1614, allocations: 1.227 MB / 297.7 MB, free: 14.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.1614, allocations: 9.625 kB / 297.7 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003006/0.1617, allocations: 137.4 kB / 297.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006842/0.1624, allocations: 0.5223 MB / 298.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.624e-05/0.1624, allocations: 40.23 kB / 298.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.049e-05/0.1625, allocations: 50.81 kB / 298.4 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000774/0.1633, allocations: 0.7864 MB / 299.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.1633, allocations: 1.125 kB / 299.2 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.504e-05/0.1634, allocations: 19.97 kB / 299.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.505e-05/0.1634, allocations: 46.41 kB / 299.3 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005445/0.164, allocations: 314.1 kB / 299.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002195/0.1662, allocations: 2.202 MB / 301.8 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004413/0.1666, allocations: 267.2 kB / 302.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001746/0.1668, allocations: 107.7 kB / 302.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.984e-05/0.1669, allocations: 29.53 kB / 302.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.1669, allocations: 41.52 kB / 302.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 2.054e-06/0.1669, allocations: 0 / 302.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=58): time 0.002438/0.1693, allocations: 1.377 MB / 303.6 MB, free: 12.51 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.1694, allocations: 84.08 kB / 303.7 MB, free: 12.42 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000423/0.1698, allocations: 0.5399 MB / 304.2 MB, free: 12.22 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.944e-05/0.1698, allocations: 38.98 kB / 304.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.17, allocations: 391 kB / 304.7 MB, free: 11.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000111/0.1701, allocations: 216.9 kB / 304.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.1703, allocations: 154.2 kB / 305 MB, free: 11.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.373e-05/0.1704, allocations: 0.5528 MB / 305.6 MB, free: 11.24 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/0.1706, allocations: 125.4 kB / 305.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002589/0.1708, allocations: 388.4 kB / 306.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004235/0.1713, allocations: 483.6 kB / 306.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1713, allocations: 3.25 kB / 306.6 MB, free: 10.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0006851/0.172, allocations: 0.5916 MB / 307.1 MB, free: 10.35 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.172, allocations: 7.406 kB / 307.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.172, allocations: 6.062 kB / 307.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001148/0.1731, allocations: 343.2 kB / 307.5 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003147/0.1734, allocations: 151.1 kB / 307.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003933/0.1738, allocations: 0.909 MB / 308.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.1741, allocations: 34.58 kB / 308.6 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.812e-05/0.1741, allocations: 35.14 kB / 308.6 MB, free: 9.461 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002479/0.1743, allocations: 251.1 kB / 308.9 MB, free: 9.309 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002451/0.1746, allocations: 392.8 kB / 309.2 MB, free: 8.965 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003962/0.175, allocations: 483.5 kB / 309.7 MB, free: 8.613 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.964e-06/0.175, allocations: 0 / 309.7 MB, free: 8.613 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.0006567/0.1756, allocations: 0.5823 MB / 310.3 MB, free: 8.422 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.1756, allocations: 14.97 kB / 310.3 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1757, allocations: 3.594 kB / 310.3 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008289/0.1765, allocations: 238.2 kB / 310.6 MB, free: 8.387 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004297/0.1769, allocations: 156 kB / 310.7 MB, free: 8.383 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003847/0.1773, allocations: 0.8543 MB / 311.6 MB, free: 7.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003628/0.1777, allocations: 33.22 kB / 311.6 MB, free: 7.555 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.539e-05/0.1777, allocations: 35.78 kB / 311.6 MB, free: 7.547 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 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002101/0.1779, allocations: 316.6 kB / 311.9 MB, free: 7.254 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001615/0.1781, allocations: 90.09 kB / 312 MB, free: 7.211 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008411/0.1789, allocations: 0.5371 MB / 312.6 MB, free: 7.008 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.1789, allocations: 7.031 kB / 312.6 MB, free: 7.008 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.1789, allocations: 0 / 312.6 MB, free: 7.008 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.179, allocations: 5.625 kB / 312.6 MB, free: 7.008 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00138/0.1803, allocations: 1.138 MB / 313.7 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.1803, allocations: 0 / 313.7 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.1806, allocations: 112.6 kB / 313.8 MB, free: 6.234 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006498/0.1813, allocations: 271.4 kB / 314.1 MB, free: 6.039 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.487e-05/0.1813, allocations: 16 kB / 314.1 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000327/0.1816, allocations: 0.9247 MB / 315 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1816, allocations: 0 / 315 MB, free: 5.07 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007131/0.1823, allocations: 0.7605 MB / 315.8 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.912e-05/0.1824, allocations: 63.56 kB / 315.8 MB, free: 4.223 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.594e-05/0.1824, allocations: 12 kB / 315.9 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.1826, allocations: 23.98 kB / 315.9 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.267e-05/0.1827, allocations: 52.56 kB / 315.9 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.979e-05/0.1827, allocations: 23.98 kB / 316 MB, free: 4.113 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002062/0.1829, allocations: 358.7 kB / 316.3 MB, free: 3.766 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1829, allocations: 3.938 kB / 316.3 MB, free: 3.762 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001163/0.1841, allocations: 0.5263 MB / 316.8 MB, free: 3.234 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.0006431/0.1848, allocations: 429.9 kB / 317.3 MB, free: 2.836 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001006/0.1858, allocations: 0.6967 MB / 318 MB, free: 2.172 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1858, allocations: 4 kB / 318 MB, free: 2.168 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002618/0.186, allocations: 232.4 kB / 318.2 MB, free: 1.953 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008311/0.1869, allocations: 364.4 kB / 318.5 MB, free: 1.648 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.1886, allocations: 1.299 MB / 319.8 MB, free: 340 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.832e-05/0.1887, allocations: 188.4 kB / 320 MB, free: 128 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000504/0.1892, allocations: 243.2 kB / 320.3 MB, free: 15.89 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.1893, allocations: 68.42 kB / 320.3 MB, free: 15.83 MB / 282.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1893, allocations: 0 / 320.3 MB, free: 15.83 MB / 282.7 MB Notification: Performance of Templates: time 0.02062/0.2099, allocations: 18.52 MB / 338.8 MB, free: 13.64 MB / 298.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 -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.6329677319154143]