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_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadModel(Modelica): time 1.682/1.682, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.604e-05/4.619e-05, allocations: 4 kB / 225 MB, free: 2.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2175/0.2176, allocations: 38.76 MB / 263.8 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7509/0.9685, allocations: 314.3 MB / 0.5646 GB, free: 72.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002543/0.9688, allocations: 88.17 kB / 0.5646 GB, free: 72.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.287/2.256, allocations: 279 MB / 0.8371 GB, free: 48 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.108e-06/2.256, allocations: 0 / 0.8371 GB, free: 48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000143/2.256, allocations: 41.88 kB / 0.8371 GB, free: 47.99 MB / 362.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.005253/2.261, allocations: 1.782 MB / 0.8389 GB, free: 47.17 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/2.261, allocations: 15.72 kB / 0.8389 GB, free: 47.16 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009772/2.262, allocations: 170.3 kB / 0.8391 GB, free: 47.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003162/2.265, allocations: 1.088 MB / 0.8401 GB, free: 46.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.917e-05/2.266, allocations: 78.7 kB / 0.8402 GB, free: 46.74 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002879/2.266, allocations: 101.7 kB / 0.8403 GB, free: 46.74 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003204/2.269, allocations: 1.58 MB / 0.8418 GB, free: 46.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.885e-05/2.269, allocations: 5.875 kB / 0.8418 GB, free: 46.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002064/2.269, allocations: 48.92 kB / 0.8419 GB, free: 46.49 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001606/2.27, allocations: 100.4 kB / 0.842 GB, free: 46.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003312/2.273, allocations: 1.565 MB / 0.8435 GB, free: 46.49 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01332/2.286, allocations: 6.519 MB / 0.8499 GB, free: 43.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001781/2.288, allocations: 0.8698 MB / 0.8507 GB, free: 43.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/2.289, allocations: 0.5272 MB / 0.8512 GB, free: 43.38 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0051/2.294, allocations: 2.818 MB / 0.854 GB, free: 41.91 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/2.294, allocations: 39.12 kB / 0.854 GB, free: 41.87 MB / 362.7 MB Notification: Performance of pre-optimization done (n=80): time 4.364e-06/2.294, allocations: 0 / 0.854 GB, free: 41.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=90): time 0.008002/2.302, allocations: 2.766 MB / 0.8567 GB, free: 41.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.068e-05/2.302, allocations: 190.3 kB / 0.8569 GB, free: 41.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001906/2.304, allocations: 1.042 MB / 0.8579 GB, free: 40.9 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002628/2.305, allocations: 52.75 kB / 0.858 GB, free: 40.87 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005281/2.305, allocations: 0.6662 MB / 0.8586 GB, free: 40.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003823/2.306, allocations: 329.4 kB / 0.859 GB, free: 40.37 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/2.306, allocations: 26.84 kB / 0.859 GB, free: 40.37 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/2.306, allocations: 366.8 kB / 0.8593 GB, free: 40.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/2.307, allocations: 0.5312 MB / 0.8598 GB, free: 40.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001476/2.309, allocations: 1.007 MB / 0.8608 GB, free: 39.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/2.31, allocations: 0.6595 MB / 0.8615 GB, free: 39.49 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.188e-05/2.31, allocations: 7.719 kB / 0.8615 GB, free: 39.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004347/2.314, allocations: 1.798 MB / 0.8632 GB, free: 39.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00113/2.316, allocations: 5.587 MB / 0.8687 GB, free: 33.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.095e-05/2.316, allocations: 14.31 kB / 0.8687 GB, free: 33.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005395/2.321, allocations: 0.6436 MB / 0.8693 GB, free: 33.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001802/2.323, allocations: 297.5 kB / 0.8696 GB, free: 33.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002283/2.325, allocations: 2.138 MB / 0.8717 GB, free: 31.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002254/2.327, allocations: 99.45 kB / 0.8718 GB, free: 31.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003516/2.328, allocations: 76.23 kB / 0.8719 GB, free: 31.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/2.328, allocations: 3.531 kB / 0.8719 GB, free: 31.64 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004027/2.332, allocations: 1.601 MB / 0.8734 GB, free: 31.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.575e-05/2.332, allocations: 14.59 kB / 0.8735 GB, free: 31.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004495/2.337, allocations: 0.4989 MB / 0.8739 GB, free: 31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001811/2.338, allocations: 302 kB / 0.8742 GB, free: 30.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001825/2.34, allocations: 1.993 MB / 0.8762 GB, free: 29.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002078/2.342, allocations: 101.9 kB / 0.8763 GB, free: 29.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003333/2.343, allocations: 73.09 kB / 0.8763 GB, free: 29.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * 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 (171): * Single equations (assignments): 168 * 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.0004662/2.343, allocations: 206.9 kB / 0.8765 GB, free: 29.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003624/2.344, allocations: 136.2 kB / 0.8767 GB, free: 28.95 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00408/2.348, allocations: 1.494 MB / 0.8781 GB, free: 28.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-05/2.348, allocations: 7.781 kB / 0.8781 GB, free: 28.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/2.348, allocations: 0 / 0.8781 GB, free: 28.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-05/2.348, allocations: 11.14 kB / 0.8781 GB, free: 28.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006386/2.354, allocations: 2.728 MB / 0.8808 GB, free: 27.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.417e-06/2.354, allocations: 0 / 0.8808 GB, free: 27.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/2.355, allocations: 161 kB / 0.881 GB, free: 27.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004313/2.36, allocations: 0.6044 MB / 0.8816 GB, free: 27.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002277/2.36, allocations: 26.06 kB / 0.8816 GB, free: 27.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00207/2.362, allocations: 2.102 MB / 0.8836 GB, free: 25.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.819e-06/2.362, allocations: 3.938 kB / 0.8836 GB, free: 25.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004269/2.366, allocations: 2.099 MB / 0.8857 GB, free: 24.31 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006089/2.367, allocations: 227.4 kB / 0.8859 GB, free: 24.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000346/2.367, allocations: 23.7 kB / 0.8859 GB, free: 24.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001376/2.369, allocations: 77.73 kB / 0.886 GB, free: 24.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002415/2.369, allocations: 97.42 kB / 0.8861 GB, free: 24.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000129/2.369, allocations: 37.55 kB / 0.8861 GB, free: 24.06 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001441/2.371, allocations: 0.7903 MB / 0.8869 GB, free: 23.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.45e-07/2.371, allocations: 0 / 0.8869 GB, free: 23.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004721/2.375, allocations: 1.179 MB / 0.8881 GB, free: 23.44 MB / 362.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.003039/2.378, allocations: 1.13 MB / 0.8892 GB, free: 23.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005211/2.384, allocations: 2.17 MB / 0.8913 GB, free: 21.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.899e-06/2.384, allocations: 0 / 0.8913 GB, free: 21.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00181/2.386, allocations: 0.6892 MB / 0.892 GB, free: 20.69 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005093/2.391, allocations: 0.4915 MB / 0.8924 GB, free: 20.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007793/2.399, allocations: 2.19 MB / 0.8946 GB, free: 18.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00141/2.4, allocations: 1.285 MB / 0.8958 GB, free: 17.29 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.003562/2.404, allocations: 0.6447 MB / 0.8965 GB, free: 16.86 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003617/2.404, allocations: 94.7 kB / 0.8965 GB, free: 16.78 MB / 362.7 MB Notification: Performance of SimCode: time 1.815e-06/2.404, allocations: 4 kB / 0.8965 GB, free: 16.77 MB / 362.7 MB Notification: Performance of Templates: time 0.2954/2.699, allocations: 37.54 MB / 0.9332 GB, free: 40.37 MB / 362.7 MB