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.0009982/0.0009982, allocations: 79.69 kB / 21.7 MB, free: 2.852 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.001571/0.001571, allocations: 161 kB / 24.99 MB, free: 8.805 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.9314/0.9314, allocations: 177 MB / 205.2 MB, free: 5.602 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.673e-06/1.673e-06, allocations: 0 / 273 MB, free: 1.766 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.582e-05/1.749e-05, allocations: 2.312 kB / 273 MB, free: 1.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.1177/0.1177, allocations: 18.15 MB / 291.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006723/0.1244, allocations: 6.002 MB / 297.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004649/0.1249, allocations: 34.41 kB / 297.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000685/0.1255, allocations: 322.8 kB / 297.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00173/0.1273, allocations: 1.103 MB / 298.6 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002737/0.13, allocations: 1.748 MB / 300.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001666/0.1317, allocations: 1.963 MB / 302.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005285/0.1322, allocations: 446.7 kB / 302.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001005/0.1332, allocations: 0.9629 MB / 303.7 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007545/0.134, allocations: 0.7104 MB / 304.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.1341, allocations: 68.27 kB / 304.5 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001188/0.1353, allocations: 0.9323 MB / 305.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001944/0.1354, allocations: 295.3 kB / 305.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002349/0.1357, allocations: 286.8 kB / 306 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001395/0.1371, allocations: 1.476 MB / 307.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.1371, allocations: 2 kB / 307.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1371, allocations: 0 / 307.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.1371, allocations: 0 / 307.5 MB, free: 11.36 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.001248/0.1383, allocations: 1.232 MB / 308.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.1384, allocations: 12.19 kB / 308.7 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002367/0.1386, allocations: 140.1 kB / 308.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004958/0.1391, allocations: 0.5217 MB / 309.4 MB, free: 9.953 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.276e-05/0.1391, allocations: 38.38 kB / 309.4 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.186e-05/0.1392, allocations: 52.5 kB / 309.5 MB, free: 9.926 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005746/0.1398, allocations: 0.7906 MB / 310.3 MB, free: 9.238 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.1398, allocations: 6.969 kB / 310.3 MB, free: 9.234 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.994e-05/0.1398, allocations: 19.02 kB / 310.3 MB, free: 9.223 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.756e-05/0.1399, allocations: 43.41 kB / 310.3 MB, free: 9.211 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000421/0.1403, allocations: 300.1 kB / 310.6 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.1422, allocations: 2.23 MB / 312.8 MB, free: 7.312 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004359/0.1426, allocations: 248.2 kB / 313.1 MB, free: 7.203 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.1428, allocations: 113.7 kB / 313.2 MB, free: 7.156 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.746e-05/0.1429, allocations: 34.5 kB / 313.2 MB, free: 7.141 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.1429, allocations: 43.89 kB / 313.3 MB, free: 7.094 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.613e-06/0.1429, allocations: 0 / 313.3 MB, free: 7.094 MB / 266.7 MB Notification: Performance of matching and sorting (n=58): time 0.002119/0.145, allocations: 1.378 MB / 314.7 MB, free: 6.367 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.383e-05/0.145, allocations: 86.73 kB / 314.7 MB, free: 6.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003272/0.1454, allocations: 0.5405 MB / 315.3 MB, free: 5.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.459e-05/0.1454, allocations: 39.67 kB / 315.3 MB, free: 5.871 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.1455, allocations: 392.3 kB / 315.7 MB, free: 5.52 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.099e-05/0.1456, allocations: 219.9 kB / 315.9 MB, free: 5.336 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001275/0.1457, allocations: 146.2 kB / 316.1 MB, free: 5.242 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.211e-05/0.1458, allocations: 0.5549 MB / 316.6 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.146, allocations: 127.3 kB / 316.7 MB, free: 4.645 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.1462, allocations: 386.7 kB / 317.1 MB, free: 4.191 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003987/0.1466, allocations: 495 kB / 317.6 MB, free: 3.621 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1466, allocations: 0 / 317.6 MB, free: 3.621 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0006373/0.1473, allocations: 0.5912 MB / 318.2 MB, free: 3.02 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.1473, allocations: 8 kB / 318.2 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.1473, allocations: 4 kB / 318.2 MB, free: 3.008 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/0.1484, allocations: 352.2 kB / 318.5 MB, free: 2.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002953/0.1487, allocations: 147.8 kB / 318.7 MB, free: 2.516 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003667/0.149, allocations: 0.9169 MB / 319.6 MB, free: 1.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.1492, allocations: 27.98 kB / 319.6 MB, free: 1.539 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.575e-05/0.1493, allocations: 38.36 kB / 319.7 MB, free: 1.504 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002385/0.1495, allocations: 252.8 kB / 319.9 MB, free: 1.25 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002299/0.1497, allocations: 385 kB / 320.3 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003861/0.1501, allocations: 0.4895 MB / 320.8 MB, free: 204 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.114e-06/0.1501, allocations: 0 / 320.8 MB, free: 204 kB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.0007029/0.1508, allocations: 0.5859 MB / 321.4 MB, free: 15.6 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.855e-06/0.1508, allocations: 4.625 kB / 321.4 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.1508, allocations: 12.56 kB / 321.4 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008376/0.1517, allocations: 231.3 kB / 321.6 MB, free: 15.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003073/0.152, allocations: 159.7 kB / 321.8 MB, free: 15.2 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003574/0.1523, allocations: 0.8552 MB / 322.6 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002175/0.1526, allocations: 31.98 kB / 322.7 MB, free: 14.28 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.83e-05/0.1526, allocations: 39.92 kB / 322.7 MB, free: 14.24 MB / 282.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.0001494/0.1527, allocations: 311.9 kB / 323 MB, free: 13.93 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.877e-05/0.1528, allocations: 91.52 kB / 323.1 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007316/0.1536, allocations: 0.5412 MB / 323.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.69e-06/0.1536, allocations: 8 kB / 323.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1536, allocations: 0 / 323.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1536, allocations: 7.922 kB / 323.6 MB, free: 13.29 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001346/0.1549, allocations: 1.171 MB / 324.8 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1549, allocations: 3.984 kB / 324.8 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002652/0.1552, allocations: 111.9 kB / 324.9 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007741/0.156, allocations: 273 kB / 325.2 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-05/0.156, allocations: 12 kB / 325.2 MB, free: 11.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004764/0.1565, allocations: 0.9287 MB / 326.1 MB, free: 10.72 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1565, allocations: 3.938 kB / 326.1 MB, free: 10.72 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008649/0.1574, allocations: 0.7718 MB / 326.9 MB, free: 9.914 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.171e-05/0.1574, allocations: 75.39 kB / 327 MB, free: 9.84 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.904e-05/0.1575, allocations: 15.94 kB / 327 MB, free: 9.824 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.1577, allocations: 27.97 kB / 327 MB, free: 9.797 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.729e-05/0.1578, allocations: 48.56 kB / 327.1 MB, free: 9.75 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.403e-05/0.1578, allocations: 28.02 kB / 327.1 MB, free: 9.723 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002577/0.1581, allocations: 354.8 kB / 327.4 MB, free: 9.383 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1581, allocations: 0 / 327.4 MB, free: 9.383 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000888/0.159, allocations: 0.538 MB / 328 MB, free: 8.844 MB / 282.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 (54): * Single equations (assignments): 53 * 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.0006182/0.1596, allocations: 477.2 kB / 328.5 MB, free: 8.395 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.1607, allocations: 0.7082 MB / 329.2 MB, free: 7.684 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1607, allocations: 4.609 kB / 329.2 MB, free: 7.68 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003033/0.161, allocations: 239.2 kB / 329.4 MB, free: 7.449 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008853/0.1619, allocations: 364.1 kB / 329.8 MB, free: 7.133 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.1636, allocations: 1.312 MB / 331.1 MB, free: 5.789 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.1637, allocations: 188.9 kB / 331.2 MB, free: 5.586 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000477/0.1642, allocations: 246.7 kB / 331.5 MB, free: 5.352 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.1643, allocations: 68.48 kB / 331.6 MB, free: 5.281 MB / 282.7 MB Notification: Performance of SimCode: time 8.91e-07/0.1643, allocations: 0 / 331.6 MB, free: 5.281 MB / 282.7 MB Notification: Performance of Templates: time 0.01886/0.1832, allocations: 19.53 MB / 351.1 MB, free: 2.027 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.227237201994285]