-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling stdout and assert log in simulation setup #10467
Comments
Fixes OpenModelica#10467 Make the stdout and assert log options checked by default When user unchecks then add -lv=-stdout
Fixes #10467 Make the stdout and assert log options checked by default When user unchecks then add -lv=-stdout
This breaks the C++ runtime. Any simulation fails now with:
The problem is that OMEdit settings had been identified with the prefix Can't "stdout,assert," be omitted in the call args if the boxes stdout and assert are checked per default? Nothing would mean that they are enabled. They can be disabled with -stdout,-assert. Currently C++ also fails when unchecking the boxes stdout and assert:
Meaning that currently there is no way to use the C++ runtime from OMEdit. |
@rfranke this does not affect the 1.21.0 release, right? |
Yes, hopefully only a short living nuisance in the 1.22 dev branch. Btw. internally the C runtime uses the same syntax with OpenModelica/OMCompiler/SimulationRuntime/c/simulation/simulation_runtime.cpp Lines 143 to 151 in 92b6780
The C++ runtime would understand |
@AnHeuermann can you fix the stdout and assert logs to use the |
You mean instead of |
Yes |
@rfranke the location in the C runtime where we check if we have I guess you can add something similar for the C++ runtimein OMCFactory.cpp (I think). |
…10467 Support lists of log options for C++ as well, like --log-settings init=debug,nls=debug or the equivalent --log-settings init,nls to unify the syntax with OMEdit -lv LOG_INIT,LOG_NLS Recognize disabled options, like -LOG_something. Additionally turn error for any wrong log options to warning.
…10467 Support lists of log options for C++ as well, like --log-settings init=debug,nls=debug or the equivalent --log-settings init,nls to unify the syntax with OMEdit -lv LOG_INIT,LOG_NLS Recognize disabled options, like -LOG_something. Additionally turn error for any wrong log options to warning.
Support lists of log options for C++ as well, like --log-settings init=debug,nls=debug or the equivalent --log-settings init,nls to unify the syntax with OMEdit -lv LOG_INIT,LOG_NLS Recognize disabled options, like -LOG_something. Additionally turn error for any wrong log options to warning.
The above commits and 8006f5b fix it. Thank you @AnHeuermann and @adeas31. |
Description
In #10426 I wanted to disable all warnings as well as the
stdout
log in OMEdit.I noticed, that the
Logging
section of theSimulation Setup->Simulation Flags
doesn't show thatstdout
andassert
are always active and you can't deactivate them by removing a tick (there is none, see attached screenshot).I had to add
-lv=-stdout
to disablestdout
log, but then got a warning, that-lv
was specified twice:Steps to Reproduce
Open any model in OMEdit and open
Simulation Setup->Simulation Flags
.Expected Behavior
stdout
andassert
as active with a tick.-lv=-stdout
or-lv=-assert
.Screenshots
Version and OS
The text was updated successfully, but these errors were encountered: