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:

 

 

Upon klicking „Close program“ instead of debugging I get:

 

 

 

Only if I immediately cancel the Windows screen leading to the above popups I get the following error message.

 

 

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