Opened 11 years ago

Closed 11 years ago

Last modified 11 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 Changed 11 years ago by perost

  • Resolution set to worksforme
  • Status changed from new to closed

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 follow-up: Changed 11 years ago by sjoelund.se

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

comment:3 in reply to: ↑ 2 Changed 11 years ago by perost

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.