def equil_finished(job):
    """Check if equil stage is finished."""
    step = "equil"
    run_file = job.ws + "/run.{}".format(step)
    if job.isfile("run.{}".format(step)):
        with open(run_file) as myfile:
            if "Program ended" in myfile.read():
                return True
            else:
                return False