Setting the nuclear-nuclear repulsion in the Hamiltonian does not actually do anything. It should add it to the computed energies in the objective.