Dear @Ali.Rouhbakhsh,
I’m not sure. It looks like the same error was reported, but unanswered, here: MExtreme. I would suggest stepping through the model with a debugger. My guess is that a newer version of MATLAB changed something that broke the script.
Best regards,