{"action":"opened","issue":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/1839","repository_url":"https://api.github.com/repos/tbeu/Modelica","labels_url":"https://api.github.com/repos/tbeu/Modelica/issues/1839/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/Modelica/issues/1839/comments","events_url":"https://api.github.com/repos/tbeu/Modelica/issues/1839/events","html_url":"https://github.com/tbeu/Modelica/issues/1839","id":197296944,"number":1839,"title":"CombiTable1D extrapolates wrong when setting ConstantSegments","user":{"login":"modelica-trac-importer","id":22202507,"avatar_url":"https://avatars.githubusercontent.com/u/22202507?v=3","gravatar_id":"","url":"https://api.github.com/users/modelica-trac-importer","html_url":"https://github.com/modelica-trac-importer","followers_url":"https://api.github.com/users/modelica-trac-importer/followers","following_url":"https://api.github.com/users/modelica-trac-importer/following{/other_user}","gists_url":"https://api.github.com/users/modelica-trac-importer/gists{/gist_id}","starred_url":"https://api.github.com/users/modelica-trac-importer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modelica-trac-importer/subscriptions","organizations_url":"https://api.github.com/users/modelica-trac-importer/orgs","repos_url":"https://api.github.com/users/modelica-trac-importer/repos","events_url":"https://api.github.com/users/modelica-trac-importer/events{/privacy}","received_events_url":"https://api.github.com/users/modelica-trac-importer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"beutlich","id":14896695,"avatar_url":"https://avatars.githubusercontent.com/u/14896695?v=3","gravatar_id":"","url":"https://api.github.com/users/beutlich","html_url":"https://github.com/beutlich","followers_url":"https://api.github.com/users/beutlich/followers","following_url":"https://api.github.com/users/beutlich/following{/other_user}","gists_url":"https://api.github.com/users/beutlich/gists{/gist_id}","starred_url":"https://api.github.com/users/beutlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beutlich/subscriptions","organizations_url":"https://api.github.com/users/beutlich/orgs","repos_url":"https://api.github.com/users/beutlich/repos","events_url":"https://api.github.com/users/beutlich/events{/privacy}","received_events_url":"https://api.github.com/users/beutlich/received_events","type":"User","site_admin":false},"assignees":[{"login":"beutlich","id":14896695,"avatar_url":"https://avatars.githubusercontent.com/u/14896695?v=3","gravatar_id":"","url":"https://api.github.com/users/beutlich","html_url":"https://github.com/beutlich","followers_url":"https://api.github.com/users/beutlich/followers","following_url":"https://api.github.com/users/beutlich/following{/other_user}","gists_url":"https://api.github.com/users/beutlich/gists{/gist_id}","starred_url":"https://api.github.com/users/beutlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beutlich/subscriptions","organizations_url":"https://api.github.com/users/beutlich/orgs","repos_url":"https://api.github.com/users/beutlich/repos","events_url":"https://api.github.com/users/beutlich/events{/privacy}","received_events_url":"https://api.github.com/users/beutlich/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-12-23T01:00:24Z","updated_at":"2016-12-23T01:00:24Z","closed_at":null,"body":"**Reported by markus&#x2e;andres on 18 Nov 2015 17:13 UTC**\nWhen simulating the code below in Dymola with default settings for solver etc. the \"tableWrong\" seems to extrapolate so negative values.\nAdding an artificial point corrects the behavior although this should not be the case with this type of extrapolation in my opinion.\n\n```\nmodel ModelicaBug\n\n  Modelica.Blocks.Tables.CombiTable1D tableWrong(smoothness=Modelica.Blocks.Types.Smoothness.ConstantSegments, table=[0,0; 1000, 0.02; 6000,0]) annotation (Placement(transformation(extent={{-10,20},{10,40}})));\n  Modelica.Blocks.Sources.Ramp ramp(height=10000, duration=1000)  annotation (Placement(transformation(extent={{-60,-10},{-40,10}})));\n  Modelica.Blocks.Tables.CombiTable1D tableGood(smoothness=Modelica.Blocks.Types.Smoothness.ConstantSegments, table=[0,0; 1000, 0.02; 6000,0; Modelica.Constants.inf,0]) annotation (Placement(transformation(extent={{-10,-40},{10,-20}})));\nequation\n  connect(ramp.y, tableWrong.u[1]) annotation (Line(points={{-39,0},{-26,0},{-26,30},{-12,30}}, color={0,0,127}));\n  connect(tableGood.u[1], ramp.y) annotation (Line(points={{-12,-30},{-26,-30},{-26,0},{-39,0}}, color={0,0,127}));\n  annotation (\n    uses(Modelica(version=\"3.2.1\")),\n    experiment(StopTime=1000),\n    __Dymola_experimentSetupOutput);\nend ModelicaBug;\n```\n\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/1839"}}
{"actor":{"display_login":"modelica-trac-importer"}}