Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank2.level|tank2.ports.1..m_flow",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.629/1.629, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.305e-05, allocations: 3.938 kB / 225 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2125/0.2126, allocations: 38.76 MB / 263.7 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7308/0.9434, allocations: 311.1 MB / 0.5614 GB, free: 75.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.9437, allocations: 74.17 kB / 0.5614 GB, free: 75.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6087/1.552, allocations: 130.2 MB / 0.6886 GB, free: 93.4 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.22e-06/1.552, allocations: 0 / 0.6886 GB, free: 93.4 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.326e-05/1.553, allocations: 27.47 kB / 0.6887 GB, free: 93.39 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003133/1.556, allocations: 1.074 MB / 0.6897 GB, free: 92.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/1.556, allocations: 10.19 kB / 0.6897 GB, free: 92.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006189/1.556, allocations: 98.09 kB / 0.6898 GB, free: 92.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001763/1.558, allocations: 0.6452 MB / 0.6905 GB, free: 92.22 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/1.558, allocations: 111.1 kB / 0.6906 GB, free: 92.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001785/1.559, allocations: 60.28 kB / 0.6906 GB, free: 92.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001854/1.56, allocations: 0.8761 MB / 0.6915 GB, free: 91.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/1.56, allocations: 7.812 kB / 0.6915 GB, free: 91.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/1.561, allocations: 23.39 kB / 0.6915 GB, free: 91.73 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.501e-05/1.561, allocations: 49.61 kB / 0.6916 GB, free: 91.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001764/1.562, allocations: 0.808 MB / 0.6923 GB, free: 91.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00695/1.569, allocations: 3.31 MB / 0.6956 GB, free: 89.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001286/1.571, allocations: 0.6395 MB / 0.6962 GB, free: 89.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006779/1.571, allocations: 350.8 kB / 0.6965 GB, free: 89.1 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003815/1.575, allocations: 2.073 MB / 0.6986 GB, free: 87.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.976e-05/1.575, allocations: 43.12 kB / 0.6986 GB, free: 87.22 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 3.944e-06/1.575, allocations: 4 kB / 0.6986 GB, free: 87.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.005871/1.581, allocations: 2.21 MB / 0.7008 GB, free: 84.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/1.581, allocations: 85.61 kB / 0.7008 GB, free: 84.85 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009922/1.582, allocations: 0.5972 MB / 0.7014 GB, free: 84.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001436/1.583, allocations: 41.7 kB / 0.7015 GB, free: 84.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/1.583, allocations: 358.9 kB / 0.7018 GB, free: 83.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002269/1.583, allocations: 216.7 kB / 0.702 GB, free: 83.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.8e-05/1.583, allocations: 20 kB / 0.702 GB, free: 83.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.08e-05/1.583, allocations: 346.8 kB / 0.7024 GB, free: 83.27 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000738/1.584, allocations: 345.4 kB / 0.7027 GB, free: 82.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008196/1.585, allocations: 499.2 kB / 0.7032 GB, free: 82.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008073/1.586, allocations: 397.9 kB / 0.7035 GB, free: 82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/1.586, allocations: 0 / 0.7035 GB, free: 82 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002401/1.588, allocations: 1.071 MB / 0.7046 GB, free: 80.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003356/1.588, allocations: 1.583 MB / 0.7061 GB, free: 79.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/1.588, allocations: 4 kB / 0.7061 GB, free: 79.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001607/1.59, allocations: 436.1 kB / 0.7066 GB, free: 78.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009178/1.591, allocations: 159.7 kB / 0.7067 GB, free: 78.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001484/1.593, allocations: 1.017 MB / 0.7077 GB, free: 77.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/1.594, allocations: 47.83 kB / 0.7077 GB, free: 77.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/1.594, allocations: 35.98 kB / 0.7078 GB, free: 77.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/1.594, allocations: 4.781 kB / 0.7078 GB, free: 77.5 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002166/1.596, allocations: 0.9132 MB / 0.7087 GB, free: 76.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/1.596, allocations: 4 kB / 0.7087 GB, free: 76.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007581/1.597, allocations: 235.1 kB / 0.7089 GB, free: 76.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008923/1.598, allocations: 167.8 kB / 0.7091 GB, free: 76.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008059/1.599, allocations: 0.8023 MB / 0.7099 GB, free: 75.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006959/1.599, allocations: 43.89 kB / 0.7099 GB, free: 75.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001055/1.599, allocations: 31.98 kB / 0.7099 GB, free: 75.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003113/1.6, allocations: 156.8 kB / 0.7101 GB, free: 75.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000254/1.6, allocations: 79.06 kB / 0.7101 GB, free: 75.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002439/1.602, allocations: 1.071 MB / 0.7112 GB, free: 73.97 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/1.603, allocations: 11.98 kB / 0.7112 GB, free: 73.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.79e-06/1.603, allocations: 0 / 0.7112 GB, free: 73.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.089e-05/1.603, allocations: 4 kB / 0.7112 GB, free: 73.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003982/1.607, allocations: 1.993 MB / 0.7132 GB, free: 71.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.264e-06/1.607, allocations: 7.5 kB / 0.7132 GB, free: 71.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007787/1.607, allocations: 115.9 kB / 0.7133 GB, free: 71.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001747/1.609, allocations: 455.4 kB / 0.7137 GB, free: 71.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001355/1.609, allocations: 15.98 kB / 0.7137 GB, free: 71.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001405/1.611, allocations: 1.023 MB / 0.7147 GB, free: 70.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.078e-06/1.611, allocations: 0 / 0.7147 GB, free: 70.3 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003019/1.614, allocations: 1.576 MB / 0.7163 GB, free: 68.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000623/1.615, allocations: 259.9 kB / 0.7165 GB, free: 68.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001878/1.615, allocations: 12 kB / 0.7165 GB, free: 68.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008151/1.616, allocations: 51.91 kB / 0.7166 GB, free: 68.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001751/1.616, allocations: 60.16 kB / 0.7166 GB, free: 68.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/1.616, allocations: 27.98 kB / 0.7167 GB, free: 68.28 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007227/1.617, allocations: 471.1 kB / 0.7171 GB, free: 67.83 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.04e-07/1.617, allocations: 0 / 0.7171 GB, free: 67.83 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00228/1.619, allocations: 0.6284 MB / 0.7177 GB, free: 67.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001623/1.621, allocations: 0.6033 MB / 0.7183 GB, free: 66.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003252/1.624, allocations: 1.306 MB / 0.7196 GB, free: 65.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.028e-06/1.624, allocations: 0 / 0.7196 GB, free: 65.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/1.625, allocations: 457.9 kB / 0.72 GB, free: 64.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002131/1.627, allocations: 351.8 kB / 0.7204 GB, free: 64.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003497/1.631, allocations: 1.387 MB / 0.7217 GB, free: 63.14 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004833/1.631, allocations: 1.003 MB / 0.7227 GB, free: 62.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004246/1.632, allocations: 83.39 kB / 0.7228 GB, free: 62.03 MB / 362.7 MB Notification: Performance of SimCode: time 1.739e-06/1.632, allocations: 4 kB / 0.7228 GB, free: 62.03 MB / 362.7 MB Notification: Performance of Templates: time 0.02871/1.66, allocations: 19.18 MB / 0.7415 GB, free: 42.96 MB / 362.7 MB