Opened 8 years ago

Last modified 3 years ago

#4370 assigned defect

Modelica.Mechanics.Translational.Components.Fixed rises an error when parameter is changed

Reported by: Andrea Bartolini Owned by: Adrian Pop
Priority: critical Milestone:
Component: Run-time Version: v1.12.0
Keywords: Cc:

Description

Please consider the following model:

model pippo
  Modelica.Mechanics.Translational.Components.Fixed fixed1 annotation(
    Placement(visible = true, transformation(origin = {0, 2}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  annotation(
    uses(Modelica(version = "3.2.2")));
end pippo;

Now open the parameter window and insert the following value for the s0 parameter:
(1+2)/3

the following error is thrown and the parameter value is not set:

[1] 18:40:33 Scripting Error
Unable to set the component modifier value using command setComponentModifierValue(pippo, fixed1.s0, $Code((1+2)/3))

[2] 18:40:34 Translation Error
Class setComponentModifierValue not found in scope <global scope> (looking for a function or record).

The problem seems linked to the use of the parenthesis in the parameter value...

OMEdit 1.12.0~dev-250-g0f5c07d
Connected to OpenModelica 1.12.0~dev-561-gc489db1
sysop Ubuntu 14.04 - 64 bit

Change History (8)

comment:1 by Jan Kokert, 8 years ago

I think this issue is related to the ticket #4352.

comment:2 by Adeel Asghar, 8 years ago

Component: OMEditRun-time
Owner: changed from Adeel Asghar to Adrian Pop
Status: newassigned

comment:3 by Francesco Casella, 7 years ago

Milestone: 1.12.01.13.0

Milestone moved to 1.13.0 due to 1.12.0 already being released.

comment:4 by Francesco Casella, 6 years ago

Milestone: 1.13.01.14.0

Rescheduled to 1.14.0 after 1.13.0 releasee

comment:5 by Francesco Casella, 5 years ago

Milestone: 1.14.01.16.0

Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0

comment:6 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:7 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 because of 1.17.0 timed release.

comment:8 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.