Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.734e-05/2.75e-05, allocations: 4 kB / 292.1 MB, free: 8.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09233/0.09238, allocations: 50.42 MB / 342.5 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9866/1.079, allocations: 329 MB / 0.6558 GB, free: 31.29 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/1.079, allocations: 93.81 kB / 0.6559 GB, free: 31.25 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7678/1.847, allocations: 169.9 MB / 0.8218 GB, free: 39.35 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.216e-06/1.847, allocations: 0 / 0.8218 GB, free: 39.35 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.347e-05/1.847, allocations: 24 kB / 0.8218 GB, free: 39.32 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002614/1.85, allocations: 1.106 MB / 0.8229 GB, free: 38.17 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/1.85, allocations: 12.88 kB / 0.8229 GB, free: 38.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005414/1.851, allocations: 94.97 kB / 0.823 GB, free: 38.07 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001469/1.852, allocations: 0.6323 MB / 0.8236 GB, free: 37.39 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.796e-05/1.852, allocations: 45.3 kB / 0.8237 GB, free: 37.35 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001335/1.852, allocations: 52 kB / 0.8237 GB, free: 37.3 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/1.854, allocations: 0.8712 MB / 0.8246 GB, free: 36.37 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/1.854, allocations: 0 / 0.8246 GB, free: 36.37 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/1.854, allocations: 31.98 kB / 0.8246 GB, free: 36.34 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.205e-05/1.854, allocations: 45.23 kB / 0.8246 GB, free: 36.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/1.856, allocations: 0.7638 MB / 0.8254 GB, free: 35.53 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006029/1.862, allocations: 3.783 MB / 0.8291 GB, free: 31.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/1.863, allocations: 0.5036 MB / 0.8296 GB, free: 31 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004777/1.863, allocations: 266.1 kB / 0.8298 GB, free: 30.74 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002722/1.866, allocations: 1.887 MB / 0.8317 GB, free: 28.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/1.866, allocations: 42.56 kB / 0.8317 GB, free: 28.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 3.627e-06/1.866, allocations: 3.938 kB / 0.8317 GB, free: 28.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.003518/1.87, allocations: 1.367 MB / 0.8331 GB, free: 27.16 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/1.87, allocations: 136.5 kB / 0.8332 GB, free: 26.99 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/1.871, allocations: 0.6561 MB / 0.8338 GB, free: 26.33 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.228e-05/1.871, allocations: 37.7 kB / 0.8339 GB, free: 26.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002361/1.871, allocations: 417.5 kB / 0.8343 GB, free: 25.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/1.871, allocations: 173.7 kB / 0.8344 GB, free: 25.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.486e-05/1.871, allocations: 12 kB / 0.8344 GB, free: 25.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.558e-05/1.871, allocations: 338.8 kB / 0.8348 GB, free: 25.35 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005406/1.872, allocations: 249.5 kB / 0.835 GB, free: 25.11 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006513/1.873, allocations: 492.7 kB / 0.8355 GB, free: 24.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006224/1.873, allocations: 315 kB / 0.8358 GB, free: 24.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.335e-06/1.873, allocations: 4 kB / 0.8358 GB, free: 24.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001773/1.875, allocations: 0.8088 MB / 0.8366 GB, free: 23.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005129/1.876, allocations: 2.703 MB / 0.8392 GB, free: 20.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/1.876, allocations: 8 kB / 0.8392 GB, free: 20.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001235/1.877, allocations: 165.6 kB / 0.8394 GB, free: 20.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/1.878, allocations: 195.7 kB / 0.8396 GB, free: 20.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/1.879, allocations: 1.796 MB / 0.8413 GB, free: 18.24 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/1.881, allocations: 51.88 kB / 0.8414 GB, free: 18.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/1.881, allocations: 43.92 kB / 0.8414 GB, free: 18.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/1.881, allocations: 4 kB / 0.8414 GB, free: 18.14 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001648/1.882, allocations: 0.7567 MB / 0.8421 GB, free: 17.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/1.882, allocations: 8 kB / 0.8422 GB, free: 17.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0011/1.883, allocations: 161.9 kB / 0.8423 GB, free: 17.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009483/1.884, allocations: 171.7 kB / 0.8425 GB, free: 17.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007516/1.885, allocations: 1.179 MB / 0.8436 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000691/1.886, allocations: 51.88 kB / 0.8437 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-05/1.886, allocations: 35.98 kB / 0.8437 GB, free: 15.72 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (88): * Single equations (assignments): 85 * 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: 2 * 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: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000256/1.886, allocations: 164.1 kB / 0.8439 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/1.887, allocations: 83.06 kB / 0.8439 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001929/1.889, allocations: 0.8086 MB / 0.8447 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/1.889, allocations: 4 kB / 0.8447 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.145e-06/1.889, allocations: 0 / 0.8447 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/1.889, allocations: 4.172 kB / 0.8447 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003117/1.892, allocations: 1.564 MB / 0.8463 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.647e-06/1.892, allocations: 3.984 kB / 0.8463 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008792/1.893, allocations: 139.9 kB / 0.8464 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007553/1.893, allocations: 121.6 kB / 0.8465 GB, free: 12.73 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.11e-05/1.894, allocations: 20 kB / 0.8465 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009224/1.894, allocations: 1.738 MB / 0.8482 GB, free: 10.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.399e-06/1.894, allocations: 0 / 0.8482 GB, free: 10.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/1.897, allocations: 1.126 MB / 0.8493 GB, free: 9.727 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004035/1.897, allocations: 168 kB / 0.8495 GB, free: 9.543 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001839/1.897, allocations: 15.98 kB / 0.8495 GB, free: 9.527 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007542/1.898, allocations: 43.92 kB / 0.8496 GB, free: 9.484 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001487/1.898, allocations: 56.53 kB / 0.8496 GB, free: 9.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.045e-05/1.898, allocations: 23.98 kB / 0.8496 GB, free: 9.406 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008662/1.899, allocations: 0.5109 MB / 0.8501 GB, free: 8.898 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.03e-07/1.899, allocations: 3.938 kB / 0.8501 GB, free: 8.895 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002454/1.902, allocations: 0.6479 MB / 0.8508 GB, free: 8.246 MB / 442.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[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * 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: 2 * 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: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001819/1.904, allocations: 0.6987 MB / 0.8514 GB, free: 7.551 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003242/1.907, allocations: 1.096 MB / 0.8525 GB, free: 6.461 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.118e-06/1.907, allocations: 0 / 0.8525 GB, free: 6.461 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/1.908, allocations: 378.4 kB / 0.8529 GB, free: 6.094 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002141/1.91, allocations: 369.4 kB / 0.8532 GB, free: 5.738 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/1.913, allocations: 1.176 MB / 0.8544 GB, free: 4.52 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000491/1.913, allocations: 1.003 MB / 0.8554 GB, free: 3.484 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/1.914, allocations: 87.41 kB / 0.8554 GB, free: 3.398 MB / 442.7 MB Notification: Performance of SimCode: time 1.683e-06/1.914, allocations: 0 / 0.8554 GB, free: 3.398 MB / 442.7 MB Notification: Performance of Templates: time 0.2985/2.212, allocations: 25.64 MB / 0.8805 GB, free: 83.44 MB / 442.7 MB