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.001202/0.001202, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.0009831/0.0009831, allocations: 159.4 kB / 25.61 MB, free: 8.582 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.9148/0.9148, allocations: 177 MB / 205.9 MB, free: 4.414 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.413e-06/1.413e-06, allocations: 3.938 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.243e-05/2.385e-05, allocations: 4.375 kB / 274.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.006532/0.006556, allocations: 7.951 MB / 282.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005319/0.01188, allocations: 5.373 MB / 287.4 MB, free: 6.906 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000354/0.01223, allocations: 27.75 kB / 287.5 MB, free: 6.879 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004735/0.0127, allocations: 230.5 kB / 287.7 MB, free: 6.652 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001493/0.0142, allocations: 1.045 MB / 288.7 MB, free: 5.602 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002515/0.01671, allocations: 1.816 MB / 290.6 MB, free: 3.781 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001566/0.01828, allocations: 1.952 MB / 292.5 MB, free: 1.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000479/0.01876, allocations: 450.1 kB / 292.9 MB, free: 1.367 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009687/0.01972, allocations: 0.9704 MB / 293.9 MB, free: 404 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006887/0.02041, allocations: 0.6778 MB / 294.6 MB, free: 15.71 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.387e-05/0.0205, allocations: 68 kB / 294.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00107/0.02157, allocations: 0.8814 MB / 295.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002028/0.02177, allocations: 291.1 kB / 295.8 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002263/0.022, allocations: 283.3 kB / 296.1 MB, free: 14.2 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00132/0.02332, allocations: 1.433 MB / 297.5 MB, free: 12.77 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.02332, allocations: 0 / 297.5 MB, free: 12.77 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.02332, allocations: 0 / 297.5 MB, free: 12.77 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.02333, allocations: 0 / 297.5 MB, free: 12.77 MB / 282.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.001303/0.02463, allocations: 1.222 MB / 298.8 MB, free: 11.5 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.657e-05/0.02466, allocations: 8.031 kB / 298.8 MB, free: 11.5 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002332/0.02489, allocations: 136.2 kB / 298.9 MB, free: 11.36 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005118/0.0254, allocations: 0.5158 MB / 299.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/0.02543, allocations: 40.98 kB / 299.5 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.814e-05/0.0255, allocations: 59.94 kB / 299.5 MB, free: 10.72 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005725/0.02607, allocations: 0.7354 MB / 300.2 MB, free: 9.871 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.02609, allocations: 4 kB / 300.3 MB, free: 9.867 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.981e-05/0.02613, allocations: 19.98 kB / 300.3 MB, free: 9.848 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-05/0.02618, allocations: 44.97 kB / 300.3 MB, free: 9.801 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003226/0.0265, allocations: 254.6 kB / 300.6 MB, free: 9.555 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.02843, allocations: 2.081 MB / 302.6 MB, free: 7.418 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003051/0.02873, allocations: 238.3 kB / 302.9 MB, free: 7.168 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.02884, allocations: 93.06 kB / 303 MB, free: 7.074 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.882e-05/0.0289, allocations: 24.48 kB / 303 MB, free: 7.051 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.02892, allocations: 41.89 kB / 303 MB, free: 7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=48): time 1.412e-06/0.02892, allocations: 4 kB / 303 MB, free: 6.996 MB / 282.7 MB Notification: Performance of matching and sorting (n=58): time 0.001924/0.03084, allocations: 1.183 MB / 304.2 MB, free: 5.777 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.03088, allocations: 85.61 kB / 304.3 MB, free: 5.676 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003326/0.03121, allocations: 0.5294 MB / 304.8 MB, free: 5.129 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.097e-05/0.03125, allocations: 41.7 kB / 304.9 MB, free: 5.082 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.03144, allocations: 395.4 kB / 305.3 MB, free: 4.688 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000117/0.03155, allocations: 218.1 kB / 305.5 MB, free: 4.473 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.0317, allocations: 152.2 kB / 305.6 MB, free: 4.316 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.03185, allocations: 0.5585 MB / 306.2 MB, free: 3.746 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.03198, allocations: 99.61 kB / 306.3 MB, free: 3.645 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002372/0.03222, allocations: 365.2 kB / 306.6 MB, free: 3.188 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003748/0.03259, allocations: 441.5 kB / 307.1 MB, free: 2.668 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.0326, allocations: 0 / 307.1 MB, free: 2.668 MB / 282.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0006049/0.0332, allocations: 0.5392 MB / 307.6 MB, free: 2.117 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.03321, allocations: 8 kB / 307.6 MB, free: 2.109 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.03322, allocations: 4 kB / 307.6 MB, free: 2.105 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.03429, allocations: 339.7 kB / 307.9 MB, free: 1.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003022/0.03459, allocations: 155.7 kB / 308.1 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004759/0.03507, allocations: 0.8936 MB / 309 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.03529, allocations: 31.98 kB / 309 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.548e-05/0.03532, allocations: 28.02 kB / 309.1 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000205/0.03553, allocations: 224.8 kB / 309.3 MB, free: 416 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002414/0.03577, allocations: 368.9 kB / 309.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003535/0.03612, allocations: 445.2 kB / 310.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.076e-06/0.03613, allocations: 3.984 kB / 310.1 MB, free: 15.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.0005637/0.03669, allocations: 0.5278 MB / 310.6 MB, free: 14.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.286e-06/0.0367, allocations: 11.98 kB / 310.6 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.0367, allocations: 4 kB / 310.6 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008148/0.03752, allocations: 223.5 kB / 310.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003018/0.03782, allocations: 155.7 kB / 311 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000331/0.03815, allocations: 0.8546 MB / 311.8 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002132/0.03836, allocations: 40.02 kB / 311.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.03839, allocations: 20 kB / 311.9 MB, free: 13.54 MB / 298.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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.03855, allocations: 323.8 kB / 312.2 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.622e-05/0.03865, allocations: 83.58 kB / 312.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005869/0.03923, allocations: 491.3 kB / 312.8 MB, free: 12.65 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.03924, allocations: 11.94 kB / 312.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.03924, allocations: 3.984 kB / 312.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.03924, allocations: 0 / 312.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.04033, allocations: 1.01 MB / 313.8 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.04033, allocations: 0 / 313.8 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.04058, allocations: 99.89 kB / 313.9 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000636/0.04122, allocations: 267.4 kB / 314.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.817e-05/0.04125, allocations: 16.05 kB / 314.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004413/0.04169, allocations: 0.917 MB / 315.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.04169, allocations: 3.984 kB / 315.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006844/0.04238, allocations: 0.6945 MB / 315.8 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.072e-05/0.04244, allocations: 63.5 kB / 315.9 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.385e-05/0.0425, allocations: 12 kB / 315.9 MB, free: 9.449 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002001/0.0427, allocations: 31.95 kB / 315.9 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.445e-05/0.04278, allocations: 48.56 kB / 315.9 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/0.04281, allocations: 19.98 kB / 316 MB, free: 9.352 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001968/0.043, allocations: 334.6 kB / 316.3 MB, free: 9.027 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.043, allocations: 0 / 316.3 MB, free: 9.027 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009507/0.04395, allocations: 0.5186 MB / 316.8 MB, free: 8.508 MB / 298.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.0006447/0.0446, allocations: 433.9 kB / 317.2 MB, free: 8.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008311/0.04543, allocations: 0.6345 MB / 317.9 MB, free: 7.434 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.04543, allocations: 0 / 317.9 MB, free: 7.434 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002423/0.04568, allocations: 209.1 kB / 318.1 MB, free: 7.227 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008307/0.04651, allocations: 357.9 kB / 318.4 MB, free: 6.895 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.04817, allocations: 1.294 MB / 319.7 MB, free: 5.559 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.04833, allocations: 192.4 kB / 319.9 MB, free: 5.352 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003772/0.0487, allocations: 133 kB / 320 MB, free: 5.223 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005033/0.04921, allocations: 353.9 kB / 320.4 MB, free: 4.875 MB / 298.7 MB Notification: Performance of SimCode: time 5.91e-07/0.04921, allocations: 0 / 320.4 MB, free: 4.875 MB / 298.7 MB Notification: Performance of Templates: time 0.02146/0.07066, allocations: 20.82 MB / 341.2 MB, free: 320 kB / 314.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.161981475073844]