Requested the Runtime to terminate it in an unusual way

Dear all,

I encounter a problem when I use an external function in the model block to solve an implied parameter value with the #-operator for a local variable , it says:

“This application has requested the Runtime to terminate it in an unusual way.
Please contact the application’s support team for more information.”

However the code runs smoothly if I define the implied parameter before the model blocks, which though seems not standard for estimation. However, I need to estimate the model.

Besides, my model has R(+2), R(+1) and R in the system, does it matter for this problem? How can I fix it? Can I avoid it by using the latest Dynare version 4.4.3 (I am using the 4.4.2 version now)?

Thanks!

I need to see the files.

Hi Pfeifer, attached is the two mod files and the external function. Please have a look, thanks!
solvebeta.m (1.17 KB)
use_local_variable_for_beta.mod (6.93 KB)
define_beta_before_model.mod (6.85 KB)

We are investigating the issue. You can track the status here: github.com/DynareTeam/dynare/issues/916

The bug should be fixed in tomorrow’s snapshot