Since you have not stated your problems in terms that relate to the Lapack routine DXYEVX, and few of us are quantum physicists/chemists, we cannot comment.
What "potential"? What "results"? What does the occurrence of "negative energy" mean? If you show the matrix in question, and state what results you get and what you expected in the results, perhaps some progress can be made.