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 2.056/2.056, allocations: 194.9 MB / 208.4 MB, free: 3.156 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.807e-05/2.834e-05, allocations: 3.188 kB / 255.3 MB, free: 3.164 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07938/0.07943, allocations: 44.5 MB / 299.8 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8105/0.89, allocations: 319.6 MB / 0.605 GB, free: 71.28 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.8902, allocations: 85.52 kB / 0.605 GB, free: 71.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.362/2.252, allocations: 279 MB / 0.8775 GB, free: 57.77 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.07e-06/2.252, allocations: 3.609 kB / 0.8775 GB, free: 57.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001672/2.253, allocations: 37.88 kB / 0.8776 GB, free: 57.77 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.006135/2.259, allocations: 1.79 MB / 0.8793 GB, free: 57.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/2.259, allocations: 6.812 kB / 0.8793 GB, free: 57.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001133/2.26, allocations: 172.8 kB / 0.8795 GB, free: 56.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003419/2.263, allocations: 1.08 MB / 0.8805 GB, free: 56.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/2.264, allocations: 80.36 kB / 0.8806 GB, free: 56.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004148/2.264, allocations: 96.72 kB / 0.8807 GB, free: 56.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003898/2.268, allocations: 1.596 MB / 0.8823 GB, free: 56.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.362e-05/2.268, allocations: 7.344 kB / 0.8823 GB, free: 56.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002292/2.268, allocations: 44.91 kB / 0.8823 GB, free: 56.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001752/2.268, allocations: 105.8 kB / 0.8824 GB, free: 56.4 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004089/2.273, allocations: 1.582 MB / 0.884 GB, free: 56.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01401/2.287, allocations: 6.518 MB / 0.8903 GB, free: 53.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00199/2.289, allocations: 0.88 MB / 0.8912 GB, free: 53.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001191/2.29, allocations: 0.5241 MB / 0.8917 GB, free: 53.33 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00526/2.295, allocations: 2.818 MB / 0.8944 GB, free: 51.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.773e-05/2.295, allocations: 46.47 kB / 0.8945 GB, free: 51.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=80): time 4.039e-06/2.295, allocations: 0 / 0.8945 GB, free: 51.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=90): time 0.008071/2.303, allocations: 2.761 MB / 0.8972 GB, free: 51.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/2.303, allocations: 188.2 kB / 0.8974 GB, free: 51.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001957/2.305, allocations: 1.041 MB / 0.8984 GB, free: 50.89 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002575/2.306, allocations: 47.11 kB / 0.8984 GB, free: 50.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004494/2.306, allocations: 0.6605 MB / 0.8991 GB, free: 50.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003299/2.306, allocations: 322.6 kB / 0.8994 GB, free: 50.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/2.307, allocations: 30.31 kB / 0.8994 GB, free: 50.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/2.307, allocations: 366 kB / 0.8998 GB, free: 49.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001232/2.308, allocations: 0.5401 MB / 0.9003 GB, free: 49.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/2.31, allocations: 1.005 MB / 0.9013 GB, free: 49.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001514/2.311, allocations: 0.6711 MB / 0.9019 GB, free: 49.41 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/2.311, allocations: 3.75 kB / 0.9019 GB, free: 49.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004362/2.315, allocations: 1.768 MB / 0.9037 GB, free: 49.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001157/2.317, allocations: 5.572 MB / 0.9091 GB, free: 43.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.491e-05/2.317, allocations: 15.66 kB / 0.9091 GB, free: 43.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005364/2.322, allocations: 0.6488 MB / 0.9097 GB, free: 43.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001765/2.324, allocations: 290.6 kB / 0.91 GB, free: 43.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002367/2.326, allocations: 2.143 MB / 0.9121 GB, free: 41.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002181/2.329, allocations: 109.4 kB / 0.9122 GB, free: 41.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003412/2.329, allocations: 71.42 kB / 0.9123 GB, free: 41.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/2.329, allocations: 3.219 kB / 0.9123 GB, free: 41.91 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00411/2.333, allocations: 1.636 MB / 0.9139 GB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.948e-05/2.333, allocations: 21.17 kB / 0.9139 GB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003637/2.337, allocations: 495.5 kB / 0.9144 GB, free: 41.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001731/2.339, allocations: 308.2 kB / 0.9147 GB, free: 41.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/2.341, allocations: 1.963 MB / 0.9166 GB, free: 40.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/2.342, allocations: 103.6 kB / 0.9167 GB, free: 40.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001999/2.342, allocations: 76.45 kB / 0.9168 GB, free: 40.27 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.0004685/2.343, allocations: 195.8 kB / 0.917 GB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003749/2.343, allocations: 133.5 kB / 0.9171 GB, free: 40.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00404/2.347, allocations: 1.5 MB / 0.9185 GB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/2.347, allocations: 14.52 kB / 0.9186 GB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.811e-06/2.347, allocations: 0 / 0.9186 GB, free: 39.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.169e-05/2.347, allocations: 7.844 kB / 0.9186 GB, free: 39.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006704/2.354, allocations: 2.737 MB / 0.9212 GB, free: 39.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.128e-06/2.354, allocations: 0 / 0.9212 GB, free: 39.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/2.355, allocations: 153.5 kB / 0.9214 GB, free: 39.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004146/2.359, allocations: 0.596 MB / 0.922 GB, free: 39.55 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002433/2.36, allocations: 31.33 kB / 0.922 GB, free: 39.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002068/2.362, allocations: 2.111 MB / 0.9241 GB, free: 37.98 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.974e-06/2.362, allocations: 0 / 0.9241 GB, free: 37.98 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004398/2.366, allocations: 2.098 MB / 0.9261 GB, free: 37.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000628/2.367, allocations: 230.4 kB / 0.9263 GB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004283/2.367, allocations: 28.81 kB / 0.9264 GB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/2.369, allocations: 77.3 kB / 0.9264 GB, free: 37.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002829/2.369, allocations: 92.12 kB / 0.9265 GB, free: 37.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/2.369, allocations: 40.72 kB / 0.9266 GB, free: 37.44 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001572/2.371, allocations: 0.7848 MB / 0.9273 GB, free: 37.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.333e-06/2.371, allocations: 0 / 0.9273 GB, free: 37.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005267/2.376, allocations: 1.185 MB / 0.9285 GB, free: 37.12 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.003571/2.38, allocations: 1.096 MB / 0.9295 GB, free: 36.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005779/2.385, allocations: 2.175 MB / 0.9317 GB, free: 36.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/2.385, allocations: 0 / 0.9317 GB, free: 36.68 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002112/2.388, allocations: 0.6937 MB / 0.9324 GB, free: 36.66 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003451/2.391, allocations: 0.4981 MB / 0.9328 GB, free: 36.65 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005421/2.397, allocations: 2.251 MB / 0.935 GB, free: 36.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008649/2.397, allocations: 1.281 MB / 0.9363 GB, free: 35.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006127/2.398, allocations: 120.3 kB / 0.9364 GB, free: 35.38 MB / 410.7 MB Notification: Performance of SimCode: time 1.663e-06/2.398, allocations: 0 / 0.9364 GB, free: 35.38 MB / 410.7 MB Notification: Performance of Templates: time 0.06223/2.46, allocations: 43.21 MB / 0.9786 GB, free: 15.51 MB / 410.7 MB