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_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.598/1.598, allocations: 171.2 MB / 183.8 MB, free: 11.94 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.268e-05/3.302e-05, allocations: 7.938 kB / 225 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2305, allocations: 38.76 MB / 263.8 MB, free: 9.875 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.743/0.9735, allocations: 314 MB / 0.5642 GB, free: 88.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.9738, allocations: 95.78 kB / 0.5643 GB, free: 88.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8834/1.857, allocations: 190.1 MB / 0.75 GB, free: 43.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.552e-06/1.857, allocations: 0 / 0.75 GB, free: 43.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.995e-05/1.857, allocations: 27.91 kB / 0.75 GB, free: 43.8 MB / 362.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.003109/1.86, allocations: 1.298 MB / 0.7512 GB, free: 42.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/1.861, allocations: 8.031 kB / 0.7513 GB, free: 42.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005909/1.861, allocations: 120 kB / 0.7514 GB, free: 42.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001903/1.863, allocations: 0.7642 MB / 0.7521 GB, free: 41.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.457e-05/1.863, allocations: 49.22 kB / 0.7522 GB, free: 41.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/1.863, allocations: 63.83 kB / 0.7522 GB, free: 41.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/1.865, allocations: 1.033 MB / 0.7532 GB, free: 40.37 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.65e-05/1.865, allocations: 0 / 0.7532 GB, free: 40.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/1.865, allocations: 35.81 kB / 0.7533 GB, free: 40.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/1.866, allocations: 65.27 kB / 0.7533 GB, free: 40.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001907/1.867, allocations: 0.9785 MB / 0.7543 GB, free: 39.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007483/1.875, allocations: 4.405 MB / 0.7586 GB, free: 34.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/1.876, allocations: 0.5198 MB / 0.7591 GB, free: 34.13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005261/1.877, allocations: 294 kB / 0.7594 GB, free: 33.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002844/1.879, allocations: 2.004 MB / 0.7613 GB, free: 31.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/1.88, allocations: 34.89 kB / 0.7614 GB, free: 31.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 3.224e-06/1.88, allocations: 0 / 0.7614 GB, free: 31.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.003706/1.883, allocations: 1.456 MB / 0.7628 GB, free: 30.08 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/1.883, allocations: 158.2 kB / 0.7629 GB, free: 29.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/1.885, allocations: 0.7386 MB / 0.7637 GB, free: 29.15 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.391e-05/1.885, allocations: 33.7 kB / 0.7637 GB, free: 29.11 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002916/1.885, allocations: 0.5044 MB / 0.7642 GB, free: 28.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001495/1.885, allocations: 165.7 kB / 0.7643 GB, free: 28.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.433e-05/1.885, allocations: 20 kB / 0.7644 GB, free: 28.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.298e-05/1.885, allocations: 342.8 kB / 0.7647 GB, free: 28.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006137/1.886, allocations: 297.9 kB / 0.765 GB, free: 27.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007685/1.887, allocations: 0.6424 MB / 0.7656 GB, free: 26.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007562/1.887, allocations: 399 kB / 0.766 GB, free: 26.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.899e-06/1.888, allocations: 0 / 0.766 GB, free: 26.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002152/1.89, allocations: 1.008 MB / 0.767 GB, free: 25.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008472/1.891, allocations: 4.441 MB / 0.7713 GB, free: 20.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.875e-05/1.891, allocations: 16 kB / 0.7713 GB, free: 20.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002363/1.893, allocations: 313.3 kB / 0.7716 GB, free: 20.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009549/1.894, allocations: 195.7 kB / 0.7718 GB, free: 20.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001143/1.895, allocations: 1.323 MB / 0.7731 GB, free: 18.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/1.896, allocations: 59.88 kB / 0.7731 GB, free: 18.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/1.896, allocations: 47.98 kB / 0.7732 GB, free: 18.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/1.896, allocations: 7.953 kB / 0.7732 GB, free: 18.77 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001952/1.898, allocations: 0.9447 MB / 0.7741 GB, free: 17.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.62e-05/1.898, allocations: 12 kB / 0.7741 GB, free: 17.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001979/1.9, allocations: 269.5 kB / 0.7744 GB, free: 17.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008919/1.901, allocations: 195.7 kB / 0.7746 GB, free: 17.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/1.902, allocations: 1.277 MB / 0.7758 GB, free: 16.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008382/1.903, allocations: 71.94 kB / 0.7759 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/1.903, allocations: 44 kB / 0.7759 GB, free: 15.91 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 (109): * Single equations (assignments): 107 * 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.0002668/1.904, allocations: 164.7 kB / 0.7761 GB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002218/1.904, allocations: 86.97 kB / 0.7762 GB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002009/1.906, allocations: 0.7641 MB / 0.7769 GB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.59e-06/1.906, allocations: 7.938 kB / 0.7769 GB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.65e-06/1.906, allocations: 0 / 0.7769 GB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/1.906, allocations: 7.922 kB / 0.7769 GB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003072/1.909, allocations: 1.536 MB / 0.7784 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.483e-06/1.909, allocations: 0 / 0.7784 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004851/1.91, allocations: 75.91 kB / 0.7785 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/1.911, allocations: 281.2 kB / 0.7788 GB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.533e-05/1.912, allocations: 12 kB / 0.7788 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/1.913, allocations: 1.311 MB / 0.7801 GB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.861e-06/1.913, allocations: 4 kB / 0.7801 GB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001951/1.915, allocations: 1.079 MB / 0.7811 GB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003014/1.915, allocations: 176 kB / 0.7813 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00017/1.915, allocations: 12 kB / 0.7813 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00069/1.916, allocations: 47.88 kB / 0.7814 GB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/1.916, allocations: 48.36 kB / 0.7814 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.719e-05/1.916, allocations: 20 kB / 0.7814 GB, free: 10.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008979/1.917, allocations: 0.5538 MB / 0.782 GB, free: 9.551 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.19e-07/1.917, allocations: 0 / 0.782 GB, free: 9.551 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002813/1.92, allocations: 0.8078 MB / 0.7827 GB, free: 8.742 MB / 362.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.002104/1.922, allocations: 0.8117 MB / 0.7835 GB, free: 7.992 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003017/1.925, allocations: 1.18 MB / 0.7847 GB, free: 6.816 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.869e-06/1.925, allocations: 4 kB / 0.7847 GB, free: 6.812 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/1.926, allocations: 345.3 kB / 0.785 GB, free: 6.477 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001769/1.928, allocations: 317.8 kB / 0.7853 GB, free: 6.176 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003016/1.931, allocations: 1.386 MB / 0.7867 GB, free: 4.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005613/1.932, allocations: 1.053 MB / 0.7877 GB, free: 3.668 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000355/1.932, allocations: 75.42 kB / 0.7878 GB, free: 3.594 MB / 362.7 MB Notification: Performance of SimCode: time 2.176e-06/1.932, allocations: 0 / 0.7878 GB, free: 3.594 MB / 362.7 MB Notification: Performance of Templates: time 0.2412/2.173, allocations: 25.07 MB / 0.8123 GB, free: 62.32 MB / 362.7 MB