It appears that CPLEX finished optimization and that CPLEX presolve did a good job it eliminating 4049889 rows and 5626 columns. So CPLEX did what it is being asked.
If you are still unsure of the results you could try with some benchmark instances if available in order to compare execution time and to possibly find problems with your model.
To be completely sure you could prove that your model is equivalent to the problem you solve. On the other hand I don't remember that CPLEX did something wrong. It either failed to complete the job (memory or time limit) or the model was incorrectly implemented. I hope that this remarks were useful.
Thank you M. Zoran Maksimovic for your answer. Sadly there isn't much benchmark for my problem, besides one article that used genetic algorithm to solve the problem. And to prove the equivalence, it's a bit tricky because we linearized the first model that represents the problem. It's just the fact that our problem is smilar to the quadratic knapsack problem which is NP-hard make us doubt our run-times.
Typical algos of KP problem are cited in this website : https://www.geeksforgeeks.org/0-1-knapsack-problem-dp-10/
For the special aspect of relation between weights is just an approximation to an other problem of the longest path in a tree and where weights are in fact times.
Usually for a knapsack problem, we need some idea of the total size capacity of the knapsack, as well as the size and value of each item to be placed in it. If the Wk depends on some other weights, it would be nice if we could pre-compute these; if the weights depend on the VARIABLE (not yet decided) Xm, there is potentially a problem. Your notation for the max operator is unclear. Are you taking the maximum over two numbers? Can you explain your full problem with notation?
A simple knapsack with 1000 variables is easy -- see Martello and Toth -- so I am not surprised with the run time. A true "quadratic knapsack" where there are interdependent choices is a much more challenging problem.