Notification: Performance of loadModel(Modelica): time 1.065/1.065, allocations: 111.2 MB / 118.4 MB, free: 15.59 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.618e-05/2.637e-05, allocations: 6.656 kB / 145.9 MB, free: 4.043 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1441, allocations: 25.16 MB / 171.1 MB, free: 1.766 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5179/0.6621, allocations: 237.8 MB / 408.9 MB, free: 34.34 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002049/0.6624, allocations: 70.27 kB / 409 MB, free: 34.3 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.231/1.893, allocations: 257.5 MB / 0.6508 GB, free: 34.18 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001898/1.893, allocations: 38.62 kB / 0.6508 GB, free: 34.17 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.006654/1.9, allocations: 1.68 MB / 0.6525 GB, free: 33.34 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/1.9, allocations: 9.406 kB / 0.6525 GB, free: 33.34 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009121/1.901, allocations: 157.2 kB / 0.6526 GB, free: 33.26 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003638/1.905, allocations: 1.032 MB / 0.6537 GB, free: 32.93 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/1.905, allocations: 41.27 kB / 0.6537 GB, free: 32.93 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003949/1.905, allocations: 57.88 kB / 0.6538 GB, free: 32.92 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003463/1.909, allocations: 1.27 MB / 0.655 GB, free: 32.91 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003757/1.913, allocations: 1.37 MB / 0.6563 GB, free: 32.67 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.429e-05/1.913, allocations: 2.438 kB / 0.6563 GB, free: 32.67 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000217/1.913, allocations: 3.375 kB / 0.6563 GB, free: 32.67 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001437/1.913, allocations: 92.09 kB / 0.6564 GB, free: 32.67 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01387/1.927, allocations: 6.204 MB / 0.6625 GB, free: 29.39 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00191/1.929, allocations: 0.8356 MB / 0.6633 GB, free: 29.36 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/1.93, allocations: 0.4887 MB / 0.6638 GB, free: 29.36 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005385/1.935, allocations: 2.739 MB / 0.6665 GB, free: 27.81 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/1.936, allocations: 45 kB / 0.6665 GB, free: 27.77 MB / 250.7 MB Notification: Performance of pre-optimization done (n=80): time 4.168e-06/1.936, allocations: 0 / 0.6665 GB, free: 27.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=88): time 0.01589/1.951, allocations: 2.986 MB / 0.6694 GB, free: 27.21 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.614e-05/1.952, allocations: 196 kB / 0.6696 GB, free: 26.99 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001512/1.953, allocations: 0.8032 MB / 0.6704 GB, free: 26.83 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003128/1.953, allocations: 29.58 kB / 0.6704 GB, free: 26.8 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005834/1.954, allocations: 0.6544 MB / 0.671 GB, free: 26.48 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004496/1.955, allocations: 307.4 kB / 0.6713 GB, free: 26.29 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/1.955, allocations: 0 / 0.6713 GB, free: 26.29 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/1.955, allocations: 362.4 kB / 0.6717 GB, free: 25.98 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001098/1.956, allocations: 473.5 kB / 0.6721 GB, free: 25.98 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/1.957, allocations: 0.9292 MB / 0.673 GB, free: 25.43 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004145/1.962, allocations: 0.805 MB / 0.6738 GB, free: 25.41 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.576e-05/1.962, allocations: 3.562 kB / 0.6738 GB, free: 25.41 MB / 250.7 MB Notification: Performance of matching and sorting (n=174) (initialization): time 0.007091/1.969, allocations: 1.793 MB / 0.6756 GB, free: 25.25 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/1.969, allocations: 11.06 kB / 0.6756 GB, free: 25.25 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-05/1.969, allocations: 14.66 kB / 0.6756 GB, free: 25.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/1.97, allocations: 308.9 kB / 0.6759 GB, free: 25.23 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00207/1.972, allocations: 277.6 kB / 0.6762 GB, free: 25.2 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005/1.978, allocations: 2.357 MB / 0.6785 GB, free: 23.63 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002374/1.98, allocations: 83.45 kB / 0.6786 GB, free: 23.62 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003773/1.98, allocations: 73.97 kB / 0.6786 GB, free: 23.62 MB / 250.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = 0.0 start = tank2.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the 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 = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the 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 = 293.15 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: 64 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 157 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005479/1.981, allocations: 180.1 kB / 0.6788 GB, free: 23.48 MB / 250.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00613/1.987, allocations: 1.308 MB / 0.6801 GB, free: 23.34 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005273/1.988, allocations: 134.9 kB / 0.6802 GB, free: 23.27 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006301/1.994, allocations: 1.504 MB / 0.6817 GB, free: 23.14 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/1.994, allocations: 18.39 kB / 0.6817 GB, free: 23.13 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/1.994, allocations: 0 / 0.6817 GB, free: 23.13 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.416e-05/1.994, allocations: 6.844 kB / 0.6817 GB, free: 23.13 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008718/2.003, allocations: 2.588 MB / 0.6842 GB, free: 22.32 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/2.003, allocations: 2.25 kB / 0.6842 GB, free: 22.32 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001324/2.004, allocations: 155.8 kB / 0.6844 GB, free: 22.31 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00183/2.006, allocations: 306.4 kB / 0.6847 GB, free: 22.22 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001921/2.006, allocations: 18.55 kB / 0.6847 GB, free: 22.21 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004331/2.011, allocations: 2.238 MB / 0.6869 GB, free: 20.43 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.188e-06/2.011, allocations: 1.781 kB / 0.6869 GB, free: 20.43 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007237/2.018, allocations: 2.088 MB / 0.6889 GB, free: 19.5 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008212/2.019, allocations: 207.2 kB / 0.6891 GB, free: 19.32 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008554/2.02, allocations: 5.312 kB / 0.6891 GB, free: 19.32 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002033/2.022, allocations: 56.84 kB / 0.6892 GB, free: 19.32 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004275/2.022, allocations: 87.83 kB / 0.6892 GB, free: 19.3 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001636/2.022, allocations: 39.23 kB / 0.6893 GB, free: 19.29 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0015/2.024, allocations: 0.5891 MB / 0.6899 GB, free: 19.02 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.61e-07/2.024, allocations: 1.406 kB / 0.6899 GB, free: 19.02 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.004221/2.028, allocations: 0.7117 MB / 0.6906 GB, free: 18.85 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01113/2.039, allocations: 3.742 MB / 0.6942 GB, free: 16.55 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003662/2.043, allocations: 1.198 MB / 0.6954 GB, free: 15.46 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/2.043, allocations: 3.938 kB / 0.6954 GB, free: 15.46 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001922/2.045, allocations: 0.6203 MB / 0.696 GB, free: 14.92 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004849/2.05, allocations: 0.5198 MB / 0.6965 GB, free: 14.55 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/2.061, allocations: 2.545 MB / 0.699 GB, free: 12.33 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002201/2.063, allocations: 1.275 MB / 0.7002 GB, free: 11.23 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.004386/2.067, allocations: 366.8 kB / 0.7006 GB, free: 10.99 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002239/2.07, allocations: 0.5044 MB / 0.7011 GB, free: 10.54 MB / 250.7 MB Notification: Performance of SimCode: time 1.784e-06/2.07, allocations: 0 / 0.7011 GB, free: 10.54 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2835/2.353, allocations: 40.43 MB / 0.7406 GB, free: 28.91 MB / 250.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.005121/2.358, allocations: 198.9 kB / 0.7407 GB, free: 28.71 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.61/6.969, allocations: 2 kB / 0.7407 GB, free: 28.71 MB / 250.7 MB