Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.997/1.997, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.481e-05/3.498e-05, allocations: 10.75 kB / 292.2 MB, free: 8.316 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.09133, allocations: 50.41 MB / 342.6 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8836/0.975, allocations: 328.9 MB / 0.6557 GB, free: 31.46 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.9753, allocations: 96.12 kB / 0.6558 GB, free: 31.42 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8104/1.786, allocations: 169.9 MB / 0.8218 GB, free: 39.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.202e-06/1.786, allocations: 3.938 kB / 0.8218 GB, free: 39.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001035/1.786, allocations: 20 kB / 0.8218 GB, free: 39.3 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.004329/1.79, allocations: 1.103 MB / 0.8229 GB, free: 38.15 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.153e-05/1.79, allocations: 12.02 kB / 0.8229 GB, free: 38.14 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/1.791, allocations: 94.97 kB / 0.823 GB, free: 38.04 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002698/1.794, allocations: 0.6323 MB / 0.8236 GB, free: 37.36 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.352e-05/1.794, allocations: 49.3 kB / 0.8236 GB, free: 37.32 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002311/1.795, allocations: 60 kB / 0.8237 GB, free: 37.26 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003174/1.798, allocations: 0.8673 MB / 0.8245 GB, free: 36.34 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.26e-05/1.798, allocations: 0 / 0.8245 GB, free: 36.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002078/1.798, allocations: 27.98 kB / 0.8246 GB, free: 36.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001346/1.798, allocations: 45.23 kB / 0.8246 GB, free: 36.27 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003079/1.801, allocations: 0.7638 MB / 0.8253 GB, free: 35.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/1.812, allocations: 3.787 MB / 0.829 GB, free: 31.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002021/1.814, allocations: 0.4997 MB / 0.8295 GB, free: 30.97 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000968/1.815, allocations: 262.1 kB / 0.8298 GB, free: 30.71 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004821/1.82, allocations: 1.895 MB / 0.8316 GB, free: 28.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.733e-05/1.82, allocations: 34.56 kB / 0.8317 GB, free: 28.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 5.65e-06/1.82, allocations: 4 kB / 0.8317 GB, free: 28.56 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.006409/1.827, allocations: 1.367 MB / 0.833 GB, free: 27.13 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/1.827, allocations: 136.5 kB / 0.8331 GB, free: 26.97 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002005/1.829, allocations: 0.66 MB / 0.8338 GB, free: 26.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001468/1.829, allocations: 37.7 kB / 0.8338 GB, free: 26.26 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005089/1.829, allocations: 399 kB / 0.8342 GB, free: 25.86 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002897/1.83, allocations: 165.7 kB / 0.8344 GB, free: 25.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/1.83, allocations: 16 kB / 0.8344 GB, free: 25.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000221/1.83, allocations: 386.8 kB / 0.8347 GB, free: 25.3 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/1.831, allocations: 253.5 kB / 0.835 GB, free: 25.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/1.833, allocations: 489.5 kB / 0.8354 GB, free: 24.46 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/1.834, allocations: 319 kB / 0.8357 GB, free: 24.15 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.425e-05/1.834, allocations: 4 kB / 0.8358 GB, free: 24.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.004357/1.838, allocations: 0.8477 MB / 0.8366 GB, free: 23.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009422/1.839, allocations: 2.714 MB / 0.8392 GB, free: 20.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.999e-05/1.839, allocations: 8 kB / 0.8392 GB, free: 20.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002455/1.842, allocations: 165.6 kB / 0.8394 GB, free: 20.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/1.843, allocations: 191.7 kB / 0.8396 GB, free: 20.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/1.845, allocations: 1.8 MB / 0.8413 GB, free: 18.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009791/1.846, allocations: 56 kB / 0.8414 GB, free: 18.08 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/1.846, allocations: 43.86 kB / 0.8414 GB, free: 18.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/1.846, allocations: 4 kB / 0.8414 GB, free: 18.03 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001653/1.847, allocations: 0.7561 MB / 0.8422 GB, free: 17.27 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/1.847, allocations: 8.906 kB / 0.8422 GB, free: 17.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/1.849, allocations: 157.6 kB / 0.8423 GB, free: 17.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009224/1.85, allocations: 183.7 kB / 0.8425 GB, free: 16.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007394/1.85, allocations: 1.179 MB / 0.8437 GB, free: 15.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009053/1.851, allocations: 56.03 kB / 0.8437 GB, free: 15.63 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.971e-05/1.851, allocations: 31.98 kB / 0.8437 GB, free: 15.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002581/1.852, allocations: 163.3 kB / 0.8439 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/1.852, allocations: 79.06 kB / 0.844 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/1.854, allocations: 0.8124 MB / 0.8448 GB, free: 14.53 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/1.854, allocations: 8 kB / 0.8448 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.391e-06/1.854, allocations: 0 / 0.8448 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/1.854, allocations: 4.172 kB / 0.8448 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003183/1.857, allocations: 1.556 MB / 0.8463 GB, free: 12.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.442e-06/1.857, allocations: 4 kB / 0.8463 GB, free: 12.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008751/1.858, allocations: 135.8 kB / 0.8464 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008608/1.859, allocations: 129.7 kB / 0.8466 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.105e-05/1.859, allocations: 12 kB / 0.8466 GB, free: 12.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009697/1.86, allocations: 1.745 MB / 0.8483 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.2e-06/1.86, allocations: 0 / 0.8483 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00212/1.862, allocations: 1.118 MB / 0.8494 GB, free: 9.617 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003197/1.862, allocations: 176 kB / 0.8495 GB, free: 9.426 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/1.863, allocations: 15.98 kB / 0.8495 GB, free: 9.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007172/1.863, allocations: 40.05 kB / 0.8496 GB, free: 9.371 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/1.863, allocations: 56.47 kB / 0.8496 GB, free: 9.316 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.661e-05/1.864, allocations: 27.98 kB / 0.8497 GB, free: 9.289 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008326/1.864, allocations: 0.5148 MB / 0.8502 GB, free: 8.777 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.18e-07/1.864, allocations: 0 / 0.8502 GB, free: 8.777 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002386/1.867, allocations: 0.6479 MB / 0.8508 GB, free: 8.129 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001832/1.869, allocations: 0.694 MB / 0.8515 GB, free: 7.438 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003524/1.872, allocations: 1.139 MB / 0.8526 GB, free: 6.305 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/1.872, allocations: 4 kB / 0.8526 GB, free: 6.301 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/1.873, allocations: 365.8 kB / 0.8529 GB, free: 5.945 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/1.876, allocations: 377.8 kB / 0.8533 GB, free: 5.582 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/1.878, allocations: 1.151 MB / 0.8544 GB, free: 4.395 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004883/1.879, allocations: 0.996 MB / 0.8554 GB, free: 3.367 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001729/1.88, allocations: 374.7 kB / 0.8558 GB, free: 2.996 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002391/1.881, allocations: 71.41 kB / 0.8558 GB, free: 2.926 MB / 442.7 MB Notification: Performance of SimCode: time 1.784e-06/1.881, allocations: 0 / 0.8558 GB, free: 2.926 MB / 442.7 MB Notification: Performance of Templates: time 0.3027/2.183, allocations: 22.44 MB / 0.8777 GB, free: 84.73 MB / 442.7 MB