Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.969/1.969, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.588e-05/2.6e-05, allocations: 4 kB / 292.2 MB, free: 8.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1041, allocations: 50.41 MB / 342.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.008/1.113, allocations: 325 MB / 0.6519 GB, free: 35.43 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/1.113, allocations: 87.14 kB / 0.652 GB, free: 35.39 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.404/2.517, allocations: 287.3 MB / 0.9325 GB, free: 67.49 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.007e-06/2.517, allocations: 2.969 kB / 0.9325 GB, free: 67.49 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001381/2.517, allocations: 44.78 kB / 0.9326 GB, free: 67.48 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004731/2.522, allocations: 1.784 MB / 0.9343 GB, free: 66.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/2.522, allocations: 11.66 kB / 0.9343 GB, free: 66.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008723/2.523, allocations: 168.6 kB / 0.9345 GB, free: 66.49 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002817/2.525, allocations: 1.028 MB / 0.9355 GB, free: 66.16 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.718e-05/2.525, allocations: 82.73 kB / 0.9356 GB, free: 66.15 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002773/2.526, allocations: 97.72 kB / 0.9356 GB, free: 66.15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003346/2.529, allocations: 1.594 MB / 0.9372 GB, free: 65.9 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.939e-05/2.529, allocations: 1.688 kB / 0.9372 GB, free: 65.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001935/2.529, allocations: 46.8 kB / 0.9373 GB, free: 65.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001522/2.53, allocations: 104 kB / 0.9374 GB, free: 65.9 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00341/2.533, allocations: 1.565 MB / 0.9389 GB, free: 65.88 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01298/2.546, allocations: 6.53 MB / 0.9453 GB, free: 62.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002088/2.548, allocations: 0.9034 MB / 0.9461 GB, free: 61.89 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/2.549, allocations: 0.5479 MB / 0.9467 GB, free: 61.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005365/2.555, allocations: 2.911 MB / 0.9495 GB, free: 59.67 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/2.555, allocations: 43.06 kB / 0.9496 GB, free: 59.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 4.671e-06/2.555, allocations: 0 / 0.9496 GB, free: 59.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.008188/2.563, allocations: 2.821 MB / 0.9523 GB, free: 58.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.96e-05/2.563, allocations: 191 kB / 0.9525 GB, free: 58.15 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002111/2.565, allocations: 1.143 MB / 0.9536 GB, free: 57.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002864/2.566, allocations: 48.55 kB / 0.9537 GB, free: 57.63 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005217/2.566, allocations: 0.6425 MB / 0.9543 GB, free: 57.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003483/2.566, allocations: 321.8 kB / 0.9546 GB, free: 56.88 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/2.567, allocations: 27.56 kB / 0.9546 GB, free: 56.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/2.567, allocations: 358.7 kB / 0.955 GB, free: 56.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/2.568, allocations: 0.5435 MB / 0.9555 GB, free: 56.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/2.57, allocations: 0.9347 MB / 0.9564 GB, free: 55.66 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/2.571, allocations: 0.6703 MB / 0.9571 GB, free: 55.42 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/2.571, allocations: 3.688 kB / 0.9571 GB, free: 55.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.004309/2.575, allocations: 1.776 MB / 0.9588 GB, free: 54.75 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008906/2.576, allocations: 4.393 MB / 0.9631 GB, free: 50.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.415e-05/2.576, allocations: 12.97 kB / 0.9631 GB, free: 50.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004806/2.581, allocations: 0.6442 MB / 0.9637 GB, free: 50.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/2.583, allocations: 280.7 kB / 0.964 GB, free: 50.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002158/2.585, allocations: 2.166 MB / 0.9661 GB, free: 48.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/2.587, allocations: 105.5 kB / 0.9662 GB, free: 48.17 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002739/2.587, allocations: 66.08 kB / 0.9663 GB, free: 48.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/2.587, allocations: 2.844 kB / 0.9663 GB, free: 48.16 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003727/2.591, allocations: 1.57 MB / 0.9678 GB, free: 47.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.658e-05/2.591, allocations: 17.61 kB / 0.9678 GB, free: 47.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003968/2.595, allocations: 0.499 MB / 0.9683 GB, free: 47.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/2.597, allocations: 290.2 kB / 0.9686 GB, free: 47.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/2.599, allocations: 2.001 MB / 0.9705 GB, free: 45.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/2.6, allocations: 104.6 kB / 0.9706 GB, free: 45.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002057/2.601, allocations: 62.17 kB / 0.9707 GB, free: 45.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004844/2.601, allocations: 198.1 kB / 0.9709 GB, free: 45.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003402/2.602, allocations: 140.3 kB / 0.971 GB, free: 45.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003709/2.605, allocations: 1.511 MB / 0.9725 GB, free: 44.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/2.605, allocations: 8 kB / 0.9725 GB, free: 44.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/2.605, allocations: 0 / 0.9725 GB, free: 44.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.664e-05/2.605, allocations: 11.56 kB / 0.9725 GB, free: 44.47 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006007/2.611, allocations: 2.795 MB / 0.9752 GB, free: 42.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.99e-06/2.611, allocations: 0 / 0.9752 GB, free: 42.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000913/2.612, allocations: 153.1 kB / 0.9754 GB, free: 42.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003634/2.616, allocations: 0.6008 MB / 0.976 GB, free: 41.59 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002197/2.616, allocations: 31.5 kB / 0.976 GB, free: 41.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001911/2.618, allocations: 2.111 MB / 0.9781 GB, free: 39.46 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.428e-06/2.618, allocations: 7.781 kB / 0.9781 GB, free: 39.46 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004078/2.622, allocations: 2.112 MB / 0.9801 GB, free: 37.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006796/2.623, allocations: 250.1 kB / 0.9804 GB, free: 37.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003298/2.623, allocations: 29.56 kB / 0.9804 GB, free: 37.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001226/2.625, allocations: 80.92 kB / 0.9805 GB, free: 37.15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002534/2.625, allocations: 93.42 kB / 0.9806 GB, free: 37.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/2.625, allocations: 50.16 kB / 0.9806 GB, free: 37.06 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001583/2.627, allocations: 0.872 MB / 0.9815 GB, free: 36.26 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.088e-06/2.627, allocations: 7.938 kB / 0.9815 GB, free: 36.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004328/2.631, allocations: 1.211 MB / 0.9827 GB, free: 35.07 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003406/2.635, allocations: 1.15 MB / 0.9838 GB, free: 34.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005264/2.64, allocations: 2.145 MB / 0.9859 GB, free: 32 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/2.64, allocations: 9.469 kB / 0.9859 GB, free: 32 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001822/2.642, allocations: 0.6854 MB / 0.9866 GB, free: 31.31 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003463/2.645, allocations: 0.5858 MB / 0.9871 GB, free: 30.76 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004483/2.65, allocations: 2.109 MB / 0.9892 GB, free: 28.63 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008303/2.651, allocations: 1.285 MB / 0.9904 GB, free: 27.32 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003266/2.654, allocations: 0.6599 MB / 0.9911 GB, free: 26.67 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004032/2.654, allocations: 99.41 kB / 0.9912 GB, free: 26.58 MB / 442.7 MB Notification: Performance of SimCode: time 1.721e-06/2.654, allocations: 0 / 0.9912 GB, free: 26.58 MB / 442.7 MB Notification: Performance of Templates: time 0.08544/2.74, allocations: 40.6 MB / 1.031 GB, free: 2.715 MB / 458.7 MB