Page 1 of 1

Invalid Argument Error

PostPosted: Wed Apr 02, 2014 3:59 pm
by tirupam
Dear All, sorry if this is a very basic error, but I cannot figure this out.

In the attached code, when I am running using 4.3.1 or 4.4.2, I am getting the following error.

Starting Dynare (version 4.4.2).
Starting preprocessing of the model file ...
Substitution of Expectation operator: added 2 auxiliary variables and equations.
Found 22 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1
ERROR: Invalid argument
Processing outputs ...
Error using dynare (line 174)
DYNARE: preprocessing failed

Please let me know if you can see the problem.
Thanks and regards,
Tirupam

Re: Invalid Argument Error

PostPosted: Thu Apr 03, 2014 7:52 am
by jpfeifer
I cannot replicated the issue with the posted mod-file. Have you tried reinstalling Dynare?

Re: Invalid Argument Error

PostPosted: Thu Apr 03, 2014 2:42 pm
by tirupam
Thank you.
I reinstalled Dynare multiple times, but I get the same error. I am using Matlab 2013b.
I ran some other dynare codes using the same setup, and they are running fine.

I can try to investigate the ERROR that I am getting "INVALID ARGUMENT" if I can
understand whether the problem is with my equations or with initial values etc.

Re: Invalid Argument Error

PostPosted: Thu Apr 03, 2014 3:08 pm
by jpfeifer
Try putting the mod-file in an empty folder. As the file runs on my machine, there is nothing inherently wrong with it (except for problems with the steady state that cannot cause your error)

Re: Invalid Argument Error

PostPosted: Thu Apr 03, 2014 3:14 pm
by tirupam
Thank you very much Johannes. Putting the mod file in a separate folder ran the file okay (except other errors which I can handle now).
Thank you again, your help really saved a lot of my time.
Best regards,
Tirupam

Re: Invalid Argument Error

PostPosted: Thu Apr 03, 2014 3:17 pm
by jpfeifer
Ok. That means there is a conflict with a similarly named file in the original folder.

Re: Invalid Argument Error

PostPosted: Thu Apr 03, 2014 3:23 pm
by tirupam
That would be the explanation. Since running the dynare code creates other files with similar names, which may have errors, and might have been interfering.