automatically output energy for the hamiltonian, and helper for multiple runs on tsv, blank line separated