Skip to content

Add example equationPair#1116

Merged
lochel merged 1 commit intoOpenModelica:masterfrom
lochel:example
Feb 22, 2022
Merged

Add example equationPair#1116
lochel merged 1 commit intoOpenModelica:masterfrom
lochel:example

Conversation

@lochel
Copy link
Copy Markdown
Member

@lochel lochel commented Feb 22, 2022

There are only linux binaries for the example right now. @AnHeuermann could generate a cross-platform FMU for us? All the docker instructions are in equationPair.mos.

@lochel lochel enabled auto-merge (squash) February 22, 2022 14:24
@lochel lochel merged commit 80f18a8 into OpenModelica:master Feb 22, 2022
@lochel lochel deleted the example branch February 22, 2022 14:46

loadFile("equationPair.mo"); getErrorString();

buildModelFMU(equationPair.equation1, version="2.0", fmuType="cs", fileNamePrefix="equationPair.equation1", platforms={"i686-linux-gnu docker run docker.openmodelica.org/build-deps:v1.13-i386","x86_64-linux-gnu docker run docker.openmodelica.org/build-deps:bionic.nightly.amd64","i686-w64-mingw32 docker run docker.openmodelica.org/msyscross-omsimulator:v2.0","x86_64-w64-mingw32 docker run docker.openmodelica.org/msyscross-omsimulator:v2.0"}); getErrorString();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OMEdit/ omc uses the multiarch/crossbuild docker image. I guess we should use that here as well:

platforms := {
  "x86_64-apple-darwin15 docker run -e CROSS_TRIPLE=x86_64-apple-darwin multiarch/crossbuild",
  "arm-linux-gnueabihf docker run -e CROSS_TRIPLE=arm-linux-gnueabihf multiarch/crossbuild",
  "x86_64-linux-gnu docker run multiarch/crossbuild",
  "i686-linux-gnu docker run multiarch/crossbuild",
  "x86_64-w64-mingw32 docker run -e CROSS_TRIPLE=x86_64-w64-mingw32 multiarch/crossbuild",
  "i686-w64-mingw32 docker run -e CROSS_TRIPLE=i686-w64-mingw32 multiarch/crossbuild"};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case you would need to use a specific tag that never updates since otherwise the tests might start to fail randomly since our machines might use different versions of the image.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mos script isn't part of the actual test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants