Hi all,
When I try to run my .mod file I get the following error:
/opt/homebrew/Cellar/gcc/14.2.0/include/c++/14/optional:475: constexpr _Tp& std::_Optional_base_impl<_Tp, _Dp>::_M_get() [with _Tp = int; _Dp = std::_Optional_base<int, true, true>]: Assertion ‘this->_M_is_engaged()’ failed.
“/Applications/Dynare/6.2-arm64/matlab/…/preprocessor/dynare-preprocessor” PS3.mod mexext=mexmaci64 “matlabroot=/Applications/MATLAB_R2024a.app”: Aborted
Preprocessing time: 0h00m00s.
Error using dynare (line 297)
Dynare: preprocessing failed
When I try to run a simple RBC model I don’t get this issue and everything runs fine. I have tried reinstalling dynare and directly modifying the RBC model to my specifications with no success.
Thanks in advance for any help.
Niall
@wmutschl @sebastien Do you know?
@NiallPeat Can you provide the file?
This is the symptom of a preprocessor bug, but I would need the .mod file in order to debug this.
Thank you both, here is the mod file.
PS3.mod (1.7 KB)
I know the steady state doesn’t solve at the moment but i’m falling over even before then.
Niall
What is your Dynare version and OS? I get
ERROR: PS3.mod: line 49, cols 58-119: Symbol b_2 is being treated as if it were a function (i.e., takes an argument that is not an integer).
The reason is a missing multiplication sign after b_2
.
I’m using Dynare v6.2 and mac OS sonoma 14.5.
@jpfeifer gave the reason for the failure, which is related to b_2
not being used correctly.
However there is indeed a bug in the preprocessor, which leads to random crashes in this precise case (I can replicate the crash). This will be fixed in the next Dynare release.
Fantastic, thank you both.