Driveline model takes a long time to generate code
The RC_driveline model in the attached file takes a very long time to generate simcode for, where very long means that it looks like it's stuck in an infinite loop but will probably finish some time. This seems to be due to SimCode.extractValuesAndDims being called with 18 discrete variables from SimCode.createOdeSystem (search for "madness" in SimCode to find the place), which has very bad complexity. The reporter of the issue says that replacing LossyGear with IdealGear gets rid of the issue, so the problem might be related to LossyGear (or the fact that extractValuesAndDims is crazy).
Change History
(3)
Cc: |
Frenkel TUD Bill Janssen added; Jens Frenkel removed
|
Component: |
Simulation Code Generation → Backend
|
Milestone: |
→ 1.9.0
|
Resolution: |
→ fixed
|
Status: |
accepted → closed
|
Summary: |
Driveline model takes a long time to generate simcode for → Driveline model takes a long time to generate code
|
Seems the changes to enable tearing by default has fixed the problem in this model.