Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadModel(Modelica): time 0.9732/0.9732, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 4.072e-05/4.091e-05, allocations: 7.984 kB / 151.4 MB, free: 15.58 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1973/0.1974, allocations: 25.15 MB / 176.5 MB, free: 4 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6125/0.8099, allocations: 236.4 MB / 412.9 MB, free: 34.63 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001772/0.8102, allocations: 63.97 kB / 413 MB, free: 34.57 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5613/1.371, allocations: 122.3 MB / 0.5227 GB, free: 5.391 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.815e-06/1.372, allocations: 0 / 0.5227 GB, free: 5.391 MB / 234.7 MB Notification: Performance of Transformations before backend: time 6.703e-05/1.372, allocations: 23.88 kB / 0.5228 GB, free: 5.367 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.00258/1.374, allocations: 1.016 MB / 0.5237 GB, free: 4.305 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/1.374, allocations: 12.03 kB / 0.5238 GB, free: 4.293 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003205/1.375, allocations: 83.06 kB / 0.5238 GB, free: 4.211 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001384/1.376, allocations: 0.5833 MB / 0.5244 GB, free: 3.586 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000161/1.376, allocations: 116.3 kB / 0.5245 GB, free: 3.461 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/1.376, allocations: 51.92 kB / 0.5246 GB, free: 3.41 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/1.378, allocations: 0.8031 MB / 0.5254 GB, free: 2.582 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.751e-05/1.378, allocations: 7.938 kB / 0.5254 GB, free: 2.574 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001041/1.378, allocations: 23.98 kB / 0.5254 GB, free: 2.551 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.986e-05/1.378, allocations: 44.97 kB / 0.5254 GB, free: 2.504 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/1.38, allocations: 0.7204 MB / 0.5261 GB, free: 1.785 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1442/1.524, allocations: 3.116 MB / 0.5292 GB, free: 35.39 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001417/1.525, allocations: 0.5998 MB / 0.5298 GB, free: 35.36 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006925/1.526, allocations: 340.2 kB / 0.5301 GB, free: 35.36 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0034/1.53, allocations: 1.906 MB / 0.5319 GB, free: 34.32 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/1.53, allocations: 41.53 kB / 0.532 GB, free: 34.29 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 3.959e-06/1.53, allocations: 2.656 kB / 0.532 GB, free: 34.29 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.005456/1.535, allocations: 2.06 MB / 0.534 GB, free: 33.9 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/1.535, allocations: 84.7 kB / 0.5341 GB, free: 33.8 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008291/1.536, allocations: 0.5429 MB / 0.5346 GB, free: 33.68 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001008/1.536, allocations: 37.05 kB / 0.5346 GB, free: 33.64 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001848/1.536, allocations: 344.4 kB / 0.535 GB, free: 33.45 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/1.537, allocations: 207.6 kB / 0.5352 GB, free: 33.34 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.91e-05/1.537, allocations: 9.312 kB / 0.5352 GB, free: 33.34 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.138e-05/1.537, allocations: 347.6 kB / 0.5355 GB, free: 33.02 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006299/1.537, allocations: 311.9 kB / 0.5358 GB, free: 33.02 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007231/1.538, allocations: 463.9 kB / 0.5363 GB, free: 32.87 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007364/1.539, allocations: 360.1 kB / 0.5366 GB, free: 32.86 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.824e-06/1.539, allocations: 3.875 kB / 0.5366 GB, free: 32.86 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002253/1.541, allocations: 0.9949 MB / 0.5376 GB, free: 32.79 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/1.541, allocations: 7.844 kB / 0.5376 GB, free: 32.79 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/1.541, allocations: 6.531 kB / 0.5376 GB, free: 32.79 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/1.543, allocations: 419 kB / 0.538 GB, free: 32.78 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008121/1.543, allocations: 152.1 kB / 0.5381 GB, free: 32.78 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/1.545, allocations: 1.012 MB / 0.5391 GB, free: 32.26 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/1.546, allocations: 54.64 kB / 0.5392 GB, free: 32.25 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/1.546, allocations: 30.64 kB / 0.5392 GB, free: 32.25 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = max(0.0, 0.0) start = max(tank2.level_start, 1e-15) unit = "m" stateSelect=StateSelect.prefer ) "Level height of tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank2.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = max(0.0, 0.0) start = max(tank1.level_start, 1e-15) unit = "m" stateSelect=StateSelect.prefer ) "Level height of tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank1.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003406/1.546, allocations: 183.8 kB / 0.5394 GB, free: 32.15 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001817/1.547, allocations: 71.19 kB / 0.5394 GB, free: 32.11 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00231/1.549, allocations: 1.018 MB / 0.5404 GB, free: 32.04 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.541e-06/1.549, allocations: 7.781 kB / 0.5404 GB, free: 32.04 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.095e-06/1.549, allocations: 0.5625 kB / 0.5404 GB, free: 32.04 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/1.549, allocations: 3.141 kB / 0.5404 GB, free: 32.04 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003734/1.553, allocations: 1.885 MB / 0.5423 GB, free: 31.71 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.812e-06/1.553, allocations: 0 / 0.5423 GB, free: 31.71 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007179/1.554, allocations: 120.8 kB / 0.5424 GB, free: 31.71 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001545/1.555, allocations: 421.8 kB / 0.5428 GB, free: 31.7 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.52e-05/1.555, allocations: 11.5 kB / 0.5428 GB, free: 31.7 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001509/1.557, allocations: 1.033 MB / 0.5438 GB, free: 31.18 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.881e-06/1.557, allocations: 0 / 0.5438 GB, free: 31.18 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00298/1.56, allocations: 1.492 MB / 0.5453 GB, free: 30.98 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003095/1.56, allocations: 151.7 kB / 0.5454 GB, free: 30.86 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/1.56, allocations: 10.59 kB / 0.5454 GB, free: 30.86 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008432/1.561, allocations: 67.98 kB / 0.5455 GB, free: 30.85 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/1.561, allocations: 54.72 kB / 0.5456 GB, free: 30.85 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.826e-05/1.562, allocations: 24.8 kB / 0.5456 GB, free: 30.85 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006701/1.562, allocations: 435.4 kB / 0.546 GB, free: 30.75 MB / 234.7 MB Notification: Performance of sort global known variables: time 9.6e-07/1.562, allocations: 0 / 0.546 GB, free: 30.75 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001556/1.564, allocations: 429.6 kB / 0.5464 GB, free: 30.75 MB / 234.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001138/1.565, allocations: 0.5149 MB / 0.5469 GB, free: 30.66 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002276/1.567, allocations: 0.8372 MB / 0.5477 GB, free: 30.64 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.96e-06/1.567, allocations: 0 / 0.5477 GB, free: 30.64 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001484/1.569, allocations: 486.7 kB / 0.5482 GB, free: 30.64 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002101/1.571, allocations: 365.8 kB / 0.5485 GB, free: 30.63 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003815/1.575, allocations: 1.363 MB / 0.5499 GB, free: 30.33 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/1.575, allocations: 0.9771 MB / 0.5508 GB, free: 29.63 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003438/1.576, allocations: 76.52 kB / 0.5509 GB, free: 29.62 MB / 234.7 MB Notification: Performance of SimCode: time 1.72e-06/1.576, allocations: 0 / 0.5509 GB, free: 29.62 MB / 234.7 MB Notification: Performance of Templates: time 0.02818/1.604, allocations: 17.51 MB / 0.568 GB, free: 28.69 MB / 234.7 MB