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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.989/1.989, allocations: 225.8 MB / 238.8 MB, free: 11.15 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.795e-05/2.801e-05, allocations: 2.812 kB / 292.2 MB, free: 8.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09468/0.09473, allocations: 50.4 MB / 342.6 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8777/0.9725, allocations: 327.5 MB / 0.6544 GB, free: 32.97 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003991/0.973, allocations: 95.73 kB / 0.6545 GB, free: 32.92 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.545/2.518, allocations: 331.1 MB / 0.9778 GB, free: 43.99 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.739e-06/2.518, allocations: 3.938 kB / 0.9778 GB, free: 43.99 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000132/2.518, allocations: 43.36 kB / 0.9778 GB, free: 43.95 MB / 442.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.005541/2.523, allocations: 2.046 MB / 0.9798 GB, free: 41.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/2.523, allocations: 12.03 kB / 0.9798 GB, free: 41.87 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00104/2.524, allocations: 197.8 kB / 0.98 GB, free: 41.68 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00301/2.527, allocations: 1.191 MB / 0.9812 GB, free: 40.46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/2.528, allocations: 98.33 kB / 0.9813 GB, free: 40.37 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002764/2.528, allocations: 123.6 kB / 0.9814 GB, free: 40.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003794/2.532, allocations: 1.903 MB / 0.9832 GB, free: 38.27 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.504e-05/2.532, allocations: 4 kB / 0.9832 GB, free: 38.26 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002282/2.532, allocations: 51.73 kB / 0.9833 GB, free: 38.22 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000165/2.532, allocations: 114.3 kB / 0.9834 GB, free: 38.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003816/2.536, allocations: 1.914 MB / 0.9853 GB, free: 36.19 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01335/2.549, allocations: 7.67 MB / 0.9928 GB, free: 28.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002145/2.552, allocations: 1.141 MB / 0.9939 GB, free: 27.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/2.553, allocations: 0.7344 MB / 0.9946 GB, free: 26.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006455/2.559, allocations: 3.468 MB / 0.998 GB, free: 22.6 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/2.559, allocations: 51.5 kB / 0.998 GB, free: 22.54 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 4.7e-06/2.559, allocations: 0 / 0.998 GB, free: 22.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.01085/2.57, allocations: 4.124 MB / 1.002 GB, free: 18.37 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.408e-05/2.57, allocations: 167.5 kB / 1.002 GB, free: 18.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002103/2.573, allocations: 1.239 MB / 1.003 GB, free: 16.92 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002845/2.573, allocations: 61.7 kB / 1.003 GB, free: 16.85 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000531/2.573, allocations: 0.7038 MB / 1.004 GB, free: 16.15 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004327/2.574, allocations: 467.6 kB / 1.005 GB, free: 15.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/2.574, allocations: 36 kB / 1.005 GB, free: 15.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/2.574, allocations: 373.9 kB / 1.005 GB, free: 15.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00151/2.576, allocations: 0.7341 MB / 1.006 GB, free: 14.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001719/2.577, allocations: 1.13 MB / 1.007 GB, free: 13.26 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001724/2.579, allocations: 0.8635 MB / 1.008 GB, free: 12.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.786e-06/2.579, allocations: 4 kB / 1.008 GB, free: 12.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.005007/2.584, allocations: 2.319 MB / 1.01 GB, free: 10.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000809/2.585, allocations: 4.344 MB / 1.014 GB, free: 5.457 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.09e-05/2.585, allocations: 16 kB / 1.014 GB, free: 5.441 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006457/2.592, allocations: 0.9358 MB / 1.015 GB, free: 4.492 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/2.593, allocations: 355.4 kB / 1.015 GB, free: 4.145 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002683/2.596, allocations: 2.887 MB / 1.018 GB, free: 1.156 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/2.598, allocations: 139.9 kB / 1.018 GB, free: 1.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002312/2.598, allocations: 83.66 kB / 1.018 GB, free: 0.9414 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/2.598, allocations: 4 kB / 1.018 GB, free: 0.9375 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004657/2.603, allocations: 2.038 MB / 1.02 GB, free: 14.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.236e-05/2.603, allocations: 12 kB / 1.02 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005256/2.608, allocations: 0.6783 MB / 1.021 GB, free: 14.19 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/2.61, allocations: 359.4 kB / 1.021 GB, free: 13.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003052/2.613, allocations: 2.643 MB / 1.024 GB, free: 11.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001945/2.615, allocations: 131.9 kB / 1.024 GB, free: 10.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002484/2.616, allocations: 75.97 kB / 1.024 GB, free: 10.89 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (200): * Single equations (assignments): 196 * 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.0005689/2.616, allocations: 219.2 kB / 1.024 GB, free: 10.67 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004121/2.617, allocations: 169.9 kB / 1.025 GB, free: 10.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006256/2.623, allocations: 2.338 MB / 1.027 GB, free: 8.156 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.834e-05/2.623, allocations: 19.95 kB / 1.027 GB, free: 8.137 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.113e-06/2.623, allocations: 0 / 1.027 GB, free: 8.137 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.457e-05/2.623, allocations: 7.969 kB / 1.027 GB, free: 8.129 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009684/2.633, allocations: 3.977 MB / 1.031 GB, free: 4.09 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/2.633, allocations: 0 / 1.031 GB, free: 4.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/2.634, allocations: 239.6 kB / 1.031 GB, free: 3.855 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005482/2.64, allocations: 0.8824 MB / 1.032 GB, free: 2.965 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003047/2.64, allocations: 35.98 kB / 1.032 GB, free: 2.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2901/2.93, allocations: 2.839 MB / 1.035 GB, free: 67 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.518e-06/2.93, allocations: 3.594 kB / 1.035 GB, free: 67 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008116/2.938, allocations: 3.205 MB / 1.038 GB, free: 66.62 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000811/2.939, allocations: 275.7 kB / 1.038 GB, free: 66.53 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004693/2.94, allocations: 42.56 kB / 1.038 GB, free: 66.53 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001518/2.941, allocations: 106.5 kB / 1.038 GB, free: 66.53 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004067/2.942, allocations: 146.9 kB / 1.038 GB, free: 66.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002297/2.942, allocations: 61.14 kB / 1.038 GB, free: 66.53 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001918/2.944, allocations: 0.9617 MB / 1.039 GB, free: 66.41 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.49e-07/2.944, allocations: 0 / 1.039 GB, free: 66.41 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005243/2.949, allocations: 1.378 MB / 1.041 GB, free: 66.41 MB / 458.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.003387/2.953, allocations: 1.251 MB / 1.042 GB, free: 66.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00764/2.96, allocations: 2.973 MB / 1.045 GB, free: 66.27 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/2.96, allocations: 1.312 kB / 1.045 GB, free: 66.27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00262/2.963, allocations: 1.043 MB / 1.046 GB, free: 66.26 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004765/2.968, allocations: 0.7426 MB / 1.047 GB, free: 66.24 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006855/2.975, allocations: 2.814 MB / 1.049 GB, free: 65.63 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001285/2.976, allocations: 1.434 MB / 1.051 GB, free: 64.91 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005187/2.981, allocations: 0.8337 MB / 1.052 GB, free: 64.88 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006932/2.982, allocations: 133.9 kB / 1.052 GB, free: 64.87 MB / 458.7 MB Notification: Performance of SimCode: time 1.647e-06/2.982, allocations: 0 / 1.052 GB, free: 64.87 MB / 458.7 MB Notification: Performance of Templates: time 0.1064/3.088, allocations: 50.45 MB / 1.101 GB, free: 62.14 MB / 458.7 MB