-
Notifications
You must be signed in to change notification settings - Fork 13
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
OMJulia.API.simulate how to know that the simulation was successful #126
Comments
output SimulationResult simulationResults;
record SimulationResult
String resultFile;
String simulationOptions;
String messages;
Real timeFrontend;
Real timeBackend;
Real timeSimCode;
Real timeTemplates;
Real timeCompile;
Real timeSimulation;
Real timeTotal;
end SimulationResult; OMJulia will throw an error if:
In all other cases you can assume the simulation was successful. If I missed a case where the simulation failed but no error is thrown please provide a way to reproduce. |
Can you provide an example and what does the output look like? All output should be stored in |
|
The above is just a small part of the full dump. Seems like the warnings of the not balanced connector are repeated during simulation. |
Should I use some simulation option to suppress these outputs? |
You can try or use some Julia way to suppress outputs, e.g. by redirecting stdout/stderr. But in my experience this can have unwanted side effects because of the zeroMQ instance we are running. Closing this issue, since the original question is answered in #126 (comment). |
The scripting API simulate
has a record as return value.
The OMJulia.API.simulate documentation doesn't mention the return values.
I expected to get a boolean in the sense of simulation failed vs. successful,
and an error message if it failed.
In some cases the console is dumped with endless warnings.
Is there a way to control the debug level and log output (verbose=false)?
The text was updated successfully, but these errors were encountered: