Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register
  • Index
  • » Users
  • » bollwyvl
  • » Profile

Posts

Posts

May-09-12 01:39:13
Can one generate all of the annotation diagrams in a package/model?

Is omc/omshell capable of generating annotation diagrams in a headless environment? I am especially interested in something I can use over the Python interface under a headless Linux environment. Ideally, i would like a vector-based format, but png could work just as well.

If the notebook comes into play, has anyone been able to achieve this via the command line?

I haven't found anything supporting this in the user's guide, or in looking over the API docs.

If anyone has an answer, or can suggest another method, that would be greatly appreciated!

Gah, spoke too soon:

Code:

Get:2 http://build.openmodelica.org release Release [2,148B]

Code:

Reading package lists... Done

Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  omc omlibrary omnotebook omshell omshell-terminal
The following NEW packages will be installed:
  omc omlibrary omnotebook omshell omshell-terminal openmodelica
0 upgraded, 6 newly installed, 0 to remove and 7 not upgraded.
Need to get 20.3MB/21.1MB of archives.
After this operation, 46.1MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://build.openmodelica.org/apt/ release/contrib omc 5717-1 [18.7MB]
Get:2 http://build.openmodelica.org/apt/ release/contrib omnotebook 5717-1 [1,481kB]                                           
Get:3 http://build.openmodelica.org/apt/ release/contrib omshell 5717-1 [64.5kB]                                               
Get:4 http://build.openmodelica.org/apt/ release/contrib omshell-terminal 5717-1 [23.6kB]                                     
Get:5 http://build.openmodelica.org/apt/ release/contrib openmodelica 5717-1 [6,030B]                                         
Fetched 20.3MB in 4min 29s (75.3kB/s)                                                                                         
Failed to fetch http://build.openmodelica.org/apt/pool/contrib/omc_5717-1_i386.deb  Size mismatch
Failed to fetch http://build.openmodelica.org/apt/pool/contrib/omnotebook_5717-1_i386.deb  Size mismatch
Failed to fetch http://build.openmodelica.org/apt/pool/contrib/omshell_5717-1_i386.deb  Size mismatch
Failed to fetch http://build.openmodelica.org/apt/pool/contrib/omshell-terminal_5717-1_i386.deb  Size mismatch
Failed to fetch http://build.openmodelica.org/apt/pool/contrib/openmodelica_5717-1_i386.deb  Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Tried again with --fix-missing, no dice (though i did get omlibrary, which suggests maybe a new build is being run?)

Code:

Reading package lists... Done

Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  omc omlibrary omnotebook omshell omshell-terminal
The following NEW packages will be installed:
  omc omlibrary omnotebook omshell omshell-terminal openmodelica
0 upgraded, 6 newly installed, 0 to remove and 7 not upgraded.
Need to get 20.3MB/21.1MB of archives.
After this operation, 46.1MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://build.openmodelica.org/apt/ release/contrib omc 5717-1 [18.7MB]
Get:2 http://build.openmodelica.org/apt/ release/contrib omnotebook 5717-1 [1,481kB]                                           
Get:3 http://build.openmodelica.org/apt/ release/contrib omshell 5717-1 [64.5kB]                                               
Get:4 http://build.openmodelica.org/apt/ release/contrib omshell-terminal 5717-1 [23.6kB]                                     
Get:5 http://build.openmodelica.org/apt/ release/contrib openmodelica 5717-1 [6,030B]                                         
Fetched 20.3MB in 4min 23s (76.9kB/s)                                                                                         
Failed to fetch http://build.openmodelica.org/apt/pool/contrib/omc_5717-1_i386.deb  Size mismatch
Failed to fetch http://build.openmodelica.org/apt/pool/contrib/omnotebook_5717-1_i386.deb  Size mismatch
Failed to fetch http://build.openmodelica.org/apt/pool/contrib/omshell_5717-1_i386.deb  Size mismatch
Failed to fetch http://build.openmodelica.org/apt/pool/contrib/omshell-terminal_5717-1_i386.deb  Size mismatch
Failed to fetch http://build.openmodelica.org/apt/pool/contrib/openmodelica_5717-1_i386.deb  Size mismatch
Selecting previously deselected package omlibrary.
(Reading database ... 137130 files and directories currently installed.)
Unpacking omlibrary (from .../omlibrary_2.2-3_all.deb) ...
Setting up omlibrary (2.2-3) ...

Tack! Works like a charm!

I am trying to install openmodelica in Ubuntu 10.4.  I know I haven't tried everything (i.e. downloading the debs) but I am putting together a script to set up OM (and a raft of other apps) for students, and would prefer to use the managed update approach.

I followed the instructions here:
http://openmodelica.org/index.php/downl … load-linux

This is what my /etc/apt/sources.list looks like:

Code:

deb http://security.ubuntu.com/ubuntu lucid-security main restricted

deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
deb http://build.openmodelica.org/apt release contrib

I also ran:

Code:

wget -q http://build.openmodelica.org/apt/openmodelica.asc -O- | sudo apt-key add -

then I ran:

Code:

sudo apt-get install openmodelica

and saw:

Code:

Reading package lists... Done

Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  omc omlibrary omnotebook omshell omshell-terminal
The following NEW packages will be installed:
  omc omlibrary omnotebook omshell omshell-terminal openmodelica
0 upgraded, 6 newly installed, 0 to remove and 7 not upgraded.
Need to get 21.1MB of archives.
After this operation, 46.1MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Err http://build.openmodelica.org/apt/ release/contrib omc 5717-1
  404  Not Found
Err http://build.openmodelica.org/apt/ release/contrib omlibrary 2.2-3
  404  Not Found
Err http://build.openmodelica.org/apt/ release/contrib omnotebook 5717-1
  404  Not Found
Err http://build.openmodelica.org/apt/ release/contrib omshell 5717-1
  404  Not Found
Err http://build.openmodelica.org/apt/ release/contrib omshell-terminal 5717-1
  404  Not Found
Err http://build.openmodelica.org/apt/ release/contrib openmodelica 5717-1
  404  Not Found
Failed to fetch http://build.openmodelica.org/apt//home/build/debian-apt/pool/contrib/omc_5717-1_i386.deb  404  Not Found
Failed to fetch http://build.openmodelica.org/apt//home/build/debian-apt/pool/contrib/omlibrary_2.2-3_all.deb  404  Not Found
Failed to fetch http://build.openmodelica.org/apt//home/build/debian-apt/pool/contrib/omnotebook_5717-1_i386.deb  404  Not Found
Failed to fetch http://build.openmodelica.org/apt//home/build/debian-apt/pool/contrib/omshell_5717-1_i386.deb  404  Not Found
Failed to fetch http://build.openmodelica.org/apt//home/build/debian-apt/pool/contrib/omshell-terminal_5717-1_i386.deb  404  Not Found
Failed to fetch http://build.openmodelica.org/apt//home/build/debian-apt/pool/contrib/openmodelica_5717-1_i386.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

any ideas?

  • Index
  • » Users
  • » bollwyvl
  • » Profile
You are here: