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

model_init.xml and model_info.json ..... what are they for?

model_init.xml and model_info.json ..... what are they for?

Hello.

I'm trying to run the executable that was created after I ran my model from within OMEdit and I am changing the values in model_init.xml to run with different variable values.  It also seems that the executable needs model_info.json.  What is model_info.json for?  Do I need to do anything with it for this to work right?

Thanks.
Adam

Re: model_init.xml and model_info.json ..... what are they for?

You can just use the -override or -overrideFile flags to change values (changing the XML-file can break things). The JSON file should not be changed either.

Re: model_init.xml and model_info.json ..... what are they for?

I know that for -override the syntax is something like this:

Code:


-override=startTime=0,stopTime=30,stepSize=0.0003,tolerance=1e-06,solver=dassl,outputFormat=mat,variableFilter=.* 

What is the format of the file passed to -overrideFile?  xml?  or just a file with the same contents that you would pass to -override?

Edited by: adamLange - Oct-26-16 19:43:04

Re: model_init.xml and model_info.json ..... what are they for?

See here:
https://www.openmodelica.org/doc/OpenMo … flags.html
The format is:

Code:


var1=val1
var2=val2

Re: model_init.xml and model_info.json ..... what are they for?

Perfect!  Thank you!

There are 0 guests and 0 other users also viewing this topic
You are here: