Corrected bug: stomate_rest_out.nc file was not closed correctly for some cases. It is strange that standard case was working.