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.001/0.001, 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.001069/0.001069, 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.9365/0.9365, allocations: 177 MB / 205.2 MB, free: 5.051 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.583e-06/1.583e-06, allocations: 0 / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.246e-05/2.405e-05, allocations: 6.312 kB / 273.4 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.009898/0.009922, allocations: 7.981 MB / 281.4 MB, free: 9.035 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006202/0.01612, allocations: 5.481 MB / 286.9 MB, free: 3.539 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007923/0.01692, allocations: 35.69 kB / 286.9 MB, free: 3.504 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006698/0.01759, allocations: 226.5 kB / 287.1 MB, free: 3.281 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002566/0.02015, allocations: 1.041 MB / 288.1 MB, free: 2.234 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003954/0.02411, allocations: 1.808 MB / 290 MB, free: 432 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1103/0.1344, allocations: 1.92 MB / 291.9 MB, free: 16.13 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007603/0.1352, allocations: 446.9 kB / 292.3 MB, free: 16.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00153/0.1367, allocations: 0.9586 MB / 293.3 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009499/0.1377, allocations: 0.6276 MB / 293.9 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001612/0.1378, allocations: 65.03 kB / 294 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001447/0.1393, allocations: 0.879 MB / 294.8 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002796/0.1395, allocations: 291 kB / 295.1 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004027/0.1399, allocations: 286.2 kB / 295.4 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00239/0.1423, allocations: 1.429 MB / 296.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1423, allocations: 0.625 kB / 296.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1423, allocations: 1.562 kB / 296.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.95e-05/0.1424, allocations: 0 / 296.8 MB, free: 15.75 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.001974/0.1443, allocations: 1.073 MB / 297.9 MB, free: 15.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1444, allocations: 10.88 kB / 297.9 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003292/0.1447, allocations: 109.5 kB / 298 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007076/0.1454, allocations: 456.4 kB / 298.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.337e-05/0.1455, allocations: 39.03 kB / 298.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.919e-05/0.1455, allocations: 61.69 kB / 298.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006657/0.1462, allocations: 0.7336 MB / 299.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.1462, allocations: 0 / 299.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.824e-05/0.1463, allocations: 18.55 kB / 299.3 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-05/0.1463, allocations: 45.27 kB / 299.4 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004425/0.1468, allocations: 237.7 kB / 299.6 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002236/0.149, allocations: 1.547 MB / 301.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003452/0.1494, allocations: 266.4 kB / 301.4 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.1495, allocations: 85.44 kB / 301.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.943e-05/0.1496, allocations: 22.31 kB / 301.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.192e-05/0.1496, allocations: 42.72 kB / 301.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.954e-06/0.1496, allocations: 1.375 kB / 301.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=58): time 0.002479/0.1521, allocations: 1.16 MB / 302.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.575e-05/0.1521, allocations: 86.92 kB / 302.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003912/0.1525, allocations: 487.4 kB / 303.3 MB, free: 13.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.719e-05/0.1525, allocations: 40.45 kB / 303.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.1526, allocations: 277.5 kB / 303.6 MB, free: 12.87 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.1528, allocations: 210.6 kB / 303.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/0.1529, allocations: 135.5 kB / 303.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.897e-05/0.153, allocations: 383.9 kB / 304.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.1532, allocations: 94.92 kB / 304.4 MB, free: 12.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.1534, allocations: 280.2 kB / 304.7 MB, free: 12.17 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.1538, allocations: 391.5 kB / 305 MB, free: 11.97 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.1538, allocations: 5.438 kB / 305.1 MB, free: 11.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0005614/0.1543, allocations: 429.1 kB / 305.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.1543, allocations: 7 kB / 305.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1543, allocations: 5.062 kB / 305.5 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.1554, allocations: 290 kB / 305.8 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003639/0.1558, allocations: 154 kB / 305.9 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003323/0.1561, allocations: 0.6055 MB / 306.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002941/0.1564, allocations: 29.28 kB / 306.6 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.452e-05/0.1564, allocations: 24.48 kB / 306.6 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000226/0.1567, allocations: 181.4 kB / 306.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001883/0.1569, allocations: 287.4 kB / 307 MB, free: 11.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003428/0.1572, allocations: 384.6 kB / 307.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.038e-06/0.1572, allocations: 4.219 kB / 307.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.0005229/0.1577, allocations: 422.9 kB / 307.8 MB, free: 10.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/0.1577, allocations: 9.625 kB / 307.8 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.1577, allocations: 2.469 kB / 307.8 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007217/0.1585, allocations: 198.8 kB / 308 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003638/0.1588, allocations: 155.9 kB / 308.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000212/0.159, allocations: 0.5718 MB / 308.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.1593, allocations: 30.75 kB / 308.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.013e-05/0.1593, allocations: 25.23 kB / 308.8 MB, free: 10.25 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.0001414/0.1595, allocations: 226.4 kB / 309 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.625e-05/0.1596, allocations: 67.11 kB / 309.1 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005591/0.1601, allocations: 408.5 kB / 309.5 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1602, allocations: 10.56 kB / 309.5 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-06/0.1602, allocations: 0 / 309.5 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.1602, allocations: 5.688 kB / 309.5 MB, free: 9.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.1613, allocations: 0.892 MB / 310.4 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.1613, allocations: 3.984 kB / 310.4 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003096/0.1616, allocations: 99.98 kB / 310.5 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007257/0.1623, allocations: 252.9 kB / 310.8 MB, free: 9.484 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.1623, allocations: 17.02 kB / 310.8 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002995/0.1626, allocations: 0.6358 MB / 311.4 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.1626, allocations: 3.062 kB / 311.4 MB, free: 8.922 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006128/0.1633, allocations: 0.606 MB / 312 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.651e-05/0.1633, allocations: 59.56 kB / 312.1 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.158e-05/0.1634, allocations: 11.56 kB / 312.1 MB, free: 8.469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.1636, allocations: 27.42 kB / 312.1 MB, free: 8.453 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.324e-05/0.1637, allocations: 44.38 kB / 312.2 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.43e-05/0.1637, allocations: 15.8 kB / 312.2 MB, free: 8.398 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001544/0.1639, allocations: 205 kB / 312.4 MB, free: 8.234 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1639, allocations: 0 / 312.4 MB, free: 8.234 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00122/0.1651, allocations: 0.524 MB / 312.9 MB, free: 7.746 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.0006818/0.1658, allocations: 427.6 kB / 313.3 MB, free: 7.363 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008441/0.1666, allocations: 0.5662 MB / 313.9 MB, free: 6.875 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-05/0.1667, allocations: 9.016 kB / 313.9 MB, free: 6.867 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002471/0.1669, allocations: 199.5 kB / 314.1 MB, free: 6.695 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000974/0.1679, allocations: 365.8 kB / 314.4 MB, free: 6.395 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00176/0.1696, allocations: 1.217 MB / 315.7 MB, free: 5.172 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001148/0.1697, allocations: 183.6 kB / 315.8 MB, free: 4.977 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004347/0.1702, allocations: 131.9 kB / 316 MB, free: 4.855 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005326/0.1707, allocations: 295 kB / 316.3 MB, free: 4.566 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1707, allocations: 4 kB / 316.3 MB, free: 4.562 MB / 266.7 MB Notification: Performance of Templates: time 0.02591/0.1966, allocations: 20.53 MB / 336.8 MB, free: 412 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 -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.300480985082686]