Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » tjroamer
  • » Profile

Posts

Posts

May-11-22 07:11:27
How to close an opened model and remove all intermediate files


Yes, this approach will eliminate the necessity of deleting files in the code at the application level. Many thanks for the suggestion.

May-10-22 15:45:30
How to close an opened model and remove all intermediate files

I'd like to develop a python script that needs to do:

1) Load a *.mo file
2) Extract the parameter settings in the model and save it in an external file
3) Close the model and exit

This script should process lots of *.mo files in different folders.

For 1), I figured out to do that by using ModelicaSystem(...) API. After calling this API, OpenModelica generated lots of intermediate files. I am wondering how to do the step 3), meaning close the model and remove all these intermediate files automatically.

Any suggestion would be much appreciated.

Thanks.

Kai

  • Index
  • » Users
  • » tjroamer
  • » Profile
You are here: