Template for SMM

Hi,guys
When i run the template on SMM.mod given by Mutschler in Dynare Summer School 2021, i got some error:
==== Method of Moments Estimation (SMM) ====

Computing data moments. Note that NaN values in the moments (due to leads and lags or missing data) are replaced by the mean of the corresponding moment

There was an error in computing the moments for initial parameter values.
If this is not a problem with the setting of options (check the error message below),
you should try using the calibrated version of the model as starting values. To do
this, add an empty estimated_params_init-block with use_calibration option immediately before the estimation
command (and after the estimated_params-block so that it does not get overwritten):

MEX file
‘/Applications/Dynare/4.7-2021-06-17-1059/mex/matlab/maci64-9.4-9.10/mjdgges.mexmaci64’
:
dlopen(/Applications/Dynare/4.7-2021-06-17-1059/mex/matlab/maci64-9.4-9.10/mjdgges.mexmaci64,
6): Library not loaded: /usr/local/opt/gcc/lib/gcc/10/libquadmath.0.dylib
Referenced from:
/Applications/Dynare/4.7-2021-06-17-1059/mex/matlab/maci64-9.4-9.10/mjdgges.mexmaci64
Reason: image not found

Matlab 2021a and Dynare 4.7 beta1 on MacOS 11

Please upgrade to the latest unstable version where hopefully the Macos problems have been fixed or install gcc10 using

brew install gcc@10

Would it be possible — if the author is ok with it — to share the code/template?

All test cases should be at tests/estimation/method_of_moments · master · Dynare / dynare · GitLab