I have run across issues in developing models where the translation time (simulates quickly but takes far too long to translate) has become a serious issue and could use some insight so I can look into resolving this.
So the question is:
What are some of the primary factors that impact the translation time of a model and ideas to address the issue?
For example, things that may have an impact:
for
loops vs a vectorized method - a basic model testing this didn't seem to impact anything- using
input
variables vs parameters - impact of annotations (e.g.,
Evaluate=true
) - or tough luck, this is tool dependent (Dymola, OMEdit, etc.) :(
- use of many
connect()
- this seems to be a factor (perhaps primary) as it forces translater to do all the heavy lifting
Any insight is greatly appreciated.