Opened 6 years ago
Closed 5 years ago
#5564 closed defect (fixed)
This model should not simulate
| Reported by: | Francesco Casella | Owned by: | Martin Sjölund |
|---|---|---|---|
| Priority: | blocker | Milestone: | 2.0.0 |
| Component: | Interactive Environment | Version: | |
| Keywords: | Cc: |
Description
Try simulating this model with the latest nightly build of OMEdit
model M parameter Real p; equation p =10; end M;
The following errors are reported:
[1] 19:16:34 Symbolic Error Too many equations, over-determined system. The model has 1 equation(s) and 0 variable(s). [2] 19:16:34 Translation Error [M: 4:2-4:7]: Internal error p = 10.0 has size size 1 but 0 variables () [3] 19:16:34 Translation Warning [M: 2:3-2:19]: Parameter p has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value.
but then C code is generated and a simulation is run(!), with result p = 0.
This makes no sense, the compilation should be aborted after reporting error number 1.
Attachments (1)
Change History (5)
by , 6 years ago
comment:1 by , 6 years ago
| Component: | OMEdit → Interactive Environment |
|---|---|
| Owner: | changed from to |
comment:2 by , 6 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:3 by , 5 years ago
| Owner: | changed from to |
|---|
comment:4 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

That is because
translateModelreturnstrueand just reports the error messages. It should returnfalsein this case.