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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.959/1.959, allocations: 225.8 MB / 239.4 MB, free: 1.273 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.416e-05/4.438e-05, allocations: 4 kB / 292.7 MB, free: 11.52 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1453, allocations: 50.41 MB / 343.1 MB, free: 9.113 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.112/1.258, allocations: 327.3 MB / 0.6546 GB, free: 59.08 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/1.258, allocations: 89.5 kB / 0.6547 GB, free: 59.04 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.548/2.806, allocations: 331.1 MB / 0.978 GB, free: 56.59 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.398e-06/2.806, allocations: 0 / 0.978 GB, free: 56.59 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002667/2.807, allocations: 52.89 kB / 0.9781 GB, free: 56.58 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.009117/2.816, allocations: 2.036 MB / 0.9801 GB, free: 55.51 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/2.816, allocations: 11.59 kB / 0.9801 GB, free: 55.51 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001696/2.818, allocations: 201.4 kB / 0.9803 GB, free: 55.42 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005184/2.823, allocations: 1.183 MB / 0.9814 GB, free: 54.79 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/2.823, allocations: 104.4 kB / 0.9815 GB, free: 54.74 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005554/2.824, allocations: 125.9 kB / 0.9816 GB, free: 54.71 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006327/2.83, allocations: 1.903 MB / 0.9835 GB, free: 53.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.541e-05/2.83, allocations: 7.594 kB / 0.9835 GB, free: 53.85 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003843/2.831, allocations: 55.12 kB / 0.9836 GB, free: 53.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002956/2.831, allocations: 117.7 kB / 0.9837 GB, free: 53.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006742/2.838, allocations: 1.9 MB / 0.9855 GB, free: 53.15 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02533/2.863, allocations: 7.683 MB / 0.993 GB, free: 48.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004388/2.867, allocations: 1.137 MB / 0.9941 GB, free: 47.77 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001545/2.869, allocations: 0.7392 MB / 0.9949 GB, free: 47.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006482/2.876, allocations: 3.467 MB / 0.9983 GB, free: 45.19 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/2.876, allocations: 46.53 kB / 0.9983 GB, free: 45.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 4.551e-06/2.876, allocations: 2.594 kB / 0.9983 GB, free: 45.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.01123/2.887, allocations: 4.125 MB / 1.002 GB, free: 41.64 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/2.887, allocations: 171.5 kB / 1.002 GB, free: 41.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002124/2.889, allocations: 1.239 MB / 1.004 GB, free: 40.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002822/2.889, allocations: 60.61 kB / 1.004 GB, free: 40.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005394/2.89, allocations: 0.7125 MB / 1.004 GB, free: 39.42 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004753/2.89, allocations: 459 kB / 1.005 GB, free: 38.97 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/2.891, allocations: 36 kB / 1.005 GB, free: 38.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/2.891, allocations: 373.9 kB / 1.005 GB, free: 38.57 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001511/2.892, allocations: 0.7341 MB / 1.006 GB, free: 37.83 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001755/2.894, allocations: 1.133 MB / 1.007 GB, free: 36.54 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/2.896, allocations: 0.8618 MB / 1.008 GB, free: 35.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.221e-06/2.896, allocations: 0 / 1.008 GB, free: 35.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.005015/2.901, allocations: 2.325 MB / 1.01 GB, free: 33.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008499/2.902, allocations: 4.345 MB / 1.014 GB, free: 28.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/2.902, allocations: 10.5 kB / 1.014 GB, free: 28.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006591/2.908, allocations: 0.9308 MB / 1.015 GB, free: 27.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001895/2.91, allocations: 343.5 kB / 1.016 GB, free: 27.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002814/2.913, allocations: 2.906 MB / 1.019 GB, free: 24.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/2.915, allocations: 139.4 kB / 1.019 GB, free: 24.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002869/2.916, allocations: 75.97 kB / 1.019 GB, free: 24.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/2.916, allocations: 8 kB / 1.019 GB, free: 24.32 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004365/2.92, allocations: 2.034 MB / 1.021 GB, free: 22.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.403e-05/2.92, allocations: 15.98 kB / 1.021 GB, free: 22.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005012/2.925, allocations: 0.6786 MB / 1.021 GB, free: 21.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00193/2.927, allocations: 355.4 kB / 1.022 GB, free: 21.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/2.929, allocations: 2.646 MB / 1.024 GB, free: 18.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002035/2.931, allocations: 127.8 kB / 1.024 GB, free: 18.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000262/2.932, allocations: 83.92 kB / 1.025 GB, free: 18.27 MB / 442.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.0005125/2.932, allocations: 222.2 kB / 1.025 GB, free: 18.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003929/2.933, allocations: 169.9 kB / 1.025 GB, free: 17.88 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005351/2.938, allocations: 2.308 MB / 1.027 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.098e-05/2.938, allocations: 19.98 kB / 1.027 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/2.938, allocations: 11.95 kB / 1.027 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.188e-05/2.938, allocations: 7.969 kB / 1.027 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008101/2.946, allocations: 3.974 MB / 1.031 GB, free: 11.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/2.946, allocations: 0 / 1.031 GB, free: 11.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/2.948, allocations: 246.8 kB / 1.031 GB, free: 11.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005021/2.953, allocations: 0.8618 MB / 1.032 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003022/2.953, allocations: 51.86 kB / 1.032 GB, free: 10.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002473/2.955, allocations: 2.849 MB / 1.035 GB, free: 7.379 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.061e-06/2.956, allocations: 0 / 1.035 GB, free: 7.379 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006054/2.962, allocations: 3.214 MB / 1.038 GB, free: 4.078 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007876/2.962, allocations: 270.9 kB / 1.038 GB, free: 3.793 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005289/2.963, allocations: 39.92 kB / 1.038 GB, free: 3.758 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001617/2.965, allocations: 111.7 kB / 1.039 GB, free: 3.648 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003479/2.965, allocations: 157 kB / 1.039 GB, free: 3.496 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002027/2.965, allocations: 59.97 kB / 1.039 GB, free: 3.438 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00167/2.967, allocations: 0.9579 MB / 1.04 GB, free: 2.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.044e-06/2.967, allocations: 0 / 1.04 GB, free: 2.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004996/2.972, allocations: 1.382 MB / 1.041 GB, free: 1.098 MB / 442.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.003412/2.975, allocations: 1.255 MB / 1.042 GB, free: 15.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008259/2.984, allocations: 2.96 MB / 1.045 GB, free: 13.01 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/2.984, allocations: 4 kB / 1.045 GB, free: 13 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002825/2.987, allocations: 1.049 MB / 1.046 GB, free: 11.96 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004584/2.991, allocations: 0.7405 MB / 1.047 GB, free: 11.24 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007123/2.998, allocations: 2.814 MB / 1.05 GB, free: 8.414 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00157/3, allocations: 1.437 MB / 1.051 GB, free: 6.941 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004186/3.004, allocations: 0.8326 MB / 1.052 GB, free: 6.148 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005904/3.005, allocations: 127.4 kB / 1.052 GB, free: 6.023 MB / 458.7 MB Notification: Performance of SimCode: time 1.848e-06/3.005, allocations: 0 / 1.052 GB, free: 6.023 MB / 458.7 MB Notification: Performance of Templates: time 0.3858/3.391, allocations: 50.46 MB / 1.101 GB, free: 66.09 MB / 458.7 MB