Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.103/1.103, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.669e-05/2.679e-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: 20 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5218/0.6637, allocations: 240.8 MB / 417.3 MB, free: 30.26 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001833/0.664, allocations: 71.95 kB / 417.4 MB, free: 30.19 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.423/2.087, allocations: 300.9 MB / 0.7015 GB, free: 22.4 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.143e-06/2.087, allocations: 0 / 0.7015 GB, free: 22.4 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001598/2.087, allocations: 43.8 kB / 0.7015 GB, free: 22.39 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 309 * Number of variables: 309 Notification: Performance of Generate backend data structure: time 0.005884/2.093, allocations: 1.932 MB / 0.7034 GB, free: 21.07 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.464e-05/2.093, allocations: 10.81 kB / 0.7034 GB, free: 21.07 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007507/2.093, allocations: 184.4 kB / 0.7036 GB, free: 20.98 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003311/2.097, allocations: 1.189 MB / 0.7047 GB, free: 20.14 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/2.097, allocations: 99.7 kB / 0.7048 GB, free: 20.1 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004243/2.097, allocations: 116.1 kB / 0.705 GB, free: 20.07 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003696/2.101, allocations: 1.806 MB / 0.7067 GB, free: 18.46 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.265e-05/2.101, allocations: 1.75 kB / 0.7067 GB, free: 18.46 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002351/2.101, allocations: 55.58 kB / 0.7068 GB, free: 18.41 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001774/2.102, allocations: 114.2 kB / 0.7069 GB, free: 18.3 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003662/2.105, allocations: 1.753 MB / 0.7086 GB, free: 16.54 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01276/2.118, allocations: 7.419 MB / 0.7158 GB, free: 8.73 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002192/2.12, allocations: 1.126 MB / 0.7169 GB, free: 7.609 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001284/2.122, allocations: 0.7186 MB / 0.7176 GB, free: 6.891 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005639/2.127, allocations: 3.354 MB / 0.7209 GB, free: 3.246 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/2.127, allocations: 51.55 kB / 0.721 GB, free: 3.188 MB / 250.7 MB Notification: Performance of pre-optimization done (n=119): time 4.635e-06/2.127, allocations: 0 / 0.721 GB, free: 3.188 MB / 250.7 MB Notification: Performance of matching and sorting (n=131): time 0.1697/2.297, allocations: 3.922 MB / 0.7248 GB, free: 22.52 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/2.297, allocations: 168.7 kB / 0.725 GB, free: 22.32 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002128/2.299, allocations: 1.083 MB / 0.726 GB, free: 22.17 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002924/2.3, allocations: 61.42 kB / 0.7261 GB, free: 22.14 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005069/2.3, allocations: 0.6676 MB / 0.7267 GB, free: 21.99 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004707/2.301, allocations: 470.4 kB / 0.7272 GB, free: 21.78 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/2.301, allocations: 33.16 kB / 0.7272 GB, free: 21.78 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/2.301, allocations: 375.6 kB / 0.7276 GB, free: 21.47 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/2.303, allocations: 0.6867 MB / 0.7282 GB, free: 21.46 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001686/2.304, allocations: 1.13 MB / 0.7293 GB, free: 20.96 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001666/2.306, allocations: 0.8207 MB / 0.7301 GB, free: 20.93 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.189e-05/2.306, allocations: 4.453 kB / 0.7301 GB, free: 20.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004743/2.311, allocations: 2.142 MB / 0.7322 GB, free: 20.8 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/2.311, allocations: 16.31 kB / 0.7322 GB, free: 20.8 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.371e-05/2.311, allocations: 17.12 kB / 0.7323 GB, free: 20.8 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006884/2.318, allocations: 0.9132 MB / 0.7332 GB, free: 20.77 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002025/2.32, allocations: 342.3 kB / 0.7335 GB, free: 20.77 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002881/2.323, allocations: 2.846 MB / 0.7363 GB, free: 18.7 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002301/2.325, allocations: 134 kB / 0.7364 GB, free: 18.69 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000265/2.325, allocations: 84.25 kB / 0.7365 GB, free: 18.69 MB / 250.7 MB Warning: Assuming fixed start value for the following 6 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 = 293.15 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 = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank3.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: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 191 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005749/2.326, allocations: 264.7 kB / 0.7367 GB, free: 18.58 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003444/2.326, allocations: 161 kB / 0.7369 GB, free: 18.5 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005736/2.332, allocations: 2.261 MB / 0.7391 GB, free: 18.35 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.162e-05/2.332, allocations: 16.25 kB / 0.7391 GB, free: 18.35 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.005e-05/2.332, allocations: 3.812 kB / 0.7391 GB, free: 18.35 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.137e-05/2.332, allocations: 9.75 kB / 0.7391 GB, free: 18.35 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008253/2.34, allocations: 3.84 MB / 0.7429 GB, free: 17.9 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/2.34, allocations: 2.438 kB / 0.7429 GB, free: 17.9 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001575/2.342, allocations: 238.1 kB / 0.7431 GB, free: 17.9 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005838/2.348, allocations: 0.8484 MB / 0.7439 GB, free: 17.87 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003023/2.348, allocations: 42.69 kB / 0.744 GB, free: 17.87 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002594/2.351, allocations: 2.808 MB / 0.7467 GB, free: 15.78 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.437e-06/2.351, allocations: 4.125 kB / 0.7467 GB, free: 15.78 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006127/2.357, allocations: 3.117 MB / 0.7497 GB, free: 15.29 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006404/2.358, allocations: 254.7 kB / 0.75 GB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003801/2.358, allocations: 36.61 kB / 0.75 GB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/2.36, allocations: 102.5 kB / 0.7501 GB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003202/2.36, allocations: 151.6 kB / 0.7503 GB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001908/2.36, allocations: 51.53 kB / 0.7503 GB, free: 15.11 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001454/2.362, allocations: 0.8362 MB / 0.7511 GB, free: 14.99 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.15e-07/2.362, allocations: 2.906 kB / 0.7511 GB, free: 14.99 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.003171/2.365, allocations: 0.8929 MB / 0.752 GB, free: 14.99 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002549/2.367, allocations: 1.079 MB / 0.7531 GB, free: 14.84 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.004144/2.372, allocations: 1.781 MB / 0.7548 GB, free: 14.82 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.91e-06/2.372, allocations: 0 / 0.7548 GB, free: 14.82 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002451/2.374, allocations: 1.022 MB / 0.7558 GB, free: 14.81 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00455/2.379, allocations: 0.7295 MB / 0.7565 GB, free: 14.79 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006283/2.385, allocations: 2.847 MB / 0.7593 GB, free: 14.15 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/2.386, allocations: 1.417 MB / 0.7607 GB, free: 13.43 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000849/2.387, allocations: 162.2 kB / 0.7608 GB, free: 13.42 MB / 250.7 MB Notification: Performance of SimCode: time 1.974e-06/2.387, allocations: 0 / 0.7608 GB, free: 13.42 MB / 250.7 MB Notification: Performance of Templates: time 0.07753/2.464, allocations: 56.51 MB / 0.816 GB, free: 4.895 MB / 266.7 MB