Page 1 of 1

Strange warning message

PostPosted: Tue Oct 13, 2015 7:59 pm
by frenchmacro
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 ;-) !), 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!

Re: Strange warning message

PostPosted: Wed Oct 14, 2015 9:25 am
by jpfeifer
Did you also change the Matlab version? In Matlab 2015b there is a new just-in-time (JIT) compiler that may have undesired consequences.

Re: Strange warning message

PostPosted: Wed Oct 14, 2015 9:41 am
by eta
Hi,
I have the same problem with Matlab 2015a. Apparently everything works properly. Is there any way to fix this ?

Thanks

Re: Strange warning message

PostPosted: Wed Oct 14, 2015 5:56 pm
by jpfeifer
Could you please post the full warning including in which line it appears.

Re: Strange warning message

PostPosted: Sun Oct 18, 2015 8:38 am
by alexch0405
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)

Re: Strange warning message

PostPosted: Sun Oct 18, 2015 9:08 am
by jpfeifer
Which Matlab version?
What happens when you invoke Dynare with the
Code: Select all
noclearall

option?

Re: Strange warning message

PostPosted: Mon Oct 19, 2015 12:20 pm
by alexch0405
noclearall option helped to get rid off the warning. Thanks.

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

Re: Strange warning message

PostPosted: Tue Oct 20, 2015 1:07 pm
by jpfeifer

Re: Strange warning message

PostPosted: Fri Mar 18, 2016 9:30 pm
by kipfilet
Just to let you know that I get the same with 2016a, and using `noclearall' does get rid of it.

Re: Strange warning message

PostPosted: Thu Dec 29, 2016 9:48 am
by wb0715
Did you solve this problem? I still get this warning.

Re: Strange warning message

PostPosted: Sun Jan 01, 2017 8:00 am
by jpfeifer
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
Code: Select all
noclearall

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