copied file from ssf_simulation