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_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.976/1.976, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.98e-05/2.99e-05, allocations: 4 kB / 292.1 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09093/0.09099, allocations: 50.41 MB / 342.6 MB, free: 5.887 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9091/1, allocations: 321.9 MB / 0.6489 GB, free: 38.4 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/1, allocations: 87.45 kB / 0.6489 GB, free: 38.36 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.435/2.436, allocations: 274.5 MB / 0.917 GB, free: 67.65 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.172e-06/2.436, allocations: 2.531 kB / 0.917 GB, free: 67.65 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001811/2.436, allocations: 39.77 kB / 0.917 GB, free: 67.64 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006577/2.443, allocations: 1.805 MB / 0.9188 GB, free: 66.74 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/2.443, allocations: 14.09 kB / 0.9188 GB, free: 66.74 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001153/2.444, allocations: 176.8 kB / 0.919 GB, free: 66.66 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003428/2.447, allocations: 1.116 MB / 0.92 GB, free: 66.33 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001889/2.448, allocations: 181.4 kB / 0.9202 GB, free: 66.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000342/2.448, allocations: 101.5 kB / 0.9203 GB, free: 66.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003893/2.452, allocations: 1.721 MB / 0.922 GB, free: 66.05 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.661e-05/2.452, allocations: 7.844 kB / 0.922 GB, free: 66.05 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002294/2.452, allocations: 40.14 kB / 0.922 GB, free: 66.05 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001826/2.452, allocations: 117.1 kB / 0.9222 GB, free: 66.05 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004229/2.457, allocations: 1.727 MB / 0.9238 GB, free: 66.04 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01668/2.473, allocations: 6.371 MB / 0.9301 GB, free: 64.03 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002561/2.476, allocations: 1.147 MB / 0.9312 GB, free: 64 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001546/2.478, allocations: 0.6986 MB / 0.9319 GB, free: 63.99 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007768/2.485, allocations: 4.264 MB / 0.936 GB, free: 61.63 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.626e-05/2.485, allocations: 50.41 kB / 0.9361 GB, free: 61.59 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001366/2.487, allocations: 207.6 kB / 0.9363 GB, free: 61.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 6.363e-06/2.487, allocations: 6.625 kB / 0.9363 GB, free: 61.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=112): time 0.0114/2.498, allocations: 3.777 MB / 0.94 GB, free: 60.97 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/2.498, allocations: 145.3 kB / 0.9401 GB, free: 60.81 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002082/2.5, allocations: 1.088 MB / 0.9412 GB, free: 60.65 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000348/2.501, allocations: 45.95 kB / 0.9412 GB, free: 60.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004891/2.501, allocations: 0.6045 MB / 0.9418 GB, free: 60.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004562/2.502, allocations: 381.1 kB / 0.9422 GB, free: 60.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/2.502, allocations: 25.84 kB / 0.9422 GB, free: 60.05 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/2.502, allocations: 363.2 kB / 0.9425 GB, free: 59.73 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/2.504, allocations: 0.6259 MB / 0.9431 GB, free: 59.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/2.505, allocations: 0.9462 MB / 0.9441 GB, free: 58.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/2.507, allocations: 0.7424 MB / 0.9448 GB, free: 58.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.568e-05/2.507, allocations: 7.828 kB / 0.9448 GB, free: 58.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005404/2.513, allocations: 2.052 MB / 0.9468 GB, free: 57.89 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007194/2.513, allocations: 3.517 MB / 0.9502 GB, free: 54.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.132e-05/2.514, allocations: 12.5 kB / 0.9503 GB, free: 54.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008566/2.522, allocations: 1.203 MB / 0.9514 GB, free: 54.06 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001801/2.524, allocations: 300.1 kB / 0.9517 GB, free: 54.05 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003124/2.527, allocations: 1.525 MB / 0.9532 GB, free: 53.15 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002193/2.529, allocations: 84.67 kB / 0.9533 GB, free: 53.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004076/2.53, allocations: 71.22 kB / 0.9534 GB, free: 53.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/2.53, allocations: 6.812 kB / 0.9534 GB, free: 53.11 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004534/2.534, allocations: 1.827 MB / 0.9551 GB, free: 52.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.499e-05/2.534, allocations: 7.469 kB / 0.9552 GB, free: 52.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007456/2.542, allocations: 1.057 MB / 0.9562 GB, free: 52.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001866/2.544, allocations: 302.8 kB / 0.9565 GB, free: 52.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/2.546, allocations: 1.368 MB / 0.9578 GB, free: 51.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002069/2.548, allocations: 91.17 kB / 0.9579 GB, free: 51.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003876/2.549, allocations: 67.28 kB / 0.958 GB, free: 51.51 MB / 442.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.0005024/2.549, allocations: 195.6 kB / 0.9581 GB, free: 51.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004624/2.55, allocations: 151 kB / 0.9583 GB, free: 51.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008218/2.558, allocations: 1.991 MB / 0.9602 GB, free: 50.53 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.137e-05/2.558, allocations: 13.03 kB / 0.9602 GB, free: 50.53 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/2.558, allocations: 3.938 kB / 0.9603 GB, free: 50.52 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.326e-05/2.558, allocations: 9.984 kB / 0.9603 GB, free: 50.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01288/2.571, allocations: 3.405 MB / 0.9636 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/2.571, allocations: 2.719 kB / 0.9636 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002069/2.573, allocations: 190.1 kB / 0.9638 GB, free: 49.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007783/2.581, allocations: 0.9422 MB / 0.9647 GB, free: 48.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004084/2.582, allocations: 30.55 kB / 0.9647 GB, free: 48.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004636/2.586, allocations: 1.557 MB / 0.9662 GB, free: 48.01 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.009e-06/2.586, allocations: 0 / 0.9662 GB, free: 48.01 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0109/2.597, allocations: 2.708 MB / 0.9689 GB, free: 45.59 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/2.599, allocations: 406.8 kB / 0.9693 GB, free: 45.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005613/2.6, allocations: 24 kB / 0.9693 GB, free: 45.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001885/2.602, allocations: 81.7 kB / 0.9694 GB, free: 45.15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004014/2.602, allocations: 99.56 kB / 0.9695 GB, free: 45.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002182/2.603, allocations: 55.41 kB / 0.9695 GB, free: 45.04 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001622/2.604, allocations: 0.8287 MB / 0.9703 GB, free: 44.29 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.123e-06/2.604, allocations: 0 / 0.9703 GB, free: 44.29 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005545/2.61, allocations: 1.243 MB / 0.9715 GB, free: 43.07 MB / 442.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.003575/2.613, allocations: 1.095 MB / 0.9726 GB, free: 42.21 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007834/2.621, allocations: 2.573 MB / 0.9751 GB, free: 39.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/2.621, allocations: 4 kB / 0.9751 GB, free: 39.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002396/2.624, allocations: 0.8127 MB / 0.9759 GB, free: 39.15 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003768/2.628, allocations: 0.5905 MB / 0.9765 GB, free: 38.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006547/2.634, allocations: 2.446 MB / 0.9789 GB, free: 36.66 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009029/2.635, allocations: 1.321 MB / 0.9802 GB, free: 35.53 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003503/2.639, allocations: 0.6703 MB / 0.9808 GB, free: 35.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005059/2.639, allocations: 110.4 kB / 0.9809 GB, free: 34.99 MB / 442.7 MB Notification: Performance of SimCode: time 1.647e-06/2.639, allocations: 0 / 0.9809 GB, free: 34.99 MB / 442.7 MB Notification: Performance of Templates: time 0.08795/2.727, allocations: 42.75 MB / 1.023 GB, free: 10.74 MB / 458.7 MB