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_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 1.932/1.932, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.096e-05/4.131e-05, allocations: 0 / 292.7 MB, free: 8.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1051, allocations: 50.43 MB / 343.1 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.32/1.425, allocations: 412.3 MB / 0.7376 GB, free: 108.2 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/1.425, allocations: 81.75 kB / 0.7377 GB, free: 108.2 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9688/2.394, allocations: 216.8 MB / 0.9495 GB, free: 69.4 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.365e-06/2.394, allocations: 0 / 0.9495 GB, free: 69.4 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001193/2.394, allocations: 28 kB / 0.9495 GB, free: 69.37 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.005928/2.4, allocations: 1.798 MB / 0.9513 GB, free: 67.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/2.4, allocations: 8.031 kB / 0.9513 GB, free: 67.53 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/2.401, allocations: 167.8 kB / 0.9514 GB, free: 67.36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002869/2.404, allocations: 0.9876 MB / 0.9524 GB, free: 66.35 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/2.405, allocations: 233.2 kB / 0.9526 GB, free: 66.1 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003105/2.405, allocations: 98.56 kB / 0.9527 GB, free: 66.01 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003834/2.409, allocations: 1.766 MB / 0.9544 GB, free: 64.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.938e-05/2.409, allocations: 0 / 0.9544 GB, free: 64.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002196/2.409, allocations: 47.73 kB / 0.9545 GB, free: 64.14 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001465/2.409, allocations: 97.98 kB / 0.9546 GB, free: 64.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003655/2.413, allocations: 1.71 MB / 0.9562 GB, free: 62.33 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01526/2.428, allocations: 6.804 MB / 0.9629 GB, free: 55.33 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00313/2.431, allocations: 1.409 MB / 0.9643 GB, free: 53.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001682/2.433, allocations: 0.828 MB / 0.9651 GB, free: 53.08 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007146/2.44, allocations: 3.957 MB / 0.9689 GB, free: 48.89 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/2.44, allocations: 43.56 kB / 0.969 GB, free: 48.84 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 4.662e-06/2.44, allocations: 4 kB / 0.969 GB, free: 48.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.01259/2.453, allocations: 4.593 MB / 0.9735 GB, free: 44.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/2.453, allocations: 171.2 kB / 0.9736 GB, free: 43.97 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001678/2.455, allocations: 0.9865 MB / 0.9746 GB, free: 42.97 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003308/2.455, allocations: 49.7 kB / 0.9746 GB, free: 42.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004053/2.455, allocations: 0.508 MB / 0.9751 GB, free: 42.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000433/2.456, allocations: 424.6 kB / 0.9755 GB, free: 42 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/2.456, allocations: 28 kB / 0.9756 GB, free: 41.97 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/2.456, allocations: 357.9 kB / 0.9759 GB, free: 41.61 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/2.458, allocations: 0.7458 MB / 0.9766 GB, free: 40.87 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00201/2.46, allocations: 0.9783 MB / 0.9776 GB, free: 39.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001956/2.462, allocations: 0.8013 MB / 0.9784 GB, free: 39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.304e-06/2.462, allocations: 11.88 kB / 0.9784 GB, free: 38.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006099/2.468, allocations: 2.37 MB / 0.9807 GB, free: 36.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004439/2.469, allocations: 2.2 MB / 0.9829 GB, free: 34.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/2.469, allocations: 8 kB / 0.9829 GB, free: 34.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004944/2.473, allocations: 1.191 MB / 0.984 GB, free: 33.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001429/2.475, allocations: 215.7 kB / 0.9842 GB, free: 32.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006829/2.482, allocations: 6.167 MB / 0.9903 GB, free: 26.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002043/2.484, allocations: 95.84 kB / 0.9903 GB, free: 26.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004147/2.484, allocations: 59.97 kB / 0.9904 GB, free: 26.15 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/2.484, allocations: 6.656 kB / 0.9904 GB, free: 26.15 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005405/2.49, allocations: 2.174 MB / 0.9925 GB, free: 23.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.286e-05/2.49, allocations: 11.98 kB / 0.9925 GB, free: 23.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003486/2.493, allocations: 1.011 MB / 0.9935 GB, free: 22.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/2.495, allocations: 223.7 kB / 0.9937 GB, free: 22.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006448/2.501, allocations: 6.018 MB / 0.9996 GB, free: 16.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001949/2.503, allocations: 99.84 kB / 0.9997 GB, free: 16.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002646/2.504, allocations: 59.91 kB / 0.9998 GB, free: 16.19 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.0004869/2.504, allocations: 188.6 kB / 0.9999 GB, free: 16 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003794/2.505, allocations: 138.4 kB / 1 GB, free: 15.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006138/2.511, allocations: 2.571 MB / 1.003 GB, free: 13.26 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.597e-05/2.511, allocations: 12 kB / 1.003 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/2.511, allocations: 4 kB / 1.003 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.633e-05/2.511, allocations: 11.92 kB / 1.003 GB, free: 13.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009189/2.52, allocations: 4.147 MB / 1.007 GB, free: 9.051 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.328e-05/2.52, allocations: 3.953 kB / 1.007 GB, free: 9.047 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0011/2.521, allocations: 151.7 kB / 1.007 GB, free: 8.898 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004583/2.526, allocations: 1.2 MB / 1.008 GB, free: 7.684 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003342/2.526, allocations: 35.97 kB / 1.008 GB, free: 7.648 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006821/2.533, allocations: 6.2 MB / 1.014 GB, free: 1.109 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.872e-06/2.533, allocations: 0 / 1.014 GB, free: 1.109 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3163/2.849, allocations: 3.537 MB / 1.018 GB, free: 74.69 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001465/2.851, allocations: 440.9 kB / 1.018 GB, free: 74.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004443/2.851, allocations: 23.56 kB / 1.018 GB, free: 74.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001638/2.853, allocations: 98.97 kB / 1.018 GB, free: 74.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005003/2.853, allocations: 143.3 kB / 1.018 GB, free: 74.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00024/2.854, allocations: 49.44 kB / 1.018 GB, free: 74.59 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001523/2.855, allocations: 0.7479 MB / 1.019 GB, free: 74.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.005e-06/2.855, allocations: 0 / 1.019 GB, free: 74.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004821/2.86, allocations: 1.124 MB / 1.02 GB, free: 74.48 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.002791/2.863, allocations: 0.8239 MB / 1.021 GB, free: 74.38 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009991/2.873, allocations: 3.479 MB / 1.024 GB, free: 73.93 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.493e-06/2.873, allocations: 0.875 kB / 1.024 GB, free: 73.93 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00401/2.877, allocations: 1.296 MB / 1.026 GB, free: 73.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003708/2.881, allocations: 0.543 MB / 1.026 GB, free: 73.71 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00851/2.889, allocations: 2.556 MB / 1.029 GB, free: 73.26 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00121/2.891, allocations: 1.291 MB / 1.03 GB, free: 72.54 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003774/2.894, allocations: 0.6943 MB / 1.031 GB, free: 72.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000561/2.895, allocations: 106.2 kB / 1.031 GB, free: 72.51 MB / 442.7 MB Notification: Performance of SimCode: time 1.836e-06/2.895, allocations: 0 / 1.031 GB, free: 72.51 MB / 442.7 MB Notification: Performance of Templates: time 0.0862/2.981, allocations: 42.42 MB / 1.072 GB, free: 70.6 MB / 442.7 MB