How do I find the function name when simulation aborts with an error without providing a function name?

Solution Number:
S20266
Last Modified:
2013-07-03
Issue

How do I find the function name when simulation aborts with an error without providing a function name?

Solution

There are two possible reasons why the function name does not appear in the error message:

  1. You are using the optimized kernel to run your simulation. The optimized kernel does not provide as much debugging or stack tracing information as the development kernel does. Whenever you are debugging your models you should use the development kernel. This can be done by specifying the kernel_type environment attribute to development at the command line, in your env_db, or in an included environment file.
  2. If you are using the development kernel, the error may have occurred in one of the user-created functions in the function block. You should use the FIN, FOUT, and FRET macros (Simulation Kernel Manual\6) in your user-created functions. These macros will allow the simulation kernel to track user-created funcrtions in the function call stack and return the name of the user-defined function if an error occurs. Otherwise the function name provided in the error message will not be accurate.
Environment

17DES Kernel , Error Messages/Logs, OPNET Modeling and Simulation, OPNET Modeler

Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case