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_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.907/1.907, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.24e-05/3.247e-05, allocations: 7.984 kB / 292.2 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09089/0.09094, allocations: 50.4 MB / 342.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9097/1.001, allocations: 322.5 MB / 0.6495 GB, free: 37.85 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/1.001, allocations: 85.45 kB / 0.6495 GB, free: 37.8 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6846/1.686, allocations: 140.2 MB / 0.7864 GB, free: 75.64 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.256e-06/1.686, allocations: 0 / 0.7864 GB, free: 75.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.419e-05/1.686, allocations: 24.09 kB / 0.7864 GB, free: 75.61 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.002428/1.688, allocations: 1.026 MB / 0.7874 GB, free: 74.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/1.688, allocations: 12.03 kB / 0.7875 GB, free: 74.53 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004426/1.689, allocations: 87.08 kB / 0.7875 GB, free: 74.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001369/1.69, allocations: 0.587 MB / 0.7881 GB, free: 73.82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.161e-05/1.69, allocations: 36.98 kB / 0.7882 GB, free: 73.78 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/1.69, allocations: 44 kB / 0.7882 GB, free: 73.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/1.692, allocations: 0.7206 MB / 0.7889 GB, free: 72.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/1.692, allocations: 7.938 kB / 0.7889 GB, free: 72.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.121e-05/1.692, allocations: 16 kB / 0.7889 GB, free: 72.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.619e-05/1.692, allocations: 44.97 kB / 0.789 GB, free: 72.92 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/1.693, allocations: 0.6617 MB / 0.7896 GB, free: 72.25 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005021/1.698, allocations: 2.858 MB / 0.7924 GB, free: 69.22 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008469/1.699, allocations: 453 kB / 0.7928 GB, free: 68.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004322/1.7, allocations: 250.1 kB / 0.7931 GB, free: 68.52 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002746/1.7, allocations: 341.3 kB / 0.7934 GB, free: 68.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/1.7, allocations: 42.98 kB / 0.7934 GB, free: 68.06 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 3.813e-06/1.7, allocations: 4 kB / 0.7934 GB, free: 68.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=58): time 0.005022/1.705, allocations: 1.823 MB / 0.7952 GB, free: 66.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/1.705, allocations: 81.67 kB / 0.7953 GB, free: 66.09 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008537/1.706, allocations: 0.5423 MB / 0.7958 GB, free: 65.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001072/1.706, allocations: 41.7 kB / 0.7959 GB, free: 65.49 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/1.706, allocations: 332.4 kB / 0.7962 GB, free: 65.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/1.706, allocations: 205 kB / 0.7964 GB, free: 64.95 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.352e-05/1.707, allocations: 16 kB / 0.7964 GB, free: 64.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/1.707, allocations: 386.7 kB / 0.7968 GB, free: 64.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005686/1.707, allocations: 277.5 kB / 0.797 GB, free: 64.28 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006237/1.708, allocations: 437.5 kB / 0.7974 GB, free: 63.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006325/1.709, allocations: 337.9 kB / 0.7978 GB, free: 63.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.792e-06/1.709, allocations: 0 / 0.7978 GB, free: 63.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001936/1.711, allocations: 0.8986 MB / 0.7986 GB, free: 62.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000343/1.711, allocations: 1.749 MB / 0.8004 GB, free: 60.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/1.711, allocations: 4 kB / 0.8004 GB, free: 60.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00265/1.714, allocations: 348.5 kB / 0.8007 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009079/1.715, allocations: 151.7 kB / 0.8008 GB, free: 60.17 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/1.716, allocations: 0.8138 MB / 0.8016 GB, free: 59.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000901/1.716, allocations: 47.88 kB / 0.8017 GB, free: 59.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.932e-05/1.717, allocations: 31.98 kB / 0.8017 GB, free: 59.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/1.717, allocations: 4 kB / 0.8017 GB, free: 59.25 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001683/1.718, allocations: 0.7607 MB / 0.8025 GB, free: 58.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.636e-06/1.718, allocations: 4.594 kB / 0.8025 GB, free: 58.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001689/1.72, allocations: 236.5 kB / 0.8027 GB, free: 58.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008035/1.721, allocations: 151.8 kB / 0.8028 GB, free: 58.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006522/1.722, allocations: 0.7006 MB / 0.8035 GB, free: 57.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007561/1.722, allocations: 39.98 kB / 0.8036 GB, free: 57.33 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.798e-05/1.722, allocations: 31.98 kB / 0.8036 GB, free: 57.3 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.0002427/1.723, allocations: 152.8 kB / 0.8037 GB, free: 57.14 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001631/1.723, allocations: 79.09 kB / 0.8038 GB, free: 57.07 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/1.725, allocations: 0.838 MB / 0.8046 GB, free: 56.23 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.915e-06/1.725, allocations: 11.94 kB / 0.8046 GB, free: 56.21 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.968e-06/1.725, allocations: 0 / 0.8046 GB, free: 56.21 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/1.725, allocations: 3.984 kB / 0.8046 GB, free: 56.21 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00314/1.728, allocations: 1.641 MB / 0.8062 GB, free: 54.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.247e-06/1.728, allocations: 0 / 0.8062 GB, free: 54.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006933/1.729, allocations: 112 kB / 0.8063 GB, free: 54.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002123/1.731, allocations: 332.5 kB / 0.8067 GB, free: 54.07 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001049/1.731, allocations: 23.98 kB / 0.8067 GB, free: 54.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008882/1.732, allocations: 0.8021 MB / 0.8075 GB, free: 53.21 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.259e-06/1.732, allocations: 0 / 0.8075 GB, free: 53.21 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002248/1.734, allocations: 1.24 MB / 0.8087 GB, free: 51.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002707/1.734, allocations: 156.3 kB / 0.8088 GB, free: 51.76 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/1.735, allocations: 15.98 kB / 0.8088 GB, free: 51.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006538/1.735, allocations: 39.89 kB / 0.8089 GB, free: 51.71 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/1.735, allocations: 56.47 kB / 0.8089 GB, free: 51.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.123e-05/1.736, allocations: 23.98 kB / 0.809 GB, free: 51.63 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006421/1.736, allocations: 431.2 kB / 0.8094 GB, free: 51.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.93e-07/1.736, allocations: 0 / 0.8094 GB, free: 51.21 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002082/1.738, allocations: 0.5893 MB / 0.8099 GB, free: 50.62 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.001497/1.74, allocations: 0.6159 MB / 0.8105 GB, free: 50.01 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002481/1.742, allocations: 1.107 MB / 0.8116 GB, free: 48.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.511e-06/1.742, allocations: 4 kB / 0.8116 GB, free: 48.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007759/1.743, allocations: 357.9 kB / 0.812 GB, free: 48.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001989/1.745, allocations: 324.8 kB / 0.8123 GB, free: 48.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002472/1.748, allocations: 1.197 MB / 0.8135 GB, free: 47.01 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/1.748, allocations: 0.9841 MB / 0.8144 GB, free: 46 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001574/1.75, allocations: 317.3 kB / 0.8147 GB, free: 45.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/1.75, allocations: 59.42 kB / 0.8148 GB, free: 45.62 MB / 442.7 MB Notification: Performance of SimCode: time 2.024e-06/1.75, allocations: 4 kB / 0.8148 GB, free: 45.62 MB / 442.7 MB Notification: Performance of Templates: time 0.04127/1.791, allocations: 20.74 MB / 0.835 GB, free: 25.04 MB / 442.7 MB