Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001078/0.001077, allocations: 93.67 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00141/0.00141, allocations: 200.8 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003391/0.0003392, allocations: 4 kB / 308.4 MB, free: 0.7891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1228, allocations: 51.53 MB / 359.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.2264/0.3492, allocations: 31.68 MB / 391.6 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0229/0.3722, allocations: 14.72 MB / 406.3 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002815/0.3751, allocations: 57.22 kB / 406.4 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002191/0.3773, allocations: 0.5052 MB / 406.9 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007323/0.3846, allocations: 2.051 MB / 408.9 MB, free: 7.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.011/0.3956, allocations: 3.103 MB / 412 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008395/0.4041, allocations: 5.952 MB / 418 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002016/0.4061, allocations: 0.8677 MB / 418.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00351/0.4097, allocations: 1.273 MB / 420.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003008/0.4127, allocations: 1.51 MB / 421.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000565/0.4133, allocations: 72 kB / 421.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005983/0.4193, allocations: 2.289 MB / 424 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001165/0.4205, allocations: 498.5 kB / 424.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002103/0.4226, allocations: 0.7675 MB / 425.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005099/0.4277, allocations: 2.6 MB / 427.9 MB, free: 7.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4278, allocations: 0 / 427.9 MB, free: 7.672 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.038e-06/0.4278, allocations: 0 / 427.9 MB, free: 7.672 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.072e-05/0.4278, allocations: 3.938 kB / 427.9 MB, free: 7.668 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.00512/0.433, allocations: 1.826 MB / 429.7 MB, free: 5.789 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.433, allocations: 12.03 kB / 429.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009228/0.434, allocations: 170.2 kB / 429.9 MB, free: 5.609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002174/0.4362, allocations: 0.9482 MB / 430.8 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.4363, allocations: 77.97 kB / 430.9 MB, free: 4.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003635/0.4367, allocations: 103.9 kB / 431 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003189/0.4399, allocations: 1.632 MB / 432.6 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.748e-05/0.4399, allocations: 3.938 kB / 432.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001611/0.4401, allocations: 39.98 kB / 432.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001554/0.4403, allocations: 109.9 kB / 432.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002961/0.4432, allocations: 1.643 MB / 434.4 MB, free: 0.9258 MB / 334.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.01078/0.454, allocations: 6.676 MB / 441.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.4556, allocations: 0.9265 MB / 442 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000907/0.4565, allocations: 0.5582 MB / 442.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003965/0.4605, allocations: 2.812 MB / 445.4 MB, free: 5.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.492e-05/0.4605, allocations: 43.22 kB / 445.4 MB, free: 5.254 MB / 350.1 MB Notification: Performance of pre-optimization done (n=80): time 2.885e-06/0.4606, allocations: 8 kB / 445.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of matching and sorting (n=90): time 0.00908/0.4696, allocations: 3.727 MB / 449.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/0.4698, allocations: 192.9 kB / 449.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001908/0.4718, allocations: 1.306 MB / 450.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.4719, allocations: 49.7 kB / 450.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005565/0.4725, allocations: 0.6433 MB / 451.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003315/0.4728, allocations: 331.4 kB / 451.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.473, allocations: 117.7 kB / 451.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4731, allocations: 309.1 kB / 452.1 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.4743, allocations: 0.5778 MB / 452.7 MB, free: 13.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.4756, allocations: 0.9966 MB / 453.7 MB, free: 12.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002172/0.4778, allocations: 1.489 MB / 455.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.958e-06/0.4778, allocations: 4 kB / 455.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.003505/0.4813, allocations: 1.893 MB / 457.1 MB, free: 9.074 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003449/0.4817, allocations: 442.3 kB / 457.5 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.424e-05/0.4817, allocations: 16.5 kB / 457.5 MB, free: 8.461 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005411/0.4872, allocations: 0.7944 MB / 458.3 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.4885, allocations: 283.5 kB / 458.6 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002422/0.4909, allocations: 2.164 MB / 460.7 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/0.4926, allocations: 96.12 kB / 460.8 MB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002961/0.4929, allocations: 67.98 kB / 460.9 MB, free: 4.977 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.493, allocations: 8 kB / 460.9 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004539/0.4975, allocations: 1.662 MB / 462.6 MB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.932e-05/0.4976, allocations: 12 kB / 462.6 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006103/0.5037, allocations: 0.6271 MB / 463.2 MB, free: 2.648 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001789/0.5055, allocations: 291.5 kB / 463.5 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0025/0.5081, allocations: 2.02 MB / 465.5 MB, free: 272 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001935/0.51, allocations: 88.08 kB / 465.6 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003435/0.5104, allocations: 67.98 kB / 465.7 MB, free: 116 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],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 (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001411/0.5118, allocations: 484.4 kB / 466.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005506/0.5124, allocations: 142.2 kB / 466.3 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004616/0.517, allocations: 1.53 MB / 467.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/0.5171, allocations: 8 kB / 467.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.5171, allocations: 0 / 467.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-05/0.5171, allocations: 3.984 kB / 467.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006085/0.5232, allocations: 2.815 MB / 470.6 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.5232, allocations: 3.938 kB / 470.6 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007788/0.524, allocations: 159.7 kB / 470.8 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003171/0.5272, allocations: 0.6388 MB / 471.4 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.5274, allocations: 27.92 kB / 471.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002548/0.5299, allocations: 2.11 MB / 473.6 MB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.5299, allocations: 0 / 473.6 MB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005167/0.5351, allocations: 2.09 MB / 475.7 MB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007791/0.5359, allocations: 255.1 kB / 475.9 MB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004811/0.5364, allocations: 28 kB / 475.9 MB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001453/0.5379, allocations: 75.88 kB / 476 MB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003192/0.5382, allocations: 96.75 kB / 476.1 MB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001755/0.5384, allocations: 43.97 kB / 476.1 MB, free: 5.387 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00236/0.5408, allocations: 0.9006 MB / 477 MB, free: 4.484 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5408, allocations: 4 kB / 477 MB, free: 4.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005091/0.5459, allocations: 1.12 MB / 478.2 MB, free: 3.359 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(2,12), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003367/0.5493, allocations: 0.8308 MB / 479 MB, free: 2.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006626/0.556, allocations: 2.237 MB / 481.2 MB, free: 304 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/0.556, allocations: 4 kB / 481.2 MB, free: 300 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002037/0.5581, allocations: 0.6856 MB / 481.9 MB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004195/0.5623, allocations: 0.6078 MB / 482.5 MB, free: 15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005637/0.5679, allocations: 3.371 MB / 485.9 MB, free: 11.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001032/0.569, allocations: 1.248 MB / 487.2 MB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005616/0.5696, allocations: 131.3 kB / 487.3 MB, free: 10.19 MB / 398.1 MB Notification: Performance of SimCode: time 1.363e-06/0.5696, allocations: 0 / 487.3 MB, free: 10.19 MB / 398.1 MB Notification: Performance of Templates: time 0.06043/0.63, allocations: 45.11 MB / 0.5199 GB, free: 13.16 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)