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.86/1.86, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.38e-05/3.406e-05, allocations: 5.094 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0807/0.08076, allocations: 44.5 MB / 299.8 MB, free: 6.637 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7873/0.8681, allocations: 322.2 MB / 0.6075 GB, free: 85.21 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.8684, allocations: 87.95 kB / 0.6076 GB, free: 85.12 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.508/2.377, allocations: 321.5 MB / 0.9215 GB, free: 57.06 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.937e-06/2.377, allocations: 0 / 0.9215 GB, free: 57.06 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001706/2.377, allocations: 46.44 kB / 0.9216 GB, free: 57.05 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.006449/2.384, allocations: 2.042 MB / 0.9235 GB, free: 56.13 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/2.384, allocations: 6.156 kB / 0.9235 GB, free: 56.13 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001247/2.385, allocations: 203.9 kB / 0.9237 GB, free: 56.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003847/2.389, allocations: 1.242 MB / 0.925 GB, free: 55.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/2.389, allocations: 102.5 kB / 0.9251 GB, free: 55.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004944/2.389, allocations: 127.2 kB / 0.9252 GB, free: 55.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004429/2.394, allocations: 1.923 MB / 0.9271 GB, free: 55.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.6e-05/2.394, allocations: 0 / 0.9271 GB, free: 55.37 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002743/2.394, allocations: 52.06 kB / 0.9271 GB, free: 55.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001825/2.394, allocations: 120.8 kB / 0.9272 GB, free: 55.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004514/2.399, allocations: 1.914 MB / 0.9291 GB, free: 55.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01595/2.415, allocations: 7.62 MB / 0.9365 GB, free: 51.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002459/2.417, allocations: 1.134 MB / 0.9376 GB, free: 51.87 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/2.419, allocations: 0.7171 MB / 0.9383 GB, free: 51.86 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006461/2.426, allocations: 3.383 MB / 0.9416 GB, free: 49.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/2.426, allocations: 45.56 kB / 0.9417 GB, free: 49.76 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 5.152e-06/2.426, allocations: 0 / 0.9417 GB, free: 49.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.01165/2.437, allocations: 4.081 MB / 0.9457 GB, free: 48.12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/2.437, allocations: 174.8 kB / 0.9458 GB, free: 47.94 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002098/2.439, allocations: 1.159 MB / 0.947 GB, free: 47.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003588/2.44, allocations: 59.17 kB / 0.947 GB, free: 47.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005087/2.44, allocations: 0.6882 MB / 0.9477 GB, free: 46.82 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005836/2.441, allocations: 476.2 kB / 0.9482 GB, free: 46.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/2.441, allocations: 38.09 kB / 0.9482 GB, free: 46.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/2.441, allocations: 383.5 kB / 0.9486 GB, free: 46.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/2.443, allocations: 0.7321 MB / 0.9493 GB, free: 45.83 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/2.445, allocations: 1.196 MB / 0.9504 GB, free: 45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/2.447, allocations: 0.8675 MB / 0.9513 GB, free: 44.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.561e-05/2.447, allocations: 6.812 kB / 0.9513 GB, free: 44.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005385/2.452, allocations: 2.288 MB / 0.9535 GB, free: 43.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001051/2.453, allocations: 5.134 MB / 0.9585 GB, free: 38.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.905e-05/2.453, allocations: 18.94 kB / 0.9586 GB, free: 38.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007224/2.461, allocations: 0.9429 MB / 0.9595 GB, free: 38.27 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002135/2.463, allocations: 356 kB / 0.9598 GB, free: 38.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003176/2.466, allocations: 2.885 MB / 0.9626 GB, free: 35.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002556/2.469, allocations: 140 kB / 0.9628 GB, free: 35.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004569/2.469, allocations: 82.48 kB / 0.9628 GB, free: 35.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/2.469, allocations: 5.812 kB / 0.9629 GB, free: 35.79 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005177/2.474, allocations: 2.099 MB / 0.9649 GB, free: 35 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.025e-05/2.474, allocations: 18.03 kB / 0.9649 GB, free: 35 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004972/2.479, allocations: 0.6583 MB / 0.9656 GB, free: 34.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001999/2.481, allocations: 375.3 kB / 0.9659 GB, free: 34.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002199/2.484, allocations: 2.615 MB / 0.9685 GB, free: 32.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/2.486, allocations: 131.6 kB / 0.9686 GB, free: 32.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003623/2.486, allocations: 82.72 kB / 0.9687 GB, free: 32.54 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 () * 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.0005479/2.487, allocations: 225.9 kB / 0.9689 GB, free: 32.34 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004646/2.487, allocations: 162.4 kB / 0.969 GB, free: 32.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005818/2.493, allocations: 2.318 MB / 0.9713 GB, free: 30.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.377e-05/2.493, allocations: 16 kB / 0.9713 GB, free: 30.55 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.41e-06/2.493, allocations: 0 / 0.9713 GB, free: 30.55 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.782e-05/2.493, allocations: 7.688 kB / 0.9713 GB, free: 30.55 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009285/2.502, allocations: 3.908 MB / 0.9752 GB, free: 27.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.311e-05/2.502, allocations: 4 kB / 0.9752 GB, free: 27.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001451/2.504, allocations: 241.7 kB / 0.9754 GB, free: 27.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005329/2.509, allocations: 0.8687 MB / 0.9762 GB, free: 26.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003666/2.51, allocations: 42.47 kB / 0.9763 GB, free: 26.45 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002579/2.512, allocations: 2.831 MB / 0.979 GB, free: 23.63 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.955e-06/2.512, allocations: 0 / 0.979 GB, free: 23.63 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006305/2.519, allocations: 3.173 MB / 0.9821 GB, free: 20.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007052/2.519, allocations: 262 kB / 0.9824 GB, free: 20.42 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005237/2.52, allocations: 39.8 kB / 0.9824 GB, free: 20.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/2.522, allocations: 110.8 kB / 0.9825 GB, free: 20.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004177/2.522, allocations: 153.3 kB / 0.9827 GB, free: 20.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001956/2.522, allocations: 51.78 kB / 0.9827 GB, free: 20.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001574/2.524, allocations: 0.881 MB / 0.9836 GB, free: 19.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.17e-07/2.524, allocations: 0 / 0.9836 GB, free: 19.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005334/2.529, allocations: 1.364 MB / 0.9849 GB, free: 18.02 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]) * 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.003414/2.533, allocations: 1.217 MB / 0.9861 GB, free: 17.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007283/2.54, allocations: 2.986 MB / 0.989 GB, free: 14.31 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/2.54, allocations: 4 kB / 0.989 GB, free: 14.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002451/2.542, allocations: 1.05 MB / 0.9901 GB, free: 13.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004038/2.547, allocations: 0.6651 MB / 0.9907 GB, free: 12.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006485/2.553, allocations: 2.892 MB / 0.9935 GB, free: 10.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/2.554, allocations: 1.429 MB / 0.9949 GB, free: 9.109 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008574/2.555, allocations: 158.7 kB / 0.9951 GB, free: 8.969 MB / 410.7 MB Notification: Performance of SimCode: time 1.842e-06/2.555, allocations: 4.188 kB / 0.9951 GB, free: 8.965 MB / 410.7 MB Notification: Performance of Templates: time 0.3352/2.89, allocations: 58.68 MB / 1.052 GB, free: 47.89 MB / 410.7 MB