Log the model progress to a temp file and move it to the output location

That temp location is the defined CACHE_PATH, which I added back in.