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.0009933/0.0009933, allocations: 87.67 kB / 21.19 MB, free: 3.371 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.001559/0.001559, allocations: 160.5 kB / 24.56 MB, free: 12 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.9193/0.9193, allocations: 177 MB / 204.8 MB, free: 5.574 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 2.064e-06/2.064e-06, allocations: 0 / 272.9 MB, free: 1.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.655e-05/1.862e-05, allocations: 5.266 kB / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.006749/0.006768, allocations: 8.041 MB / 280.9 MB, free: 9.348 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005634/0.0124, allocations: 5.455 MB / 286.4 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003942/0.0128, allocations: 43.62 kB / 286.4 MB, free: 3.836 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004922/0.01329, allocations: 222.5 kB / 286.7 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001567/0.01486, allocations: 1.041 MB / 287.7 MB, free: 2.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002558/0.01741, allocations: 1.765 MB / 289.5 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1012/0.1186, allocations: 1.971 MB / 291.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007357/0.1193, allocations: 438.1 kB / 291.9 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001368/0.1207, allocations: 0.9789 MB / 292.8 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008099/0.1215, allocations: 0.6992 MB / 293.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.1216, allocations: 64.75 kB / 293.6 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001458/0.1231, allocations: 0.8859 MB / 294.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002426/0.1233, allocations: 287.6 kB / 294.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003249/0.1236, allocations: 284.1 kB / 295.1 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001828/0.1255, allocations: 1.431 MB / 296.5 MB, free: 15.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1255, allocations: 3.172 kB / 296.5 MB, free: 15.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1255, allocations: 0 / 296.5 MB, free: 15.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.1255, allocations: 0 / 296.5 MB, free: 15.62 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.001727/0.1272, allocations: 1.221 MB / 297.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1272, allocations: 9.969 kB / 297.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002996/0.1275, allocations: 136.6 kB / 297.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006567/0.1282, allocations: 0.5242 MB / 298.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.345e-05/0.1282, allocations: 37.88 kB / 298.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.488e-05/0.1283, allocations: 62.41 kB / 298.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007075/0.129, allocations: 0.7787 MB / 299.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.731e-05/0.1291, allocations: 2.406 kB / 299.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.495e-05/0.1291, allocations: 21.41 kB / 299.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.995e-05/0.1292, allocations: 44.41 kB / 299.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005127/0.1297, allocations: 316.5 kB / 299.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002125/0.1318, allocations: 2.183 MB / 301.8 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004017/0.1322, allocations: 278.9 kB / 302.1 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.1324, allocations: 111.2 kB / 302.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.639e-05/0.1324, allocations: 25.42 kB / 302.2 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.252e-05/0.1325, allocations: 41.52 kB / 302.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.953e-06/0.1325, allocations: 1.438 kB / 302.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=58): time 0.002336/0.1348, allocations: 1.363 MB / 303.6 MB, free: 12.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.1348, allocations: 86.11 kB / 303.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003815/0.1352, allocations: 0.5346 MB / 304.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.129e-05/0.1352, allocations: 44.67 kB / 304.3 MB, free: 12.22 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000141/0.1354, allocations: 395.2 kB / 304.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/0.1355, allocations: 215.2 kB / 304.9 MB, free: 11.85 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.1356, allocations: 148.1 kB / 305 MB, free: 11.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.886e-05/0.1357, allocations: 0.5553 MB / 305.6 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.1359, allocations: 126.4 kB / 305.7 MB, free: 11.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002542/0.1361, allocations: 382.5 kB / 306.1 MB, free: 10.93 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004294/0.1366, allocations: 491.1 kB / 306.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1366, allocations: 0 / 306.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0006855/0.1373, allocations: 0.5922 MB / 307.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.1373, allocations: 7.688 kB / 307.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.1373, allocations: 3.281 kB / 307.2 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.1384, allocations: 342 kB / 307.5 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.1387, allocations: 155.1 kB / 307.6 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003897/0.1391, allocations: 0.9052 MB / 308.6 MB, free: 9.531 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002205/0.1393, allocations: 36.27 kB / 308.6 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.1394, allocations: 39.16 kB / 308.6 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002427/0.1396, allocations: 252 kB / 308.9 MB, free: 9.352 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002291/0.1398, allocations: 383.9 kB / 309.2 MB, free: 9.012 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003892/0.1402, allocations: 485.2 kB / 309.7 MB, free: 8.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.534e-06/0.1402, allocations: 3.562 kB / 309.7 MB, free: 8.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.0006216/0.1408, allocations: 0.5827 MB / 310.3 MB, free: 8.469 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.656e-06/0.1408, allocations: 11.53 kB / 310.3 MB, free: 8.465 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.1409, allocations: 3.594 kB / 310.3 MB, free: 8.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007921/0.1416, allocations: 232.2 kB / 310.5 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002865/0.1419, allocations: 157.6 kB / 310.7 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000227/0.1422, allocations: 0.8569 MB / 311.6 MB, free: 7.617 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002216/0.1424, allocations: 37.39 kB / 311.6 MB, free: 7.602 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.463e-05/0.1424, allocations: 30.84 kB / 311.6 MB, free: 7.598 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.000112/0.1425, allocations: 323.6 kB / 311.9 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.451e-05/0.1426, allocations: 89.61 kB / 312 MB, free: 7.258 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006278/0.1432, allocations: 0.5348 MB / 312.6 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.1432, allocations: 7.156 kB / 312.6 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.1432, allocations: 0 / 312.6 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.1433, allocations: 3.984 kB / 312.6 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.1444, allocations: 1.149 MB / 313.7 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1444, allocations: 0 / 313.7 MB, free: 6.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002996/0.1447, allocations: 102.4 kB / 313.8 MB, free: 6.273 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006205/0.1453, allocations: 276.6 kB / 314.1 MB, free: 6.043 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.1453, allocations: 16 kB / 314.1 MB, free: 6.027 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003034/0.1456, allocations: 0.9191 MB / 315 MB, free: 5.078 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1456, allocations: 4 kB / 315 MB, free: 5.074 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006954/0.1463, allocations: 0.7611 MB / 315.8 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.342e-05/0.1464, allocations: 59.58 kB / 315.9 MB, free: 4.227 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.139e-05/0.1464, allocations: 15.98 kB / 315.9 MB, free: 4.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001928/0.1466, allocations: 32.02 kB / 315.9 MB, free: 4.18 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.775e-05/0.1467, allocations: 48.41 kB / 315.9 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.811e-05/0.1467, allocations: 23.98 kB / 316 MB, free: 4.113 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001868/0.1469, allocations: 354.7 kB / 316.3 MB, free: 3.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1469, allocations: 0 / 316.3 MB, free: 3.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008682/0.1478, allocations: 0.5185 MB / 316.8 MB, free: 3.25 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.000578/0.1484, allocations: 439.9 kB / 317.3 MB, free: 2.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.1494, allocations: 0.7019 MB / 318 MB, free: 2.176 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1494, allocations: 0 / 318 MB, free: 2.176 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002465/0.1496, allocations: 234.9 kB / 318.2 MB, free: 1.957 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008043/0.1504, allocations: 353.1 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.001483/0.1519, allocations: 1.3 MB / 319.8 MB, free: 340 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.706e-05/0.152, allocations: 187.6 kB / 320 MB, free: 136 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004577/0.1525, allocations: 256 kB / 320.3 MB, free: 15.89 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.1526, allocations: 60.48 kB / 320.3 MB, free: 15.83 MB / 282.7 MB Notification: Performance of SimCode: time 6.31e-07/0.1526, allocations: 0 / 320.3 MB, free: 15.83 MB / 282.7 MB Notification: Performance of Templates: time 0.02051/0.1731, allocations: 20.22 MB / 340.5 MB, free: 11.95 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.006818439811468]