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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 2.003/2.003, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.913e-05/3.912e-05, allocations: 5.562 kB / 292.7 MB, free: 8.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09212, allocations: 50.41 MB / 343.1 MB, free: 5.891 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9437/1.036, allocations: 328.9 MB / 0.6562 GB, free: 31.5 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/1.036, allocations: 91.14 kB / 0.6563 GB, free: 31.46 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7929/1.829, allocations: 169.9 MB / 0.8223 GB, free: 39.31 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.015e-06/1.829, allocations: 0 / 0.8223 GB, free: 39.31 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.415e-05/1.829, allocations: 20 kB / 0.8223 GB, free: 39.29 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.002385/1.832, allocations: 1.11 MB / 0.8234 GB, free: 38.13 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/1.832, allocations: 8.031 kB / 0.8234 GB, free: 38.12 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004715/1.832, allocations: 94.97 kB / 0.8235 GB, free: 38.03 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/1.834, allocations: 0.6401 MB / 0.8241 GB, free: 37.35 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.281e-05/1.834, allocations: 49.3 kB / 0.8241 GB, free: 37.3 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/1.834, allocations: 52 kB / 0.8242 GB, free: 37.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/1.835, allocations: 0.8634 MB / 0.825 GB, free: 36.33 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/1.835, allocations: 4 kB / 0.825 GB, free: 36.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/1.835, allocations: 31.98 kB / 0.8251 GB, free: 36.29 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.3e-05/1.836, allocations: 41.3 kB / 0.8251 GB, free: 36.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/1.837, allocations: 0.7638 MB / 0.8259 GB, free: 35.49 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005705/1.843, allocations: 3.779 MB / 0.8295 GB, free: 31.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/1.844, allocations: 0.5036 MB / 0.83 GB, free: 30.96 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000475/1.844, allocations: 270 kB / 0.8303 GB, free: 30.7 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002527/1.847, allocations: 1.895 MB / 0.8321 GB, free: 28.59 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/1.847, allocations: 38.56 kB / 0.8322 GB, free: 28.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 3.201e-06/1.847, allocations: 0 / 0.8322 GB, free: 28.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.0033/1.85, allocations: 1.36 MB / 0.8335 GB, free: 27.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/1.85, allocations: 144.5 kB / 0.8336 GB, free: 26.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000997/1.851, allocations: 0.6561 MB / 0.8343 GB, free: 26.29 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.541e-05/1.851, allocations: 37.7 kB / 0.8343 GB, free: 26.25 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002848/1.852, allocations: 399 kB / 0.8347 GB, free: 25.85 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/1.852, allocations: 165.7 kB / 0.8349 GB, free: 25.69 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.589e-05/1.852, allocations: 16 kB / 0.8349 GB, free: 25.67 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/1.852, allocations: 386.8 kB / 0.8352 GB, free: 25.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000557/1.853, allocations: 257.4 kB / 0.8355 GB, free: 25.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006405/1.853, allocations: 485.6 kB / 0.836 GB, free: 24.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006177/1.854, allocations: 319 kB / 0.8363 GB, free: 24.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.309e-06/1.854, allocations: 0 / 0.8363 GB, free: 24.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001874/1.856, allocations: 0.8507 MB / 0.8371 GB, free: 23.28 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005274/1.856, allocations: 2.711 MB / 0.8397 GB, free: 20.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/1.856, allocations: 8 kB / 0.8397 GB, free: 20.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001203/1.858, allocations: 161.6 kB / 0.8399 GB, free: 20.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/1.859, allocations: 191.7 kB / 0.8401 GB, free: 20 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/1.86, allocations: 1.804 MB / 0.8418 GB, free: 18.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001024/1.861, allocations: 56 kB / 0.8419 GB, free: 18.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/1.861, allocations: 39.92 kB / 0.8419 GB, free: 18.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/1.861, allocations: 4 kB / 0.8419 GB, free: 18.02 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001661/1.863, allocations: 0.7524 MB / 0.8427 GB, free: 17.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/1.863, allocations: 8 kB / 0.8427 GB, free: 17.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/1.864, allocations: 158.4 kB / 0.8428 GB, free: 17.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009214/1.865, allocations: 179.7 kB / 0.843 GB, free: 16.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007639/1.866, allocations: 1.187 MB / 0.8442 GB, free: 15.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000912/1.867, allocations: 56.03 kB / 0.8442 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.781e-05/1.867, allocations: 35.98 kB / 0.8443 GB, free: 15.59 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.0002578/1.867, allocations: 156.1 kB / 0.8444 GB, free: 15.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001776/1.867, allocations: 79.06 kB / 0.8445 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00192/1.869, allocations: 0.8241 MB / 0.8453 GB, free: 14.51 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/1.869, allocations: 4 kB / 0.8453 GB, free: 14.51 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/1.869, allocations: 3.984 kB / 0.8453 GB, free: 14.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/1.869, allocations: 0 / 0.8453 GB, free: 14.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003109/1.873, allocations: 1.556 MB / 0.8468 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/1.873, allocations: 0 / 0.8468 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008863/1.874, allocations: 135.8 kB / 0.8469 GB, free: 12.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007571/1.874, allocations: 125.7 kB / 0.8471 GB, free: 12.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-05/1.874, allocations: 16 kB / 0.8471 GB, free: 12.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009256/1.875, allocations: 1.741 MB / 0.8488 GB, free: 10.78 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.522e-06/1.875, allocations: 0 / 0.8488 GB, free: 10.78 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002067/1.877, allocations: 1.126 MB / 0.8499 GB, free: 9.605 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003031/1.878, allocations: 171.9 kB / 0.85 GB, free: 9.418 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001636/1.878, allocations: 15.98 kB / 0.8501 GB, free: 9.402 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007204/1.879, allocations: 44.03 kB / 0.8501 GB, free: 9.359 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/1.879, allocations: 52.67 kB / 0.8501 GB, free: 9.309 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.63e-05/1.879, allocations: 23.98 kB / 0.8502 GB, free: 9.285 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0008473/1.88, allocations: 0.5108 MB / 0.8507 GB, free: 8.777 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.35e-07/1.88, allocations: 0 / 0.8507 GB, free: 8.777 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002262/1.882, allocations: 0.6518 MB / 0.8513 GB, free: 8.125 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.001725/1.884, allocations: 0.7041 MB / 0.852 GB, free: 7.422 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003372/1.887, allocations: 1.127 MB / 0.8531 GB, free: 6.301 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.052e-06/1.887, allocations: 4.062 kB / 0.8531 GB, free: 6.297 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/1.888, allocations: 373.8 kB / 0.8535 GB, free: 5.934 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002159/1.891, allocations: 369.4 kB / 0.8538 GB, free: 5.578 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/1.893, allocations: 1.151 MB / 0.8549 GB, free: 4.391 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/1.894, allocations: 0.9999 MB / 0.8559 GB, free: 3.359 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001762/1.895, allocations: 374.7 kB / 0.8563 GB, free: 2.988 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002648/1.896, allocations: 75.34 kB / 0.8563 GB, free: 2.914 MB / 442.7 MB Notification: Performance of SimCode: time 1.844e-06/1.896, allocations: 0 / 0.8563 GB, free: 2.914 MB / 442.7 MB Notification: Performance of Templates: time 0.3056/2.201, allocations: 22.44 MB / 0.8782 GB, free: 84.89 MB / 442.7 MB