Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_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.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009662/0.0009663, allocations: 179.3 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.146/1.146, allocations: 194.5 MB / 211.6 MB, free: 3.047 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001636/0.001636, allocations: 116 kB / 256.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003418, allocations: 12 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08196/0.08232, allocations: 44.5 MB / 355.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5816/0.6639, allocations: 322.3 MB / 0.6615 GB, free: 12.43 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.6643, allocations: 95.83 kB / 0.6616 GB, free: 12.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9636/1.628, allocations: 322.5 MB / 0.9766 GB, free: 25.69 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.433e-06/1.628, allocations: 0 / 0.9766 GB, free: 25.69 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001094/1.628, allocations: 47.92 kB / 0.9766 GB, free: 25.64 MB / 410.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.00472/1.633, allocations: 2.242 MB / 0.9788 GB, free: 23.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/1.633, allocations: 8.031 kB / 0.9788 GB, free: 23.36 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005143/1.633, allocations: 205.7 kB / 0.979 GB, free: 23.15 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002205/1.636, allocations: 1.251 MB / 0.9802 GB, free: 21.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.802e-05/1.636, allocations: 102.2 kB / 0.9803 GB, free: 21.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/1.636, allocations: 116.8 kB / 0.9804 GB, free: 21.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002432/1.638, allocations: 1.943 MB / 0.9823 GB, free: 19.58 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.894e-05/1.638, allocations: 7.906 kB / 0.9824 GB, free: 19.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000144/1.638, allocations: 55.92 kB / 0.9824 GB, free: 19.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001079/1.639, allocations: 118.3 kB / 0.9825 GB, free: 19.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002377/1.641, allocations: 1.961 MB / 0.9844 GB, free: 17.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008404/1.649, allocations: 7.619 MB / 0.9919 GB, free: 9.398 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001382/1.651, allocations: 1.167 MB / 0.993 GB, free: 8.227 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003581/1.654, allocations: 3.334 MB / 0.9963 GB, free: 4.625 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/1.654, allocations: 47.56 kB / 0.9963 GB, free: 4.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 3.497e-06/1.654, allocations: 0 / 0.9963 GB, free: 4.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.2024/1.857, allocations: 5.363 MB / 1.002 GB, free: 47.86 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.964e-05/1.857, allocations: 169.9 kB / 1.002 GB, free: 47.68 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001525/1.858, allocations: 1.171 MB / 1.003 GB, free: 47.53 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001502/1.859, allocations: 61.12 kB / 1.003 GB, free: 47.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004324/1.859, allocations: 0.7249 MB / 1.004 GB, free: 47.41 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003202/1.859, allocations: 472.9 kB / 1.004 GB, free: 47.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.001e-05/1.859, allocations: 35.53 kB / 1.004 GB, free: 47.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.722e-05/1.86, allocations: 380.1 kB / 1.004 GB, free: 46.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009962/1.861, allocations: 0.7448 MB / 1.005 GB, free: 46.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/1.862, allocations: 1.209 MB / 1.006 GB, free: 46.38 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001093/1.863, allocations: 0.8715 MB / 1.007 GB, free: 46.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/1.863, allocations: 6.281 kB / 1.007 GB, free: 46.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.00314/1.866, allocations: 2.407 MB / 1.01 GB, free: 46.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000874/1.867, allocations: 5.209 MB / 1.015 GB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/1.867, allocations: 14.72 kB / 1.015 GB, free: 40.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004937/1.872, allocations: 0.955 MB / 1.016 GB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/1.873, allocations: 358.5 kB / 1.016 GB, free: 40.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/1.875, allocations: 2.887 MB / 1.019 GB, free: 38.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/1.877, allocations: 142.8 kB / 1.019 GB, free: 38.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001646/1.877, allocations: 86.81 kB / 1.019 GB, free: 38.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/1.877, allocations: 2.25 kB / 1.019 GB, free: 38.7 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002838/1.88, allocations: 2.131 MB / 1.021 GB, free: 38.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/1.88, allocations: 17.23 kB / 1.021 GB, free: 38.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003808/1.883, allocations: 0.6795 MB / 1.022 GB, free: 38.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001184/1.885, allocations: 371.6 kB / 1.022 GB, free: 38.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001457/1.886, allocations: 2.634 MB / 1.025 GB, free: 36.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/1.888, allocations: 127.4 kB / 1.025 GB, free: 36.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/1.888, allocations: 83.06 kB / 1.025 GB, free: 36.51 MB / 410.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 () * Number of clocked 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.0009377/1.889, allocations: 0.5261 MB / 1.025 GB, free: 36.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002142/1.889, allocations: 165.1 kB / 1.026 GB, free: 36.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003828/1.893, allocations: 2.344 MB / 1.028 GB, free: 36.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/1.893, allocations: 18.34 kB / 1.028 GB, free: 36.07 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/1.893, allocations: 3.953 kB / 1.028 GB, free: 36.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/1.893, allocations: 9.422 kB / 1.028 GB, free: 36.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005535/1.898, allocations: 3.934 MB / 1.032 GB, free: 35.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/1.898, allocations: 1.75 kB / 1.032 GB, free: 35.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009971/1.899, allocations: 243.5 kB / 1.032 GB, free: 35.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003809/1.903, allocations: 0.8826 MB / 1.033 GB, free: 35.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/1.903, allocations: 38.38 kB / 1.033 GB, free: 35.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001972/1.905, allocations: 2.839 MB / 1.036 GB, free: 33.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/1.905, allocations: 1.688 kB / 1.036 GB, free: 33.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004633/1.91, allocations: 3.21 MB / 1.039 GB, free: 33.01 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005644/1.91, allocations: 267 kB / 1.039 GB, free: 32.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002183/1.911, allocations: 33.72 kB / 1.039 GB, free: 32.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009685/1.912, allocations: 107 kB / 1.039 GB, free: 32.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/1.912, allocations: 156.4 kB / 1.039 GB, free: 32.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/1.912, allocations: 56.09 kB / 1.039 GB, free: 32.82 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001074/1.913, allocations: 0.8979 MB / 1.04 GB, free: 32.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.913, allocations: 3.938 kB / 1.04 GB, free: 32.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003837/1.917, allocations: 1.36 MB / 1.042 GB, free: 32.71 MB / 410.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]) * 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.00343/1.92, allocations: 1.228 MB / 1.043 GB, free: 32.59 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005886/1.926, allocations: 3.037 MB / 1.046 GB, free: 32.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/1.926, allocations: 1.469 kB / 1.046 GB, free: 32.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002103/1.928, allocations: 1.064 MB / 1.047 GB, free: 32.54 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003877/1.932, allocations: 0.6611 MB / 1.047 GB, free: 32.53 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007318/1.94, allocations: 4.122 MB / 1.051 GB, free: 30.99 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/1.941, allocations: 1.432 MB / 1.053 GB, free: 30.27 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002915/1.944, allocations: 0.7247 MB / 1.054 GB, free: 30.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005611/1.944, allocations: 149.1 kB / 1.054 GB, free: 30.23 MB / 410.7 MB Notification: Performance of SimCode: time 6.61e-07/1.944, allocations: 0 / 1.054 GB, free: 30.23 MB / 410.7 MB Notification: Performance of Templates: time 0.06487/2.009, allocations: 44.74 MB / 1.097 GB, free: 27.13 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)