Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 0.9652/0.9652, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.189e-05/2.202e-05, allocations: 0 / 151.4 MB, free: 15.58 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1416, allocations: 25.16 MB / 176.6 MB, free: 15.99 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.56/0.7017, allocations: 236.7 MB / 413.2 MB, free: 26.82 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.7019, allocations: 77.06 kB / 413.3 MB, free: 26.79 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6663/1.368, allocations: 128 MB / 0.5286 GB, free: 33.61 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.069e-06/1.368, allocations: 0 / 0.5286 GB, free: 33.61 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.562e-05/1.368, allocations: 23.83 kB / 0.5287 GB, free: 33.61 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001982/1.37, allocations: 0.9856 MB / 0.5296 GB, free: 33.11 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/1.37, allocations: 10.19 kB / 0.5296 GB, free: 33.11 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001866/1.371, allocations: 79.56 kB / 0.5297 GB, free: 33.07 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/1.372, allocations: 0.5519 MB / 0.5303 GB, free: 32.84 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.656e-05/1.372, allocations: 36.19 kB / 0.5303 GB, free: 32.84 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/1.372, allocations: 46.64 kB / 0.5303 GB, free: 32.84 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/1.373, allocations: 0.6914 MB / 0.531 GB, free: 32.72 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/1.373, allocations: 2.219 kB / 0.531 GB, free: 32.72 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.285e-05/1.373, allocations: 22.59 kB / 0.531 GB, free: 32.72 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.936e-05/1.373, allocations: 43.55 kB / 0.5311 GB, free: 32.72 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/1.375, allocations: 0.6192 MB / 0.5317 GB, free: 32.71 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00637/1.381, allocations: 2.805 MB / 0.5344 GB, free: 31.26 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001307/1.382, allocations: 449.3 kB / 0.5348 GB, free: 31.23 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00069/1.383, allocations: 241 kB / 0.5351 GB, free: 31.23 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004448/1.384, allocations: 427 kB / 0.5355 GB, free: 30.76 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/1.384, allocations: 41.88 kB / 0.5355 GB, free: 30.72 MB / 234.7 MB Notification: Performance of pre-optimization done (n=48): time 6.918e-06/1.384, allocations: 0 / 0.5355 GB, free: 30.72 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.005896/1.39, allocations: 1.742 MB / 0.5372 GB, free: 30.33 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/1.39, allocations: 91.05 kB / 0.5373 GB, free: 30.23 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007851/1.391, allocations: 0.5055 MB / 0.5378 GB, free: 30.12 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 7.396e-05/1.391, allocations: 39.98 kB / 0.5378 GB, free: 30.09 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000194/1.391, allocations: 348 kB / 0.5382 GB, free: 29.88 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001608/1.391, allocations: 194 kB / 0.5384 GB, free: 29.77 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.087e-05/1.391, allocations: 15.75 kB / 0.5384 GB, free: 29.77 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.705e-05/1.391, allocations: 340.1 kB / 0.5387 GB, free: 29.45 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005437/1.392, allocations: 253.8 kB / 0.5389 GB, free: 29.45 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006193/1.392, allocations: 422.6 kB / 0.5393 GB, free: 29.28 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006192/1.393, allocations: 313.7 kB / 0.5396 GB, free: 29.27 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.877e-06/1.393, allocations: 0 / 0.5396 GB, free: 29.27 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001738/1.395, allocations: 0.8209 MB / 0.5404 GB, free: 29.2 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/1.395, allocations: 10.31 kB / 0.5405 GB, free: 29.2 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/1.395, allocations: 7.766 kB / 0.5405 GB, free: 29.2 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002223/1.397, allocations: 341.1 kB / 0.5408 GB, free: 29.19 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007098/1.398, allocations: 143.3 kB / 0.5409 GB, free: 29.19 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008795/1.399, allocations: 0.8049 MB / 0.5417 GB, free: 28.67 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007466/1.399, allocations: 58.58 kB / 0.5418 GB, free: 28.66 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.802e-05/1.4, allocations: 29.22 kB / 0.5418 GB, free: 28.66 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank2.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real 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 = tank1.T_start 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: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 77 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.000283/1.4, allocations: 179.5 kB / 0.542 GB, free: 28.55 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/1.4, allocations: 64.91 kB / 0.542 GB, free: 28.52 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001895/1.402, allocations: 0.8241 MB / 0.5428 GB, free: 28.45 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.66e-06/1.402, allocations: 7.094 kB / 0.5428 GB, free: 28.45 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.056e-06/1.402, allocations: 0 / 0.5428 GB, free: 28.45 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.038e-05/1.402, allocations: 3.609 kB / 0.5428 GB, free: 28.45 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00336/1.405, allocations: 1.624 MB / 0.5444 GB, free: 28.1 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/1.405, allocations: 0 / 0.5444 GB, free: 28.1 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006359/1.406, allocations: 105.9 kB / 0.5445 GB, free: 28.1 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002006/1.408, allocations: 335.4 kB / 0.5448 GB, free: 28.09 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-05/1.408, allocations: 14.73 kB / 0.5449 GB, free: 28.09 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000832/1.409, allocations: 0.7883 MB / 0.5456 GB, free: 27.56 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.827e-06/1.409, allocations: 2.969 kB / 0.5456 GB, free: 27.56 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/1.411, allocations: 1.238 MB / 0.5468 GB, free: 27.32 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002309/1.412, allocations: 152.9 kB / 0.547 GB, free: 27.19 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001505/1.412, allocations: 13.33 kB / 0.547 GB, free: 27.19 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006789/1.412, allocations: 51.97 kB / 0.5471 GB, free: 27.18 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/1.413, allocations: 54.86 kB / 0.5471 GB, free: 27.18 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.897e-05/1.413, allocations: 27.91 kB / 0.5471 GB, free: 27.18 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006315/1.413, allocations: 406.5 kB / 0.5475 GB, free: 27.09 MB / 234.7 MB Notification: Performance of sort global known variables: time 8.71e-07/1.413, allocations: 0 / 0.5475 GB, free: 27.09 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001403/1.415, allocations: 418.9 kB / 0.5479 GB, free: 27.02 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00111/1.416, allocations: 0.5442 MB / 0.5484 GB, free: 26.84 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001548/1.417, allocations: 0.6553 MB / 0.5491 GB, free: 26.83 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.539e-06/1.418, allocations: 6.438 kB / 0.5491 GB, free: 26.83 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008151/1.418, allocations: 355.7 kB / 0.5494 GB, free: 26.82 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002213/1.421, allocations: 364.3 kB / 0.5498 GB, free: 26.82 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/1.423, allocations: 1.219 MB / 0.551 GB, free: 26.49 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/1.424, allocations: 0.9686 MB / 0.5519 GB, free: 25.79 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/1.424, allocations: 71.94 kB / 0.552 GB, free: 25.78 MB / 234.7 MB Notification: Performance of SimCode: time 1.654e-06/1.424, allocations: 0 / 0.552 GB, free: 25.78 MB / 234.7 MB Notification: Performance of Templates: time 0.02642/1.45, allocations: 17.23 MB / 0.5688 GB, free: 24.62 MB / 234.7 MB