Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 0.992/0.992, allocations: 111.2 MB / 123.8 MB, free: 11.21 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.467e-05/2.478e-05, allocations: 4 kB / 151.4 MB, free: 15.63 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1419, allocations: 25.16 MB / 176.6 MB, free: 36 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5183/0.6602, allocations: 241.3 MB / 417.9 MB, free: 22.24 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.6605, allocations: 67.22 kB / 418 MB, free: 22.21 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7893/1.45, allocations: 153.9 MB / 0.5584 GB, free: 35.19 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.182e-06/1.45, allocations: 0 / 0.5584 GB, free: 35.19 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.558e-05/1.45, allocations: 22.08 kB / 0.5585 GB, free: 35.18 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002413/1.452, allocations: 1.087 MB / 0.5595 GB, free: 34.61 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/1.452, allocations: 15.25 kB / 0.5595 GB, free: 34.61 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000249/1.453, allocations: 88.53 kB / 0.5596 GB, free: 34.56 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001403/1.454, allocations: 0.6388 MB / 0.5602 GB, free: 34.29 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.556e-05/1.454, allocations: 47.36 kB / 0.5603 GB, free: 34.29 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/1.454, allocations: 56.11 kB / 0.5603 GB, free: 34.29 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/1.456, allocations: 0.8475 MB / 0.5612 GB, free: 34.1 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.892e-05/1.456, allocations: 4.969 kB / 0.5612 GB, free: 34.1 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001059/1.456, allocations: 25.91 kB / 0.5612 GB, free: 34.1 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-05/1.456, allocations: 44.78 kB / 0.5612 GB, free: 34.1 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/1.458, allocations: 0.7292 MB / 0.5619 GB, free: 34.1 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005465/1.463, allocations: 3.993 MB / 0.5658 GB, free: 31.65 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009863/1.464, allocations: 474.8 kB / 0.5663 GB, free: 31.62 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004235/1.465, allocations: 234.8 kB / 0.5665 GB, free: 31.62 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003181/1.468, allocations: 2.106 MB / 0.5686 GB, free: 30.18 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/1.468, allocations: 40.62 kB / 0.5686 GB, free: 30.14 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 3.756e-06/1.468, allocations: 0 / 0.5686 GB, free: 30.14 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.00326/1.471, allocations: 1.192 MB / 0.5698 GB, free: 29.73 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/1.471, allocations: 147.3 kB / 0.5699 GB, free: 29.57 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009181/1.472, allocations: 0.5876 MB / 0.5705 GB, free: 29.33 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.81e-05/1.472, allocations: 38.77 kB / 0.5705 GB, free: 29.29 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002638/1.472, allocations: 467.5 kB / 0.571 GB, free: 28.89 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001286/1.473, allocations: 149.8 kB / 0.5711 GB, free: 28.78 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.372e-05/1.473, allocations: 15.09 kB / 0.5711 GB, free: 28.77 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 8.032e-05/1.473, allocations: 347.5 kB / 0.5715 GB, free: 28.44 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004974/1.473, allocations: 226.7 kB / 0.5717 GB, free: 28.37 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006541/1.474, allocations: 0.5512 MB / 0.5722 GB, free: 27.87 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006389/1.475, allocations: 326.4 kB / 0.5725 GB, free: 27.77 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.831e-06/1.475, allocations: 3.562 kB / 0.5725 GB, free: 27.77 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001786/1.476, allocations: 0.7889 MB / 0.5733 GB, free: 27.48 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/1.476, allocations: 11.75 kB / 0.5733 GB, free: 27.48 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/1.477, allocations: 11.34 kB / 0.5733 GB, free: 27.48 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008779/1.477, allocations: 117 kB / 0.5734 GB, free: 27.46 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/1.479, allocations: 236.5 kB / 0.5737 GB, free: 27.44 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007268/1.48, allocations: 1.201 MB / 0.5748 GB, free: 26.29 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/1.481, allocations: 64.98 kB / 0.5749 GB, free: 26.28 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/1.481, allocations: 41.47 kB / 0.5749 GB, free: 26.27 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: 48 * 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 (97): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003014/1.481, allocations: 176.9 kB / 0.5751 GB, free: 26.13 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/1.481, allocations: 81.55 kB / 0.5752 GB, free: 26.08 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001882/1.483, allocations: 0.7288 MB / 0.5759 GB, free: 25.8 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/1.483, allocations: 10.05 kB / 0.5759 GB, free: 25.8 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.006e-06/1.483, allocations: 0 / 0.5759 GB, free: 25.8 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/1.483, allocations: 3.047 kB / 0.5759 GB, free: 25.8 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002899/1.486, allocations: 1.396 MB / 0.5773 GB, free: 25.09 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.849e-06/1.486, allocations: 3.891 kB / 0.5773 GB, free: 25.09 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/1.487, allocations: 137.9 kB / 0.5774 GB, free: 25.09 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006342/1.488, allocations: 91.2 kB / 0.5775 GB, free: 25.07 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.903e-05/1.488, allocations: 17.42 kB / 0.5775 GB, free: 25.06 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006489/1.489, allocations: 1.171 MB / 0.5787 GB, free: 23.92 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.29e-06/1.489, allocations: 0 / 0.5787 GB, free: 23.92 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001849/1.49, allocations: 0.991 MB / 0.5796 GB, free: 23.39 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002906/1.491, allocations: 161.9 kB / 0.5798 GB, free: 23.25 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001679/1.491, allocations: 15.47 kB / 0.5798 GB, free: 23.24 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006673/1.492, allocations: 37.66 kB / 0.5798 GB, free: 23.23 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/1.492, allocations: 51.08 kB / 0.5799 GB, free: 23.22 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.225e-05/1.492, allocations: 21.73 kB / 0.5799 GB, free: 23.22 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006856/1.493, allocations: 459 kB / 0.5803 GB, free: 23.02 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.14e-07/1.493, allocations: 0 / 0.5803 GB, free: 23.02 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001713/1.494, allocations: 455.2 kB / 0.5808 GB, free: 22.89 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00154/1.496, allocations: 0.6292 MB / 0.5814 GB, free: 22.67 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.00177/1.498, allocations: 0.6185 MB / 0.582 GB, free: 22.48 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/1.498, allocations: 0 / 0.582 GB, free: 22.48 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009349/1.499, allocations: 324.1 kB / 0.5823 GB, free: 22.39 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002042/1.501, allocations: 313.2 kB / 0.5826 GB, free: 22.33 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002612/1.503, allocations: 1.167 MB / 0.5837 GB, free: 21.74 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004934/1.504, allocations: 1.007 MB / 0.5847 GB, free: 20.82 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000327/1.504, allocations: 77.91 kB / 0.5848 GB, free: 20.75 MB / 234.7 MB Notification: Performance of SimCode: time 1.956e-06/1.504, allocations: 0 / 0.5848 GB, free: 20.75 MB / 234.7 MB Notification: Performance of Templates: time 0.04012/1.544, allocations: 21.38 MB / 0.6057 GB, free: 2.914 MB / 234.7 MB