Compatibility issues for 2024-04 release

59 views
Skip to first unread message

Fabrizio Breggia

unread,
May 3, 2024, 6:52:02 AMMay 3
to JaamSim Users Discussion Group
Hi,

I have a model written with Jaamsim 2018-05. When I try to open it now, with the last release, an error occurs:

"Fatal Error while loading file 'test.cfg': blablabla:
Entity [blablabla] may not have children

Please would you be so kind to help me?

Many thanks in advance

Harry King

unread,
May 3, 2024, 12:10:02 PMMay 3
to JaamSim Users Discussion Group
Open the .log file generated by JaamSim in a text editor, preferably Notepad++. This file echoes the lines in the .cfg file you loaded and shows any error messages that were generated after each line was parsed. Include the offending line in your next post to the forum.

Harry

Message has been deleted

Fabrizio Breggia

unread,
May 6, 2024, 3:13:50 AMMay 6
to JaamSim Users Discussion Group
Good morning Harry,

please find here below the .log content:


RecordEdits

Define ExpressionLogger { Operator1.Util  Operator2.Util  Robot1.Util  Robot2.Util }
*** ERROR *** The parent entity [Operator1] has not been defined.

*** ERROR *** The parent entity [Operator2] has not been defined.

*** ERROR *** The parent entity [Robot1] has not been defined.

*** ERROR *** The parent entity [Robot2] has not been defined.

Define ExpressionThreshold { ExpressionThreshold1  ExpressionThreshold2  ExpressionThreshold3  ExpressionThreshold4  ExpressionThreshold5 }
Define Assign { Ass_Post_R1  Ass_Post_R2  Ass_Pre_OP1  Ass_Pre_OP2  Ass_Pre_R1  Ass_Pre_R2 }
Define Branch { Choice_Exit  Choice_Operator  Choice_Robot }
Define EntityConveyor { To_Exit  To_OP  To_Robot  To_Robot_2 }
Define EntityGenerator { Enter }
Define EntityLogger { EntityLogger1 }
Define EntitySink { Exit }
Define Queue { BuffOp1  BuffOp2  BuffR1  BuffR2  CommonBuff  ResBuff1  ResBuff2 }
Define Release { Release1  Release2 }
Define Resource { TemplateA1  TemplateA2  TemplateB1  TemplateB2  TemplateC1  TemplateC2  TemplateD1  TemplateD2 }
Define Seize { Seize1  Seize2 }
Define Server { Operator1  Operator2  Robot1  Robot2  Server1 }
Define SetGraphics { SetGraphics1  SetGraphics2 }
Define SimEntity { Pallet }
Define ColladaModel { Axis  Grid100x100 }
Define ImageModel { Magazzino-model }
Define ShapeModel { Circle_A  Circle_B  Circle_C  Circle_D }
Define DisplayEntity { A  B  C  D  Magazzino  Magazzino_Copy1  Vuoto  XY-Grid  XYZ-Axis }
Define EntityLabel { Ass_Post_R1_Label  Choice_Exit_Label  Choice_Operator_Label  Choice_Robot_Label  Enter_Label1  Exit_Label1  Operator1.Util_Label  Operator1_Label  Operator2.Util_Label  Operator2_Label  Pallet_Label1  Robot1.Util_Label  Robot1_Label  Robot2.Util_Label  Robot2_Label  TemplateA1_Label  TemplateA2_Label  TemplateB1_Label  TemplateB2_Label  TemplateC1_Label  TemplateC2_Label  TemplateD1_Label  TemplateD2_Label }

Fatal Error while loading file 'GWM N470 Welding area_TAKT_250.cfg': Operator1:
Entity [Operator1] may not have children

com.jaamsim.basicsim.Entity.error(Entity.java:979)
com.jaamsim.basicsim.Entity.addChild(Entity.java:665)
com.jaamsim.basicsim.JaamSimModel.addNamedEntity(JaamSimModel.java:1103)
com.jaamsim.basicsim.JaamSimModel.createInstance(JaamSimModel.java:1067)
com.jaamsim.input.InputAgent.defineEntity(InputAgent.java:443)
com.jaamsim.input.InputAgent.defineEntity(InputAgent.java:433)
com.jaamsim.input.InputAgent.processDefineRecord(InputAgent.java:319)
com.jaamsim.input.InputAgent.readBufferedStream(InputAgent.java:234)
com.jaamsim.input.InputAgent.readStream(InputAgent.java:191)
com.jaamsim.basicsim.JaamSimModel.loadFile(JaamSimModel.java:465)
com.jaamsim.basicsim.JaamSimModel.configure(JaamSimModel.java:418)
com.jaamsim.ui.GUIFrame.configure(GUIFrame.java:4925)
com.jaamsim.ui.GUIFrame$95.run(GUIFrame.java:4903)
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
java.awt.EventQueue.access$500(EventQueue.java:97)
java.awt.EventQueue$3.run(EventQueue.java:709)
java.awt.EventQueue$3.run(EventQueue.java:703)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Many thanks again for your support.

Best,
Fabrizio

Harry King

unread,
May 7, 2024, 10:27:41 AMMay 7
to JaamSim Users Discussion Group
Fabrizio,

The problem is that you have used the period character '.' in some of your object names, such as Operator1.Util. This used to be okay, but object names can no longer include a period because this notation is used to indicate the component of a sub-model. The solution is to edit your input file and use search and replace to change the names of these objects, e.g. Operator1_Util instead of Operator1.Util.

Harry

Fabrizio Breggia

unread,
May 7, 2024, 11:34:28 AMMay 7
to JaamSim Users Discussion Group
Dear Harry,

thanks for your help, now it is properly working.

Regards,
Fabrizio

Reply all
Reply to author
Forward
0 new messages