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_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 194.9 MB / 208 MB, free: 3.152 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.94e-05/2.952e-05, allocations: 8 kB / 255.4 MB, free: 2.684 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07707/0.07712, allocations: 44.49 MB / 299.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8009/0.8781, allocations: 317.2 MB / 0.6026 GB, free: 89.79 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.8784, allocations: 87.3 kB / 0.6027 GB, free: 89.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8719/1.75, allocations: 135.7 MB / 0.7352 GB, free: 112.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.804e-06/1.75, allocations: 0 / 0.7352 GB, free: 112.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.068e-05/1.75, allocations: 19.84 kB / 0.7352 GB, free: 112.1 MB / 410.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.0023/1.753, allocations: 1.023 MB / 0.7362 GB, free: 111.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/1.753, allocations: 10.06 kB / 0.7362 GB, free: 111.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004621/1.753, allocations: 91.03 kB / 0.7363 GB, free: 111.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001313/1.755, allocations: 0.5731 MB / 0.7369 GB, free: 111 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.103e-05/1.755, allocations: 40.77 kB / 0.7369 GB, free: 111 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/1.755, allocations: 51.02 kB / 0.737 GB, free: 111 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/1.756, allocations: 0.7154 MB / 0.7377 GB, free: 110.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/1.756, allocations: 448 / 0.7377 GB, free: 110.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.63e-05/1.756, allocations: 19.73 kB / 0.7377 GB, free: 110.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.301e-05/1.756, allocations: 45.73 kB / 0.7377 GB, free: 110.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/1.758, allocations: 0.6705 MB / 0.7384 GB, free: 110.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005089/1.763, allocations: 2.852 MB / 0.7412 GB, free: 108.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008702/1.764, allocations: 461.1 kB / 0.7416 GB, free: 108.3 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004564/1.764, allocations: 254.5 kB / 0.7419 GB, free: 108.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002863/1.765, allocations: 342.8 kB / 0.7422 GB, free: 107.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/1.765, allocations: 38.97 kB / 0.7422 GB, free: 107.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 3.99e-06/1.765, allocations: 0 / 0.7422 GB, free: 107.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.00532/1.77, allocations: 1.831 MB / 0.744 GB, free: 107 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.817e-05/1.77, allocations: 84.73 kB / 0.7441 GB, free: 106.9 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008816/1.771, allocations: 0.5439 MB / 0.7446 GB, free: 106.6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001222/1.771, allocations: 41.58 kB / 0.7447 GB, free: 106.6 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002352/1.771, allocations: 329.4 kB / 0.745 GB, free: 106.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/1.772, allocations: 203.8 kB / 0.7452 GB, free: 106.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-05/1.772, allocations: 15.69 kB / 0.7452 GB, free: 106.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/1.772, allocations: 378.8 kB / 0.7456 GB, free: 105.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000626/1.772, allocations: 276.8 kB / 0.7458 GB, free: 105.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006964/1.773, allocations: 442.2 kB / 0.7462 GB, free: 105.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006647/1.774, allocations: 333.3 kB / 0.7466 GB, free: 105.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.739e-06/1.774, allocations: 3.625 kB / 0.7466 GB, free: 105.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002037/1.776, allocations: 0.8991 MB / 0.7474 GB, free: 105 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003635/1.776, allocations: 1.748 MB / 0.7491 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/1.776, allocations: 9.438 kB / 0.7492 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002391/1.779, allocations: 351.9 kB / 0.7495 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008313/1.78, allocations: 147.1 kB / 0.7496 GB, free: 103.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009533/1.781, allocations: 0.823 MB / 0.7504 GB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008223/1.781, allocations: 52.47 kB / 0.7505 GB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.713e-05/1.782, allocations: 33.09 kB / 0.7505 GB, free: 102.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/1.782, allocations: 3.719 kB / 0.7505 GB, free: 102.4 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001666/1.783, allocations: 0.7573 MB / 0.7513 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/1.783, allocations: 11.19 kB / 0.7513 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001998/1.785, allocations: 225.4 kB / 0.7515 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008061/1.786, allocations: 152.2 kB / 0.7516 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006535/1.787, allocations: 0.6948 MB / 0.7523 GB, free: 101.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007596/1.788, allocations: 49.38 kB / 0.7524 GB, free: 101.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.799e-05/1.788, allocations: 33.98 kB / 0.7524 GB, free: 101.4 MB / 410.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.0002501/1.788, allocations: 154.1 kB / 0.7525 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/1.788, allocations: 71.16 kB / 0.7526 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001787/1.79, allocations: 0.8318 MB / 0.7534 GB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/1.79, allocations: 12 kB / 0.7534 GB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.83e-06/1.79, allocations: 3.984 kB / 0.7534 GB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.387e-06/1.79, allocations: 0 / 0.7534 GB, free: 100.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003052/1.793, allocations: 1.637 MB / 0.755 GB, free: 98.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.058e-06/1.793, allocations: 0 / 0.755 GB, free: 98.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006972/1.794, allocations: 107.9 kB / 0.7551 GB, free: 98.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/1.796, allocations: 332.5 kB / 0.7554 GB, free: 98.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.65e-05/1.796, allocations: 16 kB / 0.7555 GB, free: 98.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008134/1.797, allocations: 0.7981 MB / 0.7562 GB, free: 97.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.797, allocations: 8 kB / 0.7562 GB, free: 97.38 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002136/1.799, allocations: 1.236 MB / 0.7575 GB, free: 96.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/1.799, allocations: 160.2 kB / 0.7576 GB, free: 95.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001428/1.799, allocations: 16 kB / 0.7576 GB, free: 95.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006336/1.8, allocations: 35.97 kB / 0.7577 GB, free: 95.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001317/1.8, allocations: 56.44 kB / 0.7577 GB, free: 95.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.707e-05/1.8, allocations: 27.92 kB / 0.7577 GB, free: 95.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006251/1.801, allocations: 439.1 kB / 0.7582 GB, free: 95.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.54e-07/1.801, allocations: 0 / 0.7582 GB, free: 95.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001868/1.803, allocations: 0.5877 MB / 0.7587 GB, free: 94.79 MB / 410.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.001227/1.804, allocations: 0.6052 MB / 0.7593 GB, free: 94.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002401/1.806, allocations: 1.104 MB / 0.7604 GB, free: 93.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.346e-06/1.806, allocations: 0 / 0.7604 GB, free: 93.13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007539/1.807, allocations: 362.2 kB / 0.7607 GB, free: 92.78 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001757/1.809, allocations: 330.1 kB / 0.7611 GB, free: 92.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002232/1.811, allocations: 1.201 MB / 0.7622 GB, free: 91.26 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004495/1.812, allocations: 0.9879 MB / 0.7632 GB, free: 90.24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001435/1.813, allocations: 319.7 kB / 0.7635 GB, free: 89.94 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002012/1.813, allocations: 55.42 kB / 0.7636 GB, free: 89.89 MB / 410.7 MB Notification: Performance of SimCode: time 1.735e-06/1.813, allocations: 0 / 0.7636 GB, free: 89.89 MB / 410.7 MB Notification: Performance of Templates: time 0.04004/1.853, allocations: 20.69 MB / 0.7838 GB, free: 69.35 MB / 410.7 MB