-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unused models in Modelica/ModelicaTest library #1539
Comments
Comment by otter on 14 Jul 2014 15:59 UTC
Partially fixed in eaa6a18 by adding a model ModelicaTest.TestAllFunctions with an experiment annotation that calls most function tests. Please, produce an updated list of unused models/functions. |
Comment by sjoelund.se on 15 Jul 2014 09:39 UTC
|
Comment by sjoelund.se on 15 Jul 2014 09:45 UTC |
Comment by sjoelund.se on 15 Jul 2014 19:13 UTC
Looking at that model, I think it would be better if the test functions were all different models. Because that gives you a better overview of what parts of MSL functions a tool supports. Anyway, https://test.openmodelica.org/libraries/ModelicaTest_trunk/Coverage.txt and https://test.openmodelica.org/libraries/MSL_trunk/Coverage.txt are up now (refreshed daily, and you can see how many experiments use them; I could also provide a list of classes used in MSL by MSL,Modelica,Buildings,ThermoPower,etc libraries if desired). |
….solveLinearEquations
@sjoelund Can you please sum up what is left to do here? |
The old way we used of generating those files seems to have disappeared, but I hacked up something similar. The following is a list of the classes not tested by any experiment in Modelica or ModelicaTest: https://gist.github.com/sjoelund/f5a215311f779783d8c192c0c0e66c6b The script used to generate the list creates one big model containing all experiments, creates a total model of these and compares the classes present before and after: https://gist.github.com/sjoelund/7df830e1ea8be4b3032023518cf9542d |
Oh dear, that is a huge number. 🔢 |
It hasn't filtered out things like icons and documentation, but it's still somewhat large. |
Yes, that was so troubling that I thought it best to have double-check that to be sure - and Dymola gave a similar result(*), and found another number: class coverage is at 79.3%. Unfortunately that number is not huge. *: Except that we don't include functions in this list yet; on the other hand we remove documentation and icons - except for Modelica.Fluid.Dissipation.Utilities.Icons, and it is laid out differently - so I didn't upload it yet; and I'm not sure if it was for latest build. The important part was the top of the summary that says: 1739 of 2191 classes are covered by the test suite. 452 classes are not covered. Updated: Turns out I looked at the wrong result, so the tests in ModelicaTest were skipped. |
@HansOlsson @sjoelund Can you please regenerate the class coverage based on MSL v4.0.0-beta.2? Thanks. |
I reran I have attached the log. |
I realized that I missed computing the simple statistics based on that. The class coverage is now 83.3% up from 79.3%. |
Thanks a lot for the information. |
It's also available here directly in browser. |
@HansOlsson I was wondering if Dymola is able to output the coverage in a slightly different format simply listing the full class name and the amount of usage all in one line.
something like this:
That kind of format would make it much easier to grep and filter and create a reduced (working) list. |
And simple text format would be sufficient for the post-processing application. |
Sorted by names or by number of occurences (as https://test.openmodelica.org/libraries/MSL_trunk/Coverage.txt does)? (By the way, that MSL_trunk in OpenModelica is not related to MSL v4.0.0.) |
Yes that would be perfect. @sjoelund Is there a more up to date listing available? |
Not at the moment as far as I know. I will see if we can prioritize it. |
MSL_trunk in OpenModelica is the same as the latest master, but that particular file didn't get updates since 2018. I'll see how long it takes to regenerate these files... |
count.txt |
Cannot believe it, since there no longer is Modelica.SIunits in MSL. |
Oh yeah, I forgot to change to the trunk version. Silly me. |
CountClasses.txt |
Reported by sjoelund.se on 14 Jul 2014 14:48 UTC
The attached list of classes are unused by any experiments in ModelicaTest and Modelica. Many of them are due to testAllFunctions not being an experiment, and the testing of functions not being part of models; but there are some more models in there.
Migrated-From: https://trac.modelica.org/Modelica/ticket/1539
The text was updated successfully, but these errors were encountered: