Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5420 closed defect (fixed)

All Opened Libraries Are Included in Resource Folder FMU

Reported by: Arinomo <trista.arinomo@…> Owned by: sjoelund.se
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 Changed 5 years ago by sjoelund.se

  • Owner changed from lochel to sjoelund.se
  • Status changed from new to accepted

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 Changed 5 years ago by sjoelund.se

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.