Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 100 kB / 15.05 MB, free: 1.105 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.001724/0.001724, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.4 MB / 222.1 MB, free: 5.527 MB / 174.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.0004755/0.0004756, allocations: 16 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2863, allocations: 47.58 MB / 326.4 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.03306/0.3194, allocations: 32.02 MB / 358.5 MB, free: 3.418 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02229/0.3418, allocations: 13.56 MB / 372 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00426/0.3461, allocations: 71.44 kB / 372.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002979/0.3491, allocations: 0.5984 MB / 372.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008108/0.3573, allocations: 2.068 MB / 374.8 MB, free: 3.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009223/0.3665, allocations: 2.943 MB / 377.7 MB, free: 144 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005821/0.3724, allocations: 2.632 MB / 380.3 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001977/0.3743, allocations: 1.043 MB / 381.4 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003596/0.378, allocations: 1.352 MB / 382.7 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002482/0.3805, allocations: 1.164 MB / 383.9 MB, free: 9.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003163/0.3808, allocations: 88 kB / 384 MB, free: 9.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005778/0.3866, allocations: 2.22 MB / 386.2 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000785/0.3874, allocations: 0.5142 MB / 386.7 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008155/0.3882, allocations: 360.8 kB / 387.1 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006121/0.3944, allocations: 2.931 MB / 390 MB, free: 3.797 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3944, allocations: 0 / 390 MB, free: 3.797 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.3944, allocations: 0 / 390 MB, free: 3.797 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.556e-05/0.3945, allocations: 0 / 390 MB, free: 3.797 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.005665/0.4002, allocations: 2.1 MB / 392.1 MB, free: 1.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.306e-05/0.4002, allocations: 12.03 kB / 392.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007457/0.401, allocations: 201.7 kB / 392.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00224/0.4032, allocations: 1.055 MB / 393.4 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.4034, allocations: 98.28 kB / 393.5 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002111/0.4036, allocations: 120 kB / 393.6 MB, free: 104 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003734/0.4073, allocations: 1.936 MB / 395.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.743e-05/0.4074, allocations: 3.938 kB / 395.5 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001688/0.4076, allocations: 51.98 kB / 395.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001876/0.4077, allocations: 118.3 kB / 395.7 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003628/0.4114, allocations: 1.984 MB / 397.7 MB, free: 11.91 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.01289/0.4243, allocations: 7.942 MB / 405.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002055/0.4264, allocations: 1.168 MB / 406.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005609/0.432, allocations: 3.459 MB / 410.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/0.4321, allocations: 55.5 kB / 410.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=119): time 3.607e-06/0.4321, allocations: 0 / 410.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=134): time 0.01319/0.4453, allocations: 5.424 MB / 415.7 MB, free: 8.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.904e-05/0.4455, allocations: 167.5 kB / 415.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002093/0.4476, allocations: 1.415 MB / 417.3 MB, free: 7.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001523/0.4477, allocations: 61.7 kB / 417.3 MB, free: 7.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006266/0.4484, allocations: 0.7073 MB / 418.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004647/0.4488, allocations: 477.3 kB / 418.5 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.492e-05/0.4489, allocations: 32 kB / 418.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.4491, allocations: 377.9 kB / 418.9 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.4504, allocations: 0.7534 MB / 419.7 MB, free: 4.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/0.452, allocations: 1.187 MB / 420.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.4534, allocations: 0.8687 MB / 421.7 MB, free: 2.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.4534, allocations: 8 kB / 421.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.004427/0.4579, allocations: 2.4 MB / 424.1 MB, free: 288 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001795/0.4597, allocations: 4.61 MB / 428.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/0.4597, allocations: 16 kB / 428.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007233/0.467, allocations: 1.139 MB / 429.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001741/0.4688, allocations: 347.5 kB / 430.2 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00276/0.4715, allocations: 2.892 MB / 433.1 MB, free: 6.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001964/0.4735, allocations: 135.9 kB / 433.3 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001701/0.4737, allocations: 79.98 kB / 433.3 MB, free: 6.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.4737, allocations: 4 kB / 433.3 MB, free: 6.672 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00368/0.4774, allocations: 2.127 MB / 435.5 MB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-05/0.4774, allocations: 12 kB / 435.5 MB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005897/0.4833, allocations: 0.862 MB / 436.3 MB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001636/0.485, allocations: 355.5 kB / 436.7 MB, free: 3.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002561/0.4876, allocations: 2.654 MB / 439.3 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/0.4896, allocations: 123.9 kB / 439.5 MB, free: 428 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001787/0.4898, allocations: 79.98 kB / 439.5 MB, free: 348 kB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (203): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001561/0.4914, allocations: 0.5258 MB / 440.1 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003688/0.4918, allocations: 166 kB / 440.2 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00492/0.4967, allocations: 2.353 MB / 442.6 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.458e-05/0.4967, allocations: 23.94 kB / 442.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.4968, allocations: 4 kB / 442.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.721e-05/0.4968, allocations: 7.969 kB / 442.6 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006941/0.5037, allocations: 4.034 MB / 446.7 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.5038, allocations: 12.02 kB / 446.7 MB, free: 9.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.5048, allocations: 239.6 kB / 446.9 MB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004155/0.509, allocations: 0.936 MB / 447.8 MB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/0.5091, allocations: 43.98 kB / 447.9 MB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002526/0.5116, allocations: 2.842 MB / 450.7 MB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5117, allocations: 0 / 450.7 MB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005403/0.5171, allocations: 3.246 MB / 454 MB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006907/0.5178, allocations: 282.7 kB / 454.2 MB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002458/0.518, allocations: 36 kB / 454.3 MB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.5191, allocations: 95.92 kB / 454.4 MB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003177/0.5195, allocations: 149 kB / 454.5 MB, free: 1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.5196, allocations: 67.95 kB / 454.6 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.2343/0.7539, allocations: 0.9632 MB / 455.6 MB, free: 115.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.92e-07/0.754, allocations: 0 / 455.6 MB, free: 115.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.006226/0.7602, allocations: 1.276 MB / 456.8 MB, free: 115.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.level,tank3.medium.T,tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002813/0.7631, allocations: 0.8772 MB / 457.7 MB, free: 115.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00659/0.7697, allocations: 3.056 MB / 460.8 MB, free: 114.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/0.7697, allocations: 3.938 kB / 460.8 MB, free: 114.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.7715, allocations: 1.078 MB / 461.8 MB, free: 114.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00321/0.7747, allocations: 0.7427 MB / 462.6 MB, free: 114.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005594/0.7803, allocations: 4.084 MB / 466.7 MB, free: 112.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008998/0.7813, allocations: 1.433 MB / 468.1 MB, free: 111.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002224/0.7835, allocations: 0.739 MB / 468.8 MB, free: 111.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003839/0.7839, allocations: 148.9 kB / 469 MB, free: 111.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.323e-06/0.7839, allocations: 0 / 469 MB, free: 111.3 MB / 382.1 MB Notification: Performance of Templates: time 0.06242/0.8463, allocations: 46.02 MB / 0.5029 GB, free: 66.18 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) Environment - environmentSimulation: