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.0008104/0.0008104, allocations: 81.81 kB / 21.42 MB, free: 3.07 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.0009818/0.0009818, allocations: 164.5 kB / 24.82 MB, free: 9.324 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.9697/0.9697, allocations: 177 MB / 205.1 MB, free: 5.449 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.753e-06/1.753e-06, allocations: 3.938 kB / 273.3 MB, free: 1.195 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.613e-05/1.788e-05, allocations: 5.266 kB / 273.3 MB, free: 1.191 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.006783/0.006801, allocations: 7.955 MB / 281.3 MB, free: 9.195 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005829/0.01263, allocations: 5.381 MB / 286.7 MB, free: 3.801 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004311/0.01306, allocations: 31.69 kB / 286.7 MB, free: 3.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004871/0.01355, allocations: 226.5 kB / 286.9 MB, free: 3.547 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001574/0.01512, allocations: 1.041 MB / 288 MB, free: 2.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002616/0.01774, allocations: 1.804 MB / 289.8 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1133/0.131, allocations: 1.951 MB / 291.7 MB, free: 16.03 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006693/0.1317, allocations: 447.8 kB / 292.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001302/0.133, allocations: 0.978 MB / 293.1 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008882/0.1339, allocations: 0.6767 MB / 293.8 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.134, allocations: 65.81 kB / 293.9 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001403/0.1354, allocations: 0.8812 MB / 294.8 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002413/0.1357, allocations: 292 kB / 295 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002936/0.136, allocations: 288 kB / 295.3 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001677/0.1377, allocations: 1.427 MB / 296.7 MB, free: 15.67 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1377, allocations: 4.469 kB / 296.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1377, allocations: 1.156 kB / 296.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.1377, allocations: 0.625 kB / 296.8 MB, free: 15.66 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.001522/0.1392, allocations: 1.214 MB / 298 MB, free: 14.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.1392, allocations: 9.594 kB / 298 MB, free: 14.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.1395, allocations: 140.3 kB / 298.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005495/0.14, allocations: 0.5067 MB / 298.6 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/0.1401, allocations: 39.11 kB / 298.7 MB, free: 14.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.918e-05/0.1401, allocations: 60.45 kB / 298.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005461/0.1407, allocations: 0.7383 MB / 299.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.1407, allocations: 1.531 kB / 299.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.115e-05/0.1407, allocations: 23.55 kB / 299.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.217e-05/0.1408, allocations: 43.42 kB / 299.5 MB, free: 14.16 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003577/0.1412, allocations: 257.1 kB / 299.8 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001829/0.143, allocations: 2.079 MB / 301.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.1433, allocations: 243.5 kB / 302.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.1434, allocations: 91.98 kB / 302.2 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.089e-05/0.1435, allocations: 29.66 kB / 302.2 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.1435, allocations: 41.7 kB / 302.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=48): time 1.824e-06/0.1435, allocations: 2.25 kB / 302.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=58): time 0.001907/0.1454, allocations: 1.19 MB / 303.4 MB, free: 12.66 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.088e-05/0.1454, allocations: 88.48 kB / 303.5 MB, free: 12.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003111/0.1457, allocations: 0.5269 MB / 304.1 MB, free: 12.37 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.826e-05/0.1457, allocations: 41.45 kB / 304.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.1459, allocations: 389.4 kB / 304.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.068e-05/0.146, allocations: 218.6 kB / 304.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.1461, allocations: 151.5 kB / 304.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.015e-05/0.1462, allocations: 0.5611 MB / 305.4 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.1463, allocations: 100.8 kB / 305.5 MB, free: 11.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.1465, allocations: 356.6 kB / 305.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003305/0.1468, allocations: 442.5 kB / 306.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1468, allocations: 0 / 306.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0005222/0.1474, allocations: 0.5414 MB / 306.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.1474, allocations: 9.469 kB / 306.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1474, allocations: 3.312 kB / 306.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.1484, allocations: 343.3 kB / 307.2 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002861/0.1487, allocations: 150.3 kB / 307.3 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003418/0.149, allocations: 0.903 MB / 308.2 MB, free: 9.941 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002106/0.1492, allocations: 35 kB / 308.3 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.224e-05/0.1493, allocations: 26.08 kB / 308.3 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001783/0.1494, allocations: 229.7 kB / 308.5 MB, free: 9.809 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001666/0.1496, allocations: 361.3 kB / 308.9 MB, free: 9.5 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000297/0.1499, allocations: 444.2 kB / 309.3 MB, free: 9.223 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.114e-06/0.1499, allocations: 0 / 309.3 MB, free: 9.223 MB / 266.7 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.0004955/0.1504, allocations: 0.5337 MB / 309.8 MB, free: 9.125 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.655e-06/0.1504, allocations: 7.094 kB / 309.8 MB, free: 9.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1504, allocations: 7.125 kB / 309.8 MB, free: 9.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007484/0.1512, allocations: 227.7 kB / 310.1 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002744/0.1514, allocations: 157.9 kB / 310.2 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002038/0.1516, allocations: 0.8534 MB / 311.1 MB, free: 8.301 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002058/0.1518, allocations: 32.89 kB / 311.1 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.1519, allocations: 28.95 kB / 311.1 MB, free: 8.285 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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.152, allocations: 316.1 kB / 311.4 MB, free: 7.992 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.031e-05/0.1521, allocations: 91.45 kB / 311.5 MB, free: 7.949 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005195/0.1526, allocations: 0.4895 MB / 312 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1526, allocations: 6.656 kB / 312 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-06/0.1526, allocations: 0 / 312 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.1526, allocations: 4.172 kB / 312 MB, free: 7.762 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009508/0.1535, allocations: 1.009 MB / 313 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1535, allocations: 0 / 313 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.1538, allocations: 108.6 kB / 313.1 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005866/0.1544, allocations: 258.8 kB / 313.4 MB, free: 7.121 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.933e-05/0.1544, allocations: 17.69 kB / 313.4 MB, free: 7.109 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000283/0.1547, allocations: 0.9209 MB / 314.3 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1547, allocations: 7.125 kB / 314.3 MB, free: 6.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005387/0.1552, allocations: 0.6933 MB / 315 MB, free: 5.602 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.266e-05/0.1553, allocations: 67.52 kB / 315.1 MB, free: 5.535 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.327e-05/0.1553, allocations: 16.03 kB / 315.1 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000191/0.1555, allocations: 23.98 kB / 315.1 MB, free: 5.496 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.939e-05/0.1556, allocations: 44.56 kB / 315.2 MB, free: 5.453 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.765e-05/0.1556, allocations: 23.98 kB / 315.2 MB, free: 5.43 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001374/0.1557, allocations: 332.7 kB / 315.5 MB, free: 5.133 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1557, allocations: 0 / 315.5 MB, free: 5.133 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007839/0.1565, allocations: 0.5185 MB / 316 MB, free: 4.613 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.0005143/0.157, allocations: 440.9 kB / 316.5 MB, free: 4.203 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007472/0.1578, allocations: 0.6311 MB / 317.1 MB, free: 3.621 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1578, allocations: 0 / 317.1 MB, free: 3.621 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002005/0.158, allocations: 207.8 kB / 317.3 MB, free: 3.434 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008113/0.1588, allocations: 364.8 kB / 317.7 MB, free: 3.117 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.1602, allocations: 1.291 MB / 319 MB, free: 1.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.351e-05/0.1603, allocations: 188.4 kB / 319.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003387/0.1607, allocations: 137.7 kB / 319.3 MB, free: 1.488 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/0.1611, allocations: 353.9 kB / 319.6 MB, free: 1.141 MB / 266.7 MB Notification: Performance of SimCode: time 5.21e-07/0.1611, allocations: 0 / 319.6 MB, free: 1.141 MB / 266.7 MB Notification: Performance of Templates: time 0.02047/0.1816, allocations: 20.54 MB / 340.2 MB, free: 12.97 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.0149218100123107]