Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.907/1.907, allocations: 205.8 MB / 218.9 MB, free: 9.262 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.822e-05/2.839e-05, allocations: 4 kB / 269.4 MB, free: 6.391 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08643/0.08648, allocations: 47.57 MB / 316.9 MB, free: 6.73 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8698/0.9564, allocations: 323.8 MB / 0.6257 GB, free: 43.93 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.9566, allocations: 87.81 kB / 0.6258 GB, free: 43.88 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9653/1.922, allocations: 192.2 MB / 0.8135 GB, free: 28.35 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.069e-06/1.922, allocations: 0 / 0.8135 GB, free: 28.35 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001315/1.922, allocations: 23.98 kB / 0.8135 GB, free: 28.32 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.005396/1.928, allocations: 1.294 MB / 0.8148 GB, free: 26.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/1.928, allocations: 8.031 kB / 0.8148 GB, free: 26.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001086/1.929, allocations: 118.8 kB / 0.8149 GB, free: 26.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003401/1.932, allocations: 0.7296 MB / 0.8156 GB, free: 26.08 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001093/1.932, allocations: 49.3 kB / 0.8157 GB, free: 26.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002569/1.933, allocations: 63.98 kB / 0.8157 GB, free: 25.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003695/1.936, allocations: 1.028 MB / 0.8167 GB, free: 24.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.739e-05/1.936, allocations: 7.984 kB / 0.8167 GB, free: 24.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000213/1.937, allocations: 35.92 kB / 0.8168 GB, free: 24.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001843/1.937, allocations: 57.28 kB / 0.8168 GB, free: 24.79 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005085/1.942, allocations: 0.9825 MB / 0.8178 GB, free: 23.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01373/1.956, allocations: 4.417 MB / 0.8221 GB, free: 19.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/1.957, allocations: 0.5444 MB / 0.8226 GB, free: 18.59 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000599/1.958, allocations: 314 kB / 0.8229 GB, free: 18.28 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003068/1.961, allocations: 2.075 MB / 0.825 GB, free: 15.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/1.961, allocations: 46.83 kB / 0.825 GB, free: 15.93 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 3.441e-06/1.961, allocations: 0 / 0.825 GB, free: 15.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.003957/1.965, allocations: 1.499 MB / 0.8265 GB, free: 14.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/1.965, allocations: 162.2 kB / 0.8266 GB, free: 14.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/1.966, allocations: 0.8096 MB / 0.8274 GB, free: 13.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/1.966, allocations: 45.69 kB / 0.8275 GB, free: 13.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003317/1.967, allocations: 471 kB / 0.8279 GB, free: 12.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/1.967, allocations: 165.7 kB / 0.8281 GB, free: 12.66 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.516e-05/1.967, allocations: 16 kB / 0.8281 GB, free: 12.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.285e-05/1.967, allocations: 345.9 kB / 0.8284 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006437/1.968, allocations: 305.8 kB / 0.8287 GB, free: 12 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007763/1.968, allocations: 0.5786 MB / 0.8293 GB, free: 11.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007658/1.969, allocations: 387 kB / 0.8296 GB, free: 10.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.433e-06/1.969, allocations: 4 kB / 0.8296 GB, free: 10.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002308/1.972, allocations: 1.046 MB / 0.8307 GB, free: 9.844 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006567/1.972, allocations: 3.317 MB / 0.8339 GB, free: 6.273 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/1.972, allocations: 8 kB / 0.8339 GB, free: 6.266 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002351/1.975, allocations: 317.4 kB / 0.8342 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009601/1.976, allocations: 183.7 kB / 0.8344 GB, free: 5.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/1.977, allocations: 1.343 MB / 0.8357 GB, free: 4.375 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001249/1.978, allocations: 64 kB / 0.8358 GB, free: 4.312 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/1.978, allocations: 43.98 kB / 0.8358 GB, free: 4.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/1.978, allocations: 0 / 0.8358 GB, free: 4.27 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00206/1.98, allocations: 0.9288 MB / 0.8367 GB, free: 3.332 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.68e-05/1.981, allocations: 8 kB / 0.8367 GB, free: 3.324 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002155/1.983, allocations: 289.5 kB / 0.837 GB, free: 3.035 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009714/1.984, allocations: 175.7 kB / 0.8372 GB, free: 2.863 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/1.985, allocations: 1.3 MB / 0.8384 GB, free: 1.512 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/1.986, allocations: 67.75 kB / 0.8385 GB, free: 1.445 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/1.986, allocations: 40 kB / 0.8385 GB, free: 1.406 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002879/1.987, allocations: 164.8 kB / 0.8387 GB, free: 1.238 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002093/1.987, allocations: 90.88 kB / 0.8388 GB, free: 1.148 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002023/1.989, allocations: 0.7736 MB / 0.8395 GB, free: 368 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.721e-06/1.989, allocations: 8 kB / 0.8395 GB, free: 360 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.422e-06/1.989, allocations: 0 / 0.8395 GB, free: 360 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.41e-06/1.989, allocations: 0 / 0.8395 GB, free: 360 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2895/2.278, allocations: 1.577 MB / 0.8411 GB, free: 76.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.038e-06/2.279, allocations: 1.594 kB / 0.8411 GB, free: 76.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005904/2.279, allocations: 77.86 kB / 0.8411 GB, free: 76.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002187/2.281, allocations: 281.2 kB / 0.8414 GB, free: 76.05 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.639e-05/2.281, allocations: 17.88 kB / 0.8414 GB, free: 76.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001277/2.283, allocations: 1.311 MB / 0.8427 GB, free: 75.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.653e-06/2.283, allocations: 3.641 kB / 0.8427 GB, free: 75.02 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002348/2.285, allocations: 1.091 MB / 0.8438 GB, free: 74.83 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004534/2.286, allocations: 194.4 kB / 0.844 GB, free: 74.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002005/2.286, allocations: 18.78 kB / 0.844 GB, free: 74.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007942/2.287, allocations: 40.25 kB / 0.844 GB, free: 74.73 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001427/2.287, allocations: 54.19 kB / 0.8441 GB, free: 74.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.096e-05/2.287, allocations: 24.88 kB / 0.8441 GB, free: 74.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001126/2.288, allocations: 0.636 MB / 0.8447 GB, free: 74.61 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.77e-07/2.288, allocations: 0 / 0.8447 GB, free: 74.61 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003177/2.291, allocations: 0.8248 MB / 0.8455 GB, free: 74.61 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002365/2.294, allocations: 0.8304 MB / 0.8463 GB, free: 74.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003255/2.297, allocations: 1.208 MB / 0.8475 GB, free: 74.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.981e-06/2.297, allocations: 0 / 0.8475 GB, free: 74.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001167/2.298, allocations: 347.8 kB / 0.8478 GB, free: 74.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002341/2.301, allocations: 375.4 kB / 0.8482 GB, free: 74.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003073/2.304, allocations: 1.259 MB / 0.8494 GB, free: 74.17 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006614/2.304, allocations: 1.057 MB / 0.8505 GB, free: 73.47 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002157/2.307, allocations: 421.8 kB / 0.8509 GB, free: 73.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002507/2.307, allocations: 62.48 kB / 0.8509 GB, free: 73.45 MB / 426.7 MB Notification: Performance of SimCode: time 1.821e-06/2.307, allocations: 0 / 0.8509 GB, free: 73.45 MB / 426.7 MB Notification: Performance of Templates: time 0.05445/2.361, allocations: 25.89 MB / 0.8762 GB, free: 72.52 MB / 426.7 MB