second attempt to run energy optimization
raise some sort of warning when test is missing