-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wolfram SystemModeler compatibility #10
Comments
I tried to use the most recent version (not 1.1) and now I am receiving error: |
I added a branch called "SystemModeler" that doesn't contain the critical expressions which causes the flattening issue. However, I have no SystemModeler license and cannot test the changes. |
Thank you for adding this branch. I tried it in Wolfram System Modeler version 4.0.1 I tried SingleTD example - everything is OK. I tried SinglePD example and there is an error:
SingleTC example:
I tried it in Wolfram System Modeler 4.2. Single TD is OK but SinglePD example is not:
Do you have any idea how to fix it? Thank you very much for your help! |
I have an answer from official System Modeler forum:
If soo, I guess it's the code generation that has problem with an applying not to an array of booleans, you could try to replace it with the following Modelica function to avoid the problem.
" |
It seems that there are multiple issues with Wolfram SystemModeler. This is what I guess from the error messages above:
The first two issues can be fixed easily with workarounds in the library. However, I cannot do it efficiently without Wolfram SystemModeler license. |
Hi, Here are my implemented functions:
|
@xcesek Thanks for your input. I will consider your changes and update the SystemModeler branch soon. |
The logical array operations are now working due to the workaround from @xcesek. However, there are two blockers left:
|
@lochel Feel free to submit a bug report with the two blocking issues to Wolfram. |
@johanrhodin What is the place for SystemModeler bug reports? |
[email protected], feel free to cc me. |
As far as I know, the new version of SystemModeler contains some significant front end improvements. Hence, it should be worth it to test the library once more. |
Sounds like a great idea, @modlfo should be able to help |
Your PNlib library is awesome but I miss Wolfram SystemModeler compatibility.
Do you think that it is possible to easily fix this library to work with Wolfram SystemModeler? Thank you very much!
Now I am receiving this error:
Building "PNlib.Examples.ConTest.Speed" as experiment "Speed 1" started at 14:29:23
Error: [:0:0-0:0]Error occurred while flattening model PNlib.Examples.ConTest.Speed
Error: [C:/Users/erikn_000/Documents/PNlib-1.1/PNlib/Blocks/enablingOutCon.mo:59:9-59:71]Failed to elaborate expression: enablingProb[remTAout[1:nremTAout]].
Warning: [:0:0-0:0]In component P2.enableOut, in relation arcWeightSum == 0.0, == on Real numbers is only allowed inside functions.
Warning: [:0:0-0:0]In component P2.enableIn, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions.
Warning: [:0:0-0:0]In component P2.enableIn, in relation arcWeightSum == 0.0, == on Real numbers is only allowed inside functions.
Warning: [:0:0-0:0]In component P1.enableOut, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions.
Warning: [:0:0-0:0]In component P1.enableOut, in relation arcWeightSum == 0.0, == on Real numbers is only allowed inside functions.
Warning: [:0:0-0:0]In component P1.enableIn, in relation arcWeight[i] == 0.0, == on Real numbers is only allowed inside functions.
Warning: [:0:0-0:0]In component P1.enableIn, in relation arcWeightSum == 0.0, == on Real numbers is only allowed inside functions.
Error: No executable generated C:/Users/ERIKN_~1/AppData/Local/Temp/sme.4.0.1_1440332963_41.exe
Error: No settings file generated C:/Users/ERIKN_~1/AppData/Local/Temp/sme.4.0.1_1440332963_41_init.sim
The text was updated successfully, but these errors were encountered: