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!