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.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.582/1.582, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.148e-05/4.179e-05, allocations: 4 kB / 225 MB, free: 2.781 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2121/0.2121, allocations: 38.76 MB / 263.8 MB, free: 9.891 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7724/0.9846, allocations: 314.3 MB / 0.5645 GB, free: 87.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.9848, allocations: 90.48 kB / 0.5646 GB, free: 87.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.276/2.261, allocations: 279 MB / 0.8371 GB, free: 46.47 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.049e-06/2.261, allocations: 0 / 0.8371 GB, free: 46.47 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000137/2.261, allocations: 37 kB / 0.8371 GB, free: 46.46 MB / 362.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.005183/2.266, allocations: 1.781 MB / 0.8389 GB, free: 45.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/2.266, allocations: 7.906 kB / 0.8389 GB, free: 45.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001005/2.267, allocations: 173.1 kB / 0.839 GB, free: 45.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003187/2.271, allocations: 1.089 MB / 0.8401 GB, free: 45.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/2.271, allocations: 80.97 kB / 0.8402 GB, free: 45.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002608/2.271, allocations: 93.72 kB / 0.8403 GB, free: 45.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003537/2.274, allocations: 1.588 MB / 0.8418 GB, free: 45.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.246e-05/2.275, allocations: 3.406 kB / 0.8418 GB, free: 45.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000237/2.275, allocations: 45.88 kB / 0.8419 GB, free: 45.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001653/2.275, allocations: 107.5 kB / 0.842 GB, free: 45.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003826/2.279, allocations: 1.559 MB / 0.8435 GB, free: 45.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01347/2.292, allocations: 6.533 MB / 0.8499 GB, free: 41.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001905/2.294, allocations: 0.8654 MB / 0.8507 GB, free: 41.94 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001039/2.295, allocations: 0.5302 MB / 0.8512 GB, free: 41.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005238/2.301, allocations: 2.809 MB / 0.854 GB, free: 40.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/2.301, allocations: 56.39 kB / 0.854 GB, free: 40.42 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 4.839e-06/2.301, allocations: 0 / 0.854 GB, free: 40.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.008363/2.309, allocations: 2.748 MB / 0.8567 GB, free: 39.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.517e-05/2.309, allocations: 195.2 kB / 0.8569 GB, free: 39.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001946/2.311, allocations: 1.044 MB / 0.8579 GB, free: 39.45 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002622/2.311, allocations: 48.58 kB / 0.858 GB, free: 39.42 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004736/2.312, allocations: 0.658 MB / 0.8586 GB, free: 39.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003582/2.312, allocations: 318.8 kB / 0.8589 GB, free: 38.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/2.312, allocations: 29.09 kB / 0.8589 GB, free: 38.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/2.313, allocations: 372.3 kB / 0.8593 GB, free: 38.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/2.314, allocations: 0.532 MB / 0.8598 GB, free: 38.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/2.315, allocations: 0.9987 MB / 0.8608 GB, free: 37.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00154/2.317, allocations: 0.6658 MB / 0.8614 GB, free: 37.98 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.321e-05/2.317, allocations: 7 kB / 0.8614 GB, free: 37.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004124/2.321, allocations: 1.728 MB / 0.8631 GB, free: 37.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001144/2.322, allocations: 5.579 MB / 0.8686 GB, free: 32.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.391e-05/2.322, allocations: 17.38 kB / 0.8686 GB, free: 32.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004955/2.327, allocations: 0.6494 MB / 0.8692 GB, free: 32.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/2.329, allocations: 294.2 kB / 0.8695 GB, free: 32.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002272/2.331, allocations: 2.144 MB / 0.8716 GB, free: 30.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002035/2.333, allocations: 110.8 kB / 0.8717 GB, free: 30.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002662/2.334, allocations: 75.77 kB / 0.8718 GB, free: 30.47 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/2.334, allocations: 3.719 kB / 0.8718 GB, free: 30.47 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003829/2.337, allocations: 1.592 MB / 0.8733 GB, free: 30.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.387e-05/2.338, allocations: 14.69 kB / 0.8734 GB, free: 30.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004238/2.342, allocations: 499.2 kB / 0.8738 GB, free: 30.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/2.344, allocations: 298.7 kB / 0.8741 GB, free: 30.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001705/2.345, allocations: 1.974 MB / 0.876 GB, free: 28.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/2.347, allocations: 97.86 kB / 0.8761 GB, free: 28.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001929/2.347, allocations: 67.44 kB / 0.8762 GB, free: 28.77 MB / 362.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.0004513/2.347, allocations: 212 kB / 0.8764 GB, free: 28.63 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003742/2.348, allocations: 134.2 kB / 0.8765 GB, free: 28.56 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003735/2.352, allocations: 1.501 MB / 0.878 GB, free: 28.31 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.496e-05/2.352, allocations: 10.28 kB / 0.878 GB, free: 28.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.837e-06/2.352, allocations: 3.375 kB / 0.878 GB, free: 28.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/2.352, allocations: 6.469 kB / 0.878 GB, free: 28.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006695/2.358, allocations: 2.723 MB / 0.8807 GB, free: 27.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/2.358, allocations: 3.812 kB / 0.8807 GB, free: 27.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/2.36, allocations: 160.1 kB / 0.8808 GB, free: 27.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003773/2.363, allocations: 0.5935 MB / 0.8814 GB, free: 27.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002294/2.364, allocations: 34.56 kB / 0.8814 GB, free: 27.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002037/2.366, allocations: 2.094 MB / 0.8835 GB, free: 25.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/2.366, allocations: 5.656 kB / 0.8835 GB, free: 25.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004277/2.37, allocations: 2.092 MB / 0.8855 GB, free: 24.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006188/2.371, allocations: 231.2 kB / 0.8858 GB, free: 24.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003659/2.371, allocations: 26.91 kB / 0.8858 GB, free: 24.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/2.372, allocations: 79.58 kB / 0.8859 GB, free: 24.02 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002669/2.373, allocations: 101.2 kB / 0.886 GB, free: 24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/2.373, allocations: 36.38 kB / 0.886 GB, free: 24 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001459/2.374, allocations: 0.7869 MB / 0.8868 GB, free: 23.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.21e-07/2.374, allocations: 0 / 0.8868 GB, free: 23.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004817/2.379, allocations: 1.188 MB / 0.8879 GB, free: 23.37 MB / 362.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.003297/2.382, allocations: 1.127 MB / 0.889 GB, free: 22.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005737/2.388, allocations: 2.122 MB / 0.8911 GB, free: 22.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.501e-06/2.388, allocations: 0 / 0.8911 GB, free: 22.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002102/2.39, allocations: 0.6764 MB / 0.8918 GB, free: 22.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003377/2.394, allocations: 0.4995 MB / 0.8922 GB, free: 21.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005438/2.399, allocations: 2.231 MB / 0.8944 GB, free: 21.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008789/2.4, allocations: 1.279 MB / 0.8957 GB, free: 20.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006647/2.401, allocations: 124.4 kB / 0.8958 GB, free: 20.26 MB / 362.7 MB Notification: Performance of SimCode: time 2.966e-06/2.401, allocations: 0 / 0.8958 GB, free: 20.26 MB / 362.7 MB Notification: Performance of Templates: time 0.2796/2.68, allocations: 43.21 MB / 0.938 GB, free: 44.31 MB / 362.7 MB