{"action":"created","issue":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/541","repository_url":"https://api.github.com/repos/tbeu/Modelica","labels_url":"https://api.github.com/repos/tbeu/Modelica/issues/541/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/Modelica/issues/541/comments","events_url":"https://api.github.com/repos/tbeu/Modelica/issues/541/events","html_url":"https://github.com/tbeu/Modelica/issues/541","id":196992494,"number":541,"title":"step sources already switched at t=startTime","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":[{"id":504698825,"url":"https://api.github.com/repos/tbeu/Modelica/labels/Blocks","name":"Blocks","color":"0000aa","default":false},{"id":504692712,"url":"https://api.github.com/repos/tbeu/Modelica/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"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":2,"created_at":"2016-12-21T17:44:21Z","updated_at":"2016-12-21T17:44:50Z","closed_at":null,"body":"**Reported by jriel&#x40;maplesoft&#46;com on 27 Apr 2011 15:29 UTC**\nThe block step sources (Modelica.Blocks.Sources.Step, BooleanStep, and IntegerStep) all have switched at t=startTime, for example,\n\n   y = offset + (if time < startTime then 0 else height);\n\nThis makes it impossible to create a step edge at the precise start of a simulation, when startTime = time.start = 0; at that time the condition evaluates to its final value.  It would be more useful if the condition was such that the edge occurred just after the startTime, that is,\n\n   y = offset + (if time <= startTime then 0 else height);\n\n\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/541"},"comment":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/comments/268590476","html_url":"https://github.com/tbeu/Modelica/issues/541#issuecomment-268590476","issue_url":"https://api.github.com/repos/tbeu/Modelica/issues/541","id":268590476,"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},"created_at":"2016-12-21T17:44:50Z","updated_at":"2016-12-21T17:44:50Z","body":"**Comment by dietmarw on 28 Apr 2011 09:13 UTC**\nMy 2 cents: When I use a step source which has a parameter called `startTime` I'm actually expecting that the step is executed at <ins>exactly</ins> `t=startTime` and not a bit later (where the \"bit\" is also hard to define since depended on the simulation step size). \n\nSo I would pledge to **not** change the current implementation. I don't know the details and benefits of having a step edge at exactly `t=0` are but when I use a Step that uses `startTime=0` I would also expect it to have the value `height` right from the beginning of the simulation."}}
{"actor":{"display_login":"modelica-trac-importer"}}