Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 0.9548/0.9548, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.75e-05/2.77e-05, allocations: 4 kB / 151.4 MB, free: 15.62 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.141, allocations: 25.16 MB / 176.6 MB, free: 24 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6019/0.743, allocations: 238.3 MB / 414.8 MB, free: 32.75 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.7433, allocations: 67.97 kB / 414.9 MB, free: 32.68 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7861/1.529, allocations: 177 MB / 0.578 GB, free: 34.39 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.915e-06/1.529, allocations: 0 / 0.578 GB, free: 34.39 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.615e-05/1.529, allocations: 24.14 kB / 0.578 GB, free: 34.39 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.002846/1.532, allocations: 1.23 MB / 0.5792 GB, free: 33.49 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/1.532, allocations: 10.69 kB / 0.5792 GB, free: 33.49 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003041/1.533, allocations: 97.22 kB / 0.5793 GB, free: 33.45 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/1.534, allocations: 0.7299 MB / 0.58 GB, free: 32.91 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.532e-05/1.535, allocations: 47.72 kB / 0.5801 GB, free: 32.88 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/1.535, allocations: 66.66 kB / 0.5802 GB, free: 32.86 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001835/1.537, allocations: 0.9675 MB / 0.5811 GB, free: 32.26 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.938e-05/1.537, allocations: 3.562 kB / 0.5811 GB, free: 32.26 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000117/1.537, allocations: 25.73 kB / 0.5811 GB, free: 32.24 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001021/1.537, allocations: 60.56 kB / 0.5812 GB, free: 32.22 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001779/1.539, allocations: 0.8899 MB / 0.5821 GB, free: 31.81 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006481/1.545, allocations: 4.398 MB / 0.5864 GB, free: 27.28 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001087/1.546, allocations: 0.5155 MB / 0.5869 GB, free: 26.76 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005258/1.547, allocations: 292.3 kB / 0.5871 GB, free: 26.48 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002674/1.549, allocations: 2.017 MB / 0.5891 GB, free: 24.25 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/1.55, allocations: 38.88 kB / 0.5891 GB, free: 24.2 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 3.286e-06/1.55, allocations: 3.219 kB / 0.5891 GB, free: 24.2 MB / 234.7 MB Notification: Performance of matching and sorting (n=44): time 0.003599/1.553, allocations: 1.398 MB / 0.5905 GB, free: 22.75 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.816e-05/1.553, allocations: 166.1 kB / 0.5907 GB, free: 22.55 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001036/1.554, allocations: 0.6839 MB / 0.5913 GB, free: 21.86 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.539e-05/1.554, allocations: 33.7 kB / 0.5914 GB, free: 21.82 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002835/1.555, allocations: 0.4961 MB / 0.5919 GB, free: 21.32 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/1.555, allocations: 162.2 kB / 0.592 GB, free: 21.17 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.672e-05/1.555, allocations: 16 kB / 0.592 GB, free: 21.15 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.165e-05/1.555, allocations: 346.8 kB / 0.5924 GB, free: 20.8 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005338/1.556, allocations: 273.9 kB / 0.5926 GB, free: 20.54 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006819/1.556, allocations: 0.61 MB / 0.5932 GB, free: 19.77 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006756/1.557, allocations: 374.4 kB / 0.5936 GB, free: 19.43 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.109e-06/1.557, allocations: 4 kB / 0.5936 GB, free: 19.42 MB / 234.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002034/1.559, allocations: 0.9461 MB / 0.5945 GB, free: 18.47 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/1.559, allocations: 12.78 kB / 0.5945 GB, free: 18.46 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/1.559, allocations: 8 kB / 0.5945 GB, free: 18.45 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002334/1.561, allocations: 322.1 kB / 0.5948 GB, free: 18.14 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009196/1.562, allocations: 171.7 kB / 0.595 GB, free: 17.97 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/1.564, allocations: 1.31 MB / 0.5963 GB, free: 16.61 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/1.565, allocations: 62 kB / 0.5963 GB, free: 16.55 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/1.565, allocations: 43.98 kB / 0.5964 GB, free: 16.51 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real 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 (102): * Single equations (assignments): 100 * 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.0002826/1.565, allocations: 181.5 kB / 0.5965 GB, free: 16.33 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001596/1.565, allocations: 82.97 kB / 0.5966 GB, free: 16.25 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002006/1.567, allocations: 0.7585 MB / 0.5974 GB, free: 15.5 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.876e-06/1.567, allocations: 4 kB / 0.5974 GB, free: 15.49 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/1.567, allocations: 0 / 0.5974 GB, free: 15.49 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.545e-06/1.567, allocations: 6.234 kB / 0.5974 GB, free: 15.49 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002981/1.57, allocations: 1.493 MB / 0.5988 GB, free: 13.94 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.639e-06/1.57, allocations: 0 / 0.5988 GB, free: 13.94 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005171/1.571, allocations: 86.39 kB / 0.5989 GB, free: 13.86 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001806/1.573, allocations: 275.5 kB / 0.5992 GB, free: 13.6 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/1.573, allocations: 12 kB / 0.5992 GB, free: 13.59 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/1.574, allocations: 1.286 MB / 0.6004 GB, free: 12.25 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.061e-06/1.574, allocations: 0 / 0.6004 GB, free: 12.25 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001901/1.576, allocations: 1.061 MB / 0.6015 GB, free: 11.16 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002999/1.576, allocations: 164.1 kB / 0.6016 GB, free: 10.98 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001688/1.576, allocations: 16 kB / 0.6016 GB, free: 10.96 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006575/1.577, allocations: 46.97 kB / 0.6017 GB, free: 10.92 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/1.577, allocations: 48.31 kB / 0.6017 GB, free: 10.87 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-05/1.577, allocations: 20 kB / 0.6018 GB, free: 10.85 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0008232/1.578, allocations: 0.5264 MB / 0.6023 GB, free: 10.33 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.73e-07/1.578, allocations: 2.938 kB / 0.6023 GB, free: 10.33 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001869/1.58, allocations: 0.5229 MB / 0.6028 GB, free: 9.805 MB / 234.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 (42): * Single equations (assignments): 40 * 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.001596/1.582, allocations: 0.7123 MB / 0.6035 GB, free: 9.164 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001655/1.583, allocations: 0.662 MB / 0.6041 GB, free: 8.5 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.628e-06/1.583, allocations: 0 / 0.6041 GB, free: 8.5 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006958/1.584, allocations: 310 kB / 0.6044 GB, free: 8.199 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/1.586, allocations: 343.4 kB / 0.6047 GB, free: 7.871 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002906/1.589, allocations: 1.333 MB / 0.606 GB, free: 6.508 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005331/1.589, allocations: 1.037 MB / 0.6071 GB, free: 5.445 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/1.59, allocations: 79.42 kB / 0.6071 GB, free: 5.367 MB / 234.7 MB Notification: Performance of SimCode: time 1.754e-06/1.59, allocations: 0 / 0.6071 GB, free: 5.367 MB / 234.7 MB Notification: Performance of Templates: time 0.187/1.777, allocations: 23.83 MB / 0.6304 GB, free: 45.89 MB / 250.7 MB