Fsolve reports error when solve the steady state

Dear all,
Currently I’m trying to solve my model. It reports the error when run the mod file:
FSOLVE requires all values returned by functions to be of data type double.
But fsolve can solve the steady state when I run the fsolve code singly. Anyone can help me figure out the problem?
Thank you for your help.
Best regards
Chen
cn_aging_debt20230109.mod (2.9 KB)
cn_aging_debt20230109_steadystate.m (3.0 KB)
kss.m (1.6 KB)
xi_wss.m (259 Bytes)

You did not provide the kss-file you are trying to solve.

Sorry, I have uploaded this file now.

Now xi_wss.m is missing.

Sorry, I upload it now.

Try this file in Dynare 5.x:
cn_aging_debt20230109_steadystate.m (3.1 KB)

Thank you very much. I will try it.