- Index
- » Users
- » cschaad
- » Profile
Posts
Posts
Hello Sam,
see:
https://openmodelica.org/index.php/forum/topic?id=389
https://openmodelica.org/index.php/forum/topic?id=404
Greetings, Christian
Hi Adeel,
I have the same problem here (Linux 64bit / 10918). With 10641 it was still working...
I think, the crash occurs with all models.
Thank You,
Christian
Hello Jez,
I'm using the following function to import OM-Data into Octave / Matlab
Code:
function omimport(modelname)
%
% Read OpenModelica Result File into Workspace
%
% SYNTAX: omimport(modelname)
% z.B. omimport('package.model')
%
% Feedback/problems: Christian Schaad, ingenieurbuero@christian-schaad.de
load ([modelname,'_res.mat']);
%Sort out double times
deltat0=find(diff(data_2(1,:))==0);
disp(['Removed same time values: ',num2str(length(deltat0)),'/',num2str(length(data_2(1,:)))])
assignin('base','data_2',data_2);
assignin('base','dataInfo',dataInfo);
assignin('base','name',name);
assignin('base','deltat0',deltat0);
name=name';
for i=1:length(name)
if (isempty(strfind(name(i,:),'der(')))
nonchars=strfind(name(i,:),char(0));
if dataInfo(2,i)<0;
assignin('base','temp',-data_2(-dataInfo(2,i),:));
else
assignin('base','temp',data_2(dataInfo(2,i),:));
end
evalin('base',(['temp(deltat0)=[];']));
evalin('base',([num2str(name(i,1:nonchars(1)-1)),'=temp;']));
end
end
clear data_1 data_2 Aclass description modelname i dataInfo temp deltat0;
evalin('base',(['clear name data_2 dataInfo nonchars temp']));
...but anyway I still cannot get it to work. Or maybe I am too stupid.
I tried it with Mechanics.Translational.Examples.Damper:
I set springDamper3.d as optimized variable with min 20 and max 30.
As objective i defined to minimize springDamper3.f.
Simulations are running, but I get no results.
In OMOptim temp directory I find always "inf" in the second column of the iteration*.sav files...
The above mentioned bug is resolved. Thank you!
At least in linux, specifying external libraries as commanline arguments works.
Hi Ivan,
for some years now, I had problems importing external data to OpenModelica.
I already used several workarounds.
A fast and reliable solution, which I am actually using is from Jörg Rädler:
http://www.j-raedler.de/2010/11/accessi … tareader2/
in combination with octcdf to create nc-files with octave.
If you have further questions, ask!
Christian
This bug is still open:
https://openmodelica.org:8443/cb/issue/ … ation=true
I'm also really looking forward to have this solved.
On linux the latest OMedit Revision 9500 segfaults while opening Modelica.Mechnics.Translational.Components from MSL 3.1.
The error messages are: 'error? malformed string-list. skipping:' followed by one character per line of: '/usr/lib/omlibrary/Modelica 3.1/Mechanics/Translational.mo"eadonly"'
(Maybe the 'eadonly' is a hint?)
These error messages also appear in SVN 9495 and earlier, but didn't lead to a crash...
Thanks for your great work with OMEdit!
...I think you are missing lpsolve?!
Working perfectly! Thank you!
For my slackware64-current installation, the deb2tgz converted debian-packages are working!
Hello!
Not having used OpenModelica for two years now, I'm really pleased with the development over the last time. Thank you developers!
Also the model editor OMEdit is looking very nice. Nevertheless I'm missing the menu entries for the properties and parameters on right click on the models as described in the manual.
Am I doing something wrong or is this feature disabled at the moment? I'm using the latest linux nightly build 8226.
Thanks, Christian
Hi Constantin,
Are you using linux? I had the same problem, when OPENMODELICALIBRARY in my .bashrc pointed to the wrong library...
- Index
- » Users
- » cschaad
- » Profile