Strange warning message

Hi all,

I just installed dynare on my new laptop that works under Windows 10.
When I run my matlab code that calls dynare, it seems to work well but I receive this message :
" Warning: The file ‘C:\XXXXXXXXX.m’ could not be cleared because it contains MATLAB code that is currently executing."

While the results are unchanged compared to my ancient computer (so I can keep on working :wink: !), I wonder if this message means that I did something wrong.

If anyone has a thought on this, I’d be glad to hear your opinions.

Thanks!

Did you also change the Matlab version? In Matlab 2015b there is a new just-in-time (JIT) compiler that may have undesired consequences.

Hi,
I have the same problem with Matlab 2015a. Apparently everything works properly. Is there any way to fix this ?

Thanks

Could you please post the full warning including in which line it appears.

I have the same issue:

Warning: The file ‘/Applications/Dynare/4.4.3/matlab/dynare.m’ could not be
cleared because it contains MATLAB code that is currently executing.

In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)
Warning: The file
’/Users/AlexMacPro/Dropbox/Documents/MATLAB/Dynare/FiscalBonds/NonRicardNKEZWeightedMHF/NonRicardEZWeightedMHFW2.m’
could not be cleared because it contains MATLAB code that is currently executing.
In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)
Warning: The file ‘/Applications/Dynare/4.4.3/matlab/dynare.m’ could not be
cleared because it contains MATLAB code that is currently executing.
In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)
Warning: The file
’/Users/AlexMacPro/Dropbox/Documents/MATLAB/Dynare/FiscalBonds/NonRicardNKEZWeightedMHF/NonRicardEZWeightedMHFW2.m’
could not be cleared because it contains MATLAB code that is currently executing.
In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)
Warning: The file ‘/Applications/Dynare/4.4.3/matlab/dynare.m’ could not be
cleared because it contains MATLAB code that is currently executing.
In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)
Warning: The file
’/Users/AlexMacPro/Dropbox/Documents/MATLAB/Dynare/FiscalBonds/NonRicardNKEZWeightedMHF/NonRicardEZWeightedMHFW2.m’
could not be cleared because it contains MATLAB code that is currently executing.
In NonRicardEZWeightedMHFW2 (line 7)
In dynare (line 180)

Which Matlab version?
What happens when you invoke Dynare with the

option?

noclearall option helped to get rid off the warning. Thanks.

This happens only with 2015b, not on 2015a FYI.

Yes, we are working on this: github.com/DynareTeam/dynare/issues/1057

Just to let you know that I get the same with 2016a, and using `noclearall’ does get rid of it.

Did you solve this problem? I still get this warning.

In the unstable version (to be released as 4.5), you will not get this warning message on newer Matlab version. For Dynare 4.4.3 and newer Matlab versions, you will always have to invoke the

option at the command line (or simply ignore the warning)