Enable the usage of a pre-built model executable when instantiating ModelicaSystem #165
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issues
This pull request was inspired from the discussion in issue #151
Purpose
ModelicaSystem
. This will gain some efficiency e.g. when only the parameters or the input data changes between different simulation runs.Approach
ModelicaSystem will not to call buildModel when the
xmlFileName
of the pre-built model is provided.The simulation can be executed with a customized set of output variables and stopTime like this:
The log_str contains the models output from stdout and stderr.
Thanks to @Nobby-n and @arun3688 for contribution and inspiration.