Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example equationPair #1116

Merged
merged 1 commit into from
Feb 22, 2022
Merged

Add example equationPair #1116

merged 1 commit into from
Feb 22, 2022

Conversation

lochel
Copy link
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
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
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
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