minimizeE without errors

although still fails to converge