#3888 closed defect (fixed)
Bug in module unitChecking
Reported by: | Lennart Ochel | Owned by: | Lennart Ochel |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Backend | Version: | |
Keywords: | Cc: |
Description
The unit checking module calculates wrong unit information for the following example:
loadString(" model test Real x(fixed=true, start=1); equation der(x) = time; end test; "); getErrorString(); setCommandLineOptions("--preOptModules+=unitChecking -d=dumpUnits"); getErrorString(); simulate(test); getErrorString();
However, the analysis seems to be correct but the final unit information is wrong.
true "" true "" ##################################### HashTable: {x,{MASTER(x)}} HashTable: {x,{1.0 * s^(2)}} ######## UnitCheck COMPLETED ######## record SimulationResult […] end SimulationResult; "Notification: "x" has the Unit "s" "
Change History (2)
comment:1 by , 9 years ago
Milestone: | Future → 1.10.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed with f5b5cee03b09b5e98304c500d262f8dd938983c0/OMCompiler.