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.2_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadModel(Modelica): time 1.913/1.913, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.084e-05/2.105e-05, allocations: 4 kB / 249.6 MB, free: 15.29 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.256, allocations: 44.49 MB / 294.1 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8208/1.077, allocations: 315.9 MB / 0.5957 GB, free: 123.5 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003627/1.077, allocations: 75.03 kB / 0.5958 GB, free: 123.4 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.068/2.146, allocations: 265.1 MB / 0.8547 GB, free: 8.754 MB / 394.7 MB Notification: Performance of FrontEnd: time 2e-06/2.146, allocations: 4 kB / 0.8547 GB, free: 8.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001534/2.146, allocations: 35.94 kB / 0.8547 GB, free: 8.715 MB / 394.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.00616/2.152, allocations: 1.799 MB / 0.8565 GB, free: 6.883 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/2.152, allocations: 16.03 kB / 0.8565 GB, free: 6.867 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/2.153, allocations: 174.1 kB / 0.8566 GB, free: 6.695 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003437/2.157, allocations: 1.112 MB / 0.8577 GB, free: 5.562 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002007/2.157, allocations: 139.1 kB / 0.8579 GB, free: 5.406 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005477/2.158, allocations: 59.95 kB / 0.8579 GB, free: 5.348 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004048/2.162, allocations: 1.597 MB / 0.8595 GB, free: 3.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004165/2.166, allocations: 1.604 MB / 0.861 GB, free: 2.082 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.257e-05/2.166, allocations: 0 / 0.861 GB, free: 2.082 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002245/2.166, allocations: 8 kB / 0.861 GB, free: 2.074 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000187/2.166, allocations: 109.9 kB / 0.8612 GB, free: 1.965 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2613/2.428, allocations: 6.144 MB / 0.8672 GB, free: 43.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00254/2.43, allocations: 1.129 MB / 0.8683 GB, free: 43.7 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/2.432, allocations: 0.6831 MB / 0.8689 GB, free: 43.69 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008322/2.44, allocations: 4.192 MB / 0.873 GB, free: 41.39 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.692e-05/2.44, allocations: 48.19 kB / 0.8731 GB, free: 41.36 MB / 394.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001317/2.442, allocations: 172.8 kB / 0.8732 GB, free: 41.33 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 6.381e-06/2.442, allocations: 3.094 kB / 0.8732 GB, free: 41.33 MB / 394.7 MB Notification: Performance of matching and sorting (n=112): time 0.01803/2.46, allocations: 4.127 MB / 0.8773 GB, free: 40.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/2.46, allocations: 143.4 kB / 0.8774 GB, free: 40.64 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00159/2.461, allocations: 0.8144 MB / 0.8782 GB, free: 40.5 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003428/2.462, allocations: 29.33 kB / 0.8782 GB, free: 40.47 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003956/2.462, allocations: 0.6138 MB / 0.8788 GB, free: 40.17 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005246/2.463, allocations: 374.3 kB / 0.8792 GB, free: 39.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/2.463, allocations: 0 / 0.8792 GB, free: 39.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/2.463, allocations: 363.9 kB / 0.8795 GB, free: 39.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001379/2.464, allocations: 0.6151 MB / 0.8801 GB, free: 39.66 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/2.466, allocations: 0.9305 MB / 0.881 GB, free: 39.31 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01363/2.48, allocations: 2.32 MB / 0.8833 GB, free: 39.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.196e-05/2.48, allocations: 3.656 kB / 0.8833 GB, free: 39.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.01656/2.496, allocations: 3.495 MB / 0.8867 GB, free: 39.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007375/2.497, allocations: 3.494 MB / 0.8901 GB, free: 35.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/2.497, allocations: 10 kB / 0.8901 GB, free: 35.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007673/2.505, allocations: 1.085 MB / 0.8912 GB, free: 35.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/2.507, allocations: 288.3 kB / 0.8915 GB, free: 35.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005209/2.512, allocations: 1.899 MB / 0.8933 GB, free: 35.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002128/2.514, allocations: 59.84 kB / 0.8934 GB, free: 35.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004653/2.515, allocations: 74.14 kB / 0.8935 GB, free: 35.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/2.515, allocations: 3.938 kB / 0.8935 GB, free: 35.02 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01489/2.53, allocations: 2.966 MB / 0.8964 GB, free: 34.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.628e-05/2.53, allocations: 10.91 kB / 0.8964 GB, free: 34.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006824/2.536, allocations: 0.8969 MB / 0.8972 GB, free: 34.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00169/2.538, allocations: 301.1 kB / 0.8975 GB, free: 34.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002178/2.54, allocations: 1.272 MB / 0.8988 GB, free: 34.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/2.542, allocations: 54.25 kB / 0.8988 GB, free: 34.43 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003112/2.543, allocations: 66.22 kB / 0.8989 GB, free: 34.43 MB / 394.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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0005548/2.543, allocations: 146.1 kB / 0.899 GB, free: 34.31 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004564/2.544, allocations: 129.1 kB / 0.8991 GB, free: 34.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00751/2.551, allocations: 2.143 MB / 0.9012 GB, free: 34.14 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.992e-05/2.551, allocations: 12.47 kB / 0.9013 GB, free: 34.14 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.421e-06/2.551, allocations: 0 / 0.9013 GB, free: 34.14 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.98e-05/2.551, allocations: 14.22 kB / 0.9013 GB, free: 34.14 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01054/2.562, allocations: 3.454 MB / 0.9046 GB, free: 33.81 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/2.562, allocations: 3.156 kB / 0.9046 GB, free: 33.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/2.563, allocations: 189.6 kB / 0.9048 GB, free: 33.81 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004001/2.567, allocations: 0.7982 MB / 0.9056 GB, free: 33.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003209/2.568, allocations: 19.72 kB / 0.9056 GB, free: 33.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004963/2.573, allocations: 1.888 MB / 0.9075 GB, free: 33.25 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.17e-06/2.573, allocations: 0 / 0.9075 GB, free: 33.25 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008415/2.581, allocations: 2.868 MB / 0.9103 GB, free: 32.99 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001267/2.582, allocations: 381.3 kB / 0.9106 GB, free: 32.83 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004966/2.583, allocations: 3.953 kB / 0.9106 GB, free: 32.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001735/2.585, allocations: 66.84 kB / 0.9107 GB, free: 32.83 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003779/2.585, allocations: 96.27 kB / 0.9108 GB, free: 32.83 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002096/2.585, allocations: 54.38 kB / 0.9108 GB, free: 32.83 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001122/2.587, allocations: 0.6013 MB / 0.9114 GB, free: 32.72 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.885e-06/2.587, allocations: 0 / 0.9114 GB, free: 32.72 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00523/2.592, allocations: 1.159 MB / 0.9126 GB, free: 32.72 MB / 394.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.003475/2.595, allocations: 1.052 MB / 0.9136 GB, free: 32.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0069/2.602, allocations: 2.385 MB / 0.9159 GB, free: 32.57 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/2.602, allocations: 2.062 kB / 0.9159 GB, free: 32.57 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002427/2.605, allocations: 0.7808 MB / 0.9167 GB, free: 32.55 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003641/2.608, allocations: 0.5193 MB / 0.9172 GB, free: 32.54 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006485/2.615, allocations: 2.395 MB / 0.9195 GB, free: 32.01 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009839/2.616, allocations: 1.313 MB / 0.9208 GB, free: 31.29 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007533/2.617, allocations: 137.2 kB / 0.9209 GB, free: 31.28 MB / 394.7 MB Notification: Performance of SimCode: time 1.875e-06/2.617, allocations: 6.375 kB / 0.9209 GB, free: 31.28 MB / 394.7 MB Notification: Performance of Templates: time 0.05564/2.672, allocations: 34.43 MB / 0.9546 GB, free: 29 MB / 394.7 MB