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

Coupling GenOpt with OpenModelica in Windows #12

Open
giomarpap opened this issue May 1, 2024 · 1 comment
Open

Coupling GenOpt with OpenModelica in Windows #12

giomarpap opened this issue May 1, 2024 · 1 comment

Comments

@giomarpap
Copy link

Hello, I hope I am posting this in the correct place, if not, please advise me accordingly.

I am in the process of coupling GenOpt with OpenModelica in Windows. I believe I am close to achieve it, yet not successful.

After launching this in Windows Powershell:
java -classpath genopt.jar genopt.GenOpt .\initialisation.ini

The folder tmp-genopt-run-1 is created, and then a bat file is executed, which firsts copies a test_JacA.bin file (generated when previously compiled/build the modelica case) in the folder and then it executes :
.\test.bat -override c1_input=%c1%,c2_input=%c2%,stopTime=43200,stepSize=30

The simulation apparently finishes successfully since the result.txt file is generated correctly with the expected value. e.g.

Objective function value
f(x) = 9133302.9028263390064240

However, the genopt crashes providing the following message: (while the logfile does not contain any additional information)

GenOpt terminated with error.
See logfile for further information.

So, I am puzzled as to why genopt crashes, if the simulation is successfully producing the required output file. Any help would be highly appreciated. Thanks!

@AHaumer
Copy link

AHaumer commented Jun 11, 2024

@giomarpap could you post GenOpt.log respectively the error message? Which version of OpenModelica are you using?

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

No branches or pull requests

2 participants