Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.869/1.869, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.58e-05/2.591e-05, allocations: 4 kB / 249.6 MB, free: 15.28 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2516, allocations: 44.49 MB / 294.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7935/1.045, allocations: 321.6 MB / 0.6013 GB, free: 117.8 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/1.045, allocations: 91.95 kB / 0.6013 GB, free: 117.7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.465/2.511, allocations: 319.6 MB / 0.9134 GB, free: 42.46 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.768e-06/2.511, allocations: 0 / 0.9134 GB, free: 42.46 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001706/2.511, allocations: 47.91 kB / 0.9135 GB, free: 42.46 MB / 394.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.006408/2.517, allocations: 2.043 MB / 0.9155 GB, free: 41.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/2.518, allocations: 10.19 kB / 0.9155 GB, free: 41.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001242/2.519, allocations: 199.5 kB / 0.9157 GB, free: 41.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003944/2.523, allocations: 1.245 MB / 0.9169 GB, free: 41.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/2.523, allocations: 40.53 kB / 0.9169 GB, free: 41.12 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000481/2.523, allocations: 75.16 kB / 0.917 GB, free: 41.11 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004347/2.528, allocations: 1.749 MB / 0.9187 GB, free: 41.11 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004411/2.532, allocations: 1.748 MB / 0.9204 GB, free: 40.83 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.873e-05/2.532, allocations: 5.844 kB / 0.9204 GB, free: 40.83 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000267/2.533, allocations: 3.875 kB / 0.9204 GB, free: 40.83 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001728/2.533, allocations: 116.5 kB / 0.9205 GB, free: 40.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01517/2.548, allocations: 7.355 MB / 0.9277 GB, free: 37.45 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002223/2.55, allocations: 1.097 MB / 0.9288 GB, free: 37.42 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/2.552, allocations: 0.7002 MB / 0.9295 GB, free: 37.41 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006374/2.558, allocations: 3.315 MB / 0.9327 GB, free: 35.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/2.558, allocations: 45.03 kB / 0.9328 GB, free: 35.8 MB / 394.7 MB Notification: Performance of pre-optimization done (n=119): time 7.099e-06/2.558, allocations: 2.656 kB / 0.9328 GB, free: 35.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=134): time 0.02392/2.582, allocations: 4.624 MB / 0.9373 GB, free: 35.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/2.582, allocations: 170 kB / 0.9374 GB, free: 34.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001981/2.584, allocations: 0.935 MB / 0.9384 GB, free: 34.79 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003799/2.585, allocations: 41 kB / 0.9384 GB, free: 34.75 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006377/2.585, allocations: 0.7134 MB / 0.9391 GB, free: 34.36 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006086/2.586, allocations: 456.2 kB / 0.9395 GB, free: 34.06 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/2.586, allocations: 0 / 0.9395 GB, free: 34.06 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002139/2.586, allocations: 383.3 kB / 0.9399 GB, free: 33.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001593/2.588, allocations: 0.699 MB / 0.9406 GB, free: 33.75 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001875/2.59, allocations: 1.162 MB / 0.9417 GB, free: 33.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01558/2.605, allocations: 2.519 MB / 0.9442 GB, free: 33.21 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.616e-05/2.606, allocations: 10.48 kB / 0.9442 GB, free: 33.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.01929/2.625, allocations: 3.827 MB / 0.9479 GB, free: 33.06 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001039/2.626, allocations: 5.144 MB / 0.9529 GB, free: 27.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.882e-05/2.626, allocations: 13.72 kB / 0.953 GB, free: 27.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001743/2.628, allocations: 457 kB / 0.9534 GB, free: 27.69 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/2.63, allocations: 360.1 kB / 0.9537 GB, free: 27.69 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005946/2.636, allocations: 3.275 MB / 0.9569 GB, free: 25.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002355/2.638, allocations: 106.3 kB / 0.957 GB, free: 25.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004833/2.639, allocations: 86.69 kB / 0.9571 GB, free: 25.59 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/2.639, allocations: 3.875 kB / 0.9571 GB, free: 25.59 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01753/2.656, allocations: 3.537 MB / 0.9606 GB, free: 24.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-05/2.656, allocations: 12.97 kB / 0.9606 GB, free: 24.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/2.658, allocations: 315.1 kB / 0.9609 GB, free: 24.74 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001915/2.659, allocations: 372.8 kB / 0.9612 GB, free: 24.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004988/2.664, allocations: 2.92 MB / 0.9641 GB, free: 22.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/2.666, allocations: 103 kB / 0.9642 GB, free: 22.38 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003679/2.667, allocations: 81.66 kB / 0.9643 GB, free: 22.36 MB / 394.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.000569/2.667, allocations: 168.5 kB / 0.9644 GB, free: 22.21 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004641/2.668, allocations: 150.7 kB / 0.9646 GB, free: 22.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007961/2.676, allocations: 2.319 MB / 0.9668 GB, free: 21.36 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-05/2.676, allocations: 17.09 kB / 0.9669 GB, free: 21.36 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/2.676, allocations: 5.656 kB / 0.9669 GB, free: 21.36 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.722e-05/2.676, allocations: 7.781 kB / 0.9669 GB, free: 21.36 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/2.688, allocations: 3.818 MB / 0.9706 GB, free: 19.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/2.688, allocations: 0 / 0.9706 GB, free: 19.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001444/2.689, allocations: 242.8 kB / 0.9708 GB, free: 19.87 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001926/2.691, allocations: 446.8 kB / 0.9713 GB, free: 19.74 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003047/2.692, allocations: 23.28 kB / 0.9713 GB, free: 19.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004692/2.696, allocations: 3.039 MB / 0.9742 GB, free: 17.32 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.471e-06/2.696, allocations: 7.219 kB / 0.9743 GB, free: 17.32 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0084/2.705, allocations: 3.203 MB / 0.9774 GB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006912/2.706, allocations: 238.3 kB / 0.9776 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006076/2.706, allocations: 14.48 kB / 0.9776 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001583/2.708, allocations: 78.62 kB / 0.9777 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004157/2.708, allocations: 145.8 kB / 0.9778 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001945/2.708, allocations: 57 kB / 0.9779 GB, free: 15.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001256/2.71, allocations: 0.6857 MB / 0.9786 GB, free: 15.38 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.123e-06/2.71, allocations: 0 / 0.9786 GB, free: 15.38 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005824/2.716, allocations: 1.263 MB / 0.9798 GB, free: 15.12 MB / 394.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.003565/2.719, allocations: 1.204 MB / 0.981 GB, free: 14.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006718/2.726, allocations: 2.835 MB / 0.9837 GB, free: 11.95 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/2.726, allocations: 11.55 kB / 0.9837 GB, free: 11.94 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002392/2.728, allocations: 1.015 MB / 0.9847 GB, free: 11.05 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003874/2.732, allocations: 0.6039 MB / 0.9853 GB, free: 10.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006285/2.739, allocations: 2.786 MB / 0.9881 GB, free: 8.137 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001063/2.74, allocations: 1.431 MB / 0.9894 GB, free: 6.934 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008893/2.741, allocations: 149.9 kB / 0.9896 GB, free: 6.801 MB / 394.7 MB Notification: Performance of SimCode: time 2.224e-06/2.741, allocations: 0 / 0.9896 GB, free: 6.801 MB / 394.7 MB Notification: Performance of Templates: time 0.3367/3.077, allocations: 58.04 MB / 1.046 GB, free: 47.92 MB / 410.7 MB