{"action":"created","issue":{"url":"https://api.github.com/repos/kdavies4/ModelicaRes/issues/29","labels_url":"https://api.github.com/repos/kdavies4/ModelicaRes/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/kdavies4/ModelicaRes/issues/29/comments","events_url":"https://api.github.com/repos/kdavies4/ModelicaRes/issues/29/events","html_url":"https://github.com/kdavies4/ModelicaRes/issues/29","id":58459605,"number":29,"title":"simulators not implemented?","user":{"login":"saroele","id":562438,"avatar_url":"https://avatars.githubusercontent.com/u/562438?v=3","gravatar_id":"","url":"https://api.github.com/users/saroele","html_url":"https://github.com/saroele","followers_url":"https://api.github.com/users/saroele/followers","following_url":"https://api.github.com/users/saroele/following{/other_user}","gists_url":"https://api.github.com/users/saroele/gists{/gist_id}","starred_url":"https://api.github.com/users/saroele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saroele/subscriptions","organizations_url":"https://api.github.com/users/saroele/orgs","repos_url":"https://api.github.com/users/saroele/repos","events_url":"https://api.github.com/users/saroele/events{/privacy}","received_events_url":"https://api.github.com/users/saroele/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kdavies4","id":1033764,"avatar_url":"https://avatars.githubusercontent.com/u/1033764?v=3","gravatar_id":"","url":"https://api.github.com/users/kdavies4","html_url":"https://github.com/kdavies4","followers_url":"https://api.github.com/users/kdavies4/followers","following_url":"https://api.github.com/users/kdavies4/following{/other_user}","gists_url":"https://api.github.com/users/kdavies4/gists{/gist_id}","starred_url":"https://api.github.com/users/kdavies4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdavies4/subscriptions","organizations_url":"https://api.github.com/users/kdavies4/orgs","repos_url":"https://api.github.com/users/kdavies4/repos","events_url":"https://api.github.com/users/kdavies4/events{/privacy}","received_events_url":"https://api.github.com/users/kdavies4/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-02-21T13:35:23Z","updated_at":"2015-03-02T15:23:10Z","closed_at":null,"body":"Hi Kevin,\r\n\r\nwe're trying to set up MPC (model predictive control) with Modelica, and we need a continue-run framework.  We can implement it with dymosim.exe or pyfmi, and we're happy to see that you have implemented this functionality.  However, when we install mdoelica res with pip, the following doesn't work::\r\n\r\n    from modelicares.exps.simulators import dymosim\r\n\r\nAny idea why not?  And is it possible to do continue-simulations with pyfmi too?\r\nThanks,\r\nRoel"},"comment":{"url":"https://api.github.com/repos/kdavies4/ModelicaRes/issues/comments/76730602","html_url":"https://github.com/kdavies4/ModelicaRes/issues/29#issuecomment-76730602","issue_url":"https://api.github.com/repos/kdavies4/ModelicaRes/issues/29","id":76730602,"user":{"login":"kdavies4","id":1033764,"avatar_url":"https://avatars.githubusercontent.com/u/1033764?v=3","gravatar_id":"","url":"https://api.github.com/users/kdavies4","html_url":"https://github.com/kdavies4","followers_url":"https://api.github.com/users/kdavies4/followers","following_url":"https://api.github.com/users/kdavies4/following{/other_user}","gists_url":"https://api.github.com/users/kdavies4/gists{/gist_id}","starred_url":"https://api.github.com/users/kdavies4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kdavies4/subscriptions","organizations_url":"https://api.github.com/users/kdavies4/orgs","repos_url":"https://api.github.com/users/kdavies4/repos","events_url":"https://api.github.com/users/kdavies4/events{/privacy}","received_events_url":"https://api.github.com/users/kdavies4/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T15:23:10Z","updated_at":"2015-03-02T15:23:10Z","body":"`dymsim` works for me, but that's on linux. I'll update the documentation. I haven't had time yet.\nOn Fri, Feb 27, 2015 at 5:47 AM, arnoutaertgeerts <notifications@github.com> wrote:@kdavies4  Have you tried running simulations using the dymosim simulator recently? I saw you made some adjustments but I can't seem to get it working, does it still work for you?\n\nWould it be possible to update the documentation including these new adjustments?\n\nI get this error when trying to run a simulation:\n\nmodel = \"Results/dymosim\"\nwith dymosim(results_dir='Results', StopTime=2500, debug=True) as simulator:\n    simulation = simulator.run(model)\n\n---------------------------------------------------------------------------\nWindowsError                              Traceback (most recent call last)\n<ipython-input-11-0d8c4dc4782e> in <module>()\n      1 model = \"Results/dymosim\"\n      2 with dymosim(results_dir='Results', StopTime=2500, debug=True) as simulator:\n----> 3     simulation = simulator.run(model)\n\nc:\\Users\\u0098668\\AppData\\Local\\Continuum\\Anaconda\\lib\\site-packages\\modelicares\\exps\\simulators.pyc in run(self, model, params, **options)\n    766             # Create the file.\n    767             run_in_dir([EXEC_PREFIX + self.current_executable, '-i',\n--> 768                         dsin_name], model_dir)\n    769         orig_dsin_path = os.path.join(model_dir, dsin_name)\n    770 \n\nc:\\Users\\u0098668\\AppData\\Local\\Continuum\\Anaconda\\lib\\site-packages\\modelicares\\util.pyc in run_in_dir(args, working_dir, debug)\n   1007     # Run the command and print the output if debug is True.\n   1008     process = subprocess.Popen(args, cwd=working_dir if working_dir else None,\n-> 1009                                stdout=subprocess.PIPE)\n   1010     if debug:\n   1011         for line in iter(lambda: process.stdout.read(1), ''):\n\nc:\\Users\\u0098668\\AppData\\Local\\Continuum\\Anaconda\\lib\\subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)\n    708                                 p2cread, p2cwrite,\n    709                                 c2pread, c2pwrite,\n--> 710                                 errread, errwrite)\n    711         except Exception:\n    712             # Preserve original exception in case os.close raises.\n\nc:\\Users\\u0098668\\AppData\\Local\\Continuum\\Anaconda\\lib\\subprocess.pyc in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite)\n    956                                          env,\n    957                                          cwd,\n--> 958                                          startupinfo)\n    959             except pywintypes.error, e:\n    960                 # Translate pywintypes.error to WindowsError, which is\n\nWindowsError: [Error 2] The system cannot find the file specified\n\nI also experienced some errors saying the simulation was still running after it failed. Maybe it is best to delete the temporary folder after a failed simulation?\n\n—Reply to this email directly or view it on GitHub."}}