Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3475 closed defect (fixed)

Add support for source code FMU's

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: normal Milestone: 1.9.4
Component: FMI Version:
Keywords: Cc: Adrian Pop, Adeel Asghar

Description (last modified by Martin Sjölund)

There are several issues that should be fixed w.r.t. FMU's:

  • translateModelFMU corresponds to the behaviour of buildModel, and should be called buildModelFMU. translateModelFMU should create a source-code FMU.

We should always create a source-code FMU first, and then update the files within it to include the binaries for one target. So something like: buildModelFMU(M, version="2.0", targets={"linux32","linux64"}) actually corresponds to translateModelFMU(M, version="2.0"); fmuBuildBinary("M.fmu", "linux32"); fmuBuildBinary("M.fmu", "linux64"); (and if the target cannot cross-compile for one platform, you can send the FMU to that platform and compile the sources there instead).

When compiling a source-code FMU, two primary options are needed: linking the runtime, or compiling it yourself (necessary for targets that OpenModelica does not support; embedded targets, etc).

We also need to know which C sources are necessary in order to compile a source-code FMU (which is different for ME and CS).

Change History (5)

comment:1 by Martin Sjölund, 9 years ago

Cc: Adrian Pop Adeel Asghar added
Description: modified (diff)
Owner: changed from Adeel Asghar to Martin Sjölund
Status: newaccepted
Summary: translateModelFMU is wrongly namedHandle source code FMU's better

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

Resolution: fixed
Status: acceptedclosed
Summary: Handle source code FMU's betterAdd support for source code FMU's

Source code FMUs are now supported, platsforms={"x86_64-linux-gnu"}, etc works. We can now cross-compile for linux32/64, darwin32/64, win32/64, and arm-linux-gnueabihf. We also run tests of fmucheck using wine and darling to test most of these targets (darwin32 and arm excepted).

comment:3 by Dietmar Winkler, 9 years ago

Milestone: Future1.9.4

Sorting these closed tickets away from "Future". Since they were closed after the last 1.9.3 release, it's very likely that they should have been part of the 1.9.4 release.

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:5 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.