{"id":22549958,"url":"https://github.com/openmodelica/omoctave","last_synced_at":"2025-07-20T02:37:38.006Z","repository":{"id":68758560,"uuid":"542570206","full_name":"OpenModelica/OMOctave","owner":"OpenModelica","description":"Octave scripting OpenModelica interface","archived":false,"fork":false,"pushed_at":"2023-03-31T11:05:13.000Z","size":1500,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-07-07T08:12:17.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenModelica.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-09-28T12:05:54.000Z","updated_at":"2024-08-29T13:19:10.000Z","dependencies_parsed_at":"2023-09-23T14:35:43.180Z","dependency_job_id":null,"html_url":"https://github.com/OpenModelica/OMOctave","commit_stats":{"total_commits":9,"total_committers":3,"mean_commits":3.0,"dds":0.5555555555555556,"last_synced_commit":"5d5556bcf473672093140ef9c610ef3b9a770195"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OpenModelica/OMOctave","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenModelica%2FOMOctave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenModelica%2FOMOctave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenModelica%2FOMOctave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenModelica%2FOMOctave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenModelica","download_url":"https://codeload.github.com/OpenModelica/OMOctave/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenModelica%2FOMOctave/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266058481,"owners_count":23870157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-07T16:10:31.298Z","updated_at":"2025-07-20T02:37:37.989Z","avatar_url":"https://github.com/OpenModelica.png","language":"MATLAB","readme":"# Octave\nOctave scripting OpenModelica interface using ZEROMQ\n\n# Requirement:\n[Openmodelica](https://www.openmodelica.org/)\u003cbr\u003e\n[Octave](https://octave.org/)\u003cbr\u003e\n[zeromq](https://zeromq.org/)\u003cbr\u003e\n\n# Installation\nClone the repository and add the installation directory to Octave PATH for future sessions. For Example \u003cbr\u003e\n\n```\ninstalling zeromq\n\u003e\u003e\u003e pkg install -forge zeromq\n```\n\n```\nfrom the Octave terminal, edit or create config file\n\nThe config file should be created in home directory, the below command will show the home directory\n\u003e\u003e\u003e prefdir\nans: \"C:\\Users\\arupa54\"\n\u003e\u003e\u003e cd (\"C:/Users/arupa54)\n\u003e\u003e\u003e edit .octaverc\nThe above command will open the config file in Octave editor, now add the following commands to the \".octaverc\" file\n\naddpath(\"C:/OPENMODELICAGIT/OpenModelica/OMOctave\");\njavaaddpath (\"C:/OPENMODELICAGIT/OpenModelica/OMOctave/xercesImpl.jar\");\njavaaddpath (\"C:/OPENMODELICAGIT/OpenModelica/OMOctave/xml-apis.jar\");\n\nThe xml parser uses the xerces java library and two jar files are needed \"xercesImpl.jar\" and \"xml-apis.jar\" which is provided in the repository, you can also\ndownload the jar files in the following link https://xerces.apache.org/mirrors.cgi#binary\n\nYou can also directly use the OMOctave package directly from the directory where you have cloned, without need to perform the above steps. But the package cannot be used globally.\n```\n### Usage\n```\n\u003e\u003e\u003e omc=OMOctave();\n\u003e\u003e\u003e omc.sendExpression(\"getVersion()\")\n\"v1.13.0-dev-531-gde26b558a (64-bit)\"\n\u003e\u003e\u003e omc.sendExpression(\"model a end a;\")\n\"{a}\"\n\u003e\u003e\u003e omc.sendExpression('loadFile(\"C:\\OMMatlab\\BouncingBall.mo\")')\ntrue\n\u003e\u003e\u003e omc.sendExpression(\"getClassNames()\")\n{a,BouncingBall}\n\u003e\u003e\u003e omc.sendExpression(\"simulate(BouncingBall)\")\nrecord SimulationResult\n    resultFile = \"C:/Users/arupa54/BouncingBall_res.mat\",\n    simulationOptions = \"startTime = 0.0, stopTime = 1.0, numberOfIntervals = 500, tolerance = 1e-006, method = 'dassl', fileNamePrefix = 'BouncingBall', options = '', outputFormat = 'mat', variableFilter = '.*', cflags = '', simflags = ''\",\n    messages = \"LOG_SUCCESS       | info    | The initialization finished successfully without homotopy method.\nLOG_SUCCESS       | info    | The simulation finished successfully.\n\",\n    timeFrontend = 0.03334629789025638,\n    timeBackend = 0.05818852816547053,\n    timeSimCode = 0.02908068832276598,\n    timeTemplates = 0.04130980342652182,\n    timeCompile = 4.495768417986718,\n    timeSimulation = 0.135430370984969,\n    timeTotal = 4.795528603068404\nend SimulationResult;\n```\n\nTo see the list of available OpenModelicaScripting API see    (https://www.openmodelica.org/doc/OpenModelicaUsersGuide/latest/scripting_api.html\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmodelica%2Fomoctave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenmodelica%2Fomoctave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmodelica%2Fomoctave/lists"}