#5420 closed defect (fixed)
All Opened Libraries Are Included in Resource Folder FMU
Reported by: | Owned by: | Martin Sjölund | |
---|---|---|---|
Priority: | high | Milestone: | 1.14.0 |
Component: | FMI | Version: | |
Keywords: | FMU resource | Cc: |
Description
model PathTest import Files = Modelica.Utilities.Files; Modelica.Blocks.Sources.CombiTimeTable combiTimeTable1(extrapolation = Modelica.Blocks.Types.Extrapolation.HoldLastPoint, fileName = Files.loadResource("modelica://MY_Tables/LookUp/myTable.txt"), smoothness = Modelica.Blocks.Types.Smoothness.ConstantSegments, tableName = "Test", tableOnFile = true) annotation( Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0))); equation annotation( Icon(coordinateSystem(preserveAspectRatio = false)));end PathTest;
Exporting model as FMU resulted in all libraries that currently open in OMEdit be included in resource folder regardless it was used or not.
Change History (3)
comment:1 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:2 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:3 by , 6 years ago
Note: If you use Windows and don't want to download the whole of OpenModelica, you can update the libraries...
https://build.openmodelica.org/libraries/openmodelicalibraries_latest.tar.xz
Or only ModelicaServices:
https://build.openmodelica.org/apt/pool/libraries/omlib-modelicaservices-3.2.2_3.2.2-237-gd992c34-om2.orig.tar.gz
Note:
See TracTickets
for help on using tickets.
This now works in the current nightly build. (ModelicaServices marks the URI resolution as Inline function).
https://github.com/OpenModelica/OMCompiler/pull/3037 will add a warning when there is a URI that cannot be resolved at compile-time, causing us to embed the full libraries.