Running Dynare Version 4.5.7 on MATLAB R2019a

Hi Everyone!

I am trying to use version 4.4.3 to replicate a paper, and am having difficulty with the install.

I found the executable file from https://www.dynare.org/release/windows/ and downloaded dynare-4.4.3-win.exe. I ran the .exe file and it placed all of the files for Dynare in C:\dynare\4.4.3. I currently do not have any other version installedAABBCC.mod (1.9 KB) main_code_FGKR.mod (21.8 KB)

I have several mod files that I have attempted to run this with, and they all give the same preprocessing error message, despite the fact that I’ve been able to get them to run on other devices that previously had MATLAB installed.

However, when I try to run any of these, and I’ll attach a couple of them as a sample, I get the following error message.

dynare AABBCC
Warning: Function isfile has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential
name conflict.
In path (line 109)
In addpath (line 86)
In dynare_config (line 65)
In dynare (line 48)

Configuring Dynare …
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Starting Dynare (version 4.4.3).
Starting preprocessing of the model file …
ERROR: Could not open file: AABBCC.mod

Error using dynare (line 174)
DYNARE: preprocessing failed

Is there something wrong with the install that I can fix to get these to run?

Update: From another post on the forum, I found that I have R2019a on my device, so 4.4.3 will not run.

So now my question is this: Will Dynare 4.5.7 run with this version of MATLAB?

The error code I’m now receiving is the following if I run this version

dynare AABBCC

Configuring Dynare …
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Using 64-bit preprocessor
Starting Dynare (version 4.5.7).
Starting preprocessing of the model file …
ERROR: Could not open file: AABBCC.mod

Error using dynare (line 229)
DYNARE: preprocessing failed

addpath c:\dynare\4.5.7\matlab

I am slightly confused. Do you mean like this?

addpath C:\dynare\4.5.7\matlab
dynare AABBCC
Because when I do that, I get the same error message as above

Or do you mean that I should add this somewhere to the .mod file?

  1. Dynare 4.4.3 will run with your Matlab on Windows. What you cannot do is compile Dynare 4.4.3 from source under Linux with that Matlab version.
  2. The error message shows that you correctly set the path to Dynare. But given that Dynare is unable to open the file, there seems to be some issue with writing permissions. Have you tried a file put in a folder where you definitely have write permissions? Also, in the past such cryptic messages were often caused by Antivirus programs blocking Dynare’s exe-file from accessing other files on the disk.