﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1012	Solving of linear system of equations generates incorrect results.	Adrian Pop	Adrian Pop	"Bug reported by H. Dieter Wilhelm. \\Simulation of model Test below generates incorrect results.
{{{connector Port
  Real pressure;
  flow Real flowrate;
end Port;

model Pipe
  Port port;
  parameter Real a = 1;
equation
  port.pressure = port.flowrate * a;
end Pipe;

model Pump
  Port port;
equation
  port.flowrate = -( time - port.pressure);
end Pump;


//------------------------------

model Test
  Pump pu;
  Pipe pi;
equation
  connect(pu.port,pi.port);
end Test;
}}}
{{{simulate(Test);
}}}

See the plot. 

The results should follow: \\  pi.flowrate = time/(1+a) \\  \\but the results are basically constant (except for the time variable). \\There is only a step change at the last time step!?"	defect	closed	critical		Simulation Code Generation	1.4.5	fixed		Adrian Pop Adrian Pop
