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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.001062/0.001062, allocations: 170.5 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.12/1.12, allocations: 170.6 MB / 183.8 MB, free: 11.48 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001515/0.001514, allocations: 103.5 kB / 223.2 MB, free: 4.109 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.158e-05/2.179e-05, allocations: 4 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05961/0.05964, allocations: 38.77 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6092/0.6689, allocations: 316.9 MB / 0.6099 GB, free: 1.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.6691, allocations: 90.94 kB / 0.61 GB, free: 1.793 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.181/1.85, allocations: 321.5 MB / 0.9239 GB, free: 35.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.082e-06/1.85, allocations: 0 / 0.9239 GB, free: 35.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001193/1.85, allocations: 47.17 kB / 0.924 GB, free: 35.11 MB / 362.7 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.004756/1.855, allocations: 2.033 MB / 0.9259 GB, free: 34.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/1.855, allocations: 10.09 kB / 0.926 GB, free: 34.26 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006916/1.855, allocations: 209.2 kB / 0.9262 GB, free: 34.17 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/1.858, allocations: 1.246 MB / 0.9274 GB, free: 33.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.91e-05/1.858, allocations: 101.5 kB / 0.9275 GB, free: 33.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002047/1.858, allocations: 119.7 kB / 0.9276 GB, free: 33.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002872/1.861, allocations: 1.916 MB / 0.9295 GB, free: 33.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/1.861, allocations: 0.75 kB / 0.9295 GB, free: 33.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/1.861, allocations: 60.11 kB / 0.9295 GB, free: 33.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001237/1.862, allocations: 111.6 kB / 0.9296 GB, free: 33.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002544/1.864, allocations: 1.922 MB / 0.9315 GB, free: 33.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009595/1.874, allocations: 7.632 MB / 0.939 GB, free: 30.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/1.875, allocations: 1.131 MB / 0.9401 GB, free: 30.04 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008549/1.876, allocations: 0.724 MB / 0.9408 GB, free: 30.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003978/1.88, allocations: 3.387 MB / 0.9441 GB, free: 28.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/1.88, allocations: 45.27 kB / 0.9441 GB, free: 28.42 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 2.996e-06/1.88, allocations: 0 / 0.9441 GB, free: 28.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.007841/1.888, allocations: 4.082 MB / 0.9481 GB, free: 27.76 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.428e-05/1.888, allocations: 169.5 kB / 0.9483 GB, free: 27.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/1.889, allocations: 1.159 MB / 0.9494 GB, free: 27.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001113/1.89, allocations: 60.52 kB / 0.9495 GB, free: 27.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003905/1.89, allocations: 0.7231 MB / 0.9502 GB, free: 27.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002741/1.89, allocations: 478.3 kB / 0.9506 GB, free: 26.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.27e-05/1.89, allocations: 35.69 kB / 0.9506 GB, free: 26.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.021e-05/1.89, allocations: 378.9 kB / 0.951 GB, free: 26.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009672/1.891, allocations: 0.7286 MB / 0.9517 GB, free: 26.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001179/1.893, allocations: 1.187 MB / 0.9529 GB, free: 25.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/1.894, allocations: 0.8697 MB / 0.9537 GB, free: 25.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/1.894, allocations: 6.859 kB / 0.9537 GB, free: 25.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003494/1.897, allocations: 2.375 MB / 0.9561 GB, free: 25.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009511/1.898, allocations: 5.203 MB / 0.9611 GB, free: 20.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.489e-05/1.898, allocations: 17.03 kB / 0.9612 GB, free: 20.38 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005238/1.903, allocations: 0.936 MB / 0.9621 GB, free: 20.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/1.905, allocations: 355.6 kB / 0.9624 GB, free: 20.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002082/1.907, allocations: 2.882 MB / 0.9652 GB, free: 18.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001708/1.909, allocations: 139.2 kB / 0.9654 GB, free: 18.26 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002384/1.909, allocations: 90.09 kB / 0.9654 GB, free: 18.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/1.909, allocations: 9.609 kB / 0.9654 GB, free: 18.25 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003198/1.912, allocations: 2.094 MB / 0.9675 GB, free: 18.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-05/1.912, allocations: 14.09 kB / 0.9675 GB, free: 18.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004065/1.916, allocations: 0.6756 MB / 0.9682 GB, free: 18.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/1.918, allocations: 373.3 kB / 0.9685 GB, free: 18.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002166/1.92, allocations: 2.63 MB / 0.9711 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/1.921, allocations: 133.1 kB / 0.9712 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002157/1.922, allocations: 80.44 kB / 0.9713 GB, free: 32.06 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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.000483/1.922, allocations: 226.1 kB / 0.9715 GB, free: 31.94 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003457/1.922, allocations: 170.8 kB / 0.9717 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004115/1.927, allocations: 2.311 MB / 0.9739 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.567e-05/1.927, allocations: 14.94 kB / 0.9739 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/1.927, allocations: 3.234 kB / 0.9739 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/1.927, allocations: 11.44 kB / 0.974 GB, free: 31.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005903/1.932, allocations: 3.907 MB / 0.9778 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/1.933, allocations: 7.062 kB / 0.9778 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000984/1.934, allocations: 238.6 kB / 0.978 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003731/1.937, allocations: 0.8663 MB / 0.9789 GB, free: 31.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001531/1.937, allocations: 40.66 kB / 0.9789 GB, free: 31.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002187/1.94, allocations: 2.827 MB / 0.9817 GB, free: 29.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.94, allocations: 3.688 kB / 0.9817 GB, free: 29.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004246/1.944, allocations: 3.169 MB / 0.9847 GB, free: 28.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006884/1.945, allocations: 260.6 kB / 0.985 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004721/1.945, allocations: 40.03 kB / 0.985 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/1.946, allocations: 103 kB / 0.9851 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002518/1.947, allocations: 157.4 kB / 0.9853 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/1.947, allocations: 61.39 kB / 0.9853 GB, free: 28.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0014/1.948, allocations: 0.8775 MB / 0.9862 GB, free: 28.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.948, allocations: 0 / 0.9862 GB, free: 28.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004378/1.953, allocations: 1.365 MB / 0.9875 GB, free: 28.08 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * 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]) * 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.003072/1.956, allocations: 1.22 MB / 0.9887 GB, free: 27.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005097/1.961, allocations: 3.043 MB / 0.9917 GB, free: 27.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/1.961, allocations: 0 / 0.9917 GB, free: 27.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001609/1.962, allocations: 1.043 MB / 0.9927 GB, free: 27.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003148/1.966, allocations: 0.6643 MB / 0.9934 GB, free: 27.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004671/1.97, allocations: 2.846 MB / 0.9961 GB, free: 26.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/1.971, allocations: 1.434 MB / 0.9975 GB, free: 26.2 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002904/1.974, allocations: 0.8261 MB / 0.9984 GB, free: 26.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/1.975, allocations: 131.9 kB / 0.9985 GB, free: 26.09 MB / 378.7 MB Notification: Performance of SimCode: time 7.61e-07/1.975, allocations: 3.719 kB / 0.9985 GB, free: 26.09 MB / 378.7 MB Notification: Performance of Templates: time 0.06502/2.04, allocations: 47.77 MB / 1.045 GB, free: 1.367 MB / 378.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (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)