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.81/1.81, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.563e-05/2.581e-05, allocations: 5.125 kB / 255.3 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08159/0.08164, allocations: 44.5 MB / 299.8 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8549/0.9366, allocations: 316.6 MB / 0.602 GB, free: 90.19 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002313/0.9369, allocations: 75.95 kB / 0.6021 GB, free: 90.12 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.379/2.316, allocations: 266.8 MB / 0.8626 GB, free: 58.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.227e-06/2.316, allocations: 2.75 kB / 0.8626 GB, free: 58.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001831/2.316, allocations: 32.67 kB / 0.8626 GB, free: 58.22 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.006951/2.323, allocations: 1.809 MB / 0.8644 GB, free: 57.49 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/2.323, allocations: 13.59 kB / 0.8644 GB, free: 57.49 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001312/2.325, allocations: 171.6 kB / 0.8646 GB, free: 57.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003723/2.328, allocations: 1.111 MB / 0.8657 GB, free: 57.13 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000239/2.329, allocations: 178.8 kB / 0.8658 GB, free: 57.04 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005787/2.329, allocations: 98.88 kB / 0.8659 GB, free: 57.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004669/2.334, allocations: 1.748 MB / 0.8676 GB, free: 56.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.288e-05/2.334, allocations: 0 / 0.8676 GB, free: 56.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002645/2.334, allocations: 44.59 kB / 0.8677 GB, free: 56.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001907/2.335, allocations: 110.2 kB / 0.8678 GB, free: 56.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004342/2.339, allocations: 1.739 MB / 0.8695 GB, free: 56.84 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01666/2.356, allocations: 6.4 MB / 0.8757 GB, free: 54.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002504/2.358, allocations: 1.15 MB / 0.8769 GB, free: 54.86 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/2.36, allocations: 0.7062 MB / 0.8776 GB, free: 54.85 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008658/2.368, allocations: 4.291 MB / 0.8817 GB, free: 52.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/2.369, allocations: 47.84 kB / 0.8818 GB, free: 52.49 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001376/2.37, allocations: 207.6 kB / 0.882 GB, free: 52.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 6.417e-06/2.37, allocations: 6.906 kB / 0.882 GB, free: 52.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.01146/2.381, allocations: 3.786 MB / 0.8857 GB, free: 51.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/2.382, allocations: 140.9 kB / 0.8858 GB, free: 51.73 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002072/2.384, allocations: 1.095 MB / 0.8869 GB, free: 51.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003435/2.384, allocations: 44.73 kB / 0.8869 GB, free: 51.54 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003942/2.384, allocations: 0.5758 MB / 0.8875 GB, free: 51.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005099/2.385, allocations: 391.8 kB / 0.8879 GB, free: 50.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001479/2.385, allocations: 24.66 kB / 0.8879 GB, free: 50.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/2.385, allocations: 369.3 kB / 0.8883 GB, free: 50.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/2.387, allocations: 0.6221 MB / 0.8889 GB, free: 50.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/2.388, allocations: 0.9509 MB / 0.8898 GB, free: 50.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001766/2.39, allocations: 0.7459 MB / 0.8905 GB, free: 50.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/2.39, allocations: 2.375 kB / 0.8905 GB, free: 50.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005219/2.395, allocations: 1.992 MB / 0.8925 GB, free: 50.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007429/2.396, allocations: 3.489 MB / 0.8959 GB, free: 46.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.22e-05/2.396, allocations: 10.47 kB / 0.8959 GB, free: 46.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008395/2.405, allocations: 1.212 MB / 0.8971 GB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001728/2.407, allocations: 290 kB / 0.8973 GB, free: 46.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002892/2.409, allocations: 1.535 MB / 0.8988 GB, free: 46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002119/2.412, allocations: 86.08 kB / 0.8989 GB, free: 46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003798/2.412, allocations: 69.69 kB / 0.899 GB, free: 46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/2.412, allocations: 3.969 kB / 0.899 GB, free: 46 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004156/2.416, allocations: 1.757 MB / 0.9007 GB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.502e-05/2.416, allocations: 10.78 kB / 0.9007 GB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006676/2.423, allocations: 0.9393 MB / 0.9016 GB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001689/2.425, allocations: 310.2 kB / 0.9019 GB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001986/2.427, allocations: 1.202 MB / 0.9031 GB, free: 45.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/2.428, allocations: 89.53 kB / 0.9032 GB, free: 45.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001975/2.428, allocations: 69.41 kB / 0.9033 GB, free: 45.41 MB / 410.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.0005106/2.429, allocations: 184.6 kB / 0.9034 GB, free: 45.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004701/2.43, allocations: 148.3 kB / 0.9036 GB, free: 45.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005117/2.435, allocations: 1.998 MB / 0.9055 GB, free: 45.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.776e-05/2.435, allocations: 16.06 kB / 0.9055 GB, free: 45.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.006e-06/2.435, allocations: 0 / 0.9055 GB, free: 45.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.711e-05/2.435, allocations: 11.5 kB / 0.9056 GB, free: 45.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007691/2.442, allocations: 3.405 MB / 0.9089 GB, free: 44.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.591e-06/2.443, allocations: 2.656 kB / 0.9089 GB, free: 44.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001243/2.444, allocations: 196.3 kB / 0.9091 GB, free: 44.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004842/2.449, allocations: 0.9365 MB / 0.91 GB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003013/2.449, allocations: 36.91 kB / 0.91 GB, free: 44.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002631/2.452, allocations: 1.554 MB / 0.9115 GB, free: 44.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.866e-06/2.452, allocations: 0 / 0.9115 GB, free: 44.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005792/2.458, allocations: 2.719 MB / 0.9142 GB, free: 43.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/2.459, allocations: 399.8 kB / 0.9146 GB, free: 43.74 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000433/2.459, allocations: 28.48 kB / 0.9146 GB, free: 43.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001648/2.461, allocations: 88.97 kB / 0.9147 GB, free: 43.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003329/2.461, allocations: 102.5 kB / 0.9148 GB, free: 43.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001919/2.462, allocations: 49.16 kB / 0.9148 GB, free: 43.73 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001523/2.463, allocations: 0.8228 MB / 0.9156 GB, free: 43.61 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.741e-06/2.463, allocations: 0 / 0.9156 GB, free: 43.61 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004697/2.468, allocations: 1.244 MB / 0.9168 GB, free: 43.41 MB / 410.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.002994/2.471, allocations: 1.072 MB / 0.9179 GB, free: 43.09 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007352/2.478, allocations: 2.509 MB / 0.9203 GB, free: 43.04 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.775e-06/2.478, allocations: 0 / 0.9203 GB, free: 43.04 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002334/2.481, allocations: 0.8133 MB / 0.9211 GB, free: 43.02 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003767/2.484, allocations: 0.5892 MB / 0.9217 GB, free: 43 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006362/2.491, allocations: 2.497 MB / 0.9242 GB, free: 42.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008897/2.492, allocations: 1.316 MB / 0.9254 GB, free: 41.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007581/2.493, allocations: 141 kB / 0.9256 GB, free: 41.75 MB / 410.7 MB Notification: Performance of SimCode: time 2.311e-06/2.493, allocations: 0 / 0.9256 GB, free: 41.75 MB / 410.7 MB Notification: Performance of Templates: time 0.05688/2.549, allocations: 35.43 MB / 0.9602 GB, free: 36.65 MB / 410.7 MB