Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.864/1.864, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.967e-05/1.977e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2536, allocations: 44.5 MB / 294.1 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7787/1.032, allocations: 319 MB / 0.5987 GB, free: 120.4 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/1.033, allocations: 91.47 kB / 0.5988 GB, free: 120.3 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.364/2.397, allocations: 277.3 MB / 0.8696 GB, free: 45.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.206e-06/2.397, allocations: 0 / 0.8696 GB, free: 45.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001756/2.397, allocations: 39.22 kB / 0.8696 GB, free: 45.05 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005908/2.403, allocations: 1.785 MB / 0.8714 GB, free: 44.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/2.403, allocations: 12.78 kB / 0.8714 GB, free: 44.35 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001177/2.404, allocations: 169.8 kB / 0.8715 GB, free: 44.27 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003546/2.408, allocations: 1.082 MB / 0.8726 GB, free: 43.99 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/2.408, allocations: 34.69 kB / 0.8726 GB, free: 43.99 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003911/2.408, allocations: 59.03 kB / 0.8727 GB, free: 43.99 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003582/2.412, allocations: 1.426 MB / 0.8741 GB, free: 43.98 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003633/2.416, allocations: 1.463 MB / 0.8755 GB, free: 43.73 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.417e-05/2.416, allocations: 6.984 kB / 0.8755 GB, free: 43.73 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002104/2.416, allocations: 3.484 kB / 0.8755 GB, free: 43.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001706/2.416, allocations: 102.2 kB / 0.8756 GB, free: 43.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01295/2.429, allocations: 6.322 MB / 0.8818 GB, free: 40.76 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001859/2.431, allocations: 0.8499 MB / 0.8826 GB, free: 40.73 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/2.432, allocations: 0.5087 MB / 0.8831 GB, free: 40.73 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005158/2.437, allocations: 2.755 MB / 0.8858 GB, free: 39.29 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/2.437, allocations: 40.75 kB / 0.8858 GB, free: 39.25 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 4.297e-06/2.437, allocations: 7.062 kB / 0.8858 GB, free: 39.25 MB / 394.7 MB Notification: Performance of matching and sorting (n=90): time 0.01428/2.452, allocations: 3.098 MB / 0.8889 GB, free: 38.71 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/2.452, allocations: 197.5 kB / 0.8891 GB, free: 38.49 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001583/2.453, allocations: 0.8477 MB / 0.8899 GB, free: 38.33 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002541/2.454, allocations: 26.98 kB / 0.8899 GB, free: 38.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004887/2.454, allocations: 0.6814 MB / 0.8906 GB, free: 37.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003245/2.455, allocations: 303.1 kB / 0.8909 GB, free: 37.71 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/2.455, allocations: 0 / 0.8909 GB, free: 37.71 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/2.455, allocations: 375.3 kB / 0.8912 GB, free: 37.39 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001048/2.456, allocations: 0.5148 MB / 0.8917 GB, free: 37.39 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/2.457, allocations: 0.9812 MB / 0.8927 GB, free: 36.83 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01405/2.471, allocations: 2.172 MB / 0.8948 GB, free: 36.82 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.512e-05/2.471, allocations: 7.156 kB / 0.8948 GB, free: 36.82 MB / 394.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.01705/2.488, allocations: 3.173 MB / 0.8979 GB, free: 36.71 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001176/2.49, allocations: 5.582 MB / 0.9034 GB, free: 30.91 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.47e-05/2.49, allocations: 14.75 kB / 0.9034 GB, free: 30.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/2.491, allocations: 320.2 kB / 0.9037 GB, free: 30.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001563/2.493, allocations: 296.9 kB / 0.904 GB, free: 30.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004426/2.497, allocations: 2.441 MB / 0.9064 GB, free: 29.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002151/2.499, allocations: 74.8 kB / 0.9064 GB, free: 29.31 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003653/2.5, allocations: 80.94 kB / 0.9065 GB, free: 29.31 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/2.5, allocations: 3.938 kB / 0.9065 GB, free: 29.31 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01516/2.515, allocations: 2.951 MB / 0.9094 GB, free: 29.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.715e-05/2.515, allocations: 14.47 kB / 0.9094 GB, free: 29.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/2.516, allocations: 244.3 kB / 0.9096 GB, free: 29.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/2.518, allocations: 305.9 kB / 0.9099 GB, free: 29.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003574/2.521, allocations: 2.177 MB / 0.912 GB, free: 27.67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/2.523, allocations: 75.61 kB / 0.9121 GB, free: 27.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002286/2.523, allocations: 69.98 kB / 0.9122 GB, free: 27.66 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (171): * Single equations (assignments): 168 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004596/2.524, allocations: 159.6 kB / 0.9123 GB, free: 27.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003681/2.524, allocations: 124 kB / 0.9125 GB, free: 27.48 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005428/2.53, allocations: 1.527 MB / 0.914 GB, free: 27.34 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-05/2.53, allocations: 11.41 kB / 0.914 GB, free: 27.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.059e-06/2.53, allocations: 0 / 0.914 GB, free: 27.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.705e-05/2.53, allocations: 6.844 kB / 0.914 GB, free: 27.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007608/2.537, allocations: 2.655 MB / 0.9166 GB, free: 26.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/2.537, allocations: 2.688 kB / 0.9166 GB, free: 26.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009731/2.538, allocations: 154.8 kB / 0.9167 GB, free: 26.97 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001499/2.54, allocations: 325.7 kB / 0.917 GB, free: 26.94 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001611/2.54, allocations: 18.22 kB / 0.917 GB, free: 26.94 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003381/2.544, allocations: 2.261 MB / 0.9192 GB, free: 25.38 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.437e-06/2.544, allocations: 0 / 0.9192 GB, free: 25.38 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005648/2.549, allocations: 2.137 MB / 0.9213 GB, free: 25.01 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006105/2.55, allocations: 218 kB / 0.9215 GB, free: 24.84 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003554/2.55, allocations: 6.812 kB / 0.9215 GB, free: 24.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/2.552, allocations: 60.39 kB / 0.9216 GB, free: 24.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/2.552, allocations: 86.78 kB / 0.9217 GB, free: 24.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/2.552, allocations: 44.52 kB / 0.9217 GB, free: 24.84 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001133/2.553, allocations: 0.6239 MB / 0.9223 GB, free: 24.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-06/2.553, allocations: 2.562 kB / 0.9223 GB, free: 24.73 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004588/2.558, allocations: 1.115 MB / 0.9234 GB, free: 24.53 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003353/2.561, allocations: 1.072 MB / 0.9245 GB, free: 24.22 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005609/2.567, allocations: 2.052 MB / 0.9265 GB, free: 24.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/2.567, allocations: 7.281 kB / 0.9265 GB, free: 24.19 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001778/2.569, allocations: 0.64 MB / 0.9271 GB, free: 24.19 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003301/2.572, allocations: 474.4 kB / 0.9276 GB, free: 24.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005041/2.577, allocations: 2.168 MB / 0.9297 GB, free: 23.63 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009008/2.578, allocations: 1.287 MB / 0.9309 GB, free: 22.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006499/2.579, allocations: 111.1 kB / 0.931 GB, free: 22.91 MB / 394.7 MB Notification: Performance of SimCode: time 2.028e-06/2.579, allocations: 3.688 kB / 0.931 GB, free: 22.91 MB / 394.7 MB Notification: Performance of Templates: time 0.06013/2.639, allocations: 42.77 MB / 0.9728 GB, free: 19.38 MB / 394.7 MB