Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 1.964/1.964, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.933e-05/2.946e-05, allocations: 8 kB / 292.1 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0913/0.09135, allocations: 50.41 MB / 342.6 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.242/1.333, allocations: 412.3 MB / 0.7371 GB, free: 128.2 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002419/1.334, allocations: 79.95 kB / 0.7372 GB, free: 128.2 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9704/2.304, allocations: 216.8 MB / 0.949 GB, free: 77.58 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.711e-06/2.304, allocations: 0 / 0.949 GB, free: 77.58 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001351/2.304, allocations: 32.81 kB / 0.949 GB, free: 77.57 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.006602/2.311, allocations: 1.801 MB / 0.9507 GB, free: 76.29 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/2.311, allocations: 7.875 kB / 0.9508 GB, free: 76.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001165/2.312, allocations: 168.1 kB / 0.9509 GB, free: 76.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003123/2.315, allocations: 0.9874 MB / 0.9519 GB, free: 75.51 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002448/2.316, allocations: 236.9 kB / 0.9521 GB, free: 75.31 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005318/2.316, allocations: 101.2 kB / 0.9522 GB, free: 75.29 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004444/2.321, allocations: 1.765 MB / 0.9539 GB, free: 73.88 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.22e-05/2.321, allocations: 0 / 0.9539 GB, free: 73.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002428/2.321, allocations: 43.81 kB / 0.954 GB, free: 73.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001613/2.321, allocations: 106 kB / 0.9541 GB, free: 73.74 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004197/2.325, allocations: 1.702 MB / 0.9557 GB, free: 72.03 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01667/2.342, allocations: 6.807 MB / 0.9624 GB, free: 65.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003383/2.345, allocations: 1.41 MB / 0.9638 GB, free: 63.62 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001863/2.347, allocations: 0.8241 MB / 0.9646 GB, free: 62.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008161/2.356, allocations: 3.952 MB / 0.9684 GB, free: 58.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/2.356, allocations: 51.56 kB / 0.9685 GB, free: 58.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 4.902e-06/2.356, allocations: 0 / 0.9685 GB, free: 58.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.01383/2.369, allocations: 4.596 MB / 0.973 GB, free: 53.89 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/2.37, allocations: 171.2 kB / 0.9731 GB, free: 53.69 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001801/2.371, allocations: 0.9826 MB / 0.9741 GB, free: 52.69 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003961/2.372, allocations: 49.7 kB / 0.9741 GB, free: 52.64 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004494/2.372, allocations: 0.5155 MB / 0.9746 GB, free: 52.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005899/2.373, allocations: 409.5 kB / 0.975 GB, free: 51.72 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/2.373, allocations: 32 kB / 0.9751 GB, free: 51.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001101/2.373, allocations: 357.9 kB / 0.9754 GB, free: 51.34 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001648/2.375, allocations: 0.7419 MB / 0.9761 GB, free: 50.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002025/2.377, allocations: 0.9807 MB / 0.9771 GB, free: 49.53 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/2.379, allocations: 0.8091 MB / 0.9779 GB, free: 48.72 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.06e-06/2.379, allocations: 4 kB / 0.9779 GB, free: 48.71 MB / 442.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.005948/2.385, allocations: 2.381 MB / 0.9802 GB, free: 46.31 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004443/2.385, allocations: 2.188 MB / 0.9823 GB, free: 43.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/2.385, allocations: 4 kB / 0.9823 GB, free: 43.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005367/2.391, allocations: 1.189 MB / 0.9835 GB, free: 42.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/2.392, allocations: 219.6 kB / 0.9837 GB, free: 42.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007297/2.4, allocations: 6.174 MB / 0.9897 GB, free: 36.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002245/2.402, allocations: 95.84 kB / 0.9898 GB, free: 35.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004649/2.403, allocations: 59.97 kB / 0.9899 GB, free: 35.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/2.403, allocations: 9.969 kB / 0.9899 GB, free: 35.89 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005347/2.408, allocations: 2.182 MB / 0.992 GB, free: 33.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/2.408, allocations: 12.25 kB / 0.992 GB, free: 33.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003409/2.411, allocations: 0.9957 MB / 0.993 GB, free: 32.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001457/2.413, allocations: 231.6 kB / 0.9932 GB, free: 32.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006339/2.419, allocations: 6.022 MB / 0.9991 GB, free: 26.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001939/2.421, allocations: 99.83 kB / 0.9992 GB, free: 25.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002664/2.422, allocations: 55.97 kB / 0.9993 GB, free: 25.93 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 123 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004961/2.422, allocations: 196.5 kB / 0.9994 GB, free: 25.73 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003692/2.422, allocations: 134.4 kB / 0.9996 GB, free: 25.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006032/2.429, allocations: 2.557 MB / 1.002 GB, free: 23.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.546e-05/2.429, allocations: 12 kB / 1.002 GB, free: 23.01 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.381e-06/2.429, allocations: 7.938 kB / 1.002 GB, free: 23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.734e-05/2.429, allocations: 11.92 kB / 1.002 GB, free: 22.99 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009115/2.438, allocations: 4.143 MB / 1.006 GB, free: 18.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/2.438, allocations: 7.953 kB / 1.006 GB, free: 18.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/2.439, allocations: 151.8 kB / 1.006 GB, free: 18.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004647/2.444, allocations: 1.197 MB / 1.007 GB, free: 17.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003436/2.444, allocations: 39.97 kB / 1.008 GB, free: 17.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00717/2.451, allocations: 6.206 MB / 1.014 GB, free: 10.86 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.098e-06/2.451, allocations: 0 / 1.014 GB, free: 10.86 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007983/2.459, allocations: 3.542 MB / 1.017 GB, free: 7.285 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/2.461, allocations: 435.1 kB / 1.017 GB, free: 6.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003476/2.461, allocations: 28.19 kB / 1.017 GB, free: 6.812 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001621/2.463, allocations: 95.88 kB / 1.018 GB, free: 6.719 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003973/2.463, allocations: 141.1 kB / 1.018 GB, free: 6.578 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001954/2.463, allocations: 47.97 kB / 1.018 GB, free: 6.531 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00125/2.464, allocations: 0.747 MB / 1.018 GB, free: 5.773 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.02e-07/2.464, allocations: 0 / 1.018 GB, free: 5.773 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004119/2.469, allocations: 1.132 MB / 1.02 GB, free: 4.645 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002398/2.471, allocations: 0.8464 MB / 1.02 GB, free: 3.844 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008355/2.479, allocations: 3.473 MB / 1.024 GB, free: 336 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.374e-06/2.479, allocations: 4 kB / 1.024 GB, free: 332 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2624/2.742, allocations: 1.287 MB / 1.025 GB, free: 76.83 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003783/2.746, allocations: 0.5448 MB / 1.026 GB, free: 76.83 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008933/2.755, allocations: 2.54 MB / 1.028 GB, free: 76.41 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001296/2.756, allocations: 1.293 MB / 1.029 GB, free: 75.69 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00382/2.76, allocations: 0.6991 MB / 1.03 GB, free: 75.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005564/2.76, allocations: 112.4 kB / 1.03 GB, free: 75.67 MB / 442.7 MB Notification: Performance of SimCode: time 1.955e-06/2.76, allocations: 0.6562 kB / 1.03 GB, free: 75.67 MB / 442.7 MB Notification: Performance of Templates: time 0.09321/2.854, allocations: 42.41 MB / 1.072 GB, free: 73.8 MB / 442.7 MB