Message Boards Message Boards

0
|
3153 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Model Center fails to compilate and run a model that uses MSL 4.0

Posted 1 year ago

Hi,

I'm using SM 13.1 and I'm trying to simulate Electric and Hybrid Power Train models that uses Modelica Standard Library 4.0.0. Models can be found here.

When I try to run one the models compilation errors happens. The error log is attached to this post.

EDIT

I changed to Modelica 4.0.0 in the options panel. The problem actually happens with MSL 4.0 standard examples also, but different compiling errors are generated. I tried to simulate The Double Pendulum example and it returned the following error:

Error: /usr/local/Wolfram/SystemModeler/13.1/L/Modelica 4.0.0/ModelicaTestConversion4.mo [1910:9-1910:59] Base class Modelica.Media.Common.OneNonLinearEquation not found in scope ModelicaTestConversion4.Media.Issue3205.Inversesinedefinition. Error: /usr/local/Wolfram/SystemModeler/13.1/L/Modelica 4.0.0/ModelicaTestConversion4.mo [1912:19-1915:13] Invalid redeclaration of class fnonlinearData, class extends only allowed on inherited classes. Error: /usr/local/Wolfram/SystemModeler/13.1/L/Modelica 4.0.0/ModelicaTestConversion4.mo [1910:9-1910:59] Base class Modelica.Media.Common.OneNonLinearEquation not found in scope ModelicaTestConversion4.Media.Issue3205.Inversesinedefinition. Error: /usr/local/Wolfram/SystemModeler/13.1/L/Modelica 4.0.0/ModelicaTestConversion4.mo [1917:19-1920:13] Invalid redeclaration of class f_nonlinear, class extends only allowed on inherited classes. Error: /usr/local/Wolfram/SystemModeler/13.1/L/Modelica 4.0.0/ModelicaTestConversion4.mo [1910:9-1910:59] Base class Modelica.Media.Common.OneNonLinearEquation not found in scope ModelicaTestConversion4.Media.Issue3205.Inversesinedefinition. Error: /usr/local/Wolfram/SystemModeler/13.1/L/Modelica 4.0.0/ModelicaTestConversion4.mo [1924:19-1925:13] Invalid redeclaration of class solve, class extends only allowed on inherited classes. Error: /usr/local/Wolfram/SystemModeler/13.1/L/Modelica 4.0.0/ModelicaTestConversion4.mo [1910:9-1910:59] Base class Modelica.Media.Common.OneNonLinearEquation not found in scope ModelicaTestConversion4.Media.Issue3205.Inversesinedefinition. Error: /usr/local/Wolfram/SystemModeler/13.1/L/Modelica 4.0.0/ModelicaTestConversion4.mo [1924:19-1925:13] Illegal redeclare of element solve, no inherited element with that name exists. Internal error: Fatal failure: NFSCodeFlattenRedeclare.addElementRedeclarationsToEnv2 Build finished at 12:02:47 (took 00:03). Error: No executable generated /tmp/WolframSystemModeler-austral-13.1/sme.13.1.016631677641427149432.exe Error: No settings file generated /tmp/WolframSystemModeler-austral-13.1/sme.13.1.016631677641427149432.sim

SYSTEM INFO

Product version: 13.1.0.3
Client: Model Center
Client version: 13.1.0.4
Client creation date: 2022-05-20T15:21:04.469569
Client build revisions: J:a111bde51, L:cc04976b1, S:dd80ee46c
Client build type: 64 bit
Kernel version: 13.1.0.4
Kernel creation date: 2022-05-18T09:41:31.112079
Kernel build revisions: J:a111bde51, L:cc04976b1, S:1d9b31919
Kernel root directory: /usr/local/Wolfram/SystemModeler/13.1
Installation directory: /usr/local/Wolfram/SystemModeler/13.1
Platform: Linux Mint 20.2

POSTED BY: Michel Oliveira

I was not able to reproduce the error. You can try changing the Modelica library version in System Modeler by

Right-clicking on the Modelica library -> Version -> 4.0.0

Let me know if this does not solve your problem.

POSTED BY: Ankit Naik
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract