Nolog option doesn't work

I tried the nolog option in stochsimul this way:

stoch_simul(order=1, periods=11000, noprint, nolog)

and then I get the following error message

ERROR: mod_file.mod: line 227, cols 46-50: syntax error, unexpected NAME

Any ideas about why?

nolog is a preprocessor option, not an argument of stoch_simul. In your case, the correct call would by