Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 2.026/2.026, allocations: 205.8 MB / 218.9 MB, free: 9.344 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.324e-05/3.34e-05, allocations: 8 kB / 269.4 MB, free: 6.402 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0859/0.08595, allocations: 47.57 MB / 316.9 MB, free: 6.75 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8364/0.9224, allocations: 321.1 MB / 0.6231 GB, free: 46.59 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/0.9227, allocations: 81.58 kB / 0.6231 GB, free: 46.55 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.348/2.27, allocations: 269.5 MB / 0.8864 GB, free: 67.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.392e-06/2.27, allocations: 2.75 kB / 0.8864 GB, free: 67.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001769/2.271, allocations: 38.36 kB / 0.8864 GB, free: 67.29 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006895/2.278, allocations: 1.809 MB / 0.8882 GB, free: 66.44 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/2.278, allocations: 13.41 kB / 0.8882 GB, free: 66.44 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001216/2.279, allocations: 176.4 kB / 0.8883 GB, free: 66.36 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003501/2.282, allocations: 1.118 MB / 0.8894 GB, free: 66.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002466/2.283, allocations: 176.3 kB / 0.8896 GB, free: 65.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005396/2.283, allocations: 106.8 kB / 0.8897 GB, free: 65.93 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004805/2.288, allocations: 1.725 MB / 0.8914 GB, free: 65.75 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.245e-05/2.288, allocations: 6.562 kB / 0.8914 GB, free: 65.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002786/2.288, allocations: 45.91 kB / 0.8914 GB, free: 65.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001969/2.289, allocations: 112.1 kB / 0.8915 GB, free: 65.74 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004468/2.293, allocations: 1.723 MB / 0.8932 GB, free: 65.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01744/2.311, allocations: 6.374 MB / 0.8995 GB, free: 63.72 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002695/2.313, allocations: 1.147 MB / 0.9006 GB, free: 63.69 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/2.315, allocations: 0.704 MB / 0.9013 GB, free: 63.67 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008273/2.323, allocations: 4.266 MB / 0.9054 GB, free: 61.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.947e-05/2.323, allocations: 51.38 kB / 0.9055 GB, free: 61.28 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001433/2.325, allocations: 203 kB / 0.9057 GB, free: 61.22 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 6.346e-06/2.325, allocations: 0 / 0.9057 GB, free: 61.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.0121/2.337, allocations: 3.777 MB / 0.9094 GB, free: 60.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/2.337, allocations: 144.5 kB / 0.9095 GB, free: 60.51 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002168/2.339, allocations: 1.089 MB / 0.9106 GB, free: 60.35 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003401/2.34, allocations: 47.05 kB / 0.9106 GB, free: 60.32 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004987/2.34, allocations: 0.597 MB / 0.9112 GB, free: 60.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000483/2.341, allocations: 393.3 kB / 0.9116 GB, free: 59.83 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001596/2.341, allocations: 28.38 kB / 0.9116 GB, free: 59.83 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/2.341, allocations: 370.3 kB / 0.9119 GB, free: 59.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001534/2.343, allocations: 0.6221 MB / 0.9125 GB, free: 59.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001861/2.344, allocations: 0.941 MB / 0.9135 GB, free: 59.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001946/2.346, allocations: 0.7497 MB / 0.9142 GB, free: 59.14 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.777e-05/2.346, allocations: 0 / 0.9142 GB, free: 59.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005951/2.352, allocations: 2.039 MB / 0.9162 GB, free: 59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007184/2.353, allocations: 3.52 MB / 0.9196 GB, free: 55.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.336e-05/2.353, allocations: 7.406 kB / 0.9196 GB, free: 55.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009347/2.363, allocations: 1.215 MB / 0.9208 GB, free: 55.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001758/2.364, allocations: 291.2 kB / 0.9211 GB, free: 55.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00307/2.367, allocations: 1.527 MB / 0.9226 GB, free: 54.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/2.37, allocations: 86.06 kB / 0.9227 GB, free: 54.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004081/2.37, allocations: 71.98 kB / 0.9227 GB, free: 54.81 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/2.37, allocations: 3.125 kB / 0.9227 GB, free: 54.81 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004783/2.375, allocations: 1.829 MB / 0.9245 GB, free: 54.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.76e-05/2.375, allocations: 8.688 kB / 0.9245 GB, free: 54.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007407/2.383, allocations: 1.06 MB / 0.9256 GB, free: 54.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001812/2.384, allocations: 309.8 kB / 0.9259 GB, free: 54.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002589/2.387, allocations: 1.366 MB / 0.9272 GB, free: 54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002173/2.389, allocations: 88.47 kB / 0.9273 GB, free: 53.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003781/2.39, allocations: 69.14 kB / 0.9274 GB, free: 53.95 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0004863/2.39, allocations: 191.1 kB / 0.9275 GB, free: 53.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004411/2.391, allocations: 153.9 kB / 0.9277 GB, free: 53.72 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005385/2.396, allocations: 1.994 MB / 0.9296 GB, free: 53 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.845e-05/2.396, allocations: 10.25 kB / 0.9296 GB, free: 53 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/2.396, allocations: 3.844 kB / 0.9296 GB, free: 53 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.393e-05/2.396, allocations: 7.219 kB / 0.9296 GB, free: 53 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008081/2.404, allocations: 3.41 MB / 0.933 GB, free: 51.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.574e-06/2.404, allocations: 0 / 0.933 GB, free: 51.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001436/2.406, allocations: 190.6 kB / 0.9332 GB, free: 51.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005314/2.411, allocations: 0.9443 MB / 0.9341 GB, free: 51.42 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002929/2.412, allocations: 30.42 kB / 0.9341 GB, free: 51.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002822/2.414, allocations: 1.562 MB / 0.9356 GB, free: 50.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.851e-06/2.414, allocations: 1.781 kB / 0.9356 GB, free: 50.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006116/2.421, allocations: 2.701 MB / 0.9383 GB, free: 49.37 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/2.422, allocations: 409.1 kB / 0.9387 GB, free: 49.11 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006181/2.423, allocations: 27.45 kB / 0.9387 GB, free: 49.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001933/2.425, allocations: 85.97 kB / 0.9388 GB, free: 49.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003823/2.425, allocations: 98.67 kB / 0.9389 GB, free: 49.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002052/2.425, allocations: 51.92 kB / 0.9389 GB, free: 49.04 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001535/2.427, allocations: 0.8249 MB / 0.9397 GB, free: 48.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.31e-07/2.427, allocations: 0 / 0.9397 GB, free: 48.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004864/2.432, allocations: 1.248 MB / 0.9409 GB, free: 48.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.003181/2.435, allocations: 1.097 MB / 0.942 GB, free: 48.03 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007766/2.443, allocations: 2.563 MB / 0.9445 GB, free: 46.45 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/2.443, allocations: 0 / 0.9445 GB, free: 46.45 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002322/2.445, allocations: 0.8244 MB / 0.9453 GB, free: 45.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003648/2.449, allocations: 0.6004 MB / 0.9459 GB, free: 45.29 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00609/2.455, allocations: 2.426 MB / 0.9483 GB, free: 43.33 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009031/2.456, allocations: 1.324 MB / 0.9496 GB, free: 42.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003377/2.459, allocations: 0.6704 MB / 0.9502 GB, free: 41.77 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004485/2.46, allocations: 113.1 kB / 0.9503 GB, free: 41.67 MB / 426.7 MB Notification: Performance of SimCode: time 1.954e-06/2.46, allocations: 4 kB / 0.9503 GB, free: 41.67 MB / 426.7 MB Notification: Performance of Templates: time 0.08664/2.546, allocations: 42.74 MB / 0.9921 GB, free: 4.293 MB / 426.7 MB