Error using feval Unrecognized function or variable 'ExtPathEABepsgc.dynamic'

I am trying to do an extended path simulation of a large scale model. The model is in Dynare macro language, and split over several files (initial values, steady, model, shock). The extended path command is in the shock file, called ‘ExtPathEABepsgc.mod’. When I run the shock, I get the following error message (Dynare 4.6.1, Matlab R2019b):

Error using feval
Unrecognized function or variable ‘ExtPathEABepsgc.dynamic’.

Error in perfect_foresight_solver_core (line 67)
oo_ = feval([M_.fname ‘.dynamic’], options_, M_, oo_);

Error in extended_path_core (line 60)
tmp = perfect_foresight_solver_core(M, options, oo);

Error in extended_path (line 70)
[endogenous_variables_paths(:,t), info_convergence, endogenousvariablespaths] =
extended_path_core(ep.periods, DynareModel.endo_nbr, DynareModel.exo_nbr,
innovations.positive_var_indx, …

Error in ExtPathEABepsgc.driver (line 25115)
extended_path([], 90, [], options_, M_, oo_);

Error in dynare (line 293)
evalin(‘base’,[fname ‘.driver’]) ;

The same commands run in the small RBC model without problems. Note that the shock file, ExtPathEABepsgc.mod is (and has to be) in the folder in which I am workin. I get the same error message in older version, Dynare 4.5.7.

Many thanks for any help!

Could you (privately) supply me with the files?

@616Dynare Could you please try the unstable version. The bug should have been fixed.

I tried - same error message, just the lines where the errors are are different.

I downloaded Dynare 4.7-unstable-2020-03-30-1904-a34abd22. Could it be that it is just a too gigantic model?

Error using feval
Unrecognized function or variable ‘ExtPathEABepsgc.dynamic’.

Error in perfect_foresight_solver_core (line 63)
oo_ = feval([M_.fname ‘.dynamic’], options_, M_, oo_);

Error in extended_path_core (line 66)
tmp = perfect_foresight_solver_core(M, options, oo);

Error in extended_path (line 70)
[endogenous_variables_paths(:,t), info_convergence, endogenousvariablespaths] =
extended_path_core(ep.periods, DynareModel.endo_nbr, DynareModel.exo_nbr,
innovations.positive_var_indx, …

Error in ExtPathEABepsgc.driver (line 25119)
extended_path([], 2, [], options_, M_, oo_);

Error in dynare (line 293)
evalin(‘base’,[fname ‘.driver’]) ;

Simple RBC works without problems, as long as I don’t use block, bytecode (but then the error seems to be in getting the steady state). I get this (the file is named SimpleRBCExtPath.mod and has analytical steady state):

terminate called after throwing an instance of ‘std::filesystem::__cxx11::filesystem_error’
what (): filesystem error: cannot rename [+SimpleRBCExtPath] [YjLu0asVxy]

Thanks!