Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001535/0.001535, allocations: 169.9 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.225/1.225, 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.001625/0.001624, allocations: 110.1 kB / 223.2 MB, free: 4.109 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.292e-05/3.295e-05, allocations: 0 / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06799/0.06804, allocations: 38.77 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6485/0.7165, allocations: 314.3 MB / 0.6074 GB, free: 4.387 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.7168, allocations: 91.08 kB / 0.6075 GB, free: 4.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9068/1.624, allocations: 279.1 MB / 0.88 GB, free: 23.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.575e-06/1.624, allocations: 0 / 0.88 GB, free: 23.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001121/1.624, allocations: 43.88 kB / 0.88 GB, free: 23.57 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004224/1.628, allocations: 1.789 MB / 0.8818 GB, free: 21.73 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/1.628, allocations: 15.97 kB / 0.8818 GB, free: 21.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005821/1.629, allocations: 162.2 kB / 0.882 GB, free: 21.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002194/1.631, allocations: 1.089 MB / 0.883 GB, free: 20.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/1.631, allocations: 81.97 kB / 0.8831 GB, free: 20.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000159/1.631, allocations: 99.88 kB / 0.8832 GB, free: 20.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002163/1.633, allocations: 1.596 MB / 0.8847 GB, free: 18.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.524e-05/1.633, allocations: 3.938 kB / 0.8847 GB, free: 18.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/1.633, allocations: 43.98 kB / 0.8848 GB, free: 18.51 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001049/1.634, allocations: 97.94 kB / 0.8849 GB, free: 18.41 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002006/1.636, allocations: 1.585 MB / 0.8864 GB, free: 16.83 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008213/1.644, allocations: 6.535 MB / 0.8928 GB, free: 9.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/1.645, allocations: 0.8799 MB / 0.8937 GB, free: 9.043 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006324/1.646, allocations: 0.534 MB / 0.8942 GB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003178/1.649, allocations: 2.816 MB / 0.8969 GB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/1.649, allocations: 43.34 kB / 0.897 GB, free: 5.387 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 2.514e-06/1.649, allocations: 0 / 0.897 GB, free: 5.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.004892/1.654, allocations: 2.762 MB / 0.8997 GB, free: 2.566 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.768e-05/1.654, allocations: 192.7 kB / 0.8999 GB, free: 2.336 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/1.655, allocations: 1.037 MB / 0.9009 GB, free: 1.289 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.191e-05/1.655, allocations: 49.7 kB / 0.9009 GB, free: 1.234 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003588/1.655, allocations: 0.6736 MB / 0.9016 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/1.656, allocations: 319.5 kB / 0.9019 GB, free: 240 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.974e-05/1.656, allocations: 32 kB / 0.9019 GB, free: 208 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.1878/1.844, allocations: 362.6 kB / 0.9023 GB, free: 43.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/1.845, allocations: 0.5303 MB / 0.9028 GB, free: 43.94 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/1.846, allocations: 1.007 MB / 0.9038 GB, free: 43.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001087/1.847, allocations: 0.6675 MB / 0.9044 GB, free: 43.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.228e-06/1.847, allocations: 4 kB / 0.9044 GB, free: 43.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.003191/1.85, allocations: 1.835 MB / 0.9062 GB, free: 43.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001025/1.851, allocations: 5.592 MB / 0.9117 GB, free: 37.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.748e-05/1.851, allocations: 14.81 kB / 0.9117 GB, free: 37.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003646/1.855, allocations: 0.6459 MB / 0.9123 GB, free: 37.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/1.856, allocations: 295.2 kB / 0.9126 GB, free: 37.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/1.858, allocations: 2.143 MB / 0.9147 GB, free: 35.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/1.859, allocations: 103.6 kB / 0.9148 GB, free: 35.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/1.859, allocations: 69.78 kB / 0.9149 GB, free: 35.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.195e-05/1.859, allocations: 6.984 kB / 0.9149 GB, free: 35.93 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002683/1.862, allocations: 1.64 MB / 0.9165 GB, free: 35.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.249e-05/1.862, allocations: 17.19 kB / 0.9165 GB, free: 35.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003002/1.865, allocations: 0.4969 MB / 0.917 GB, free: 35.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/1.866, allocations: 304 kB / 0.9173 GB, free: 35.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/1.867, allocations: 1.985 MB / 0.9192 GB, free: 34.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/1.869, allocations: 101.3 kB / 0.9193 GB, free: 34.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001284/1.869, allocations: 71.59 kB / 0.9194 GB, free: 34.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (171): * Single equations (assignments): 168 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003682/1.869, allocations: 200.9 kB / 0.9196 GB, free: 34.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002427/1.869, allocations: 142.3 kB / 0.9197 GB, free: 34.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003131/1.873, allocations: 1.49 MB / 0.9211 GB, free: 34.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/1.873, allocations: 12.27 kB / 0.9212 GB, free: 34.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/1.873, allocations: 3.953 kB / 0.9212 GB, free: 34.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/1.873, allocations: 4.969 kB / 0.9212 GB, free: 34.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004592/1.877, allocations: 2.742 MB / 0.9238 GB, free: 33.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/1.877, allocations: 0 / 0.9238 GB, free: 33.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006429/1.878, allocations: 158.3 kB / 0.924 GB, free: 33.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002627/1.881, allocations: 0.5997 MB / 0.9246 GB, free: 33.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.09e-05/1.881, allocations: 24.72 kB / 0.9246 GB, free: 33.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001384/1.882, allocations: 2.108 MB / 0.9267 GB, free: 32.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/1.882, allocations: 0 / 0.9267 GB, free: 32.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/1.885, allocations: 2.098 MB / 0.9287 GB, free: 31.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/1.885, allocations: 233.2 kB / 0.9289 GB, free: 31.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002237/1.885, allocations: 29.22 kB / 0.929 GB, free: 31.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007666/1.886, allocations: 77.3 kB / 0.929 GB, free: 31.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001925/1.886, allocations: 92.19 kB / 0.9291 GB, free: 31.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.184e-05/1.887, allocations: 39.12 kB / 0.9292 GB, free: 31.6 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009575/1.887, allocations: 0.789 MB / 0.9299 GB, free: 31.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.887, allocations: 0 / 0.9299 GB, free: 31.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002916/1.89, allocations: 1.185 MB / 0.9311 GB, free: 31.48 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * 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]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001934/1.892, allocations: 1.085 MB / 0.9321 GB, free: 31.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003459/1.896, allocations: 2.224 MB / 0.9343 GB, free: 31.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/1.896, allocations: 2.781 kB / 0.9343 GB, free: 31.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001152/1.897, allocations: 0.6922 MB / 0.935 GB, free: 31.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/1.899, allocations: 0.4942 MB / 0.9355 GB, free: 31.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/1.902, allocations: 2.195 MB / 0.9376 GB, free: 30.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005379/1.903, allocations: 1.283 MB / 0.9389 GB, free: 30.12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002038/1.905, allocations: 0.646 MB / 0.9395 GB, free: 30.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002811/1.905, allocations: 93.28 kB / 0.9396 GB, free: 30.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.313e-06/1.905, allocations: 3.75 kB / 0.9396 GB, free: 30.09 MB / 362.7 MB Notification: Performance of Templates: time 0.0504/1.956, allocations: 37.58 MB / 0.9763 GB, free: 27.8 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)