Closed sinkinben closed 5 years ago
Looks like there is a bug in the BA parser that is triggered by your model Can you share the model so that I investigate ?
Also, note that the BA is not taken into account by the Cheddar back-end. You may add "-disable-annexes=all" to disable all annexes to the command line
I'm sorry that this AADL model can't be shared with you for copyright reasons. Thanks for your reply : ) I will discuss this with my mentor Yang. I close this issue.
I have add -disable-annexes=all
to cmd line.
But there is still something wrong. (OCARINA BUG DETECTED
)
The log:
$ ocarina.exe -disable-annexes=all -aadlv2 -g cheddar -r dpu.impl dpu_aadl2_no_comment.aadl MyProperties.aadl
dpu_aadl2_no_comment.aadl:488:02: warning: mem references a component type
dpu_aadl2_no_comment.aadl:489:02: warning: sysbus references a component type
dpu_aadl2_no_comment.aadl:490:02: warning: lan references a component type
dpu_aadl2_no_comment.aadl:492:02: warning: cpu1 references a component type
dpu_aadl2_no_comment.aadl:494:02: warning: fibgyr1 references a component type
dpu_aadl2_no_comment.aadl:495:02: warning: fibgyr2 references a component type
dpu_aadl2_no_comment.aadl:496:02: warning: fibgyr3 references a component type
dpu_aadl2_no_comment.aadl:497:02: warning: fibgyr4 references a component type
dpu_aadl2_no_comment.aadl:498:02: warning: fibgyr5 references a component type
dpu_aadl2_no_comment.aadl:500:02: warning: mecgyr references a component type
dpu_aadl2_no_comment.aadl:430:02: warning: buf references a component type
dpu_aadl2_no_comment.aadl:431:02: warning: N1 references a component type
dpu_aadl2_no_comment.aadl:432:02: warning: N2 references a component type
ocarina: Total: 0 error and 13 warnings
+========================== OCARINA BUG DETECTED =========================+
| Detected exception: SYSTEM.ASSERTIONS.ASSERT_FAILURE |
| Error: failed precondition from ocarina-backends-cheddar-mapping.ads:61 |
| Please refer to the User's Guide for more details. |
+=========================================================================+
raised SYSTEM.ASSERTIONS.ASSERT_FAILURE : failed precondition from ocarina-backends-cheddar-mapping.ads:61
Symbolic Traceback:
I have sent the aadl models to your mailbox (My email is sinkinben@outlook.com
).
PS: I am sorry that the model can't be published on git.
Could you please help me to check the model?
Thanks a lot.
From this exception, it is likely than one of your processor does not define the Scheduling_Protocol property
What schedule protocol property do Ocarina & Cheddar support?
I have defined theScheduling_Protocol
property in processor, and tested several schedule protocols such as POSIX_1003_HIGHEST_PRIORITY_FIRST_PROTOCOL
, RMS
.
But they did not work.
Is there something wrong with my schedule protocol declaration?
processor intel_80c32
properties
Scheduling_Protocol => (POSIX_1003_HIGHEST_PRIORITY_FIRST_PROTOCOL);
end intel_80c32;
$ ocarina.exe -disable-annexes=all -aadlv2 -g cheddar dpu.impl *.aadl
dpu_aadl2_no_comment.aadl:488:02: warning: mem references a component type
dpu_aadl2_no_comment.aadl:489:02: warning: sysbus references a component type
dpu_aadl2_no_comment.aadl:490:02: warning: lan references a component type
dpu_aadl2_no_comment.aadl:492:02: warning: cpu1 references a component type
dpu_aadl2_no_comment.aadl:494:02: warning: fibgyr1 references a component type
dpu_aadl2_no_comment.aadl:495:02: warning: fibgyr2 references a component type
dpu_aadl2_no_comment.aadl:496:02: warning: fibgyr3 references a component type
...
ocarina: Total: 0 error and 13 warnings
+========================== OCARINA BUG DETECTED =========================+
| Detected exception: SYSTEM.ASSERTIONS.ASSERT_FAILURE |
| Error: failed precondition from ocarina-backends-cheddar-mapping.ads:81 |
| Please refer to the User's Guide for more details. |
+=========================================================================+
raised SYSTEM.ASSERTIONS.ASSERT_FAILURE : failed precondition from ocarina-backends-cheddar-mapping.ads:81
Symbolic Traceback:
processor intel_80c32
properties
Scheduling_Protocol => (RMS);
end intel_80c32;
The log is the same as above.
Check the source code, the.ads error moved from line 61 (scheduler) to 81 81 indicates your thread does not define compute_execution_time
Thanks for your quick reply. I will check my AADL model in detail. By the way, could you please provide me with a simple AADL model example? In this way, maybe I can find out what the problem is in my AADL model. Thanks a lot.
Check the AADLib project for examples, in particular RMA and Radar
No example provided to investigate this bug, closing
ocarina version
I use cheddar (supported by ocarina) to analysis an AADL system. But
OCARINA BUG DETECTED
occurred. Is it caused by AADL models or just by ocarina? LOG: