Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2238 closed defect (worksforme)

Linearize fuction

Reported by: eashan.liyana@… 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 Per Östlund, 12 years ago

Resolution: worksforme
Status: newclosed

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.

comment:2 by Martin Sjölund, 12 years ago

Per, do you know which revision it was added to? (So I can add the version introduced to the revisions annotation)

in reply to:  2 comment:3 by Per Östlund, 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)

r13413 and r13421.

Note: See TracTickets for help on using tickets.