It fails because ppp.m contains:
M_.params( 1 ) = -1.#IND;
which results from the mod-file line
sigma=(-0.007)^0.5;
-- Johannes Pfeifer Haußerstr. 29 72076 Tübingen Tel.: +49-(0)7071-6396184 Mobil.: +49-(0)170-6936820 Germany
-----Ursprüngliche Nachricht----- Von: dev-bounces@dynare.org [mailto:dev-bounces@dynare.org] Im Auftrag von Sébastien Villemot Gesendet: Montag, 30. Juli 2012 15:18 An: List for Dynare developers Betreff: Re: [DynareDev] Complex Parameters
Hi Johannes,
In order to debug this issue, I have compiled a slightly modified version of the preprocessor (from unstable branch). It is available at:
http://www.dynare.org/sebastien/dynare_m.exe
Please run it on ppp.mod, and send me back the resulting ppp.m (or, if it fails, the error message).
Thanks,
"Johannes Pfeifer " jpfeifer@gmx.de writes:
Dear Sébastien,
I tried ppp.mod with the 2012-06-29 snapshot. Here are the screenshots. My Matlab version says:
MATLAB Version: 7.14.0.739 (R2012a)
MATLAB License Number: 556154
Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Version 7.14 (R2012a)
Control System Toolbox Version 9.3 (R2012a)
Optimization Toolbox Version 6.2 (R2012a)
Parallel Computing Toolbox Version 6.0 (R2012a)
Signal Processing Toolbox Version 6.17 (R2012a)
Statistics Toolbox Version 8.0 (R2012a)
Symbolic Math Toolbox Version 5.8 (R2012a)
What’s bothering me is that I get a pop-up window asking me to debug and I am not sure this is the usual behavior the preprocessor should show:
[cid]
Upon klicking „Close program“ instead of debugging I get:
[cid]
Only if I immediately cancel the Windows screen leading to the above popups I get the following error message.
[cid]
I hope this helps narrowing it down.
Best,
Johannes
-----Ursprüngliche Nachricht----- Von: dev-bounces@dynare.org [mailto:dev-bounces@dynare.org] Im Auftrag von Sébastien Villemot Gesendet: Freitag, 6. Juli 2012 10:12 An: List for Dynare developers Betreff: Re: [DynareDev] Complex Parameters
"Johannes Pfeifer " jpfeifer@gmx.de writes:
erroneously defining a complex parameter like sigma=(-0.007)^0.5 as in
the attached mod-file crashes dynare_m.exe in Windows. Sometimes it
displays
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Assertion failed!
Program: C:\Dynare\4.3.0\matlab\dynare_m.exe
File: NumericalConstants.cc, Line 47
Expression: val >= 0 || isnan(val)
I can't replicate the crash in the preprocessor on both GNU/Linux and Windows.
However in ppp.m I have "M_.params(1)=nan;" (which is consistent) and Dynare crashes later.
Concerning the crash that you get in the preprocessor, the problem is not that the preprocessor refuses to run, but rather that the error message is not explicit enough. It is however not obvious how to improve the situation, and I cannot do anything as long as I can replicate your assertion error in the preprocessor.
--
Sébastien Villemot
Researcher in Economics & Debian Maintainer http://www.dynare.org/sebastien
Phone: +33-1-40-77-84-04 - GPG Key: 4096R/381A7594
Dev mailing list Dev@dynare.org https://www.dynare.org/cgi-bin/mailman/listinfo/dev
-- Sébastien Villemot Researcher in Economics http://www.dynare.org/sebastien Phone: +33-1-40-77-84-04