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.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadModel(Modelica): time 2.015/2.015, allocations: 205.8 MB / 218.9 MB, free: 9.27 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.848e-05/2.868e-05, allocations: 0 / 269.4 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08797/0.08803, allocations: 47.58 MB / 316.9 MB, free: 6.738 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.149/1.237, allocations: 409.8 MB / 0.7097 GB, free: 135.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/1.237, allocations: 82.02 kB / 0.7098 GB, free: 135.2 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9373/2.175, allocations: 212.7 MB / 0.9175 GB, free: 83.04 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.38e-06/2.175, allocations: 0 / 0.9175 GB, free: 83.04 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001489/2.175, allocations: 33.09 kB / 0.9175 GB, free: 83.04 MB / 426.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.006556/2.182, allocations: 1.798 MB / 0.9193 GB, free: 81.78 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/2.182, allocations: 7.875 kB / 0.9193 GB, free: 81.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0012/2.183, allocations: 166.9 kB / 0.9195 GB, free: 81.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003147/2.186, allocations: 0.9885 MB / 0.9204 GB, free: 81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002663/2.186, allocations: 241.6 kB / 0.9207 GB, free: 80.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000558/2.187, allocations: 95.41 kB / 0.9208 GB, free: 80.77 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004695/2.192, allocations: 1.772 MB / 0.9225 GB, free: 79.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.838e-05/2.192, allocations: 0 / 0.9225 GB, free: 79.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002825/2.192, allocations: 40.55 kB / 0.9225 GB, free: 79.7 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000184/2.192, allocations: 100.7 kB / 0.9226 GB, free: 79.67 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004635/2.197, allocations: 1.712 MB / 0.9243 GB, free: 78.88 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01763/2.215, allocations: 6.799 MB / 0.9309 GB, free: 73.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003951/2.219, allocations: 1.411 MB / 0.9323 GB, free: 73.23 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002057/2.221, allocations: 0.8202 MB / 0.9331 GB, free: 72.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008564/2.229, allocations: 3.975 MB / 0.937 GB, free: 68.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/2.229, allocations: 43.56 kB / 0.937 GB, free: 68.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 5.194e-06/2.229, allocations: 0 / 0.937 GB, free: 68.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=122): time 0.01441/2.244, allocations: 4.598 MB / 0.9415 GB, free: 63.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/2.244, allocations: 174.8 kB / 0.9417 GB, free: 63.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001863/2.246, allocations: 0.9787 MB / 0.9426 GB, free: 62.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003833/2.246, allocations: 57.64 kB / 0.9427 GB, free: 62.26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004492/2.247, allocations: 0.5079 MB / 0.9432 GB, free: 61.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006445/2.247, allocations: 421.5 kB / 0.9436 GB, free: 61.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001653/2.248, allocations: 24 kB / 0.9436 GB, free: 61.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/2.248, allocations: 361.9 kB / 0.944 GB, free: 60.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001694/2.249, allocations: 0.7403 MB / 0.9447 GB, free: 60.22 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002033/2.251, allocations: 0.9771 MB / 0.9456 GB, free: 59.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002004/2.254, allocations: 0.8134 MB / 0.9464 GB, free: 58.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/2.254, allocations: 4 kB / 0.9464 GB, free: 58.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=168) (initialization): time 0.006718/2.26, allocations: 2.374 MB / 0.9488 GB, free: 55.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004795/2.261, allocations: 2.185 MB / 0.9509 GB, free: 53.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/2.261, allocations: 7.984 kB / 0.9509 GB, free: 53.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005141/2.266, allocations: 1.189 MB / 0.9521 GB, free: 52.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/2.268, allocations: 219.6 kB / 0.9523 GB, free: 52.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007115/2.275, allocations: 6.164 MB / 0.9583 GB, free: 45.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002115/2.277, allocations: 95.84 kB / 0.9584 GB, free: 45.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004549/2.277, allocations: 63.92 kB / 0.9584 GB, free: 45.54 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/2.277, allocations: 4 kB / 0.9584 GB, free: 45.54 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005633/2.283, allocations: 2.178 MB / 0.9606 GB, free: 43.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.311e-05/2.283, allocations: 8 kB / 0.9606 GB, free: 43.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003931/2.287, allocations: 1.008 MB / 0.9616 GB, free: 42.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001558/2.289, allocations: 227.7 kB / 0.9618 GB, free: 42.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006637/2.295, allocations: 6.014 MB / 0.9677 GB, free: 35.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002006/2.297, allocations: 103.8 kB / 0.9678 GB, free: 35.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003946/2.298, allocations: 59.95 kB / 0.9678 GB, free: 35.61 MB / 426.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.0005178/2.298, allocations: 188.6 kB / 0.968 GB, free: 35.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004283/2.299, allocations: 134.4 kB / 0.9681 GB, free: 35.28 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006409/2.305, allocations: 2.568 MB / 0.9706 GB, free: 32.69 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-05/2.305, allocations: 19.89 kB / 0.9706 GB, free: 32.67 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/2.305, allocations: 4 kB / 0.9706 GB, free: 32.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-05/2.305, allocations: 7.969 kB / 0.9707 GB, free: 32.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01031/2.316, allocations: 4.151 MB / 0.9747 GB, free: 28.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/2.316, allocations: 4 kB / 0.9747 GB, free: 28.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001151/2.317, allocations: 151.5 kB / 0.9749 GB, free: 28.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004706/2.322, allocations: 1.194 MB / 0.976 GB, free: 27.12 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003579/2.322, allocations: 35.97 kB / 0.9761 GB, free: 27.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00686/2.329, allocations: 6.207 MB / 0.9821 GB, free: 20.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.924e-06/2.329, allocations: 0 / 0.9821 GB, free: 20.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007678/2.337, allocations: 3.546 MB / 0.9856 GB, free: 16.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001334/2.338, allocations: 431.1 kB / 0.986 GB, free: 16.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004748/2.339, allocations: 28 kB / 0.986 GB, free: 16.51 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001673/2.34, allocations: 91.83 kB / 0.9861 GB, free: 16.42 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004678/2.341, allocations: 153 kB / 0.9863 GB, free: 16.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002162/2.341, allocations: 47.97 kB / 0.9863 GB, free: 16.23 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001364/2.342, allocations: 0.7431 MB / 0.987 GB, free: 15.47 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.66e-07/2.342, allocations: 0 / 0.987 GB, free: 15.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004831/2.347, allocations: 1.12 MB / 0.9881 GB, free: 14.35 MB / 426.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.002748/2.35, allocations: 0.8427 MB / 0.9889 GB, free: 13.56 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0088/2.359, allocations: 3.477 MB / 0.9923 GB, free: 10.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.888e-06/2.359, allocations: 0 / 0.9923 GB, free: 10.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00346/2.362, allocations: 1.293 MB / 0.9936 GB, free: 8.73 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003443/2.366, allocations: 0.5441 MB / 0.9941 GB, free: 8.195 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00807/2.374, allocations: 2.557 MB / 0.9966 GB, free: 5.613 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008921/2.375, allocations: 1.297 MB / 0.9979 GB, free: 4.289 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003225/2.378, allocations: 0.694 MB / 0.9986 GB, free: 3.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004743/2.379, allocations: 103.4 kB / 0.9987 GB, free: 3.488 MB / 426.7 MB Notification: Performance of SimCode: time 1.75e-06/2.379, allocations: 0 / 0.9987 GB, free: 3.488 MB / 426.7 MB Notification: Performance of Templates: time 0.3424/2.721, allocations: 42.41 MB / 1.04 GB, free: 74.47 MB / 426.7 MB