Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.98/1.98, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.212e-05/3.224e-05, allocations: 5.562 kB / 292.1 MB, free: 8.836 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0913/0.09136, allocations: 50.42 MB / 342.6 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9031/0.9945, allocations: 324.7 MB / 0.6516 GB, free: 35.45 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.9948, allocations: 87.33 kB / 0.6517 GB, free: 35.4 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8713/1.866, allocations: 196 MB / 0.843 GB, free: 17 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.452e-06/1.866, allocations: 0 / 0.843 GB, free: 17 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.432e-05/1.866, allocations: 23.98 kB / 0.8431 GB, free: 16.98 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003477/1.87, allocations: 1.294 MB / 0.8443 GB, free: 15.64 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/1.87, allocations: 8.875 kB / 0.8443 GB, free: 15.63 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006634/1.871, allocations: 118.8 kB / 0.8445 GB, free: 15.51 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001939/1.873, allocations: 0.7258 MB / 0.8452 GB, free: 14.75 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.809e-05/1.873, allocations: 53.3 kB / 0.8452 GB, free: 14.7 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001747/1.873, allocations: 59.98 kB / 0.8453 GB, free: 14.64 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002041/1.875, allocations: 1.032 MB / 0.8463 GB, free: 13.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.692e-05/1.875, allocations: 4 kB / 0.8463 GB, free: 13.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001365/1.875, allocations: 27.98 kB / 0.8463 GB, free: 13.51 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001078/1.875, allocations: 69.2 kB / 0.8464 GB, free: 13.45 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001993/1.877, allocations: 0.9785 MB / 0.8473 GB, free: 12.46 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0079/1.885, allocations: 4.398 MB / 0.8516 GB, free: 7.809 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/1.886, allocations: 0.5455 MB / 0.8522 GB, free: 7.258 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005727/1.887, allocations: 314 kB / 0.8525 GB, free: 6.949 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00317/1.89, allocations: 2.082 MB / 0.8545 GB, free: 4.652 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/1.89, allocations: 42.89 kB / 0.8545 GB, free: 4.602 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 3.643e-06/1.89, allocations: 0 / 0.8545 GB, free: 4.602 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.004247/1.894, allocations: 1.501 MB / 0.856 GB, free: 3.043 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/1.895, allocations: 162.2 kB / 0.8562 GB, free: 2.848 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001452/1.896, allocations: 0.8058 MB / 0.8569 GB, free: 2.016 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001358/1.896, allocations: 45.69 kB / 0.857 GB, free: 1.965 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002997/1.896, allocations: 489.4 kB / 0.8574 GB, free: 1.484 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/1.897, allocations: 161.7 kB / 0.8576 GB, free: 1.324 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.824e-05/1.897, allocations: 16 kB / 0.8576 GB, free: 1.309 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.505e-05/1.897, allocations: 347.3 kB / 0.8579 GB, free: 0.9609 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006549/1.897, allocations: 301.9 kB / 0.8582 GB, free: 0.6641 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2589/2.156, allocations: 0.5803 MB / 0.8588 GB, free: 75.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/2.158, allocations: 391.1 kB / 0.8592 GB, free: 75.29 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/2.158, allocations: 2.938 kB / 0.8592 GB, free: 75.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002941/2.161, allocations: 0.9843 MB / 0.8601 GB, free: 75.24 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007076/2.161, allocations: 3.317 MB / 0.8634 GB, free: 71.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.308e-05/2.162, allocations: 8.062 kB / 0.8634 GB, free: 71.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002603/2.164, allocations: 319.5 kB / 0.8637 GB, free: 71.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/2.165, allocations: 178.3 kB / 0.8639 GB, free: 71.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/2.167, allocations: 1.346 MB / 0.8652 GB, free: 70.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001262/2.168, allocations: 56.89 kB / 0.8652 GB, free: 70.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001466/2.168, allocations: 43.16 kB / 0.8653 GB, free: 70.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/2.168, allocations: 3 kB / 0.8653 GB, free: 70.75 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00228/2.17, allocations: 0.9177 MB / 0.8662 GB, free: 70.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.164e-05/2.17, allocations: 8.25 kB / 0.8662 GB, free: 70.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002545/2.173, allocations: 282.7 kB / 0.8664 GB, free: 70.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001084/2.174, allocations: 173.4 kB / 0.8666 GB, free: 70.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001297/2.175, allocations: 1.294 MB / 0.8679 GB, free: 69.67 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009868/2.176, allocations: 55.66 kB / 0.8679 GB, free: 69.67 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/2.177, allocations: 45.17 kB / 0.868 GB, free: 69.67 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003289/2.177, allocations: 160 kB / 0.8681 GB, free: 69.56 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002885/2.177, allocations: 99.11 kB / 0.8682 GB, free: 69.56 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/2.18, allocations: 0.7753 MB / 0.869 GB, free: 69.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/2.18, allocations: 8.938 kB / 0.869 GB, free: 69.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.052e-06/2.18, allocations: 0 / 0.869 GB, free: 69.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/2.18, allocations: 7.516 kB / 0.869 GB, free: 69.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003885/2.184, allocations: 1.586 MB / 0.8705 GB, free: 69.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.368e-06/2.184, allocations: 0.9688 kB / 0.8705 GB, free: 69.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006121/2.184, allocations: 79.47 kB / 0.8706 GB, free: 69.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002217/2.187, allocations: 279 kB / 0.8709 GB, free: 69.13 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/2.187, allocations: 13.95 kB / 0.8709 GB, free: 69.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/2.188, allocations: 1.308 MB / 0.8722 GB, free: 68.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.849e-06/2.188, allocations: 6.125 kB / 0.8722 GB, free: 68.09 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002361/2.19, allocations: 1.092 MB / 0.8732 GB, free: 67.86 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004851/2.191, allocations: 196.3 kB / 0.8734 GB, free: 67.71 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002342/2.191, allocations: 12.75 kB / 0.8734 GB, free: 67.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009418/2.192, allocations: 39.31 kB / 0.8735 GB, free: 67.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001726/2.192, allocations: 52.67 kB / 0.8735 GB, free: 67.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.486e-05/2.192, allocations: 23.02 kB / 0.8736 GB, free: 67.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001292/2.194, allocations: 0.6352 MB / 0.8742 GB, free: 67.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.102e-06/2.194, allocations: 2.906 kB / 0.8742 GB, free: 67.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003971/2.198, allocations: 0.8349 MB / 0.875 GB, free: 67.59 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002801/2.201, allocations: 0.8245 MB / 0.8758 GB, free: 67.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003522/2.204, allocations: 1.169 MB / 0.8769 GB, free: 67.47 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.996e-06/2.204, allocations: 1.094 kB / 0.8769 GB, free: 67.47 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001216/2.205, allocations: 358.8 kB / 0.8773 GB, free: 67.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002653/2.208, allocations: 376 kB / 0.8776 GB, free: 67.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00322/2.211, allocations: 1.304 MB / 0.8789 GB, free: 67.11 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00075/2.212, allocations: 1.05 MB / 0.8799 GB, free: 66.4 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004672/2.213, allocations: 82.66 kB / 0.88 GB, free: 66.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.921e-06/2.213, allocations: 0 / 0.88 GB, free: 66.39 MB / 442.7 MB Notification: Performance of Templates: time 0.0404/2.253, allocations: 26.28 MB / 0.9057 GB, free: 65.47 MB / 442.7 MB