[TRNSYS-users] Problem in tracing the runtime errors

David Bradley bradley at tess-inc.com
Thu Apr 30 09:31:16 PDT 2009


Chun Kwong,
An invalid floating point error is a generic error generated by the DLL
when a problem was not caught in the code. For example, a division by
zero or sometimes taking the log of a negative number will cause an
invalid floating point error. The fortran code of the Type should always
check such arguments before executing the division or taking the log but
it doesn't always.

The first thing to do is to go into the Studio control cards (where you
set the simulation time step, start time, etc.) and switch the "debug
mode" to "true." This will make your simulation run a good bit more
slowly but will check two conditions that can cause those invalid
floating points (it checks to see if an output got set to "NaN" and it
checks to make sure that no Types are writing outside of their allotted
OUT() array space.

If that does not lead you to the solution and you are able to run the
simulation from the compiler in debug mode, it will sometimes stop and
indicate the line that caused the error.

If neither of those solves the problem, please send me your input file
and any external files that I need in order to run it and I will see
what I can do about finding the cause of the error.

Kind regards,
David


a8304506 at graduate.hku.hk wrote:
> Hello, Trnsys users.
>
> I get an "Invalid floating point operation" error when running a simulation. 
> However, I can't find any information about the error source in the .lst file. 
> Does anyone know if there is any method to trace at which component (and
> hopefully at which line) does the error come from?  Your reply is appreciated. 
> Thank you!
>
> Best Regards
> LEE, Chun Kwong
> Division of Building Science and Technology
> City University of Hong Kong
>
>
>
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> TRNSYS-users mailing list
> TRNSYS-users at cae.wisc.edu
> https://www-old.cae.wisc.edu/mailman/listinfo/trnsys-users
>   

-- 
***********************************************************************
Thermal Energy System Specialists (TESS), LLC 
David BRADLEY                      22 N. Carroll Street - Suite 370 
Partner                            Madison, WI 53703 
                                   USA
P: +1.608.274.2577 
F: +1.608.278.1475
E-mail: bradley at tess-inc.com 
Web Pages:  http://www.tess-inc.com    and      http://www.trnsys.com

***********************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onebuilding.org/pipermail/trnsys-users-onebuilding.org/attachments/20090430/234fe84f/attachment-0005.htm>


More information about the TRNSYS-users mailing list