Opened 4 years ago

Last modified 4 years ago

#6214 new defect

Simulate OpenModelica models on linux Server/Cluster

Reported by: lukas.koenemann@… Owned by: arunkumar palanisamy
Priority: high Milestone: Future
Component: OMPython Version:
Keywords: Cc:

Description

Hello,

I'm using OpenModelica to simulate/optimize an decentralized energysystem. I'm using python (OMPYthon) to automatically call the simulation multiple times with different parameters. Now I want to run the optimization on a cluster system from my university. On the cluster I dont have sudo right, so i cant install openmodelica on the cluster. Does there exist an workaround to call a simulation from within a cluster system (like a docker-file)?

Attachments (1)

Dockerfile (1.2 KB ) - added by arunkumar palanisamy 4 years ago.

Download all attachments as: .zip

Change History (5)

by arunkumar palanisamy, 4 years ago

Attachment: Dockerfile added

comment:1 by arunkumar palanisamy, 4 years ago

if your cluster supports docker, then it is possible to use dockerfile to install openmodelica and run it inside the docker container. I have attached a sample dockerfile on how to use it. You can use it as an example

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

Or you could use the published docker image on hub.docker.com.

Are the parameters structural or can you run the same compiled executable on each machine?

Last edited 4 years ago by Martin Sjölund (previous) (diff)

comment:3 by lukas.koenemann@…, 4 years ago

the parameters arent structural. i think its possible to run container via singularity at the cluster.

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

Since they aren't structural you could possibly just take the simulation executable and bundle it with the .so-files it uses and run the executable on each machine as well. A container is the same concept but a bit bigger.

Note: See TracTickets for help on using tickets.