sweep exits after 3 consecutive res > res_target.  ramp down after EITHER (2 consecutive res < 0) OR (2 consecutive res < res_bench). also now input file name at beginning of each sweep rather than only when parameters are set.