Book a Demo

Author Topic: Errors in Modelica code generation for SysML Sim: multidimensional parameters  (Read 24503 times)

fishy

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
This relates to an obervation first made a few years ago...

https://sparxsystems.com/forums/smf/index.php/topic,48010.0.html

  • EA doesn't correctly declare Modelica parameters from SysML parameters that are typed as vectors using mutiplicty.
  • EA appears to ignore the stereotyping of parameters using SysPhS <<MultidimensionalElement>> when declaring Modelica parameters
  • There are inconsistencies in the syntax EA uses for Modelica parameters declared in blocks, and those declared for Operations stereotyped <<SimFunction>>.   It's actually slightly closer to correct for SimFunctions, but still doesn't work

This was last tested by me, using EA 17.1.1713

Please post here if you'd like me to expand with more detail.
« Last Edit: January 14, 2026, 03:27:26 am by fishy »
-Neil

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Hi Neil,

Just to give you a heads up. Posting here is to make other users aware of the issue. If you want to report it to Sparx, you have to use the report a bug form on the website:

https://sparxsystems.com/support/forms/bug_report.html

Geert

fishy

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Thanks - I did that also, but I hope posting on the forum is a good way for the dev team to discuss requirements/fixes with a wider group?
-Neil