open-simulation-platform / libcosim

OSP C++ co-simulation library
https://open-simulation-platform.github.io/libcosim
Mozilla Public License 2.0
61 stars 10 forks source link

Clean up the test FMU set #763

Closed kyllingstad closed 5 months ago

kyllingstad commented 5 months ago

The tests/data/fmi2 directory contains a couple of FMUs from the old official "Test FMUs" set:

These are no longer available on the FMI web site, and as far as I can tell, they're no longer easily available online at all. We probably shouldn't be hosting obscure binary blobs in our repo.

And there are other issues too:

We really should clean this up. I would understand any user who is sceptical of running tests where we use these FMUs.

We do need to test with real FMUs, though, so any suggestions for improvements are welcome.

kyllingstad commented 5 months ago

Actually, the RoomHeating FMU doesn't seem to be used by our tests, so it can simply be removed.

kyllingstad commented 5 months ago

I'm working on this, and it turns out that almost all of these FMUs can be removed. The only ones I haven't been able to sort out are tests/data/ssp/demo/CraneController.fmu and tests/data/ssp/demo/KnuckleBoomCrane.fmu. Judging from the source files inside them, it seems that both were generated by 20-sim using an NTNU Ålesund student license. Are they yours, @markaren?

If so, would you like to specify a licence for them? I'm trying to ensure that we provide the correct licence file alongside each FMU.

markaren commented 5 months ago

They were generated by @yingguangchu. Ideally the SSP tests should just perform the same tests as the osp config, allowing us to remove these FMUs.

kyllingstad commented 5 months ago

The OSP config tests use the same FMUs, it seems. But since we've now confirmed that the FMUs were contributed by NTNU to the OSP project, I'll assume that they are covered by the MPL 2.0 licence like most of the other things in the repo.

kyllingstad commented 5 months ago

The most pressing issues were fixed in #764, so I'm closing this. Feel free to reopen if anyone sees the need to get rid of binary FMUs entirely.