{"action":"created","issue":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/439","repository_url":"https://api.github.com/repos/tbeu/Modelica","labels_url":"https://api.github.com/repos/tbeu/Modelica/issues/439/labels{/name}","comments_url":"https://api.github.com/repos/tbeu/Modelica/issues/439/comments","events_url":"https://api.github.com/repos/tbeu/Modelica/issues/439/events","html_url":"https://github.com/tbeu/Modelica/issues/439","id":196855303,"number":439,"title":"Simulation of  Modelica.Utilities.Examples.readRealParameterModel usually fails","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":504445350,"url":"https://api.github.com/repos/tbeu/Modelica/labels/bug","name":"bug","color":"ee0701","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":5,"created_at":"2016-12-21T06:18:30Z","updated_at":"2016-12-21T06:19:50Z","closed_at":null,"body":"**Reported by otter on 16 Oct 2010 22:44 UTC**\nThe simulation of \n\n```\nModelica.Utilities.Examples.readRealParameterModel\n```\n\nis only successful, if the current directory of the Modelica simulator is one directory above from the directory where MSL is stored. The reason is that in this model basically a call of the form:\n\n```\nfile = \"Modelica/Resources/Data/Utilities/Examples_readRealParameters.txt;\nModelica.Utilities.Streams.readLine(fileName, iline)\n```\n\nThis issue should be fixed by introducing also URI-support for the file-reading functions (such as \"readLine\") of MSL.\n\nThis should be fixed in the next Modelica Specification 3.3.\n\nIn Dymola, this problem is currently handled by using the Dymola-specific built-in function classDirectory() to inquire the directory where the model is present where this function is called. The solution with URIs is, however, much better and consistent with the other usages of URIs.\n\n----\n\nMigrated-From: https://trac.modelica.org/Modelica/ticket/439"},"comment":{"url":"https://api.github.com/repos/tbeu/Modelica/issues/comments/268445739","html_url":"https://github.com/tbeu/Modelica/issues/439#issuecomment-268445739","issue_url":"https://api.github.com/repos/tbeu/Modelica/issues/439","id":268445739,"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-21T06:19:50Z","updated_at":"2016-12-21T06:19:50Z","body":"**Comment by hansolsson on 11 Apr 2012 13:29 UTC**\nWaiting for the updated ModelicaServices that allows resolution of Modelica-URIs.\nThe MoelicaServices has been sent to Martin Otter - there are unrelated issues with updating it, as I understand.\n\nThe reason for resolving the Modelica-URIs with one function in ModelicaServices instead of having it in the file-reading functions are:\n* Only one place to update.\n* Resolving a Modelica-URI might require that the resources are extracted from a data-base and written to file; having such code inside the generated model becomes complicated.\n* Seems possible to combine with placing the resources in e.g. a source code FMI; without putting all library resources in the FMI."}}
{"actor":{"display_login":"modelica-trac-importer"}}