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.865/1.865, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.945e-05/2.96e-05, allocations: 0 / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08038/0.08043, allocations: 44.5 MB / 299.9 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7846/0.8651, allocations: 319.7 MB / 0.605 GB, free: 87.67 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002399/0.8654, allocations: 87.95 kB / 0.6051 GB, free: 87.59 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.397/2.263, allocations: 279 MB / 0.8776 GB, free: 57.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.842e-06/2.263, allocations: 0.9375 kB / 0.8776 GB, free: 57.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001454/2.263, allocations: 44.48 kB / 0.8776 GB, free: 57.71 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005548/2.269, allocations: 1.783 MB / 0.8793 GB, free: 56.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/2.269, allocations: 7.75 kB / 0.8793 GB, free: 56.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001175/2.27, allocations: 177.5 kB / 0.8795 GB, free: 56.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003455/2.273, allocations: 1.077 MB / 0.8806 GB, free: 56.62 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/2.273, allocations: 83.59 kB / 0.8806 GB, free: 56.62 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002628/2.274, allocations: 96.58 kB / 0.8807 GB, free: 56.62 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003507/2.277, allocations: 1.585 MB / 0.8823 GB, free: 56.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.837e-05/2.277, allocations: 3.438 kB / 0.8823 GB, free: 56.37 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001996/2.278, allocations: 41.2 kB / 0.8823 GB, free: 56.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001607/2.278, allocations: 104.5 kB / 0.8824 GB, free: 56.37 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003699/2.281, allocations: 1.566 MB / 0.884 GB, free: 56.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0132/2.295, allocations: 6.518 MB / 0.8903 GB, free: 53.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001814/2.297, allocations: 0.8682 MB / 0.8912 GB, free: 53.31 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/2.298, allocations: 0.5256 MB / 0.8917 GB, free: 53.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005083/2.303, allocations: 2.817 MB / 0.8944 GB, free: 51.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.147e-05/2.303, allocations: 51.09 kB / 0.8945 GB, free: 51.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.677e-06/2.303, allocations: 0 / 0.8945 GB, free: 51.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.008114/2.311, allocations: 2.76 MB / 0.8972 GB, free: 51.24 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/2.311, allocations: 197.1 kB / 0.8974 GB, free: 51.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001873/2.313, allocations: 1.033 MB / 0.8984 GB, free: 50.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002322/2.313, allocations: 57.08 kB / 0.8984 GB, free: 50.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004321/2.314, allocations: 0.6512 MB / 0.8991 GB, free: 50.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003482/2.314, allocations: 320.8 kB / 0.8994 GB, free: 50.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001201/2.314, allocations: 34.75 kB / 0.8994 GB, free: 50.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/2.314, allocations: 365.5 kB / 0.8998 GB, free: 49.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/2.315, allocations: 0.5325 MB / 0.9003 GB, free: 49.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/2.317, allocations: 0.999 MB / 0.9013 GB, free: 49.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001336/2.318, allocations: 0.6651 MB / 0.9019 GB, free: 49.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/2.318, allocations: 7.719 kB / 0.9019 GB, free: 49.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004051/2.322, allocations: 1.727 MB / 0.9036 GB, free: 49.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001106/2.324, allocations: 5.581 MB / 0.909 GB, free: 43.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.915e-05/2.324, allocations: 13.62 kB / 0.9091 GB, free: 43.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005236/2.329, allocations: 0.643 MB / 0.9097 GB, free: 43.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/2.331, allocations: 297.2 kB / 0.91 GB, free: 43.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/2.333, allocations: 2.139 MB / 0.9121 GB, free: 41.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002044/2.335, allocations: 108.6 kB / 0.9122 GB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002184/2.335, allocations: 75.3 kB / 0.9122 GB, free: 41.87 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/2.335, allocations: 3.938 kB / 0.9122 GB, free: 41.87 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003816/2.339, allocations: 1.6 MB / 0.9138 GB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.838e-05/2.339, allocations: 15.02 kB / 0.9138 GB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004286/2.343, allocations: 495.5 kB / 0.9143 GB, free: 41.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001731/2.345, allocations: 298.7 kB / 0.9146 GB, free: 41.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001762/2.347, allocations: 1.971 MB / 0.9165 GB, free: 40.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/2.348, allocations: 106 kB / 0.9166 GB, free: 40.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002341/2.349, allocations: 73.64 kB / 0.9167 GB, free: 40.23 MB / 410.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.0004612/2.349, allocations: 198 kB / 0.9169 GB, free: 40.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003805/2.35, allocations: 130.3 kB / 0.917 GB, free: 40.05 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004065/2.354, allocations: 1.499 MB / 0.9184 GB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.484e-05/2.354, allocations: 10.78 kB / 0.9185 GB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/2.354, allocations: 0 / 0.9185 GB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.809e-05/2.354, allocations: 14.27 kB / 0.9185 GB, free: 39.93 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006504/2.36, allocations: 2.727 MB / 0.9211 GB, free: 39.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/2.36, allocations: 3.844 kB / 0.9211 GB, free: 39.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009119/2.361, allocations: 155.9 kB / 0.9213 GB, free: 39.54 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003812/2.365, allocations: 0.599 MB / 0.9219 GB, free: 39.51 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002436/2.365, allocations: 28.72 kB / 0.9219 GB, free: 39.51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/2.368, allocations: 2.098 MB / 0.9239 GB, free: 37.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.037e-06/2.368, allocations: 2.906 kB / 0.9239 GB, free: 37.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004306/2.372, allocations: 2.096 MB / 0.926 GB, free: 37.58 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006602/2.373, allocations: 229.5 kB / 0.9262 GB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000518/2.373, allocations: 31.17 kB / 0.9262 GB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/2.375, allocations: 69.14 kB / 0.9263 GB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003429/2.375, allocations: 102.7 kB / 0.9264 GB, free: 37.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001549/2.375, allocations: 33.11 kB / 0.9264 GB, free: 37.4 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001667/2.377, allocations: 0.7893 MB / 0.9272 GB, free: 37.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.137e-06/2.377, allocations: 0 / 0.9272 GB, free: 37.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00467/2.381, allocations: 1.187 MB / 0.9284 GB, free: 37.09 MB / 410.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.003244/2.385, allocations: 1.121 MB / 0.9295 GB, free: 36.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005561/2.39, allocations: 2.13 MB / 0.9315 GB, free: 36.72 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.388e-06/2.39, allocations: 0 / 0.9315 GB, free: 36.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/2.392, allocations: 0.6835 MB / 0.9322 GB, free: 36.72 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003138/2.395, allocations: 0.4983 MB / 0.9327 GB, free: 36.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00511/2.401, allocations: 2.242 MB / 0.9349 GB, free: 36.16 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000911/2.402, allocations: 1.284 MB / 0.9361 GB, free: 35.44 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006576/2.402, allocations: 124.6 kB / 0.9363 GB, free: 35.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.962e-06/2.402, allocations: 0 / 0.9363 GB, free: 35.43 MB / 410.7 MB Notification: Performance of Templates: time 0.06095/2.463, allocations: 43.2 MB / 0.9784 GB, free: 21.66 MB / 410.7 MB