CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
157 stars 51 forks source link

FMU could not be unzipped, only DEFLATED entries can have EXT description #233

Closed Spiegel-Leser closed 3 years ago

Spiegel-Leser commented 3 years ago

A FMU cannot be imported into Simulink, giving the error message in the title. Interesting: It still works with FMIKit 2.7

edit - I mistakenly wrote 2.8, I meant 2.7

t-sommer commented 3 years ago

Can you share an FMU to reprocude the problem?

Spiegel-Leser commented 3 years ago

I sent it to you via email.

t-sommer commented 3 years ago

Your FMU contains a ZIP file under resources/resources/obj/ that is not compressed with method deflate as required by the FMI Specification 2.0.1, p. 68, but with method store which Java's ZipInputStream can't handle.

To import your FMU with FMI Kit you can either remove this file from the FMU (as it doesn't seem to be required) or re-pack it, e.g. with 7zip.