a very common NAMD error which happens because input file has an EOF (end-of-file) termination in the middle of a line somewhere. So look at the end of your psf, pdb and parameter files in a text editor. Whichever has an abrupt ending in the middle of it's last line is the culprit file and will need to be recreated.