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.864/1.864, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.027e-05/4.041e-05, allocations: 4 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08167/0.08173, allocations: 44.5 MB / 299.9 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7957/0.8775, allocations: 316.6 MB / 0.602 GB, free: 90.72 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.8778, allocations: 79.11 kB / 0.6021 GB, free: 90.64 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.399/2.277, allocations: 266.8 MB / 0.8626 GB, free: 58.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.985e-06/2.277, allocations: 0 / 0.8626 GB, free: 58.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001937/2.277, allocations: 42.28 kB / 0.8627 GB, free: 58.3 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.006572/2.284, allocations: 1.805 MB / 0.8644 GB, free: 57.58 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/2.284, allocations: 11.03 kB / 0.8644 GB, free: 57.58 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001207/2.285, allocations: 177.4 kB / 0.8646 GB, free: 57.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003488/2.289, allocations: 1.112 MB / 0.8657 GB, free: 57.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002233/2.289, allocations: 171.8 kB / 0.8659 GB, free: 57.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005159/2.289, allocations: 101.5 kB / 0.866 GB, free: 57.13 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00435/2.294, allocations: 1.729 MB / 0.8677 GB, free: 56.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.228e-05/2.294, allocations: 5.906 kB / 0.8677 GB, free: 56.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002707/2.294, allocations: 43.95 kB / 0.8677 GB, free: 56.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002108/2.294, allocations: 113.4 kB / 0.8678 GB, free: 56.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004966/2.299, allocations: 1.722 MB / 0.8695 GB, free: 56.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01676/2.316, allocations: 6.401 MB / 0.8757 GB, free: 55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002729/2.319, allocations: 1.149 MB / 0.8769 GB, free: 54.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001693/2.321, allocations: 0.6985 MB / 0.8775 GB, free: 54.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008355/2.329, allocations: 4.286 MB / 0.8817 GB, free: 52.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/2.329, allocations: 42.66 kB / 0.8818 GB, free: 52.6 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001388/2.331, allocations: 216.4 kB / 0.882 GB, free: 52.56 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 6.526e-06/2.331, allocations: 0 / 0.882 GB, free: 52.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.01186/2.343, allocations: 3.771 MB / 0.8857 GB, free: 52.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/2.343, allocations: 140.9 kB / 0.8858 GB, free: 51.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002115/2.345, allocations: 1.098 MB / 0.8869 GB, free: 51.69 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003457/2.345, allocations: 52.12 kB / 0.8869 GB, free: 51.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003873/2.346, allocations: 0.5719 MB / 0.8875 GB, free: 51.35 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004528/2.346, allocations: 392.1 kB / 0.8879 GB, free: 51.11 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001476/2.346, allocations: 28.44 kB / 0.8879 GB, free: 51.11 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/2.346, allocations: 367.8 kB / 0.8882 GB, free: 50.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/2.348, allocations: 0.6274 MB / 0.8888 GB, free: 50.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00187/2.35, allocations: 0.9423 MB / 0.8898 GB, free: 50.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001926/2.352, allocations: 0.7475 MB / 0.8905 GB, free: 50.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.201e-05/2.352, allocations: 6.875 kB / 0.8905 GB, free: 50.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005234/2.357, allocations: 1.96 MB / 0.8924 GB, free: 50.32 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007247/2.358, allocations: 3.494 MB / 0.8958 GB, free: 46.69 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.144e-05/2.358, allocations: 10.25 kB / 0.8958 GB, free: 46.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008262/2.366, allocations: 1.209 MB / 0.897 GB, free: 46.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001853/2.368, allocations: 295.3 kB / 0.8973 GB, free: 46.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003121/2.371, allocations: 1.525 MB / 0.8988 GB, free: 46.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002362/2.374, allocations: 90.41 kB / 0.8989 GB, free: 46.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004663/2.374, allocations: 70.36 kB / 0.8989 GB, free: 46.12 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/2.374, allocations: 3.625 kB / 0.8989 GB, free: 46.12 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004354/2.378, allocations: 1.729 MB / 0.9006 GB, free: 46.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.725e-05/2.379, allocations: 7.906 kB / 0.9006 GB, free: 46.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006768/2.385, allocations: 0.9534 MB / 0.9016 GB, free: 46.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00182/2.387, allocations: 306.5 kB / 0.9019 GB, free: 46.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002114/2.389, allocations: 1.208 MB / 0.903 GB, free: 45.54 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001698/2.391, allocations: 81.23 kB / 0.9031 GB, free: 45.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003508/2.391, allocations: 70.75 kB / 0.9032 GB, free: 45.53 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.0005678/2.392, allocations: 188 kB / 0.9034 GB, free: 45.42 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004909/2.393, allocations: 148.9 kB / 0.9035 GB, free: 45.35 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005623/2.398, allocations: 1.995 MB / 0.9055 GB, free: 45.23 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-05/2.398, allocations: 15.53 kB / 0.9055 GB, free: 45.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.331e-06/2.398, allocations: 0 / 0.9055 GB, free: 45.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.004e-05/2.398, allocations: 11.45 kB / 0.9055 GB, free: 45.23 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008475/2.407, allocations: 3.409 MB / 0.9088 GB, free: 44.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.535e-05/2.407, allocations: 3.312 kB / 0.9088 GB, free: 44.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001388/2.408, allocations: 191.5 kB / 0.909 GB, free: 44.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005232/2.414, allocations: 0.9457 MB / 0.9099 GB, free: 44.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003375/2.414, allocations: 29.62 kB / 0.9099 GB, free: 44.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002652/2.417, allocations: 1.554 MB / 0.9115 GB, free: 44.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/2.417, allocations: 7.766 kB / 0.9115 GB, free: 44.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005909/2.423, allocations: 2.705 MB / 0.9141 GB, free: 44.03 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/2.424, allocations: 397 kB / 0.9145 GB, free: 43.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005059/2.425, allocations: 28.64 kB / 0.9145 GB, free: 43.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001953/2.426, allocations: 96.16 kB / 0.9146 GB, free: 43.85 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003952/2.427, allocations: 97.81 kB / 0.9147 GB, free: 43.85 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/2.427, allocations: 52.38 kB / 0.9148 GB, free: 43.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001725/2.429, allocations: 0.8264 MB / 0.9156 GB, free: 43.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.524e-06/2.429, allocations: 0 / 0.9156 GB, free: 43.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005301/2.434, allocations: 1.241 MB / 0.9168 GB, free: 43.53 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.003416/2.438, allocations: 1.086 MB / 0.9178 GB, free: 43.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007475/2.445, allocations: 2.465 MB / 0.9202 GB, free: 43.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.915e-06/2.445, allocations: 0 / 0.9202 GB, free: 43.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002554/2.448, allocations: 0.8087 MB / 0.921 GB, free: 43.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003951/2.452, allocations: 0.5975 MB / 0.9216 GB, free: 43.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006833/2.459, allocations: 2.496 MB / 0.9241 GB, free: 42.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009305/2.46, allocations: 1.31 MB / 0.9253 GB, free: 41.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007664/2.46, allocations: 143.6 kB / 0.9255 GB, free: 41.87 MB / 410.7 MB Notification: Performance of SimCode: time 1.969e-06/2.461, allocations: 0 / 0.9255 GB, free: 41.87 MB / 410.7 MB Notification: Performance of Templates: time 0.05732/2.518, allocations: 35.43 MB / 0.9601 GB, free: 37.07 MB / 410.7 MB