The rate of convergence of optimization algorithms obtained via discretizations of heavy ball dynamical systems for convex optimization problems. (9th December 2022)