I just got greeted in VSCode with a message that made me update to Dyad 3.0… After using the AI to update my models I now realized that the TransientAnalysis is now much slower that before. (5min instead of 3min maybe)
I am simulating a Vienna Rectifier that has some switches switching at 50kHz, so I am not expecting something super fast, but this feels easily double the time than before.
Honestly I am not sure how to get back to the previous Dyad Release, otherwise I would love to share some real numbers.
Figured out what it is. It looks like this is due to the enabling of inline linear SCC passes without the rest of the new compiler framework being released (the other part is scheduled for the upcoming 3.1.0 release).
We’d either need a 3.0.1 to allow for temporarily disabling inline linear SCCs or just wait for the 3.1.0 which includes the new compiler passes to make these non-allocating. The problem with disabling is that it can change the state selection, which in particular makes the model require a lot more guesses, so it would be a breaking change and a pretty bad quality of life thing to have this turned off. So the best thing to do for this model is probably to just have the regression fixed in the 3.1.0 with the new compiler codegen. That’s not the most ideal answer but since that is already scheduled for the very near future it’s almost as fast as a patch release would be, that is the way to do this that’s the most future-proofed.
In the meantime, if you’re willing to get a bit manual, you can get around this by disabling the linear SCC inlining by taking the mtkcompile command directly and doing: