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_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 1.612/1.612, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.804e-05/2.816e-05, allocations: 0 / 225 MB, free: 2.336 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2116, allocations: 38.77 MB / 263.8 MB, free: 9.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.743/0.9547, allocations: 311.1 MB / 0.5614 GB, free: 75.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.9549, allocations: 82.22 kB / 0.5615 GB, free: 75.17 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6021/1.557, allocations: 130.2 MB / 0.6887 GB, free: 93.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.088e-06/1.557, allocations: 0 / 0.6887 GB, free: 93.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.633e-05/1.557, allocations: 26.8 kB / 0.6887 GB, free: 93.33 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.002755/1.56, allocations: 1.067 MB / 0.6897 GB, free: 92.6 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/1.56, allocations: 14.47 kB / 0.6897 GB, free: 92.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005298/1.561, allocations: 94.8 kB / 0.6898 GB, free: 92.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/1.562, allocations: 0.6557 MB / 0.6905 GB, free: 92.15 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/1.562, allocations: 112 kB / 0.6906 GB, free: 92.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001618/1.563, allocations: 57.56 kB / 0.6906 GB, free: 92.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001788/1.564, allocations: 0.8728 MB / 0.6915 GB, free: 91.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/1.564, allocations: 9.156 kB / 0.6915 GB, free: 91.69 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001169/1.564, allocations: 23.28 kB / 0.6915 GB, free: 91.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.909e-05/1.565, allocations: 49.94 kB / 0.6916 GB, free: 91.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00165/1.566, allocations: 0.8092 MB / 0.6924 GB, free: 91.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006883/1.573, allocations: 3.321 MB / 0.6956 GB, free: 89.45 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/1.574, allocations: 0.6363 MB / 0.6962 GB, free: 89.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006435/1.575, allocations: 357.6 kB / 0.6966 GB, free: 89.04 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003419/1.578, allocations: 2.068 MB / 0.6986 GB, free: 87.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/1.579, allocations: 40.5 kB / 0.6986 GB, free: 87.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 4.373e-06/1.579, allocations: 0 / 0.6986 GB, free: 87.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=66): time 0.005608/1.584, allocations: 2.214 MB / 0.7008 GB, free: 84.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/1.584, allocations: 85.67 kB / 0.7009 GB, free: 84.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009438/1.585, allocations: 0.5894 MB / 0.7014 GB, free: 84.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/1.585, allocations: 45.69 kB / 0.7015 GB, free: 84.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002195/1.586, allocations: 332.5 kB / 0.7018 GB, free: 83.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002035/1.586, allocations: 225.6 kB / 0.702 GB, free: 83.63 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.582e-05/1.586, allocations: 16 kB / 0.702 GB, free: 83.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/1.586, allocations: 390.7 kB / 0.7024 GB, free: 83.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007285/1.587, allocations: 345.4 kB / 0.7027 GB, free: 82.89 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007899/1.588, allocations: 0.4925 MB / 0.7032 GB, free: 82.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007799/1.588, allocations: 405.9 kB / 0.7036 GB, free: 81.94 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/1.588, allocations: 3.938 kB / 0.7036 GB, free: 81.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002429/1.591, allocations: 1.109 MB / 0.7047 GB, free: 80.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003202/1.591, allocations: 1.575 MB / 0.7062 GB, free: 79.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/1.591, allocations: 4 kB / 0.7062 GB, free: 79.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001552/1.593, allocations: 432.1 kB / 0.7066 GB, free: 78.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000896/1.594, allocations: 167.7 kB / 0.7068 GB, free: 78.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/1.595, allocations: 1.017 MB / 0.7078 GB, free: 77.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009526/1.596, allocations: 55.86 kB / 0.7078 GB, free: 77.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/1.596, allocations: 31.98 kB / 0.7079 GB, free: 77.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/1.596, allocations: 6.344 kB / 0.7079 GB, free: 77.4 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001971/1.598, allocations: 0.9052 MB / 0.7088 GB, free: 76.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/1.598, allocations: 4 kB / 0.7088 GB, free: 76.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007485/1.599, allocations: 252.5 kB / 0.709 GB, free: 76.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008865/1.6, allocations: 163.8 kB / 0.7092 GB, free: 76.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007936/1.601, allocations: 0.8021 MB / 0.71 GB, free: 75.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008399/1.602, allocations: 47.92 kB / 0.71 GB, free: 75.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001014/1.602, allocations: 35.98 kB / 0.71 GB, free: 75.18 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.0002783/1.602, allocations: 148.7 kB / 0.7102 GB, free: 75.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002037/1.602, allocations: 83.06 kB / 0.7103 GB, free: 74.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002366/1.605, allocations: 1.079 MB / 0.7113 GB, free: 73.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.57e-06/1.605, allocations: 8 kB / 0.7113 GB, free: 73.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.264e-06/1.605, allocations: 0 / 0.7113 GB, free: 73.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/1.605, allocations: 3.984 kB / 0.7113 GB, free: 73.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003765/1.608, allocations: 1.993 MB / 0.7133 GB, free: 71.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.013e-06/1.608, allocations: 0 / 0.7133 GB, free: 71.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007715/1.609, allocations: 115.9 kB / 0.7134 GB, free: 71.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001555/1.611, allocations: 448.1 kB / 0.7138 GB, free: 71.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00012/1.611, allocations: 12 kB / 0.7138 GB, free: 71.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001296/1.612, allocations: 1.035 MB / 0.7148 GB, free: 70.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.612, allocations: 0 / 0.7148 GB, free: 70.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002896/1.615, allocations: 1.572 MB / 0.7164 GB, free: 68.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005502/1.616, allocations: 256 kB / 0.7166 GB, free: 68.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/1.616, allocations: 8 kB / 0.7166 GB, free: 68.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007961/1.617, allocations: 59.86 kB / 0.7167 GB, free: 68.26 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/1.617, allocations: 48.7 kB / 0.7167 GB, free: 68.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/1.617, allocations: 31.97 kB / 0.7167 GB, free: 68.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006986/1.618, allocations: 467.1 kB / 0.7172 GB, free: 67.73 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.048e-06/1.618, allocations: 0 / 0.7172 GB, free: 67.73 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002035/1.62, allocations: 0.6439 MB / 0.7178 GB, free: 67.09 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.001618/1.621, allocations: 0.5938 MB / 0.7184 GB, free: 66.53 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003341/1.625, allocations: 1.325 MB / 0.7197 GB, free: 65.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.947e-06/1.625, allocations: 12 kB / 0.7197 GB, free: 65.19 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/1.626, allocations: 462.5 kB / 0.7201 GB, free: 64.75 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/1.628, allocations: 349.6 kB / 0.7205 GB, free: 64.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003288/1.631, allocations: 1.346 MB / 0.7218 GB, free: 63.06 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/1.632, allocations: 1.016 MB / 0.7228 GB, free: 62.02 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001699/1.634, allocations: 369.2 kB / 0.7231 GB, free: 61.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002253/1.634, allocations: 63.42 kB / 0.7232 GB, free: 61.6 MB / 362.7 MB Notification: Performance of SimCode: time 1.811e-06/1.634, allocations: 0 / 0.7232 GB, free: 61.6 MB / 362.7 MB Notification: Performance of Templates: time 0.04515/1.679, allocations: 22.62 MB / 0.7453 GB, free: 39.06 MB / 362.7 MB