Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Verbose options in C Code

Verbose options in C Code

Could somebody please tell me if there is some way to set the "sim_verbose"  that appears in the
C-code produced prior to simulation. Perhaps there is some way to set it using OMC?


               Chris

Re: Verbose options in C Code

Hi,

Run the simulation executable with -?  to get a list of all the command line parameters you can use.
Unfortunately, right now you cannot set these from the OMC simulate command.
However, you can use buildModel command (with the same arguments as simulate) which generates
the simulation executable (but doesn't run it) and then use the system("shell command here") command
to run the executable with whatever parameters you want.

Code:


adrpo@ida-liu050 ~/dev/OpenModelica/build/bin
$ ./Model.exe -?
usage: Model.exe <-f initfile> <-r result file> -m solver:{dassl,euler,rungekutta,dopri5,inline-euler or inline-rungekutta} <-interactive> <-port value>
-lv [LOG_STATS] [LOG_INIT] [LOG_RES_INIT] [LOG_SOLVER] [LOG_EVENTS] [LOG_NONLIN_SYS] [LOG_ZEROCROSSINGS] [LOG_DEBUG]

So basically, you can use: -lv LOG_DEBUG to have the most detailed information ( I think current/smile ).

Cheers,
Adrian Pop/

There are 0 guests and 0 other users also viewing this topic