not a lawyer. This is not legal advice.
--
Martin Sjölund
On Wed, 1 Jul 2009, Dave Howorth wrote:
I'm just trying to install openmodelica and am confused about coin3d.
Firstly, I'm not sure whether it is always needed or only for 3d
plotting, and I'm not sure yet how important 3d plotting
of mmc you were trying to compile; I fetched
the latest one from subversion and the 2.3.8 relase and they seem to
compile fine (but I already had the dependencies installed).
Also, are you really running Debian? The /c/OMDev/... suggests Windows.
--
Martin Sjölund
On Tue, 1 Sep 2009, Dieter
(...)) when debugging, the following sometimes works as well:
loadFile(MyModel.mo);
simulate(MyModel);
xyz := someNameThatDoesntExist;
By doing an illegal assignment, OpenModelica will print the messages you
want.
--
Martin Sjölund
On Mon, 7 Sep 2009, Sun, Yongqi (E F ES EN 12) wrote:
Hi
);
String r;
algorithm
r := add(Now: , xyz);
end EchoTime;
--
Martin Sjölund
On Fri, 11 Sep 2009, Alex Schenkman wrote:
Thanks Martin for your quick reply.Yes, the code you provided worked fine.
I guess my problem is then somewhere else.
I attached a small example, that I cannot get
I know getting lpsolve to work is a bit annoying, but if you follow the
instructions in the readme, it should be fine (lpsolve is a new
dependency, but it is distributed with OMC since we never got the version
provided with aptitude working). Good luck.
--
Martin Sjölund
From
replaceable function extends specificEmpatlthy_ptx algorithm ... end
specificEmpatlthy_ptx;.
We currently only perform the extends part of it, and put the new class
in our class. However, we don't redeclare it in the base class.
--
Martin Sjölund
Sun, Yongqi (E F ES EN 1 2) wrote:
Hello, everyone!
I'm
to verify that /usr/local/lib is actually cached.
Running `ldd OMShell-terminal` should probably give the same result as
trying to run file.
--
Martin Sjölund
sam wrote:
Dear All,
I am compiling a OpenModelica 1.5.0 _/RC1 on x86/_64 machine with Fedora
10 installed. I have successfully
(in1, in2, ...);
• operators assert(), terminate(), reinit()
• For- and if-equations if the equations within the for- and
if-equations satisfy these requirements [...]
From my knowledge of Modelica, it should work fine if you insert end
when before the DAE.
--
Martin Sjölund
Roshna
, you will need to provide more detailed
error messages. Note that the package names in RedHat may be slightly
different from the ones in the instructions.
--
Martin Sjölund
马潇 wrote:
hi,
I encountered many problems when rebuilding the OMC under the platform
:Linux version 2.6.18-128.el5
.
Did you try a -compat version of gcc 3?
Am Donnerstag, den 18.03.2010, 10:20 +0100 schrieb Martin Sjölund:
Hi,
Internally, we build the 64-bit version of OpenModelica several times a day.
The instructions (made for Ubuntu) are available from subversion:
https://openmodelica.ida.liu.se/svn
Sjölund
HADJ AMOR HASSEN wrote:
Thank you for answering.
Can i deduce that the acausality is useful when modeling but haven't any
impact in the generated code?
Best Regards,
Hassen
--- En date de : *Lun 22.3.10, Martin Sjölund /mar...@sjoelund.se/* a
écrit :
De: Martin Sjölund mar
(ControlVolume);
$ omc myScript.mos
$ nano ControlVolume_init.txt #Change some parameter
$ ./ControlVolume #Re-run simulation using these parameters
--
Martin Sjölund
Per Öberg wrote:
Hello everyone, (I recently sent this but from my LiU adress which is not on
the list so i try again...)
When I try
Hi,
Does val(compartment1.c, 0.0) work?
And would compartment1.c happen to be a parameter or constant?
--
Martin Sjölund
On 20/04/10 09:33, Michael Hanke wrote:
Hallo,
Here is the corrsponding output:
plot(compartment1.c)
Unknown error while plotting
plot2(compartment1.c)
Unknown error
Hi,
If it is indeed a parameter it shouldn't work (or well, it should, but
we haven't implemented it). But if it works fine in Windows, I guess it
is a variable and then I'm out of ideas. At least without a testmodel to
reproduce the error on.
--
Martin Sjölund
On 20/04/10 13:56, Michael
Hi,
What was needed to compile the qt projects with Mico (*.pro changes)? I
switched the Ubuntu packages to omniORB since that package is actually
maintained. So something might have stopped working when I tried to
rewrite the packages so both of them are supported.
--
Martin Sjölund
On 23
omc does not handle any assertions, including min/max on Reals.
Try to simulate the following model with stopTime=10.0 for example.
model A
Real r = time;
equation
assert(r 4.0, ABC);
end A;
--
Martin Sjölund
On 06/09/2010 01:34 PM, Christoph Höger wrote:
Hi all,
does omc handle
On 06/09/2010 03:32 PM, Francesco Casella wrote:
Martin Sjölund ha scritto:
omc does not handle any assertions, including min/max on Reals.
This is definitely something to put on the workplan :)
Assertion are an essential tool for debugging and for making sure that
models are not mis-used
Hi Per,
You will need to enable compilation with sendData (./configure
--with-sendData-Qt --with-omniORB) in order to use plot(). Otherwise,
plot2() functionality still exists (but seems to be broken in OMNotebook
due to changes made to the command).
--
Martin Sjölund
On 06/18/2010 10:00
). The configure script now also tries to compile
against the sendData dependencies so the problem is caught earlier.
--
Martin Sjölund
On 06/18/2010 04:00 PM, Per Öberg wrote:
Thanks, that may have worked.
However, I have had some problems with my QT-libs earlier. The problem is that
the generated
at
this time.
Debugging OMC is also possible. But compiling omcd, the debug
executable, takes a longer than compiling omc, so this is only done rarely.
--
Martin Sjölund
On 06/23/2010 07:51 AM, Arquimedes Canedo wrote:
Dear OMC developers,
how do you manage to debug OMC itself. I'm
timer functions are different on windows and unix,
which adds another level of pain to implementing this in OpenModelica.
It should probably be done in the future though.
--
Martin Sjölund
On 2010-08-19 09:15, Bonifay, Julien (E F ES EN 1 2) wrote:
Hi Martin,
We would like to compare
information
regarding execution time of e.g. initialization through a file (or some
other message passing) in the future.
--
Martin Sjölund
and combination like those.
--
Martin Sjölund
On 2010-09-28 13:30, Link, Kilian (E F ES EN 1 2) wrote:
Hello OpenModelica community,
recently we have tried to build some tests for fluid modelling with
OpenModelica. For that purpose we use a static fortran library for the
media calculation
the ways they can be used).
Fixing problems with external functions tends to be easy as it is only
code generation that needs to be fixed.
--
Martin Sjölund
On 2010-10-20 23:53 , Francesco Casella wrote:
Dear all,
just a quick question, what is the degree of support of external
functions
/include and the library from /usr/lib
(actually, based on CPPFLAGS and LDFLAGS). It's only included in the
trunk because Adrian has not added it to OMDEV. Did you get a
compilation error from sqlite3 stuff?
--
Martin Sjölund
On 2010-12-02 17:14 , Christoph Höger wrote:
Hi all,
please find
Thanks. I'll look into this. Macports generates the line:
-arch x86_64 -arch -Xarch_x86_64
while running qmake/make manually generates the working command:
-arch x86_64 -Xarch_x86_64
On 2010-12-16 21:38 , Lewis Jeffery wrote:
Dear OpenModelica interested,
I attempted to build OM 1.6 on
I'll just fix it in configure instead (r7449). Else you break OSX (and
also need to maintain the omc_debug and omc_profiler makefiles).
--
Martin Sjölund
On 2010-12-17 10:19, Christoph Höger wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
the attached patch adds -lrt to LDFLAGS
Hi Mats,
This is possible to do using an interactive simulation (omi, see chapter
5 of the OpenModelica Users Guide). Using it, you write your own
simulation controller.
--
Martin Sjölund
On 2010-11-29 11:09, matsmodelica wrote:
Hello everybody,
As an alternative to interactive simulation
The drag issue has not yet been fixed. It works fine to begin with but
after a while clicking the plus (or minus) stops doing anything (not
dragging or expanding/collapsing).
Using left/right-arrow still works though.
--
Martin Sjölund
On 2010-12-22 01:27 , Adeel Asghar wrote:
Hi Lewis,
I
It was 7545 (the latest changes to OMEdit), but it's really hard to
reproduce (took me around 10 minutes of clicking and dragging things for
it to happen again). So it's not a major annoyance.
--
Martin Sjölund
On 2010-12-22 13:39, Adeel Asghar wrote:
Hi Martin,
Have you tried the new code
); // works
--
Martin Sjölund
On 2010-12-29 13:20, Christoph Höger wrote:
Hi all,
the following code
model oscillator
Modelica.Electrical.Analog.Basic.Capacitor capacitor1;
Modelica.Electrical.Analog.Sources.SineVoltage sinevoltage1;
Modelica.Electrical.Analog.Basic.Inductor inductor1
,
timeTotal = 0.923819948
end SimulationResult;
--
Martin Sjölund
On 2011-01-03 15:51, Christoph Höger wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
addendum: The following model
model mathtest
parameter Real x = Modelica.Math.sin(1.0);
Real y;
equation
y
Yes, I have it. It's part of oscillator_functions.h (attached; it should
be included by oscillator_functions.cpp).
--
Martin Sjölund
On 2011-01-04 15:24, Christoph Höger wrote:
does your omc create C++ code containing Modelica_Math_sin_rettype? If
so, where is it defined?
Am Montag, den
Modelica.Math.sin to sin. I'll add a bug to the tracker.
MSL 3.1 works properly ;)
--
Martin Sjölund
On 2011-01-04 16:16, Christoph Höger wrote:
(keeping on-list, might be interesting for others, too)
Here's the output:
[choe...@eurybates oscillator]$ omc test.mos
Es werden eingebaute Spezifikationen
On 2011-01-19 10:50, Christoph Höger wrote:
I thought it should be trivial to add at least the example above to
openmodelica and took a look at the function createSingleArrayEqnCode()
in SimCode.mo (current trunk)
It's not. It tries to create SES_ARRAY_CALL_ASSIGN, but it should really
be a
pattern, execute the code, if it fails, try the next
patterns.
On 2011-01-19 11:28, Martin Sjölund wrote:
On 2011-01-19 10:50, Christoph Höger wrote:
I thought it should be trivial to add at least the example above to
openmodelica and took a look at the function createSingleArrayEqnCode
. Only uninstalling did not help
because one of the generated files were still wrong in the working
directory. And only cleaning the working directory causes the same
error. Anyway, I hope my hint helps.
--
Martin Sjölund
On 2011-01-21 07:08, Lewis Jeffery wrote:
Martin,
Thanks for the update
on macports.org for this issue (there was not one on
the 16th when I first encountered it):
https://trac.macports.org/ticket/28033
--
Martin Sjölund
On 2011-01-21 08:49, Lewis Jeffery wrote:
Martin,
Thanks. I added
port uninstall rml-mmc
to the start of your list and got a new error message
...
ans =
0
0
0
0
octave:5 name'
ans =
time
$dummy
der($dummy)
r
octave:6 dataInfo # Which variable corresponds to which column;
variable 4 (r) corresponds to data_2, column 4
dataInfo =
0 2 2 2
1 2 3 4
0 0 0 0
-1 -1 -1 -1
--
Martin Sjölund
/ModelicaBuiltin.mo.
They are also reproduced below so you can see all parameters easily.
--
Martin Sjölund
function plot Launches a plot window using OMPlotWindow. Returns true
on success.
If OpenModelica was compiled without sendData support, this function
will return false.
Example
-05,6.4e-05,7.2e-05,8e-05}
--
Martin Sjölund
On 2011-05-30 09:49, Christoph Höger wrote:
Hi,
what is wrong with that?
model Test
Real x;
parameter Real p = 8 * 10^(-5); //becomes 0?
equation
x = time * p;
end Test;
best,
Christoph
Hi,
You need a newer version of RML (the latest version is r213) in order to
compile OpenModelica.
--
Martin Sjölund
On 2011-07-25 11:03, Sun, Yongqi (E F ES EN PTEC PE 5) wrote:
Hello,
I have OpenModelica at revision 9529. After
./configure --with-omniORB --with-sendData-Qt
to move things around (install
in user's home dir?) it is different.
--
Martin Sjölund
On 2011-11-21 19:54 , Timo Penndorf wrote:
Hello,
since a few weeks (somewhen between r9xxx and r10557) the path name of
ModelicaBuiltin.mo seems to be hard coded (or generated as absolute
path hard
SiemensPower.Components.Junctions.Tests.splitterMixer_test
--
Martin Sjölund
On 2012-01-05 10:18, Bodensteiner, Martin (E F ES EN PTEC PE 5) wrote:
Hello,
I am Martin, a student working together with Stephanie and Kilian on
OpenModelica. We uploaded some models to the SVN to
https://openmodelica.org/svn/OpenProd
-b11, mixed mode)
But previous version of Ubuntu, Debian, etc also works.
--
Martin Sjölund
I'd simply reconfigure whenever I wanted to make a binary package.
#!/bin/bash
./configure --prefix ..
make -j2 omc
sudo make install
# Reset to old config
./configure ..
It's quite fast since only a few files depend on config.h.
--
Martin Sjölund
On 2012-02-14 08:30, Per Öberg wrote
You need a later version of ParadisEO (OMOptim was developed using the
1.3 beta version, I initially used 1.2.1 stable release for the Linux
builds, which suddenly stopped working).
http://www2.lifl.fr/OPAC/Paradiseo/licence/AcamDownload2.php
Or:
apt-get build-dep openmodelica
--
Martin
(it will not create a cc file).
--
Martin Sjölund
On 2012-05-04 22:15, Bill Janssen wrote:
A number of the Makefile.in files seem incomplete. I've got OmniORB
installed in /local/open-modelica, and because of that mosh/src won't
build. Why? Two reasons: because $(CORBAINC) isn't actually used
Yeah, too bad there is no Sundials for Macports... Once someone fixes
the configure, it will be disabled for OSX :p
On 2012-05-10 20:45, Bill Janssen wrote:
I can't compile from svn right now. Looks like some new initialization
code hasn't been integrated into the configure.in or documentation
Did you try assert(false, message) ?
On 2012-05-11 15:11, Christoph Höger wrote:
Just in case, anyone else wants a terminate() function, you can use mine:
function my_term
annotation(Include = void my_terminate(int code) { modelErrorCode =
code; };);
input Integer code;
locally as far as I know; it could be a shared
library instead. Then you avoid these issues with sockets and CORBA.
--
Martin Sjölund
On 2012-05-22 07:57, Peter Aronsson wrote:
Actually, the main reason we changed from Socket-based communication to CORBA
was to guarantee that large strings were
Thanks,
I must have forgotten about this, because I am sure I got a bug report
about it already. I blame the fact that the bug tracker is currently down.
I added the dependency to depends instead of just build-depends; the
next build will have it for sure.
--
Martin Sjölund
On 2012-06-12 14:14
On 06/18/12 16:25, Christoph Höger wrote:
Hi,
I suppose trac is not fully functional yet? At least I cannot login.
Here is the second one out of our openprod library testing.
You can post comments and bugs in your name even without logging into
trac. Just fill in your username in the list
On 07/10/12 00:16, Guilherme Brondani Torri wrote:
On 09/07/12 21:32, Martin Sjölund wrote:
On 07/09/12 20:00, Guilherme Brondani Torri wrote:
Would it be possible to have official tarballs of stable releases for
RML-MMC and OpenModelica?
We do. The tarballs that macports uses come from
use it a lot to set -g for simulations, but it
should work with -L too.
--
Martin Sjölund
On 2012-11-20 10:05, Christoph Höger wrote:
Hi all,
how does one specify an additional -L option for omc to pass to gcc when
building a simulation?
thanks,
Christoph
This was also caught by the nightly OSX build, and should be working
again (I did not look into how to load dylib relative to the path of the
executable itself, and instead went for the .a on OSX).
--
Martin Sjölund
On 11/29/2012 03:25 AM, Bill Janssen wrote:
The current trunk breaks thusly
Yes, the macports nightly portfile is updated hourly based on the
latest trunk.
50 * * * * make -C /home/build/apt-build/ -f Makefile.macports
--
Martin Sjölund
On 11/29/2012 07:28 AM, Ariel Liebman wrote:
Does this relate to installing from macports?
Dr. Ariel Liebman
Honorary Research
True, but that variable is actually used for .so-files on OSX. Yes, OSX
can use .so-files.
Anyway, it's used for dynamically loaded functions during compile-time.
It is mainly used so the user has another way of making omc crash and
lose data in OMEdit :)
--
Martin Sjölund
On 11/29/2012 07
:
https://openmodelica.org/index.php/download/download-linux
--
Martin Sjölund
interface; requires omniorb +python27
[+]qt: Build Qt-based clients
universal: Build for multiple architectures
--
Martin Sjölund
On 01/29/2013 09:41 AM, Ariel Liebman wrote:
Hi Peter,
I compiled the latest version through macports but there doesn't seem to
be a OMNotebook around. Is that discontinued
Modelica
$ make -f M.makefile
...
g++-4.4 ... -L/home/martin/trunk/build/lib/omlibrary/Modelica
3.2.1/Resources/Library/linux64 ...
And if the library doesn't exit, the -L is not generated.
--
Martin Sjölund
On 02/19/2013 09:31 PM, Bill Janssen wrote:
I'm building the simulation program for a large
Yup. That it correct.
On 02/20/2013 03:27 AM, Bill Janssen wrote:
Am I correct in believing that if I hit this branch in
SimulationRuntime/c/simulation/simulation_info_xml.c, that I've found a
bug? If so, I'll report it with the model that triggers it.
if (curIndex != ix) {
any conversations taking place to
change them.
--
Martin Sjölund
On 02/20/2013 07:33 PM, Bill Janssen wrote:
Looks like the command-line switches changed recently, from -f
XML_INIT_FILE to -f=XML_INIT_FILE, and from -r OUTPUTFILE to
-r=OUTPUTFILE. Might break a lot of downstream code (broke
If it's added as a ticket, it would be in the Run-time component. If
it's just added as a bullet in the text, it'd go under (OMC).
--
Martin Sjölund
On 02/20/2013 09:58 PM, Bill Janssen wrote:
What component would this be? Run-time?
Bill
Martin Sjölund martin.sjol...@liu.se wrote:
I
is used in equation 1).
You should perhaps create a ticket asking for more useful diagnostics
from the backend instead of just saying the system(s) were unbalanced.
--
Martin Sjölund
/changeset/15380) despite
those not showing up in the generated documentation.
--
Martin Sjölund
On 02/28/2013 10:05 PM, Bill Janssen wrote:
Is the funky scripting language used in .mos files documented anywhere?
Like, what are the primitives, etc? I use buildModel() a lot, but I see
that it's
, it is lost to the void. It's a pretty
unpleasant bug...
And yes, I love the extra error-messages that mos-scripts give you.
Maybe one day they will bother me enough for me to fix them.
--
Martin Sjölund
On 03/01/2013 07:25 PM, Bill Janssen wrote:
When omc +showErrorMessages +s gives me half
places. But I guess you
know how to open ModelicaBuiltin.mo anyway ;)
--
Martin Sjölund
On 03/07/2013 09:38 PM, Bill Janssen wrote:
Hi.
Is there any support anywhere in OpenModelica for resolving
modelica:// format URIs? If so, where?
Thanks.
Bill
to our Linux machines. I might
even install Linux on it since it's so much nicer for server
administration).
--
Martin Sjölund
On 04/04/2013 06:20 PM, Bill Janssen wrote:
I want to set up a test server to run all the Modelica tests on my Open
Modelica installation, just as test.openmodelica.org
Head is working:
https://test.openmodelica.org/hudson/job/OpenModelica_BOOTSTRAP/
Make sure you revert local changes, rm -f build/bin/omc before you start
in case you have a bad build (omc uses itself during the compilation
process).
--
Martin Sjölund
On 2013-04-30 14:54, Christoph Höger
It is possible to do what you want, but not in OMEdit as far as I know.
At least not as of yet.
loadString(
model M
Real x(start=1);
equation
der(x) = 1;
end M;
);
buildModel(M);
system(./M -override x=2); // Or use -overrideFile
plot(x,fileName=M_res.mat);
--
Martin Sjölund
On 2013-09-29
/openmodelica-devel-mavericks-17983.mpkg
(Note that I didn't test the package; the GUI on my Mac is broken. I did
check that simulating works on my local machine)
--
Martin Sjölund
If I am not mistaken, the problems with jmi comes from a jmodelica installation
on a preferred path in the linker... The rml issues should not be there, but
can be avoided using ./configure --without-rml.
Carl Sandrock carl.sandr...@up.ac.za wrote:
I have hit a roadblock when trying to compile
think it did not compile
properly anyway)...
In general, if the OSX build works for one revision, so will Windows
and Linux.
Thanks, Martin. How would we select a specific revision for Linux?
Bill
--
Martin Sjölund
On 08/21/2014 05:50 PM, Bill Janssen wrote:
I'm working with a group
I don't know. Maybe because none of the Windows developers considered it
important? There are some calls in there that *say* the function
converts \ to /. But maybe it doesn't for some reason.
I cannot test it myself since I do not use Windows...
--
Martin Sjölund
On 2014-10-02 11:47, Lennart
It should work tomorrow. A temporary work-around is to install
libsuitesparse-dev. See also
https://trac.openmodelica.org/OpenModelica/ticket/3359
--
Martin Sjölund
On 06/23/2015 05:38 PM, Adrian Pop wrote:
Hi,
This message bounced to me because it was sent
from an email which
76 matches
Mail list logo