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.066/1.066, allocations: 111.1 MB / 126.3 MB, free: 6.402 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.196e-05/3.209e-05, allocations: 4 kB / 154.5 MB, free: 2.828 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07437/0.07443, allocations: 25.18 MB / 179.7 MB, free: 9.613 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.2461/0.3206, allocations: 32.49 MB / 212.2 MB, free: 4.031 MB / 170.7 MB Notification: Performance of NFInst.instExpressions: time 0.02353/0.3442, allocations: 12.28 MB / 224.5 MB, free: 2.086 MB / 170.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002456/0.3467, allocations: 68.06 kB / 224.5 MB, free: 2.051 MB / 170.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002457/0.3492, allocations: 0.565 MB / 225.1 MB, free: 1.746 MB / 170.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006321/0.3556, allocations: 1.564 MB / 226.7 MB, free: 0.8984 MB / 170.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01088/0.3665, allocations: 2.466 MB / 229.1 MB, free: 14.95 MB / 186.7 MB Notification: Performance of NFFlatten.flatten: time 0.005304/0.3718, allocations: 1.898 MB / 231 MB, free: 13.59 MB / 186.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001949/0.3738, allocations: 0.7822 MB / 231.8 MB, free: 13.09 MB / 186.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003446/0.3773, allocations: 1.042 MB / 232.8 MB, free: 12.54 MB / 186.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002954/0.3803, allocations: 0.944 MB / 233.8 MB, free: 12.04 MB / 186.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006007/0.3864, allocations: 1.592 MB / 235.4 MB, free: 11.33 MB / 186.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001315/0.3878, allocations: 138.6 kB / 235.5 MB, free: 11.33 MB / 186.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001281/0.3891, allocations: 479.8 kB / 236 MB, free: 11.03 MB / 186.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.3902, allocations: 176.6 kB / 236.2 MB, free: 11.03 MB / 186.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006576/0.3968, allocations: 2.515 MB / 238.7 MB, free: 8.797 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3968, allocations: 0 / 238.7 MB, free: 8.797 MB / 186.7 MB Notification: Performance of FrontEnd: time 3.075e-06/0.3969, allocations: 0 / 238.7 MB, free: 8.797 MB / 186.7 MB Notification: Performance of Transformations before backend: time 9.087e-05/0.397, allocations: 0 / 238.7 MB, free: 8.797 MB / 186.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.006545/0.4035, allocations: 1.806 MB / 240.5 MB, free: 6.938 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.4036, allocations: 8.031 kB / 240.5 MB, free: 6.93 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008175/0.4044, allocations: 189.8 kB / 240.7 MB, free: 6.742 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003114/0.4075, allocations: 1.018 MB / 241.7 MB, free: 5.668 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001579/0.4077, allocations: 94.22 kB / 241.8 MB, free: 5.574 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004037/0.4082, allocations: 116 kB / 241.9 MB, free: 5.461 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005521/0.4137, allocations: 1.83 MB / 243.7 MB, free: 3.535 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.568e-05/0.4138, allocations: 3.938 kB / 243.7 MB, free: 3.531 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002576/0.4141, allocations: 55.92 kB / 243.8 MB, free: 3.477 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002844/0.4144, allocations: 110.2 kB / 243.9 MB, free: 3.367 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00597/0.4203, allocations: 1.828 MB / 245.7 MB, free: 1.531 MB / 186.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01876/0.4392, allocations: 7.71 MB / 253.4 MB, free: 9.301 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003587/0.4428, allocations: 1.157 MB / 254.6 MB, free: 8.141 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008583/0.4514, allocations: 3.355 MB / 257.9 MB, free: 4.5 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.845e-05/0.4515, allocations: 47.56 kB / 258 MB, free: 4.445 MB / 202.7 MB Notification: Performance of pre-optimization done (n=119): time 4.86e-06/0.4516, allocations: 0 / 258 MB, free: 4.445 MB / 202.7 MB Notification: Performance of matching and sorting (n=131): time 0.02161/0.4732, allocations: 5.225 MB / 263.2 MB, free: 15.09 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.4733, allocations: 171.5 kB / 263.4 MB, free: 14.89 MB / 218.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002418/0.4758, allocations: 1.107 MB / 264.5 MB, free: 13.77 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003699/0.4762, allocations: 57.7 kB / 264.5 MB, free: 13.71 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007484/0.477, allocations: 0.6846 MB / 265.2 MB, free: 13.02 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007604/0.4777, allocations: 461.4 kB / 265.7 MB, free: 12.56 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.4779, allocations: 35.94 kB / 265.7 MB, free: 12.52 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0002387/0.4782, allocations: 386.5 kB / 266.1 MB, free: 12.14 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002222/0.4804, allocations: 0.7065 MB / 266.8 MB, free: 11.43 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002689/0.4831, allocations: 1.157 MB / 268 MB, free: 10.08 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002598/0.4857, allocations: 0.8337 MB / 268.8 MB, free: 9.246 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.68e-05/0.4858, allocations: 4 kB / 268.8 MB, free: 9.242 MB / 218.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.007115/0.4929, allocations: 2.21 MB / 271 MB, free: 7.012 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.493, allocations: 12 kB / 271 MB, free: 7 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.243e-05/0.4931, allocations: 12.69 kB / 271 MB, free: 6.988 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01213/0.5052, allocations: 1.088 MB / 272.1 MB, free: 5.883 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002676/0.5079, allocations: 335.5 kB / 272.4 MB, free: 5.555 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004217/0.5122, allocations: 2.857 MB / 275.3 MB, free: 2.594 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002559/0.5148, allocations: 128 kB / 275.4 MB, free: 2.469 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003338/0.5152, allocations: 75.97 kB / 275.5 MB, free: 2.395 MB / 218.7 MB Warning: Assuming fixed start value for the following 6 variables: 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" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" fixed = true 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" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" fixed = true 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 = tank3.T_start unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank3.level:VARIABLE(min = 0.0 start = tank3.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" 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.001473/0.5167, allocations: 0.4948 MB / 276 MB, free: 1.898 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004891/0.5172, allocations: 162 kB / 276.2 MB, free: 1.738 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008124/0.5253, allocations: 2.329 MB / 278.5 MB, free: 15.38 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.249e-05/0.5254, allocations: 16.19 kB / 278.5 MB, free: 15.36 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.837e-06/0.5254, allocations: 0 / 278.5 MB, free: 15.36 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-05/0.5254, allocations: 11.91 kB / 278.5 MB, free: 15.35 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/0.5374, allocations: 3.889 MB / 282.4 MB, free: 11.38 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/0.5375, allocations: 0 / 282.4 MB, free: 11.38 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00216/0.5397, allocations: 235.7 kB / 282.6 MB, free: 11.14 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007382/0.5471, allocations: 0.9242 MB / 283.6 MB, free: 10.21 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003532/0.5475, allocations: 35.98 kB / 283.6 MB, free: 10.17 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003844/0.5513, allocations: 2.827 MB / 286.4 MB, free: 7.242 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.5514, allocations: 3.938 kB / 286.4 MB, free: 7.238 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008744/0.5602, allocations: 3.154 MB / 289.6 MB, free: 3.988 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006886/0.5609, allocations: 251 kB / 289.8 MB, free: 3.723 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005951/0.5615, allocations: 32 kB / 289.8 MB, free: 3.691 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002039/0.5636, allocations: 111.8 kB / 290 MB, free: 3.582 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000546/0.5641, allocations: 145 kB / 290.1 MB, free: 3.438 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002295/0.5644, allocations: 55.97 kB / 290.2 MB, free: 3.383 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001989/0.5664, allocations: 0.8514 MB / 291 MB, free: 2.531 MB / 234.7 MB Notification: Performance of sort global known variables: time 6.62e-07/0.5664, allocations: 4 kB / 291 MB, free: 2.527 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.003566/0.57, allocations: 0.8042 MB / 291.8 MB, free: 1.723 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.level,tank3.medium.T,tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * 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.002779/0.5728, allocations: 0.7325 MB / 292.5 MB, free: 0.9844 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.006671/0.5796, allocations: 1.847 MB / 294.4 MB, free: 15.14 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/0.5796, allocations: 7.938 kB / 294.4 MB, free: 15.13 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003761/0.5834, allocations: 1.047 MB / 295.4 MB, free: 14.09 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006517/0.59, allocations: 0.7328 MB / 296.2 MB, free: 13.36 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.601, allocations: 4.103 MB / 300.3 MB, free: 9.215 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001829/0.6029, allocations: 1.413 MB / 301.7 MB, free: 7.773 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.604, allocations: 151.4 kB / 301.8 MB, free: 7.625 MB / 250.7 MB Notification: Performance of SimCode: time 1.193e-06/0.604, allocations: 0 / 301.8 MB, free: 7.625 MB / 250.7 MB Notification: Performance of Templates: time 0.2693/0.8733, allocations: 55.54 MB / 357.4 MB, free: 58.39 MB / 250.7 MB