Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 195 MB / 203.2 MB, free: 6.754 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.377e-05/2.391e-05, allocations: 3.453 kB / 249.6 MB, free: 5.59 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07852/0.07857, allocations: 44.49 MB / 294.1 MB, free: 11.16 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8024/0.881, allocations: 318.6 MB / 0.5984 GB, free: 37.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/0.8813, allocations: 89.48 kB / 0.5985 GB, free: 37.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7895/1.671, allocations: 188.9 MB / 0.7829 GB, free: 10.53 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.008e-06/1.671, allocations: 0 / 0.7829 GB, free: 10.53 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.912e-05/1.671, allocations: 23.98 kB / 0.783 GB, free: 10.5 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003394/1.674, allocations: 1.29 MB / 0.7842 GB, free: 9.164 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/1.674, allocations: 12.03 kB / 0.7842 GB, free: 9.152 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007155/1.675, allocations: 106.8 kB / 0.7843 GB, free: 9.047 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002308/1.677, allocations: 0.7801 MB / 0.7851 GB, free: 8.227 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.013e-05/1.678, allocations: 23.98 kB / 0.7851 GB, free: 8.203 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002478/1.678, allocations: 39.94 kB / 0.7852 GB, free: 8.164 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00195/1.68, allocations: 0.8889 MB / 0.786 GB, free: 7.273 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/1.682, allocations: 0.9576 MB / 0.787 GB, free: 6.258 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.149e-05/1.682, allocations: 4 kB / 0.787 GB, free: 6.254 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/1.682, allocations: 0 / 0.787 GB, free: 6.254 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/1.682, allocations: 61.27 kB / 0.787 GB, free: 6.191 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007574/1.69, allocations: 4.258 MB / 0.7912 GB, free: 1.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/1.691, allocations: 0.5158 MB / 0.7917 GB, free: 1.156 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005053/1.691, allocations: 286.1 kB / 0.792 GB, free: 0.875 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2309/1.922, allocations: 1.95 MB / 0.7939 GB, free: 65.64 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/1.922, allocations: 43.98 kB / 0.7939 GB, free: 65.61 MB / 394.7 MB Notification: Performance of pre-optimization done (n=40): time 3.835e-06/1.922, allocations: 0 / 0.7939 GB, free: 65.61 MB / 394.7 MB Notification: Performance of matching and sorting (n=45): time 0.008437/1.931, allocations: 1.717 MB / 0.7956 GB, free: 65.23 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/1.931, allocations: 160.4 kB / 0.7957 GB, free: 65.05 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/1.932, allocations: 0.6164 MB / 0.7963 GB, free: 64.92 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001269/1.932, allocations: 28.33 kB / 0.7964 GB, free: 64.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003728/1.933, allocations: 0.5187 MB / 0.7969 GB, free: 64.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002038/1.933, allocations: 159.6 kB / 0.797 GB, free: 64.52 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.067e-05/1.933, allocations: 2.062 kB / 0.797 GB, free: 64.52 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.712e-05/1.933, allocations: 345.9 kB / 0.7974 GB, free: 64.21 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006678/1.934, allocations: 284.6 kB / 0.7976 GB, free: 64.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008203/1.934, allocations: 0.6393 MB / 0.7983 GB, free: 63.77 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008728/1.943, allocations: 1.371 MB / 0.7996 GB, free: 63.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.456e-05/1.943, allocations: 4.203 kB / 0.7996 GB, free: 63.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.01083/1.954, allocations: 1.952 MB / 0.8015 GB, free: 63.69 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009022/1.955, allocations: 4.444 MB / 0.8058 GB, free: 59.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.229e-05/1.955, allocations: 15.48 kB / 0.8059 GB, free: 59.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007875/1.956, allocations: 162.5 kB / 0.806 GB, free: 59.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/1.957, allocations: 187.2 kB / 0.8062 GB, free: 59.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003125/1.96, allocations: 1.489 MB / 0.8076 GB, free: 58.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/1.962, allocations: 54.66 kB / 0.8077 GB, free: 58.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002655/1.962, allocations: 44.44 kB / 0.8077 GB, free: 58.01 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/1.962, allocations: 8.344 kB / 0.8077 GB, free: 58.01 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009283/1.971, allocations: 1.817 MB / 0.8095 GB, free: 57.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.385e-05/1.971, allocations: 10.91 kB / 0.8095 GB, free: 57.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006762/1.972, allocations: 150.2 kB / 0.8097 GB, free: 57.96 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009252/1.973, allocations: 184.8 kB / 0.8099 GB, free: 57.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/1.975, allocations: 1.383 MB / 0.8112 GB, free: 56.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009353/1.976, allocations: 40.92 kB / 0.8112 GB, free: 56.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/1.976, allocations: 46.09 kB / 0.8113 GB, free: 56.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003228/1.977, allocations: 139 kB / 0.8114 GB, free: 56.82 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002567/1.977, allocations: 87.41 kB / 0.8115 GB, free: 56.78 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002883/1.98, allocations: 0.7922 MB / 0.8123 GB, free: 56.69 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/1.98, allocations: 3.844 kB / 0.8123 GB, free: 56.69 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.549e-06/1.98, allocations: 2.438 kB / 0.8123 GB, free: 56.69 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/1.98, allocations: 3.75 kB / 0.8123 GB, free: 56.69 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004447/1.984, allocations: 1.49 MB / 0.8137 GB, free: 56.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.732e-06/1.984, allocations: 4.281 kB / 0.8137 GB, free: 56.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005572/1.985, allocations: 78.48 kB / 0.8138 GB, free: 56.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008085/1.986, allocations: 154.9 kB / 0.814 GB, free: 56.37 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.762e-05/1.986, allocations: 7.047 kB / 0.814 GB, free: 56.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001827/1.988, allocations: 1.381 MB / 0.8153 GB, free: 55.33 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.499e-06/1.988, allocations: 3.875 kB / 0.8153 GB, free: 55.33 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002779/1.99, allocations: 1.104 MB / 0.8164 GB, free: 55.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003706/1.991, allocations: 173.9 kB / 0.8166 GB, free: 54.93 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001716/1.991, allocations: 7.656 kB / 0.8166 GB, free: 54.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006759/1.992, allocations: 29.12 kB / 0.8166 GB, free: 54.93 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/1.992, allocations: 54.23 kB / 0.8167 GB, free: 54.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.576e-05/1.992, allocations: 23.42 kB / 0.8167 GB, free: 54.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007241/1.993, allocations: 466.4 kB / 0.8171 GB, free: 54.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.77e-07/1.993, allocations: 0 / 0.8171 GB, free: 54.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003256/1.996, allocations: 0.7637 MB / 0.8179 GB, free: 54.84 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00242/1.998, allocations: 0.7869 MB / 0.8186 GB, free: 54.74 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002971/2.001, allocations: 1.136 MB / 0.8197 GB, free: 54.73 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.813e-06/2.002, allocations: 7.062 kB / 0.8198 GB, free: 54.73 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007278/2.002, allocations: 284.9 kB / 0.82 GB, free: 54.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002068/2.004, allocations: 292.1 kB / 0.8203 GB, free: 54.72 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003298/2.008, allocations: 1.333 MB / 0.8216 GB, free: 54.37 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005983/2.008, allocations: 1.056 MB / 0.8226 GB, free: 53.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003749/2.009, allocations: 76.7 kB / 0.8227 GB, free: 53.66 MB / 394.7 MB Notification: Performance of SimCode: time 2.624e-06/2.009, allocations: 0 / 0.8227 GB, free: 53.66 MB / 394.7 MB Notification: Performance of Templates: time 0.03799/2.047, allocations: 24.86 MB / 0.847 GB, free: 52.61 MB / 394.7 MB