- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » usage of the linearize() script
usage of the linearize() script
usage of the linearize() script
Hello,
When using the linearize function on my .mo object I get the following error
>> linearize("model.mo")
[<interactive>:1:1-1:0:writable] Error: Class linearize not found in scope <global scope> (looking for a function or record).
I'm using OMShell and using cd() I'm verifying that i'm in the correct folder. OMEdit version is 1.10. I've tried to first load the file, and the Modelica Library, without succes.
Does anyone know how I can resolve this issue?
Re: usage of the linearize() script
See here how to use the linearize function https://build.openmodelica.org/Document … arize.html
You need to first load the file using the loadFile API https://build.openmodelica.org/Document … dFile.html
Then call the linearize on your model.
For example if your model is named "M" then,
loadFile("model.mo")
linearize(M)
Adeel.
- adeas
- 454 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » usage of the linearize() script