Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5420 closed defect (fixed)

All Opened Libraries Are Included in Resource Folder FMU

Reported by: Arinomo <trista.arinomo@…> 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 Martin Sjölund, 6 years ago

Owner: changed from Lennart Ochel to Martin Sjölund
Status: newaccepted

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.

comment:2 by Martin Sjölund, 6 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.