Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.993/1.993, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.931e-05/2.942e-05, allocations: 10.03 kB / 292.7 MB, free: 8.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1108, allocations: 50.42 MB / 343.1 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9636/1.074, allocations: 322.5 MB / 0.65 GB, free: 37.84 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/1.075, allocations: 95.62 kB / 0.6501 GB, free: 37.79 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6743/1.749, allocations: 140.2 MB / 0.7869 GB, free: 75.5 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.864e-06/1.749, allocations: 0 / 0.7869 GB, free: 75.5 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.818e-05/1.749, allocations: 27.92 kB / 0.787 GB, free: 75.47 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002245/1.751, allocations: 1.018 MB / 0.788 GB, free: 74.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/1.751, allocations: 8.031 kB / 0.788 GB, free: 74.4 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005485/1.752, allocations: 83.14 kB / 0.788 GB, free: 74.32 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/1.754, allocations: 0.5831 MB / 0.7886 GB, free: 73.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.022e-05/1.754, allocations: 40.98 kB / 0.7886 GB, free: 73.66 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/1.754, allocations: 47.98 kB / 0.7887 GB, free: 73.61 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002127/1.756, allocations: 0.7205 MB / 0.7894 GB, free: 72.86 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.621e-05/1.756, allocations: 3.984 kB / 0.7894 GB, free: 72.85 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001587/1.757, allocations: 23.98 kB / 0.7894 GB, free: 72.83 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001405/1.757, allocations: 40.98 kB / 0.7895 GB, free: 72.79 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00252/1.759, allocations: 0.6656 MB / 0.7901 GB, free: 72.12 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007675/1.767, allocations: 2.85 MB / 0.7929 GB, free: 69.09 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/1.768, allocations: 464.2 kB / 0.7933 GB, free: 68.62 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008259/1.769, allocations: 254 kB / 0.7936 GB, free: 68.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000409/1.77, allocations: 348.8 kB / 0.7939 GB, free: 67.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/1.77, allocations: 46.94 kB / 0.794 GB, free: 67.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 6.001e-06/1.77, allocations: 3.938 kB / 0.794 GB, free: 67.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.004847/1.775, allocations: 1.82 MB / 0.7957 GB, free: 66.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/1.775, allocations: 89.66 kB / 0.7958 GB, free: 65.93 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000821/1.776, allocations: 0.5384 MB / 0.7964 GB, free: 65.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.056e-05/1.776, allocations: 41.7 kB / 0.7964 GB, free: 65.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002454/1.776, allocations: 332.5 kB / 0.7967 GB, free: 65 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/1.776, allocations: 205 kB / 0.7969 GB, free: 64.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.277e-05/1.776, allocations: 12 kB / 0.7969 GB, free: 64.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/1.776, allocations: 390.7 kB / 0.7973 GB, free: 64.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005552/1.777, allocations: 273.5 kB / 0.7975 GB, free: 64.13 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006215/1.778, allocations: 445.4 kB / 0.798 GB, free: 63.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006131/1.778, allocations: 330 kB / 0.7983 GB, free: 63.31 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/1.778, allocations: 0 / 0.7983 GB, free: 63.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00186/1.78, allocations: 0.8985 MB / 0.7992 GB, free: 62.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000336/1.78, allocations: 1.749 MB / 0.8009 GB, free: 60.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/1.781, allocations: 8 kB / 0.8009 GB, free: 60.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002365/1.783, allocations: 348.5 kB / 0.8012 GB, free: 60.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007934/1.784, allocations: 151.7 kB / 0.8014 GB, free: 60.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000907/1.785, allocations: 0.806 MB / 0.8021 GB, free: 59.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000792/1.785, allocations: 47.88 kB / 0.8022 GB, free: 59.13 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.523e-05/1.786, allocations: 35.98 kB / 0.8022 GB, free: 59.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/1.786, allocations: 6.719 kB / 0.8022 GB, free: 59.09 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001556/1.787, allocations: 0.7573 MB / 0.803 GB, free: 58.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.672e-06/1.787, allocations: 8 kB / 0.803 GB, free: 58.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00164/1.789, allocations: 228.6 kB / 0.8032 GB, free: 58.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007695/1.79, allocations: 159.7 kB / 0.8033 GB, free: 57.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006307/1.79, allocations: 0.6929 MB / 0.804 GB, free: 57.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007359/1.791, allocations: 51.84 kB / 0.8041 GB, free: 57.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.02e-05/1.791, allocations: 36.16 kB / 0.8041 GB, free: 57.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002308/1.791, allocations: 159.1 kB / 0.8043 GB, free: 56.98 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/1.792, allocations: 75.11 kB / 0.8043 GB, free: 56.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00173/1.793, allocations: 0.8227 MB / 0.8051 GB, free: 56.08 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/1.793, allocations: 15.94 kB / 0.8052 GB, free: 56.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.756e-06/1.793, allocations: 0 / 0.8052 GB, free: 56.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/1.793, allocations: 3.984 kB / 0.8052 GB, free: 56.06 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003032/1.796, allocations: 1.645 MB / 0.8068 GB, free: 54.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.116e-06/1.796, allocations: 0 / 0.8068 GB, free: 54.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006419/1.797, allocations: 115.9 kB / 0.8069 GB, free: 54.24 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001814/1.799, allocations: 324.5 kB / 0.8072 GB, free: 53.92 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.551e-05/1.799, allocations: 15.98 kB / 0.8072 GB, free: 53.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007895/1.8, allocations: 0.7983 MB / 0.808 GB, free: 53.08 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.857e-06/1.8, allocations: 0 / 0.808 GB, free: 53.08 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00209/1.802, allocations: 1.24 MB / 0.8092 GB, free: 51.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000232/1.802, allocations: 144.3 kB / 0.8093 GB, free: 51.64 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000144/1.802, allocations: 23.98 kB / 0.8093 GB, free: 51.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006473/1.803, allocations: 47.81 kB / 0.8094 GB, free: 51.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/1.803, allocations: 52.48 kB / 0.8094 GB, free: 51.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.991e-05/1.803, allocations: 23.98 kB / 0.8095 GB, free: 51.49 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006286/1.804, allocations: 431.2 kB / 0.8099 GB, free: 51.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.66e-07/1.804, allocations: 0 / 0.8099 GB, free: 51.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001974/1.806, allocations: 0.5854 MB / 0.8104 GB, free: 50.49 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001354/1.807, allocations: 0.6096 MB / 0.811 GB, free: 49.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002387/1.81, allocations: 1.111 MB / 0.8121 GB, free: 48.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/1.81, allocations: 0 / 0.8121 GB, free: 48.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000749/1.81, allocations: 362 kB / 0.8125 GB, free: 48.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0018/1.812, allocations: 346 kB / 0.8128 GB, free: 48.09 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002281/1.815, allocations: 1.185 MB / 0.814 GB, free: 46.87 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004841/1.815, allocations: 0.9801 MB / 0.8149 GB, free: 45.86 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001438/1.817, allocations: 316.9 kB / 0.8152 GB, free: 45.55 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002008/1.817, allocations: 59.41 kB / 0.8153 GB, free: 45.49 MB / 442.7 MB Notification: Performance of SimCode: time 1.832e-06/1.817, allocations: 4 kB / 0.8153 GB, free: 45.48 MB / 442.7 MB Notification: Performance of Templates: time 0.0411/1.858, allocations: 20.74 MB / 0.8355 GB, free: 24.91 MB / 442.7 MB