Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006206/0.006206, allocations: 102 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001204/0.001205, allocations: 194.2 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 52.34 kB / 326.5 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09616/0.09741, allocations: 46.62 MB / 373.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2): time 0.1999/0.2973, allocations: 21.78 MB / 394.9 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0152/0.3126, allocations: 9.969 MB / 404.9 MB, free: 8.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001317/0.314, allocations: 29.34 kB / 404.9 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.3153, allocations: 397.3 kB / 405.3 MB, free: 8.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003996/0.3193, allocations: 1.424 MB / 406.8 MB, free: 7.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007848/0.3272, allocations: 2.617 MB / 409.4 MB, free: 6.297 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005003/0.3322, allocations: 2.569 MB / 411.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001263/0.3335, allocations: 0.657 MB / 412.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002348/0.3358, allocations: 0.9947 MB / 413.6 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001696/0.3376, allocations: 0.9664 MB / 414.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002018/0.3378, allocations: 93.28 kB / 414.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00396/0.3417, allocations: 1.715 MB / 416.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004516/0.3422, allocations: 371.9 kB / 416.7 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007181/0.3429, allocations: 0.5363 MB / 417.3 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003747/0.3467, allocations: 2.455 MB / 419.7 MB, free: 220 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3467, allocations: 0 / 419.7 MB, free: 220 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3467, allocations: 3.938 kB / 419.7 MB, free: 216 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.627e-05/0.3468, allocations: 1.375 kB / 419.7 MB, free: 216 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.002988/0.3498, allocations: 1.502 MB / 421.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.524e-05/0.3498, allocations: 10.09 kB / 421.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004143/0.3502, allocations: 117.1 kB / 421.3 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.3515, allocations: 0.7167 MB / 422.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5e-05/0.3515, allocations: 51.41 kB / 422.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.3517, allocations: 69.23 kB / 422.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.3533, allocations: 1.054 MB / 423.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.486e-05/0.3534, allocations: 7.938 kB / 423.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.869e-05/0.3535, allocations: 31.92 kB / 423.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001005/0.3536, allocations: 65.27 kB / 423.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.3553, allocations: 1.039 MB / 424.4 MB, free: 12.2 MB / 350.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.006571/0.3619, allocations: 4.438 MB / 428.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009832/0.3629, allocations: 0.563 MB / 429.4 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004829/0.3634, allocations: 326 kB / 429.7 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002519/0.3659, allocations: 1.965 MB / 431.7 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.366, allocations: 46.83 kB / 431.7 MB, free: 4.371 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.724e-06/0.366, allocations: 4 kB / 431.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004459/0.3704, allocations: 1.956 MB / 433.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.29e-05/0.3705, allocations: 158.2 kB / 433.8 MB, free: 2.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001135/0.3717, allocations: 0.9312 MB / 434.8 MB, free: 1.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.524e-05/0.3717, allocations: 45.69 kB / 434.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003334/0.3721, allocations: 482.8 kB / 435.3 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.3722, allocations: 161.8 kB / 435.4 MB, free: 480 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002727/0.3725, allocations: 194.4 kB / 435.6 MB, free: 280 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3726, allocations: 341.9 kB / 436 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005098/0.3731, allocations: 328.7 kB / 436.3 MB, free: 15.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007238/0.3739, allocations: 0.6251 MB / 436.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.375, allocations: 0.8851 MB / 437.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.3751, allocations: 3.938 kB / 437.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001774/0.3768, allocations: 1.124 MB / 438.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3769, allocations: 8 kB / 438.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.3769, allocations: 15.94 kB / 438.9 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002374/0.3793, allocations: 373.8 kB / 439.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006329/0.3799, allocations: 183.7 kB / 439.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001065/0.381, allocations: 1.343 MB / 440.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007328/0.3817, allocations: 35.98 kB / 440.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.193e-05/0.3818, allocations: 47.98 kB / 440.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007704/0.3826, allocations: 0.5213 MB / 441.4 MB, free: 10.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006777/0.3833, allocations: 0.619 MB / 442 MB, free: 9.359 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00106/0.3844, allocations: 0.8793 MB / 442.9 MB, free: 8.352 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.47e-06/0.3844, allocations: 8 kB / 442.9 MB, free: 8.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization_lambda0): time 0.001707/0.3861, allocations: 1.09 MB / 444 MB, free: 7.242 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.3861, allocations: 8 kB / 444 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.3861, allocations: 8 kB / 444 MB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/0.3884, allocations: 337.3 kB / 444.4 MB, free: 6.891 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006271/0.389, allocations: 183.7 kB / 444.5 MB, free: 6.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001135/0.3901, allocations: 1.311 MB / 445.9 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008034/0.391, allocations: 43.61 kB / 445.9 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.83e-05/0.3911, allocations: 51.92 kB / 445.9 MB, free: 5.258 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[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 (104): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002983/0.3914, allocations: 244.3 kB / 446.2 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001763/0.3916, allocations: 94.88 kB / 446.3 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/0.3933, allocations: 0.793 MB / 447.1 MB, free: 4.121 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.3933, allocations: 12 kB / 447.1 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3933, allocations: 0 / 447.1 MB, free: 4.109 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.3933, allocations: 3.984 kB / 447.1 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002649/0.396, allocations: 1.583 MB / 448.7 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.396, allocations: 0 / 448.7 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000384/0.3964, allocations: 79.95 kB / 448.8 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00137/0.3978, allocations: 269.4 kB / 449 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.065e-05/0.3978, allocations: 12 kB / 449 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001081/0.3989, allocations: 1.311 MB / 450.3 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3989, allocations: 192 / 450.3 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.4005, allocations: 1.089 MB / 451.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003079/0.4009, allocations: 176 kB / 451.6 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.401, allocations: 12 kB / 451.6 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005199/0.4015, allocations: 27.97 kB / 451.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001216/0.4017, allocations: 44.38 kB / 451.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-05/0.4017, allocations: 23.98 kB / 451.7 MB, free: 15.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000906/0.4026, allocations: 0.652 MB / 452.4 MB, free: 14.65 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4026, allocations: 0 / 452.4 MB, free: 14.65 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00209/0.4047, allocations: 0.7496 MB / 453.1 MB, free: 13.9 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.level,tank1.medium.T) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001566/0.4063, allocations: 0.6185 MB / 453.7 MB, free: 13.28 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002554/0.4089, allocations: 1.271 MB / 455 MB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.4089, allocations: 0 / 455 MB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006105/0.4095, allocations: 346.2 kB / 455.3 MB, free: 11.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001841/0.4114, allocations: 412.8 kB / 455.7 MB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.4139, allocations: 1.699 MB / 457.4 MB, free: 9.531 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006116/0.4146, allocations: 1.033 MB / 458.5 MB, free: 8.469 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009745/0.4155, allocations: 376 kB / 458.8 MB, free: 8.098 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001868/0.4157, allocations: 75.42 kB / 458.9 MB, free: 8.027 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4157, allocations: 0 / 458.9 MB, free: 8.027 MB / 382.1 MB Notification: Performance of Templates: time 0.03846/0.4542, allocations: 25.73 MB / 484.6 MB, free: 14.25 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)