sweepWrapper.m: better steady state check