Error messages

It seems you are trying to execute the mod-file with Matlab. That is not the correct way to invoke Dynare. See e.g. [How to run a '.mod' file?)