Linear equations solved using `dsysv` instead of eigenvalue decompositions.  Small eigenvalue may cause problems.  Do not try to fit energies and energy difference exactly at the same time.