Dynare crashes at "check"

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Dynare crashes at "check"

Postby berndlucke » Wed Jan 16, 2013 5:36 pm

I have a fairly big model three-country model, appended. There are two ways to calculate the steady state. One version is usable for symmetric parameterization only, the other version works for asymmetric parameterization, too. The versions can be switched in the file basic_2_steadystate.m by uncommenting and commenting out a few lines as indicated in the file. The model is currently symmetrically parameterized and both versions yield exactly the same steady state, as they should. When I comment out everything in the mod file after "steady", the programs run fine in either version of the steady state file. But when I uncomment "check" (or uncomment "stoch_simul") Dynare crashes while using the first version of the steady-state computation. It does not crash for the second version.

Since "steady" is carried out correctly and the results are the same for both versions, I do not understand why "check" or "stoch_simul" has trouble with one, but not the other result.

I upload the files here, but I can upload only 5. Starting values for fsolve are still missing. I upload them in a separate posting. Thanks for looking at the issue.
Attachments
symm_ss_set.m
Sets auxiliary variables for SS in symmetric parameterization. (No need to look at file)
(10.53 KiB) Downloaded 51 times
symm_ss.m
Computes core variables for SS in symmetric parameterization. (No need to look at file)
(732 Bytes) Downloaded 50 times
basic_2_steadystate.m
Provides the SS as a variable SS. Switch between two versions of SS computation here.
(842 Bytes) Downloaded 52 times
basic_2_ss.m
Computes the SS, suitable for asymmetric parameterization. Saves auxiliary variables vars. (No need to look at file)
(17.1 KiB) Downloaded 47 times
basic_2.mod
The main model. Currently runs fine in either SS version, because commands after "steady" are commented out.
(19.98 KiB) Downloaded 58 times
berndlucke
 
Posts: 1
Joined: Wed Jan 16, 2013 5:13 pm

Re: Dynare crashes at "check"

Postby jpfeifer » Thu Jan 17, 2013 4:17 pm

Dear Bernd,

the issue seems to be an unselective saving and loading of things. When you load the workspace in the steady state-file, you overwrite the options_-file of Dynare with the one you saved earlier. Hence, for the newer Dynare versions some fields are missing as they are overwritten.
The error of course does not occur with the one version of the model as nothing is loaded in this case.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests