Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#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 Lennart Ochel, 9 years ago

Milestone: Future1.10.0
Resolution: fixed
Status: newclosed

comment:2 by Martin Sjölund, 7 years ago

Milestone: 1.10.0

Milestone deleted

Note: See TracTickets for help on using tickets.