Identification problem with diffuse filter

Hi,everyone

I have checked the ‘get_perturbation_params_derivs.m’ file and found that the error was caused by ‘out of memory’ problem when the ‘get_perturbation_params_derivs.m’ file tried to create a large matrix [ 4020x 4020x 7061].

I tried to limit the derivative order with respect to the parameters as suggested by prof. jpfeifer in this topic but still not worked out.
https://forum.dynare.org/t/identification-tools-memory-issue/6255

Is there any way to deal with the out of memory problem when using dynare?
Thanks!