As the error message clearly says, your script has called the function "nlsave" with too few arguments.
If you take a look at the ATK reference manual ( http://www.quantumwise.com/documents/manuals/latest/ReferenceManual/index.html/ref.nlsave.html (http://www.quantumwise.com/documents/manuals/latest/ReferenceManual/index.html/ref.nlsave.html) ) you will see that the correct syntax is like this:
nlsave('file.nc', configuration)
In your script, you have only specify the NetCDF filename, but not the configuration that should be saved. Fix this, and it will work.