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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001509/0.001509, allocations: 113.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001832/0.001832, allocations: 208.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.847/1.847, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002018/0.002019, allocations: 63.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3562, allocations: 50.54 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.02829/0.3845, allocations: 17.64 MB / 427.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01275/0.3974, allocations: 6.046 MB / 433.6 MB, free: 9.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001304/0.3987, allocations: 23.88 kB / 433.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001539/0.4003, allocations: 325.9 kB / 434 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00406/0.4044, allocations: 1.042 MB / 435 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005894/0.4103, allocations: 1.647 MB / 436.6 MB, free: 6.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004415/0.4148, allocations: 1.941 MB / 438.6 MB, free: 4.828 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001404/0.4162, allocations: 477.7 kB / 439.1 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002262/0.4185, allocations: 0.7397 MB / 439.8 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001802/0.4204, allocations: 0.7318 MB / 440.5 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002696/0.4207, allocations: 64 kB / 440.6 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003406/0.4241, allocations: 1.147 MB / 441.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005434/0.4247, allocations: 255.3 kB / 442 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007721/0.4255, allocations: 402.1 kB / 442.4 MB, free: 1.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0039/0.4294, allocations: 1.696 MB / 444.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4295, allocations: 0 / 444.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4295, allocations: 0 / 444.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.468e-05/0.4295, allocations: 0 / 444.1 MB, free: 15.32 MB / 366.1 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.003459/0.433, allocations: 1.172 MB / 445.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.624e-05/0.4331, allocations: 12.03 kB / 445.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004789/0.4336, allocations: 95.92 kB / 445.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001414/0.435, allocations: 0.5792 MB / 445.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.47e-05/0.4351, allocations: 44.97 kB / 446 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.4352, allocations: 44 kB / 446 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001708/0.4369, allocations: 0.7333 MB / 446.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.437, allocations: 4 kB / 446.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.914e-05/0.4371, allocations: 20 kB / 446.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-05/0.4372, allocations: 40.97 kB / 446.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001644/0.4388, allocations: 0.6987 MB / 447.5 MB, free: 11.75 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006341/0.4452, allocations: 3.034 MB / 450.5 MB, free: 8.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001141/0.4463, allocations: 496.4 kB / 451 MB, free: 8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005567/0.4469, allocations: 270 kB / 451.3 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003997/0.4473, allocations: 341.3 kB / 451.6 MB, free: 7.328 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.4474, allocations: 38.98 kB / 451.7 MB, free: 7.281 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 7.915e-06/0.4474, allocations: 3.984 kB / 451.7 MB, free: 7.277 MB / 366.1 MB Notification: Performance of matching and sorting (n=58): time 0.007666/0.4551, allocations: 2.303 MB / 454 MB, free: 4.906 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.528e-05/0.4552, allocations: 85.67 kB / 454.1 MB, free: 4.805 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.4563, allocations: 0.6328 MB / 454.7 MB, free: 4.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.081e-05/0.4564, allocations: 37.7 kB / 454.7 MB, free: 4.117 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003394/0.4568, allocations: 328.4 kB / 455 MB, free: 3.789 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002229/0.457, allocations: 205 kB / 455.3 MB, free: 3.586 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003159/0.4573, allocations: 142.6 kB / 455.4 MB, free: 3.441 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002241/0.4576, allocations: 378.7 kB / 455.8 MB, free: 3.062 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007284/0.4583, allocations: 320.7 kB / 456.1 MB, free: 2.746 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008675/0.4592, allocations: 473.3 kB / 456.5 MB, free: 2.215 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/0.4607, allocations: 0.7444 MB / 457.3 MB, free: 1.406 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.4608, allocations: 3.984 kB / 457.3 MB, free: 1.402 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002352/0.4631, allocations: 0.9738 MB / 458.3 MB, free: 428 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.4632, allocations: 8 kB / 458.3 MB, free: 420 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.4632, allocations: 8.031 kB / 458.3 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003308/0.4665, allocations: 400.3 kB / 458.7 MB, free: 8 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009722/0.4675, allocations: 155.8 kB / 458.8 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001316/0.4689, allocations: 0.8255 MB / 459.6 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008661/0.4698, allocations: 35.91 kB / 459.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.4699, allocations: 32 kB / 459.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001011/0.4709, allocations: 477.9 kB / 460.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008521/0.4718, allocations: 474.2 kB / 460.6 MB, free: 13.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001464/0.4732, allocations: 0.7319 MB / 461.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.19e-06/0.4733, allocations: 0 / 461.4 MB, free: 13.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.002231/0.4755, allocations: 0.9046 MB / 462.3 MB, free: 12.22 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.4756, allocations: 7.984 kB / 462.3 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/0.4756, allocations: 8.625 kB / 462.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002924/0.4785, allocations: 272.5 kB / 462.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.4796, allocations: 155.7 kB / 462.7 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001001/0.4807, allocations: 0.7084 MB / 463.4 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009765/0.4817, allocations: 35.97 kB / 463.5 MB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001507/0.4818, allocations: 36.06 kB / 463.5 MB, free: 10.98 MB / 382.1 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.0004398/0.4823, allocations: 234.2 kB / 463.7 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003295/0.4826, allocations: 71.09 kB / 463.8 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002575/0.4852, allocations: 0.8737 MB / 464.7 MB, free: 9.789 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.4853, allocations: 4 kB / 464.7 MB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.4853, allocations: 3.828 kB / 464.7 MB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.482e-05/0.4853, allocations: 7.984 kB / 464.7 MB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004687/0.49, allocations: 1.706 MB / 466.4 MB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/0.4901, allocations: 0 / 466.4 MB, free: 8.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008028/0.4909, allocations: 107.9 kB / 466.5 MB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002293/0.4932, allocations: 320.6 kB / 466.8 MB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.4934, allocations: 23.92 kB / 466.8 MB, free: 7.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.4947, allocations: 0.8132 MB / 467.6 MB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.4947, allocations: 4.031 kB / 467.6 MB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003318/0.498, allocations: 1.296 MB / 468.9 MB, free: 5.395 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003801/0.4985, allocations: 144.2 kB / 469.1 MB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002444/0.4987, allocations: 15.98 kB / 469.1 MB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007975/0.4996, allocations: 27.98 kB / 469.1 MB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.4998, allocations: 56.62 kB / 469.2 MB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/0.4999, allocations: 27.92 kB / 469.2 MB, free: 5.109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009572/0.5009, allocations: 443 kB / 469.6 MB, free: 4.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5009, allocations: 0 / 469.6 MB, free: 4.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002572/0.5035, allocations: 0.531 MB / 470.2 MB, free: 4.148 MB / 382.1 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.001717/0.5052, allocations: 458 kB / 470.6 MB, free: 3.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003779/0.509, allocations: 1.195 MB / 471.8 MB, free: 2.504 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.628e-06/0.5091, allocations: 3.938 kB / 471.8 MB, free: 2.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.5102, allocations: 408.5 kB / 472.2 MB, free: 2.105 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002927/0.5131, allocations: 364.5 kB / 472.6 MB, free: 1.754 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004162/0.5174, allocations: 1.607 MB / 474.2 MB, free: 108 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000882/0.5183, allocations: 0.9635 MB / 475.1 MB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004378/0.5188, allocations: 71.42 kB / 475.2 MB, free: 15.05 MB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5188, allocations: 3.938 kB / 475.2 MB, free: 15.04 MB / 398.1 MB Notification: Performance of Templates: time 0.03724/0.556, allocations: 17.8 MB / 493 MB, free: 13.31 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Fluid/Examples/AST_BatchPlant/Test/TwoTanks/TwoTanks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches