Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadModel(Modelica): time 1.936/1.936, allocations: 194.9 MB / 208 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.147e-05/3.165e-05, allocations: 4 kB / 255.4 MB, free: 2.703 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07817/0.07822, allocations: 44.51 MB / 299.9 MB, free: 6.133 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7965/0.8748, allocations: 322.2 MB / 0.6076 GB, free: 84.7 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.875, allocations: 87.95 kB / 0.6076 GB, free: 84.61 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.545/2.42, allocations: 321.5 MB / 0.9216 GB, free: 57.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.119e-06/2.42, allocations: 3.781 kB / 0.9216 GB, free: 57.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001734/2.421, allocations: 45.2 kB / 0.9216 GB, free: 57.11 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.006437/2.427, allocations: 2.043 MB / 0.9236 GB, free: 56.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/2.427, allocations: 10.22 kB / 0.9236 GB, free: 56.19 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001249/2.428, allocations: 198.8 kB / 0.9238 GB, free: 56.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00373/2.432, allocations: 1.242 MB / 0.925 GB, free: 55.72 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/2.432, allocations: 98.61 kB / 0.9251 GB, free: 55.72 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003815/2.433, allocations: 121.4 kB / 0.9252 GB, free: 55.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004448/2.437, allocations: 1.911 MB / 0.9271 GB, free: 55.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.445e-05/2.437, allocations: 1.969 kB / 0.9271 GB, free: 55.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002593/2.437, allocations: 57.42 kB / 0.9271 GB, free: 55.43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001793/2.438, allocations: 120.6 kB / 0.9273 GB, free: 55.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004727/2.442, allocations: 1.9 MB / 0.9291 GB, free: 55.42 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01645/2.459, allocations: 7.61 MB / 0.9365 GB, free: 51.98 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002485/2.461, allocations: 1.133 MB / 0.9376 GB, free: 51.95 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002209/2.464, allocations: 0.7212 MB / 0.9384 GB, free: 51.93 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006789/2.471, allocations: 3.38 MB / 0.9417 GB, free: 49.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/2.471, allocations: 50.09 kB / 0.9417 GB, free: 49.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.49e-06/2.471, allocations: 2.344 kB / 0.9417 GB, free: 49.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=134): time 0.01188/2.483, allocations: 4.078 MB / 0.9457 GB, free: 48.05 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.003e-05/2.483, allocations: 170.6 kB / 0.9458 GB, free: 47.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00207/2.485, allocations: 1.158 MB / 0.947 GB, free: 47.39 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003619/2.485, allocations: 58.45 kB / 0.947 GB, free: 47.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005726/2.486, allocations: 0.7195 MB / 0.9477 GB, free: 46.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004732/2.486, allocations: 472.6 kB / 0.9482 GB, free: 46.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/2.486, allocations: 35.91 kB / 0.9482 GB, free: 46.39 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/2.487, allocations: 384 kB / 0.9486 GB, free: 46.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001555/2.488, allocations: 0.7288 MB / 0.9493 GB, free: 45.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/2.49, allocations: 1.184 MB / 0.9505 GB, free: 44.97 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001963/2.492, allocations: 0.8623 MB / 0.9513 GB, free: 44.67 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/2.492, allocations: 3.875 kB / 0.9513 GB, free: 44.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005613/2.498, allocations: 2.34 MB / 0.9536 GB, free: 43.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001023/2.499, allocations: 5.206 MB / 0.9587 GB, free: 38.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.585e-05/2.499, allocations: 10.41 kB / 0.9587 GB, free: 38.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006944/2.506, allocations: 0.9394 MB / 0.9596 GB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002022/2.508, allocations: 356.9 kB / 0.9599 GB, free: 38.17 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002997/2.511, allocations: 2.881 MB / 0.9628 GB, free: 35.78 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00225/2.513, allocations: 139.3 kB / 0.9629 GB, free: 35.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002856/2.514, allocations: 85.58 kB / 0.963 GB, free: 35.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/2.514, allocations: 3.844 kB / 0.963 GB, free: 35.73 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00478/2.518, allocations: 2.064 MB / 0.965 GB, free: 34.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-05/2.518, allocations: 18.09 kB / 0.965 GB, free: 34.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005613/2.524, allocations: 0.6759 MB / 0.9657 GB, free: 34.88 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002133/2.526, allocations: 369.5 kB / 0.966 GB, free: 34.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002276/2.529, allocations: 2.632 MB / 0.9686 GB, free: 32.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002305/2.531, allocations: 133.9 kB / 0.9687 GB, free: 32.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003285/2.531, allocations: 84.61 kB / 0.9688 GB, free: 32.47 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005291/2.532, allocations: 213.3 kB / 0.969 GB, free: 32.26 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003954/2.532, allocations: 164.7 kB / 0.9692 GB, free: 32.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005581/2.538, allocations: 2.317 MB / 0.9714 GB, free: 30.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.363e-05/2.538, allocations: 24 kB / 0.9714 GB, free: 30.15 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.045e-06/2.538, allocations: 0 / 0.9714 GB, free: 30.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.531e-05/2.538, allocations: 7.453 kB / 0.9715 GB, free: 30.15 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008659/2.547, allocations: 3.9 MB / 0.9753 GB, free: 26.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/2.547, allocations: 3.688 kB / 0.9753 GB, free: 26.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001419/2.548, allocations: 240.6 kB / 0.9755 GB, free: 26.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005073/2.553, allocations: 0.8708 MB / 0.9763 GB, free: 26.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003368/2.554, allocations: 42.56 kB / 0.9764 GB, free: 26.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002486/2.556, allocations: 2.822 MB / 0.9791 GB, free: 23.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.383e-06/2.556, allocations: 4.25 kB / 0.9791 GB, free: 23.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006118/2.562, allocations: 3.169 MB / 0.9822 GB, free: 20.28 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006955/2.563, allocations: 275.5 kB / 0.9825 GB, free: 20.01 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004435/2.563, allocations: 36 kB / 0.9825 GB, free: 19.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001358/2.565, allocations: 103 kB / 0.9826 GB, free: 19.89 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003314/2.565, allocations: 153.6 kB / 0.9828 GB, free: 19.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001887/2.565, allocations: 51.27 kB / 0.9828 GB, free: 19.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001534/2.567, allocations: 0.888 MB / 0.9837 GB, free: 18.95 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.76e-07/2.567, allocations: 0 / 0.9837 GB, free: 18.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004914/2.572, allocations: 1.362 MB / 0.985 GB, free: 17.62 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003244/2.575, allocations: 1.243 MB / 0.9862 GB, free: 16.58 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007138/2.582, allocations: 2.985 MB / 0.9892 GB, free: 13.88 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/2.582, allocations: 4.062 kB / 0.9892 GB, free: 13.88 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002356/2.585, allocations: 1.037 MB / 0.9902 GB, free: 12.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/2.589, allocations: 0.6689 MB / 0.9908 GB, free: 12.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005979/2.595, allocations: 2.834 MB / 0.9936 GB, free: 9.945 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/2.596, allocations: 1.437 MB / 0.995 GB, free: 8.672 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004252/2.6, allocations: 0.8284 MB / 0.9958 GB, free: 7.879 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00066/2.601, allocations: 123.4 kB / 0.9959 GB, free: 7.758 MB / 410.7 MB Notification: Performance of SimCode: time 1.93e-06/2.601, allocations: 0 / 0.9959 GB, free: 7.758 MB / 410.7 MB Notification: Performance of Templates: time 0.3496/2.95, allocations: 47.72 MB / 1.043 GB, free: 50.86 MB / 410.7 MB