{"action":"created","issue":{"url":"https://api.github.com/repos/modelica/ModelicaSpecification/issues/888","repository_url":"https://api.github.com/repos/modelica/ModelicaSpecification","labels_url":"https://api.github.com/repos/modelica/ModelicaSpecification/issues/888/labels{/name}","comments_url":"https://api.github.com/repos/modelica/ModelicaSpecification/issues/888/comments","events_url":"https://api.github.com/repos/modelica/ModelicaSpecification/issues/888/events","html_url":"https://github.com/modelica/ModelicaSpecification/issues/888","id":377105368,"node_id":"MDU6SXNzdWUzNzcxMDUzNjg=","number":888,"title":"Number of equations in if-branches","user":{"login":"modelica-trac-importer","id":22202507,"node_id":"MDQ6VXNlcjIyMjAyNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/22202507?v=4","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":971423507,"node_id":"MDU6TGFiZWw5NzE0MjM1MDc=","url":"https://api.github.com/repos/modelica/ModelicaSpecification/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"HansOlsson","id":13217430,"node_id":"MDQ6VXNlcjEzMjE3NDMw","avatar_url":"https://avatars0.githubusercontent.com/u/13217430?v=4","gravatar_id":"","url":"https://api.github.com/users/HansOlsson","html_url":"https://github.com/HansOlsson","followers_url":"https://api.github.com/users/HansOlsson/followers","following_url":"https://api.github.com/users/HansOlsson/following{/other_user}","gists_url":"https://api.github.com/users/HansOlsson/gists{/gist_id}","starred_url":"https://api.github.com/users/HansOlsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HansOlsson/subscriptions","organizations_url":"https://api.github.com/users/HansOlsson/orgs","repos_url":"https://api.github.com/users/HansOlsson/repos","events_url":"https://api.github.com/users/HansOlsson/events{/privacy}","received_events_url":"https://api.github.com/users/HansOlsson/received_events","type":"User","site_admin":false},"assignees":[{"login":"HansOlsson","id":13217430,"node_id":"MDQ6VXNlcjEzMjE3NDMw","avatar_url":"https://avatars0.githubusercontent.com/u/13217430?v=4","gravatar_id":"","url":"https://api.github.com/users/HansOlsson","html_url":"https://github.com/HansOlsson","followers_url":"https://api.github.com/users/HansOlsson/followers","following_url":"https://api.github.com/users/HansOlsson/following{/other_user}","gists_url":"https://api.github.com/users/HansOlsson/gists{/gist_id}","starred_url":"https://api.github.com/users/HansOlsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HansOlsson/subscriptions","organizations_url":"https://api.github.com/users/HansOlsson/orgs","repos_url":"https://api.github.com/users/HansOlsson/repos","events_url":"https://api.github.com/users/HansOlsson/events{/privacy}","received_events_url":"https://api.github.com/users/HansOlsson/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/modelica/ModelicaSpecification/milestones/47","html_url":"https://github.com/modelica/ModelicaSpecification/milestone/47","labels_url":"https://api.github.com/repos/modelica/ModelicaSpecification/milestones/47/labels","id":3792694,"node_id":"MDk6TWlsZXN0b25lMzc5MjY5NA==","number":47,"title":"Design77","description":"77<sup>th</sup> Modelica Design Meeting in Waterloo, Canada","creator":{"login":"modelica-trac-importer","id":22202507,"node_id":"MDQ6VXNlcjIyMjAyNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/22202507?v=4","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},"open_issues":1,"closed_issues":6,"state":"closed","created_at":"2018-11-03T10:10:00Z","updated_at":"2018-11-03T23:56:50Z","due_on":"2012-12-04T08:00:00Z","closed_at":"2018-11-03T10:10:00Z"},"comments":4,"created_at":"2018-11-03T23:56:49Z","updated_at":"2018-11-03T23:58:01Z","closed_at":null,"author_association":"COLLABORATOR","body":"**Reported by jmattsson on 26 Oct 2012 09:01 UTC**\n8.3.1 states that: _If-equations in equation sections which do not have exclusively parameter expressions as switching conditions shall have an else-clause and each branch shall have the same number of equations._\n\nIt is not entirely clear that this refers to the number of resulting scalar equations. Also, searching through the tickets, I found #827, where a comment states that _[...] non-equations (asserts and functions without return argument, such as \"print\") [...]_ do not count towards the number of equations - I understand that this is the intention, but it is also not clear from the text. (Is this idea of \"non-equations\" described anywhere in the spec, or was it just a term made up for the ticket comment?)\n\nA related point is that if no branches contain any equations according to the interpretation above, then it might be reasonable to omit the else-branch, even with non-parameter tests.\n\nExample\n```mo\nif x > x_max then\n  terminate(\"Max value of x exceeded.\");\nelse\nend if;\n\n// Could be more clearly written as:\nif x > x_max then\n  terminate(\"Max value of x exceeded.\");\nend if;\n```\n\nCurrently, Dymola allows the second form, while JModelica.org does not.\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/888"},"comment":{"url":"https://api.github.com/repos/modelica/ModelicaSpecification/issues/comments/435630343","html_url":"https://github.com/modelica/ModelicaSpecification/issues/888#issuecomment-435630343","issue_url":"https://api.github.com/repos/modelica/ModelicaSpecification/issues/888","id":435630343,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTYzMDM0Mw==","user":{"login":"modelica-trac-importer","id":22202507,"node_id":"MDQ6VXNlcjIyMjAyNTA3","avatar_url":"https://avatars1.githubusercontent.com/u/22202507?v=4","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":"2018-11-03T23:58:01Z","updated_at":"2018-11-03T23:58:01Z","author_association":"COLLABORATOR","body":"**Comment by dietmarw on 20 Dec 2012 08:06 UTC**\nAre these going to be part of 3.2rev2 or 3.3rev1 or 3.4?"}}
{"actor":{"display_login":"modelica-trac-importer"}}