#3628 closed defect (fixed)
Model simulation breaks since commit 7dfbb01
Reported by: | Owned by: | Lennart Ochel | |
---|---|---|---|
Priority: | high | Milestone: | 1.13.0 |
Component: | Backend | Version: | |
Keywords: | Cc: |
Description
OM properly simulates my model up until commit c3dd385, but breaks on 7dfbb01. I have tried to pull out as many parts of my model as possible to arrive at a minimal failing model. Attached is my attempt. I realize that it is still rather big.
I've noticed that if I substitute a certain parameter with its value (which happens to be 0.0), the model simulates again. Mathematically the models are identical. Attached is the original model (TransformationUnsorted.mo) and also the model in which the parameter has been substituted with its value (TransformationSubstituted.mo).
Moreover, if I sort the variable and parameter declarations, the model results are different. Attached is also the TransformationSorted.mo file.
I apologize for the large model, I tried to reduce it even further, but the bug started disappearing after making even seemingly simple replacements, for instance, consider equations of the form:
a + b = 0
Replacing a with -b, would sometimes "fix" the model again.
Attachments (3)
Change History (6)
by , 9 years ago
Attachment: | TransformationSorted.mo added |
---|
by , 9 years ago
Attachment: | TransformationUnsorted.mo added |
---|
by , 9 years ago
Attachment: | TransformationSubstituted.mo added |
---|
comment:1 by , 9 years ago
comment:2 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This issue seems to be fixed by now.
comment:3 by , 7 years ago
Milestone: | Future → 1.13.0 |
---|
This is the same issue I reported here: https://www.openmodelica.org/forum/default-topic/1766-model-failing-since-omcompiler-commit-56d186b60d7904ed253b34995e6ff454