GOTCHA/BUG: Cameo Simulation Toolkit v2021xR1 + Mathematica: Delegation to Mathematica from ConstraintBlocks FAILS if any of the input or output parameters are larger than 99999 because they get interpreted as 1.0e5 and that trips something! Aarrrggggh!

This page identifies a possible issue, concern, error, limitation, or bug!
Webel IT Australia promotes the amazing Mathematica tool and the powerful Wolfram Language and offers professional Mathematica services for computational computing and data analysis. Our Mathematica tips, issue tracking, and wishlist is offered here most constructively to help improve the tool and language and support the Mathematica user community.
DISCLAIMER: Wolfram Research does not officially endorse analysis by Webel IT Australia.
Icon class
icon_class
far fa-sticky-note
icon_class_computed
far fa-sticky-note
Note kind
Policy level
UML keywords
SysMLv1.x keywords
Keywords
Dr Darren says:
Ah, how I suffer testing these things carefully for you so you have all the gain and none of the pain. Life at the bleeding edge ...
Delegation to Mathematica from ConstraintBlocks in Magic Model Analyst® (Cameo Simulation Toolkit®) v2021xR1 FAILS if any of the input parameters or output parameters are larger than 99999 because they get interpreted as 1.0e5 and that trips something! Aarrrgggggh!}
The simulation console gives an error message 'ERROR: The result is not a number'
And it also fails for numbers as lower than 0.0001. For example, 0.00001 is interpreted as 1.0e-5, causing the same error. Aarrrgggggh!}

Yeah, sure, in the real world I turn to Mathematica instead of the built-in maths because I only want to use numbers below 99999 and not a small as 0.00001. Not!

A partial workaround is to use user-defined (custom) Mathematica functions that perform internal conversions. It can also be done with mini SysML converter ConstraintBlocks, but if you do that be sure not to leave the constraint language as 'Mathematica', lest it fail because of the same bug.

Relates to
Related notes
Related notes (backlinks)
Related snippets (extracts)
Visit also
Visit also (backlinks)
External links