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.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 205.8 MB / 218.9 MB, free: 9.363 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.998e-05/3.019e-05, allocations: 7.984 kB / 269.4 MB, free: 6.414 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08731/0.08737, allocations: 47.58 MB / 316.9 MB, free: 6.75 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8323/0.9197, allocations: 321.7 MB / 0.6236 GB, free: 45.96 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.9199, allocations: 82.45 kB / 0.6237 GB, free: 45.92 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6664/1.586, allocations: 137.2 MB / 0.7577 GB, free: 84.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.398e-06/1.586, allocations: 0 / 0.7577 GB, free: 84.46 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.681e-05/1.587, allocations: 18.11 kB / 0.7578 GB, free: 84.44 MB / 426.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.002414/1.589, allocations: 1.03 MB / 0.7588 GB, free: 83.38 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/1.589, allocations: 11.97 kB / 0.7588 GB, free: 83.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005111/1.59, allocations: 87.91 kB / 0.7589 GB, free: 83.28 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/1.591, allocations: 0.5823 MB / 0.7594 GB, free: 82.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.014e-05/1.591, allocations: 35.11 kB / 0.7595 GB, free: 82.63 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/1.591, allocations: 51.75 kB / 0.7595 GB, free: 82.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001525/1.593, allocations: 0.7152 MB / 0.7602 GB, free: 81.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.751e-05/1.593, allocations: 0 / 0.7602 GB, free: 81.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.742e-05/1.593, allocations: 23.52 kB / 0.7602 GB, free: 81.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.919e-05/1.593, allocations: 40.97 kB / 0.7603 GB, free: 81.79 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001417/1.595, allocations: 0.6734 MB / 0.7609 GB, free: 81.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006061/1.601, allocations: 2.852 MB / 0.7637 GB, free: 78.1 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/1.602, allocations: 454.9 kB / 0.7641 GB, free: 77.65 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008862/1.603, allocations: 250.1 kB / 0.7644 GB, free: 77.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003991/1.604, allocations: 343.8 kB / 0.7647 GB, free: 76.99 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/1.604, allocations: 42.98 kB / 0.7647 GB, free: 76.94 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 5.962e-06/1.604, allocations: 0 / 0.7647 GB, free: 76.94 MB / 426.7 MB Notification: Performance of matching and sorting (n=58): time 0.0084/1.612, allocations: 1.826 MB / 0.7665 GB, free: 75.07 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.734e-05/1.612, allocations: 81.67 kB / 0.7666 GB, free: 74.97 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/1.614, allocations: 0.5501 MB / 0.7671 GB, free: 74.41 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001888/1.614, allocations: 45.64 kB / 0.7672 GB, free: 74.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003721/1.614, allocations: 330.7 kB / 0.7675 GB, free: 74.03 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003054/1.615, allocations: 200.6 kB / 0.7677 GB, free: 73.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/1.615, allocations: 16 kB / 0.7677 GB, free: 73.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001944/1.615, allocations: 382.8 kB / 0.7681 GB, free: 73.44 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001038/1.616, allocations: 273.5 kB / 0.7683 GB, free: 73.17 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/1.617, allocations: 437.5 kB / 0.7688 GB, free: 72.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001172/1.619, allocations: 337.9 kB / 0.7691 GB, free: 72.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/1.619, allocations: 0 / 0.7691 GB, free: 72.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00347/1.622, allocations: 0.9021 MB / 0.77 GB, free: 71.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004569/1.623, allocations: 1.748 MB / 0.7717 GB, free: 69.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/1.623, allocations: 8 kB / 0.7717 GB, free: 69.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004223/1.627, allocations: 352.4 kB / 0.772 GB, free: 69.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/1.629, allocations: 147.8 kB / 0.7721 GB, free: 69.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/1.63, allocations: 0.8176 MB / 0.7729 GB, free: 68.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/1.632, allocations: 44.03 kB / 0.773 GB, free: 68.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001796/1.632, allocations: 35.98 kB / 0.773 GB, free: 68.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/1.632, allocations: 4 kB / 0.773 GB, free: 68.13 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002992/1.635, allocations: 0.7612 MB / 0.7738 GB, free: 67.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/1.635, allocations: 7.953 kB / 0.7738 GB, free: 67.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00293/1.638, allocations: 228.6 kB / 0.774 GB, free: 67.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/1.64, allocations: 155.8 kB / 0.7741 GB, free: 66.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/1.641, allocations: 0.6967 MB / 0.7748 GB, free: 66.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/1.642, allocations: 44.05 kB / 0.7749 GB, free: 66.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001987/1.643, allocations: 31.98 kB / 0.7749 GB, free: 66.18 MB / 426.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.0004104/1.643, allocations: 148.8 kB / 0.775 GB, free: 66.03 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003631/1.644, allocations: 71.16 kB / 0.7751 GB, free: 65.96 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003277/1.647, allocations: 0.8371 MB / 0.7759 GB, free: 65.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/1.647, allocations: 8 kB / 0.7759 GB, free: 65.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/1.647, allocations: 0 / 0.7759 GB, free: 65.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.935e-05/1.647, allocations: 7.984 kB / 0.7759 GB, free: 65.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006796/1.654, allocations: 1.641 MB / 0.7775 GB, free: 63.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.564e-05/1.654, allocations: 0 / 0.7775 GB, free: 63.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/1.656, allocations: 107.9 kB / 0.7776 GB, free: 63.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004749/1.66, allocations: 332.5 kB / 0.778 GB, free: 62.97 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002138/1.661, allocations: 23.98 kB / 0.778 GB, free: 62.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001948/1.663, allocations: 0.7983 MB / 0.7788 GB, free: 62.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.828e-06/1.663, allocations: 4 kB / 0.7788 GB, free: 62.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002363/1.665, allocations: 1.244 MB / 0.78 GB, free: 60.84 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003195/1.666, allocations: 156.1 kB / 0.7801 GB, free: 60.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/1.666, allocations: 15.98 kB / 0.7801 GB, free: 60.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006755/1.666, allocations: 39.98 kB / 0.7802 GB, free: 60.61 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/1.667, allocations: 52.47 kB / 0.7802 GB, free: 60.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.567e-05/1.667, allocations: 23.98 kB / 0.7803 GB, free: 60.54 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000677/1.667, allocations: 435.2 kB / 0.7807 GB, free: 60.11 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.124e-06/1.667, allocations: 0 / 0.7807 GB, free: 60.11 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002272/1.67, allocations: 0.5854 MB / 0.7812 GB, free: 59.53 MB / 426.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.001648/1.671, allocations: 0.6084 MB / 0.7818 GB, free: 58.95 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002625/1.674, allocations: 1.098 MB / 0.7829 GB, free: 57.85 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.077e-06/1.674, allocations: 4 kB / 0.7829 GB, free: 57.85 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008239/1.675, allocations: 368.4 kB / 0.7833 GB, free: 57.49 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001965/1.677, allocations: 330.6 kB / 0.7836 GB, free: 57.17 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/1.679, allocations: 1.196 MB / 0.7848 GB, free: 55.94 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/1.68, allocations: 0.9841 MB / 0.7857 GB, free: 54.93 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001545/1.681, allocations: 331.1 kB / 0.786 GB, free: 54.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002079/1.682, allocations: 59.42 kB / 0.7861 GB, free: 54.55 MB / 426.7 MB Notification: Performance of SimCode: time 1.761e-06/1.682, allocations: 0 / 0.7861 GB, free: 54.55 MB / 426.7 MB Notification: Performance of Templates: time 0.04285/1.725, allocations: 20.74 MB / 0.8063 GB, free: 33.86 MB / 426.7 MB