Opened 5 years ago

Closed 5 years ago

#5446 closed defect (fixed)

Scripting Notifications does not show up after simulation

Reported by: dariomangoni@… Owned by: adeas31
Priority: normal Milestone: 1.14.0
Component: OMEdit Version: v1.14.0-dev-nightly
Keywords: Cc:

Description

Debugging the issue https://trac.openmodelica.org/OpenModelica/ticket/5440
I realized that the Scripting Notification messages are not output automatically after the simulation (or in any other moment).

They show up only when you go back to the Modeling tab, modify the text and save the changes. Then, and only then, the scripting notification message shows up in the message browser.

Please refer to the minimal example of the ticket 5440 to have an example that shows the described behaviour.

Change History (3)

comment:1 Changed 5 years ago by adeas31

I took the model visShapeSTL from #5440 simulate it with Animation and directly got the Translation Warning,

The binding expression Modelica.Utilities.Files.fullPathName("file:///wheel.stl") of the visualization type component wheelShapeFile  cannot be evaluated. Please specify a visualization type (CAD files are specified as modelica://packagename/filename.stl)

comment:2 Changed 5 years ago by dariomangoni@…

Really sorry,
the problem was present in this (slightly different) case:

model visShapeSTL
  parameter String wheelShapeFile = "/wheel.stl";
  Modelica.Mechanics.MultiBody.Parts.Fixed fixed(animation = false)  annotation(
    Placement(visible = true, transformation(origin = {-30, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  inner Modelica.Mechanics.MultiBody.World world(animateGravity = false, animateGround = false, animateWorld = false) annotation(
    Placement(visible = true, transformation(origin = {-90, 90}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape vis(shapeType = wheelShapeFile, r_shape = {0, 0, 0}, lengthDirection = {1, 0, 0}, widthDirection = {0, 1, 0}, length = 1.0, width = 1.0, height = 1.0, color = {0, 128, 255}, extra = 0.0, specularCoefficient = world.defaultSpecularCoefficient, r = world.frame_b.r_0, R = world.frame_b.R) if world.enableAnimation;
equation
  annotation(
    uses(Modelica(version = "3.2.3")));
  annotation(
    Placement(visible = true, transformation(origin = {12, 2}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
end visShapeSTL;

comment:3 Changed 5 years ago by adeas31

  • Milestone changed from Future to 1.14.0
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.