Simulation generation question: Cannot open filename_simul

Hi,

I’m trying to generate simulations using code modified from the post

but failed.

I’m using the simple code

clear all
dynare CEE2005

[sim_array]=get_simul_replications(M_,options_);
y_sim=squeeze(sim_array(strmatch('y',M_.endo_names,'exact'),:,:));

and got the error info

Error using get_simul_replications (line 34)
Cannot open CEE2005_simul
Error in CEE2005.driver (line 422)
[sim_array]=get_simul_replications(M_,options_);
Error in dynare (line 293)
evalin('base',[fname '.driver']) ;
Error in Untitled (line 2)
dynare CEE2005 

Please also see the file attached. Thank you in advance for any help.

CEE2005.mod (3.4 KB)

get_simul_replications only works if simul_replic>1. If it is equal to 1, the simulations will already be in the workspace.

Thank you professor!