Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

OMC v.1.9.4 build 139 work good with Buildings library but build295 no

OMC v.1.9.4 build 139 work good with Buildings library but build295 no

OMC v.1.9.4 build 139 work good with converters of buildings library, OMC v.1.9.4 build 295 no. Why? It's a step back?

Re: OMC v.1.9.4 build 139 work good with Buildings library but build295 no

When we fixed some issues in the Annex60 library some models in Buildings started to fail. There is a ticket about it:
https://trac.openmodelica.org/OpenModelica/ticket/3506
Hopefully we'll have some time to look into it soon.

Re: OMC v.1.9.4 build 139 work good with Buildings library but build295 no

this model work with build 139 version but don't work with build 295. It's strange that new version works less good a old version

model prova2
  Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Grid gri(f = 50, V = 400, phiSou = 0) annotation(Placement(transformation(extent = {{-94, 2}, {-74, 22}})));
  Buildings.Electrical.DC.Sources.PVSimple pVSimple(V_nominal = 600, eta = 0.15, fAct = 0.95, A = 200) annotation(Placement(transformation(extent = {{38, -32}, {58, -12}})));
  Buildings.BoundaryConditions.SolarIrradiation.DirectTiltedSurface HDirTil(til = 0.34906585039887, lat = 0.65798912800186, azi = -0.78539816339745) "Direct irradiation on tilted surface" annotation(Placement(transformation(extent = {{-70, 58}, {-50, 78}})));
  Modelica.Blocks.Math.Add G "Total irradiation on tilted surface" annotation(Placement(transformation(extent = {{-34, 74}, {-14, 94}})));
  Buildings.Electrical.DC.Storage.Battery battery(V_nominal = 600, EMax = 3600000000) annotation(Placement(transformation(extent = {{-20, 6}, {0, 26}})));
  Modelica.Blocks.Sources.Constant PCha(k = 100000) "Charging power" annotation(Placement(transformation(extent = {{-58, 22}, {-38, 42}})));
  Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACDCConverter conACDC(conversionFactor = 1.5, eta = 0.94) annotation(Placement(visible = true, transformation(extent = {{-42, -58}, {-22, -38}}, rotation = 0)));
  Buildings.BoundaryConditions.SolarIrradiation.DiffusePerez HDifTil(til = 0.34906585039887, lat = 0.65798912800186, azi = -0.78539816339745) "Diffuse irradiation on tilted surface" annotation(Placement(visible = true, transformation(extent = {{-70, 88}, {-50, 108}}, rotation = 0)));
  Buildings.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(computeWetBulbTemperature = false, filNam = "modelica://Buildings/Resources/weatherdata/ITA_Brescia-Ghedi.160880_IGDG.mos") annotation(Placement(visible = true, transformation(extent = {{-104, 72}, {-84, 92}}, rotation = 0)));
equation
  connect(weaDat.weaBus, HDirTil.weaBus) annotation(Line(points = {{-84, 82}, {-80, 82}, {-80, 68}, {-70, 68}}, color = {255, 204, 51}, thickness = 0.5));
  connect(weaDat.weaBus, HDifTil.weaBus) annotation(Line(points = {{-84, 82}, {-84, 98}, {-70, 98}}, color = {255, 204, 51}, thickness = 0.5));
  connect(HDifTil.H, G.u1) annotation(Line(points = {{-49, 98}, {-42, 98}, {-42, 90}, {-36, 90}}, color = {0, 0, 127}));
  connect(conACDC.terminal_p, pVSimple.terminal) annotation(Line(points = {{-22, -48}, {6, -48}, {6, -22}, {38, -22}}, color = {0, 0, 255}));
  connect(gri.terminal, conACDC.terminal_n) annotation(Line(points = {{-84, 2}, {-86, 2}, {-86, -48}, {-42, -48}}, color = {0, 120, 120}));
  connect(HDirTil.H, G.u2) annotation(Line(points = {{-49, 68}, {-42, 68}, {-42, 78}, {-36, 78}}, color = {0, 0, 127}, smooth = Smooth.None));
  connect(G.y, pVSimple.G) annotation(Line(points = {{-13, 84}, {16, 84}, {16, 36}, {48, 36}, {48, -10}}, color = {0, 0, 127}));
  connect(battery.terminal, pVSimple.terminal) annotation(Line(points = {{-20, 16}, {-36, 16}, {-36, -2}, {12, -2}, {38, -2}, {38, -22}}, color = {0, 0, 255}));
  connect(PCha.y, battery.P) annotation(Line(points = {{-37, 32}, {-10, 32}, {-10, 26}}, color = {0, 0, 127}));
  annotation(uses(Buildings(version = "3.0.0"), Modelica(version = "3.2.1")), Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-100, -100}, {100, 100}})));
end prova2;

Re: OMC v.1.9.4 build 139 work good with Buildings library but build295 no

also component Buildings.Electrical.AC.ThreePhasesBalanced.Conversion.ACDCConverter works good with 1.9.4 build 139 but not work good with new versions like build 295  or 300 for example.
In new builds not appear icon oj this component: strange...

Re: OMC v.1.9.4 build 139 work good with Buildings library but build295 no

This issue should be fixed in the latest nightly build now. These models were actually broken before my changes, because they only worked since the compiler were quietly dropping some modifiers. My latest fix should fix the issue the compiler had when it had to consider all modifiers, so hopefully the models should now work better than they did previously. I've also made some more fixes for the Buildings library today, so the next nightly build might work even better with Buildings.

Btw, we run automated test of Buildings each day, see this page for the latest status.

There are 0 guests and 0 other users also viewing this topic
You are here: