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 , 8 years ago
comment:2 by , 8 years ago
Component: | OMEdit → Run-time |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:3 by , 7 years ago
Milestone: | 1.12.0 → 1.13.0 |
---|
Milestone moved to 1.13.0 due to 1.12.0 already being released.
comment:5 by , 5 years ago
Milestone: | 1.14.0 → 1.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:7 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
Retargeted to 1.18.0 because of 1.17.0 timed release.
I think this issue is related to the ticket #4352.