After downloading and activating Dynare 6.5 for MATLAB Online I got the following error message in MATLAB Online when trying to run: dynare logRBCNK.mod
Starting Dynare (version 6.5).Calling Dynare with arguments: none/bin/bash: line 1: /MATLAB Add-Ons/Toolboxes/Dynare/matlab/../preprocessor/dynare-preprocessor: No such file or directoryPreprocessing time: 0h00m00s.Error using dynare (line 295)Dynare: preprocessing failed
How to solve this problem.
Best regards, fbreuss
That is strange. I just did the same and it works for me. Can you try removing the toolbox and then reinstalling it?
Dear Mr. Pfeifer,
Thank you for your feedback.
After removing and reinstalling the toolbox, I still get an error message:
First, when I call up the Dynare version (“dynare_version”), I get the correct message that Dynare 6.5 is available.
Then, when I start a standard DSGE model (“dynare logRBCNK.mod”), I unfortunately get the following error message:
dynare logRBCNK.mod
Starting Dynare (version 6.5).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
Found 12 equation(s).
Evaluating expressions…
Computing static model derivatives (order 1).
Normalizing the static model…
Finding the optimal block decomposition of the static model…
7 block(s) found:
5 recursive block(s) and 2 simultaneous block(s).
the largest simultaneous block has 5 equation(s)
and 5 feedback variable(s).
Computing dynamic model derivatives (order 2).
Normalizing the dynamic model…
Finding the optimal block decomposition of the dynamic model…
2 block(s) found:
1 recursive block(s) and 1 simultaneous block(s).
the largest simultaneous block has 10 equation(s)
and 10 feedback variable(s).
“/MATLAB Add-Ons/Toolboxes/Dynare/matlab/../preprocessor/dynare-preprocessor” logRBCNK.mod mexext=mexa64 “matlabroot=/MATLAB”: Killed
Preprocessing time: 0h00m01s.
Error using dynare (line 295)
Dynare: preprocessing failed
Can you provide the exact file that crashes the program? Maybe there is an incompatible option. Email or PM would be fine. My hunch is that you are using the use_dll option, which may not work with MATLAB Online.
The files included in the mod file are missing.
Dear Mr Pfeifer,
O.K. the include file “calibration.mod” was missing in “logRBCNK.mod”
But also with a “clean” mod-file (simple_rbc.mod) the same error occurs:
dynare simple_rbc.mod
Starting Dynare (version 6.5).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
Found 6 equation(s).
Evaluating expressions…
Computing static model derivatives (order 1).
Normalizing the static model…
Finding the optimal block decomposition of the static model…
2 block(s) found:
1 recursive block(s) and 1 simultaneous block(s).
the largest simultaneous block has 5 equation(s)
and 5 feedback variable(s).
Computing dynamic model derivatives (order 1).
Normalizing the dynamic model…
Finding the optimal block decomposition of the dynamic model…
2 block(s) found:
1 recursive block(s) and 1 simultaneous block(s).
the largest simultaneous block has 5 equation(s)
and 5 feedback variable(s).
“/MATLAB Add-Ons/Toolboxes/Dynare/matlab/../preprocessor/dynare-preprocessor” simple_rbc.mod mexext=mexa64 “matlabroot=/MATLAB”: Killed
Preprocessing time: 0h00m00s.
Error using dynare (line 295)
Dynare: preprocessing failed
Enclosed comes the file “simple_rbc.mod”
Best regards,
fbreuss
simple_rbc.mod (1.6 KB)
Sorry, but I cannot reproduce any problem. You may want to file a support request with Mathworks.
Dear Mr Pfeifer,
thank you for your feedback. After consulting Mathworks my problem is solved. Mathworks explained that Dynare does not run on MATLAB Online (basic) but only on the fully licensed MATLAB version.
Perhaps this could be mentioned on the Dynare website, where the download of the MATLAB Online version of Dynare 6.5 is announced.
Best regards,
fbreuss
Thank you for reporting this. We reached out to Mathworks. The problem is that in the basic version, they currently don’t allow executing the preprocessor. The reason is that system() calls were abused by crypto miners to get free compute. We are further investigating the problem and are looking for a solution.