﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3101	Flattening of models using Modelica.Media is very slow	Francesco Casella	Adrian Pop	"The front-end speed performance is now quite good for all models in the testsuite, except for models involving the Modelica.Media library. The most demanding examples of the MultiBody library, namely the EngineV6 and the fullRobot (which used to be very slow in the old days) now only need 10 and 5 seconds to flatten, respectively.

In comparison, an apparently trivial test case such as {{{Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearWater_pT}}} takes 20 seconds to flatten, which is quite long and four times as much as Dymola. Incidentally, it is quite weird that {{{Modelica.Media.Examples.Tests.MediaTestModels.LinearFluid.LinearColdWater}}} takes only one fifth of that time, as the medium model is basically the same (also Dymola handles this model much faster, for some reason).

The slowest model to flatten in the MSL is {{{Modelica.Fluid.Examples.AST_BatchPlant.BatchPlant_StandardWater}}}, one minute with OMC, 6 seconds with Dymola, 1:10 ratio.

Another interesting test case is {{{ThermoPower.PowerPlants.Simulators.SteamPlant_Sim1}}}, which takes 2 minutes in OMC and 6 seconds with Dymola, 1:20 ratio.

I would suggest to investigate these cases a bit to see if there is some critical path in the way they are currently handled by the front-end. "	defect	closed	critical	2.0.0	Frontend	trunk	fixed		andrea.bartolini@… dersh@…
