Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 2.26/2.26, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.274e-05/3.282e-05, allocations: 3.938 kB / 292.7 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09009/0.09015, allocations: 50.42 MB / 343.1 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9184/1.009, allocations: 324.6 MB / 0.6521 GB, free: 35.74 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/1.009, allocations: 87.14 kB / 0.6521 GB, free: 35.7 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8829/1.892, allocations: 196 MB / 0.8435 GB, free: 16.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.927e-06/1.892, allocations: 0 / 0.8435 GB, free: 16.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.065e-05/1.892, allocations: 20 kB / 0.8435 GB, free: 16.96 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.003304/1.895, allocations: 1.293 MB / 0.8448 GB, free: 15.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/1.895, allocations: 8.031 kB / 0.8448 GB, free: 15.61 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006359/1.896, allocations: 114.8 kB / 0.8449 GB, free: 15.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001907/1.898, allocations: 0.7297 MB / 0.8456 GB, free: 14.73 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.345e-05/1.898, allocations: 49.3 kB / 0.8457 GB, free: 14.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/1.898, allocations: 63.97 kB / 0.8457 GB, free: 14.62 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/1.9, allocations: 1.032 MB / 0.8467 GB, free: 13.53 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.866e-05/1.9, allocations: 4 kB / 0.8467 GB, free: 13.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/1.901, allocations: 31.98 kB / 0.8468 GB, free: 13.49 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000112/1.901, allocations: 65.27 kB / 0.8468 GB, free: 13.43 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00194/1.903, allocations: 0.9825 MB / 0.8478 GB, free: 12.45 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007837/1.91, allocations: 4.398 MB / 0.8521 GB, free: 7.789 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/1.912, allocations: 0.55 MB / 0.8526 GB, free: 7.234 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005829/1.912, allocations: 310 kB / 0.8529 GB, free: 6.93 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003212/1.915, allocations: 2.082 MB / 0.855 GB, free: 4.633 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/1.916, allocations: 42.89 kB / 0.855 GB, free: 4.582 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 3.342e-06/1.916, allocations: 0 / 0.855 GB, free: 4.582 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.00407/1.92, allocations: 1.501 MB / 0.8565 GB, free: 3.023 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/1.92, allocations: 162.2 kB / 0.8566 GB, free: 2.828 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001428/1.921, allocations: 0.8058 MB / 0.8574 GB, free: 1.996 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000155/1.921, allocations: 37.7 kB / 0.8574 GB, free: 1.953 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003505/1.922, allocations: 482.9 kB / 0.8579 GB, free: 1.477 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000172/1.922, allocations: 165.7 kB / 0.8581 GB, free: 1.312 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.951e-05/1.922, allocations: 20 kB / 0.8581 GB, free: 1.293 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.027e-05/1.922, allocations: 334 kB / 0.8584 GB, free: 0.9609 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006587/1.923, allocations: 305.9 kB / 0.8587 GB, free: 0.6602 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2554/2.178, allocations: 0.5835 MB / 0.8593 GB, free: 75.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/2.179, allocations: 388.2 kB / 0.8596 GB, free: 75.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/2.179, allocations: 4.5 kB / 0.8596 GB, free: 75.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002784/2.182, allocations: 1.037 MB / 0.8606 GB, free: 75.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006717/2.183, allocations: 3.318 MB / 0.8639 GB, free: 71.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/2.183, allocations: 9.25 kB / 0.8639 GB, free: 71.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002559/2.186, allocations: 315.7 kB / 0.8642 GB, free: 71.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/2.187, allocations: 179.8 kB / 0.8644 GB, free: 71.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001371/2.188, allocations: 1.346 MB / 0.8657 GB, free: 70.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/2.189, allocations: 59.77 kB / 0.8657 GB, free: 70.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/2.189, allocations: 43.23 kB / 0.8658 GB, free: 70.91 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/2.19, allocations: 4.125 kB / 0.8658 GB, free: 70.91 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002346/2.192, allocations: 0.9162 MB / 0.8667 GB, free: 70.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.11e-05/2.192, allocations: 8.25 kB / 0.8667 GB, free: 70.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002287/2.194, allocations: 295.4 kB / 0.867 GB, free: 70.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/2.195, allocations: 172.3 kB / 0.8671 GB, free: 70.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/2.196, allocations: 1.308 MB / 0.8684 GB, free: 69.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/2.198, allocations: 61 kB / 0.8685 GB, free: 69.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/2.198, allocations: 43.38 kB / 0.8685 GB, free: 69.83 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.000311/2.198, allocations: 158.5 kB / 0.8687 GB, free: 69.72 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002249/2.198, allocations: 102.2 kB / 0.8688 GB, free: 69.72 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002265/2.201, allocations: 0.771 MB / 0.8695 GB, free: 69.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.04e-05/2.201, allocations: 5.375 kB / 0.8695 GB, free: 69.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.838e-06/2.201, allocations: 1.156 kB / 0.8695 GB, free: 69.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/2.201, allocations: 6.562 kB / 0.8695 GB, free: 69.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00367/2.204, allocations: 1.582 MB / 0.8711 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.941e-06/2.204, allocations: 4.312 kB / 0.8711 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005491/2.205, allocations: 78.53 kB / 0.8711 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002051/2.207, allocations: 284.7 kB / 0.8714 GB, free: 69.29 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.096e-05/2.207, allocations: 12.58 kB / 0.8714 GB, free: 69.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001203/2.208, allocations: 1.309 MB / 0.8727 GB, free: 68.25 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.149e-06/2.208, allocations: 1.719 kB / 0.8727 GB, free: 68.25 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002251/2.211, allocations: 1.091 MB / 0.8738 GB, free: 67.98 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003935/2.211, allocations: 190.7 kB / 0.874 GB, free: 67.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002141/2.211, allocations: 15.22 kB / 0.874 GB, free: 67.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008748/2.212, allocations: 44.16 kB / 0.874 GB, free: 67.84 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002123/2.212, allocations: 53.59 kB / 0.8741 GB, free: 67.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.858e-05/2.213, allocations: 23.25 kB / 0.8741 GB, free: 67.83 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00148/2.214, allocations: 0.634 MB / 0.8747 GB, free: 67.71 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.724e-06/2.214, allocations: 0 / 0.8747 GB, free: 67.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003971/2.218, allocations: 0.8354 MB / 0.8755 GB, free: 67.71 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.00265/2.221, allocations: 0.8288 MB / 0.8763 GB, free: 67.61 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004051/2.225, allocations: 1.206 MB / 0.8775 GB, free: 67.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.917e-06/2.225, allocations: 2.312 kB / 0.8775 GB, free: 67.59 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001626/2.227, allocations: 351.4 kB / 0.8778 GB, free: 67.58 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002504/2.229, allocations: 385.4 kB / 0.8782 GB, free: 67.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003105/2.232, allocations: 1.262 MB / 0.8794 GB, free: 67.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007636/2.233, allocations: 1.059 MB / 0.8805 GB, free: 66.55 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002277/2.235, allocations: 425.3 kB / 0.8809 GB, free: 66.53 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000254/2.236, allocations: 64.3 kB / 0.8809 GB, free: 66.52 MB / 442.7 MB Notification: Performance of SimCode: time 1.661e-06/2.236, allocations: 0 / 0.8809 GB, free: 66.52 MB / 442.7 MB Notification: Performance of Templates: time 0.05883/2.294, allocations: 25.89 MB / 0.9062 GB, free: 65.61 MB / 442.7 MB