#2238 closed defect (worksforme)
Linearize fuction
Reported by: | Owned by: | somebody | |
---|---|---|---|
Priority: | high | Milestone: | 1.9.0 |
Component: | Command Prompt Environment | Version: | 1.8.1 |
Keywords: | Cc: |
Description
Hello,
I would like to use the fuction "linearize" (https://build.openmodelica.org/Documentation/OpenModelica.Scripting.linearize.html), but when I try to use it in OMShell I got this error :
>> linearize(twoflattankmodel,stopTime=1)
'Error: Class linearize not found in scope <global scope> (looking for a function or record).
The way I use the fuction, is it wrong ? If yes how do I use it ?
Eashan
Change History (3)
comment:1 by , 12 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
follow-up: 3 comment:2 by , 12 years ago
Per, do you know which revision it was added to? (So I can add the version introduced to the revisions annotation)
comment:3 by , 12 years ago
Replying to sjoelund.se:
Per, do you know which revision it was added to? (So I can add the version introduced to the revisions annotation)
Your version of OpenModelica is too old, linearize was not added as a scripting function until 1.9.0 Beta2. Try the 1.9.0 Beta4 release or one of the nightly builds and it should work for you.