Hi,

I have issues with creating the OpenModelica C code for a model in an 
automatical manner.

I can use omc on the command line, like `omc +s model.mo`. But the model has to 
be *total*, i.e. no Modelica types can be used unless by copying the relevant 
code directly into the model. Are there plans to change that in the near future?

Instead, I can write a mos script file. There I first load the Modelica 
library, all dependent models and finally the model to compile. Then I can 
produce the code by calling either `translateModel` or `simulate` in the 
script. But I don't really want to simulate it at that time. Rather just create 
the code. So that leaves only `translateModel`, which doesn't produce the 
model_init.txt file. Is that intended? I take it the code depends on the init 
file. Are there other means for creating the init file? Or even for creating 
the code?

Regards,
Alexander


Reply via email to