- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to get the number of variables...
How to get the number of variables after the symbolic manipulation?
How to get the number of variables after the symbolic manipulation?
As understand this, the OpenModelica compiler performs symbolic manipulation during the generation of the code.
How can I get the number of variables / equations of the model after this transformation?
What flags should I pass to compiler in OMEdit so that my model is reasonably well reduced?
I tried
+d=tearing,dumpindxdae,backenddaeinfo
but I cannot interpret the results.
Many thanks!
Re: How to get the number of variables after the symbolic manipulation?
Hi,
use +d=dumpindxdae, this dumps the system right before code generation. There you see first all time depend variables then all time depend equations, then all time independent variables, then all alias variables. In case of a model with independent subsystems the time depend variables and equations dumped for each system before the time independent variables.
Another option is to use +d=backenddaeinfo. There you see the number of time depend variables and equations and number of the linear/nonlinear subsystem.
If you use additional the stateselection flag (+d=backenddaeinfo,stateselection) the selected states also dumped.
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to get the number of variables...