{"action":"created","issue":{"url":"https://api.github.com/repos/modelica-tools/FMUComplianceChecker/issues/27","repository_url":"https://api.github.com/repos/modelica-tools/FMUComplianceChecker","labels_url":"https://api.github.com/repos/modelica-tools/FMUComplianceChecker/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/modelica-tools/FMUComplianceChecker/issues/27/comments","events_url":"https://api.github.com/repos/modelica-tools/FMUComplianceChecker/issues/27/events","html_url":"https://github.com/modelica-tools/FMUComplianceChecker/issues/27","id":295615859,"number":27,"title":"Additional checks for correct model structure in Compliance Checker needed","user":{"login":"modelica-trac-importer","id":22202507,"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":831458909,"url":"https://api.github.com/repos/modelica-tools/FMUComplianceChecker/labels/P:%20major","name":"P: major","color":"f6f6f6","default":false},{"id":576149051,"url":"https://api.github.com/repos/modelica-tools/FMUComplianceChecker/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-08T18:19:05Z","updated_at":"2018-02-08T18:19:25Z","closed_at":null,"author_association":"COLLABORATOR","body":"**Reported by awad&#46;mukbil on 7 Feb 2017 11:53 UTC**\nThe compliance checker does not detect errors in the attached FMU (which is, e.g. rejected  by Dymola). The attached FMU is an erroneous FMU of bouncingBall.fmu that came with QTronic FMUSDK 2.0.4. The following two errors in the `<ModelStructure>` element of the modeldescription.xml should be detected:[[BR]]\n\n#### Error 1: Invalid Derivatives indices in ModelStructure element\nAccording to the FMI version 2.0 standard, page 58, only state derivatives should be listed in `<Derivatives>`(not states). In this FMU, the `<Derivatives>` has elements with indices of states [1, 3], instead of state derivatives [2, 4].[[BR]]\n\n#### Error 2: Invalid InitialUnknowns indices in ModelStructure element\nAccording to the FMI version 2.0 standard, page 60, variable listed should be:\n\n 1. `causality = \"output\"` and (`initial=\"approx\"` or `\"calculated\"`).\n 1. `causality = \"calculatedParameter\"`.\n 1. continuous-time states and all state derivatives (defined with element `<Derivatives>` from `<ModelStructure>`) with `initial=\"approx\"` or `\"calculated\"` (not `“exact”`)\nIn this FMU, the `<InitialUnknowns>` has elements with indices of states with `initial=\"exact\"` [1, 3], instead of state derivatives with `initial=\"calculated\"` [2, 4].[[BR]]\n\nThe Compliance Checker should be updated to detect these errors in the modelDescription.xml file. Attached are the FMU and batch of Compliance Checker command to run this FMU and generate log file.\n\n----\n\nMigrated-From: https://trac.fmi-standard.org/ticket/410"},"comment":{"url":"https://api.github.com/repos/modelica-tools/FMUComplianceChecker/issues/comments/364202053","html_url":"https://github.com/modelica-tools/FMUComplianceChecker/issues/27#issuecomment-364202053","issue_url":"https://api.github.com/repos/modelica-tools/FMUComplianceChecker/issues/27","id":364202053,"user":{"login":"modelica-trac-importer","id":22202507,"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-02-08T18:19:25Z","updated_at":"2018-02-08T18:19:25Z","author_association":"COLLABORATOR","body":"**Comment by cbertsch on 8 Feb 2017 08:51 UTC**\nAdrian, the bouncing ball FMU that is shipped with the FMUSDK is correct and your interpretation is absolutely correct.\nWe created a _incorrect_ version of this FMU intentionally, in order to demonstrate that the FMI Compliance checker does not find such errors. "}}
{"actor":{"display_login":"modelica-trac-importer"}}