I found the solution (thanks to Paul Field):
The tidystashtransform macro changes the names of namelist entries to something the model doesn’t like, which causes it to complain. I had to re-add all the outputs in manually in the GUI and NOT run the macro (meaning my namelist entries are called something like streq(1), streq(2) etc.