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_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 1.842/1.842, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.206e-05/3.227e-05, allocations: 4 kB / 255.4 MB, free: 2.703 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08306/0.08312, allocations: 44.49 MB / 299.9 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.196/1.279, allocations: 404.9 MB / 0.6883 GB, free: 108.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/1.28, allocations: 85.64 kB / 0.6884 GB, free: 108.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9246/2.204, allocations: 210.1 MB / 0.8935 GB, free: 80.13 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.099e-06/2.204, allocations: 6.719 kB / 0.8935 GB, free: 80.13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001403/2.204, allocations: 38.56 kB / 0.8936 GB, free: 80.12 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.006412/2.211, allocations: 1.783 MB / 0.8953 GB, free: 79.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/2.211, allocations: 8.906 kB / 0.8953 GB, free: 79.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/2.212, allocations: 165.1 kB / 0.8955 GB, free: 79.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003088/2.215, allocations: 0.9837 MB / 0.8964 GB, free: 78.83 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002321/2.216, allocations: 235.9 kB / 0.8966 GB, free: 78.67 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005006/2.216, allocations: 98.84 kB / 0.8967 GB, free: 78.67 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004593/2.221, allocations: 1.777 MB / 0.8985 GB, free: 78.47 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.365e-05/2.221, allocations: 0.5156 kB / 0.8985 GB, free: 78.47 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002472/2.221, allocations: 41.91 kB / 0.8985 GB, free: 78.47 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001685/2.221, allocations: 105.5 kB / 0.8986 GB, free: 78.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004616/2.226, allocations: 1.706 MB / 0.9003 GB, free: 78.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01782/2.244, allocations: 6.843 MB / 0.907 GB, free: 76.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003611/2.247, allocations: 1.404 MB / 0.9083 GB, free: 75.83 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002028/2.249, allocations: 0.8289 MB / 0.9091 GB, free: 75.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008265/2.258, allocations: 3.991 MB / 0.913 GB, free: 73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.218e-05/2.258, allocations: 46.53 kB / 0.9131 GB, free: 72.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 4.47e-06/2.258, allocations: 0 / 0.9131 GB, free: 72.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.01462/2.272, allocations: 4.602 MB / 0.9176 GB, free: 71.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.453e-05/2.273, allocations: 166.9 kB / 0.9177 GB, free: 70.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001798/2.274, allocations: 0.9734 MB / 0.9187 GB, free: 70.56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003898/2.275, allocations: 53.36 kB / 0.9187 GB, free: 70.51 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004453/2.275, allocations: 0.5237 MB / 0.9193 GB, free: 70.09 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004946/2.276, allocations: 415.7 kB / 0.9196 GB, free: 69.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/2.276, allocations: 27.84 kB / 0.9197 GB, free: 69.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/2.276, allocations: 364.8 kB / 0.92 GB, free: 69.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001741/2.278, allocations: 0.7432 MB / 0.9207 GB, free: 69.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002051/2.28, allocations: 0.9948 MB / 0.9217 GB, free: 68.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002022/2.282, allocations: 0.8051 MB / 0.9225 GB, free: 68.31 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/2.282, allocations: 2.938 kB / 0.9225 GB, free: 68.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.006391/2.288, allocations: 2.388 MB / 0.9248 GB, free: 67.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005339/2.289, allocations: 2.357 MB / 0.9271 GB, free: 64.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/2.289, allocations: 10.97 kB / 0.9272 GB, free: 64.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005182/2.294, allocations: 1.189 MB / 0.9283 GB, free: 64.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/2.296, allocations: 230.5 kB / 0.9285 GB, free: 64.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007045/2.303, allocations: 6.163 MB / 0.9346 GB, free: 59.01 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/2.305, allocations: 93 kB / 0.9346 GB, free: 58.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002935/2.305, allocations: 63.11 kB / 0.9347 GB, free: 58.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/2.305, allocations: 10.59 kB / 0.9347 GB, free: 58.89 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004993/2.31, allocations: 1.993 MB / 0.9367 GB, free: 57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/2.31, allocations: 8 kB / 0.9367 GB, free: 56.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/2.313, allocations: 0.7817 MB / 0.9374 GB, free: 56.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/2.315, allocations: 235.6 kB / 0.9377 GB, free: 56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006593/2.321, allocations: 6.721 MB / 0.9442 GB, free: 48.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/2.323, allocations: 87.44 kB / 0.9443 GB, free: 48.78 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002524/2.324, allocations: 55.98 kB / 0.9444 GB, free: 48.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (130): * Single equations (assignments): 125 * 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.0005318/2.324, allocations: 188.2 kB / 0.9445 GB, free: 48.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003912/2.324, allocations: 142 kB / 0.9447 GB, free: 48.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006026/2.33, allocations: 2.557 MB / 0.9472 GB, free: 45.84 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.688e-05/2.331, allocations: 15.98 kB / 0.9472 GB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.425e-06/2.331, allocations: 4 kB / 0.9472 GB, free: 45.82 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.617e-05/2.331, allocations: 5.359 kB / 0.9472 GB, free: 45.81 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00913/2.34, allocations: 4.148 MB / 0.9512 GB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.211e-05/2.34, allocations: 2.969 kB / 0.9512 GB, free: 41.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/2.341, allocations: 151.8 kB / 0.9514 GB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004815/2.346, allocations: 1.205 MB / 0.9526 GB, free: 40.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003662/2.346, allocations: 35.97 kB / 0.9526 GB, free: 40.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006778/2.353, allocations: 6.186 MB / 0.9586 GB, free: 33.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.941e-06/2.353, allocations: 0 / 0.9586 GB, free: 33.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007581/2.361, allocations: 3.546 MB / 0.9621 GB, free: 30.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/2.362, allocations: 437.5 kB / 0.9625 GB, free: 29.75 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003339/2.362, allocations: 24 kB / 0.9625 GB, free: 29.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/2.364, allocations: 98.05 kB / 0.9626 GB, free: 29.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004073/2.364, allocations: 141.1 kB / 0.9628 GB, free: 29.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002144/2.364, allocations: 55.41 kB / 0.9628 GB, free: 29.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001241/2.366, allocations: 0.7428 MB / 0.9636 GB, free: 28.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.45e-07/2.366, allocations: 0 / 0.9636 GB, free: 28.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004509/2.37, allocations: 1.109 MB / 0.9646 GB, free: 27.59 MB / 410.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.002414/2.373, allocations: 0.8302 MB / 0.9654 GB, free: 26.82 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008116/2.381, allocations: 3.506 MB / 0.9689 GB, free: 23.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.331e-06/2.381, allocations: 0 / 0.9689 GB, free: 23.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003368/2.384, allocations: 1.299 MB / 0.9701 GB, free: 21.97 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003272/2.387, allocations: 0.5455 MB / 0.9707 GB, free: 21.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007807/2.395, allocations: 2.554 MB / 0.9732 GB, free: 18.93 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008862/2.396, allocations: 1.301 MB / 0.9744 GB, free: 17.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003157/2.399, allocations: 0.6886 MB / 0.9751 GB, free: 16.92 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004696/2.4, allocations: 111.3 kB / 0.9752 GB, free: 16.81 MB / 410.7 MB Notification: Performance of SimCode: time 1.757e-06/2.4, allocations: 0 / 0.9752 GB, free: 16.81 MB / 410.7 MB Notification: Performance of Templates: time 0.4381/2.838, allocations: 41.69 MB / 1.016 GB, free: 70.85 MB / 410.7 MB