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
  • » Ariadne
  • » Profile

Posts

Posts

Jun-04-13 22:12:29
can't understand the organization of the output data

Dear sjoelund.se

Thank you very much. I used the function omimport and was able to obtain the values that I wanted.


Best Regards,

Ariadne

Jun-04-13 18:47:23
can't understand the organization of the output data

Hi!

I have to perform a few calculations on the output data from my simulations but I couldn't find any information about how they are organized in the .mat file, or in any other format.

I can see the results but I don't know to which quantity each column correspond. Also, is the data from all the quantities that I can observe in the plot window written in the output file ? If not, How can I choose them ?

Thank you!

EDIT: The results were correct. I was comparing the openModelica's simulation with the one I made in another software, with the difference that I forgot to adjust the ramp time of the source in the other program. After making that correction the results obtained were very similar.


Hi!

I am obtaining inaccurate results when I simulate very simple electrical circuits in openModelica, which is intriguing me a lot..

Using the Modelica connection editor I built a simple model of a transmission line with a single pi section (only a resistor in series with an inductor) and added an inductor as a load at the end of the line . The  transiente response obtained after simulating the circuit has a dc level that makes the current waveform of the circuit vary between 0 to a peak when in reality it should vary from -peak to peak and the transient takes a long time to end, compared to the simulations I made using other softwares.


I imagine there is something I must configure to obtain accurate results, though I have no ideia about what's wrong since both the circuits tested are very simple.

I would appreciate if anyone could teach me on how to solve that problem.


In case anyone is interested in seeing my simulation configuration I am sending a link from which you can download the model:

https://www.dropbox.com/s/m9ynluyare3hy … se_test.mo

Apr-12-13 03:19:29
The model is checked without errors but can't be simualted

Hi!

I was able to change the M_transformer code using MDT plugin, which, by the way, is very easy to install. After that, I was able to run my simulation, but only in a 32 bit Windows. When I try to run the same simulation in a 64 bit Windows I receive the error reported in my last post. Could this really be the source of the problem ?

I was thinking of using a 32 bit virtual machine to solve the problem. But.. Does anyone one know if there is a simpler solution ?


Regards,

Ariadne

Apr-01-13 20:49:58
The model is checked without errors but can't be simualted

Dear sjoelund.se,

I used nano to edit the system's library and now the error I reported seems to be fixed. But now, I am receiving another error, which I present below:

Code:

 Translation    14:27:29        0:0-0:0    Error building simulator. Buildlog: falign-functions -msse2 -mfpmath=sse   -I"C:/OpenModelica1.9.0//include/omc" -I. -L"C:/Users/Usuario/Documents/OpenModelica"   -c -o Multiple_Lines.o Multiple_Lines.c

'falign-functions' it's not recognized as an internal  or external command, operable program or batch file
mingw32-make: [Multiple_Lines.o] Error 1 (ignored)
falign-functions -msse2 -mfpmath=sse   -I"C:/OpenModelica1.9.0//include/omc" -I. -L"C:/Users/Usuario/Documents/OpenModelica"   -c -o Multiple_Lines_records.o Multiple_Lines_records.c
'falign-functions' it's not recognized as an internal  or external command, operable program or batch file
mingw32-make: [Multiple_Lines_records.o] Error 1 (ignored)
g++ -I. -o Multiple_Lines.exe Multiple_Lines.o Multiple_Lines_records.o -I"C:/OpenModelica1.9.0//include/omc" -I. -L"C:/Users/Usuario/Documents/OpenModelica"  -L"C:/Users/Usuario/Documents/OpenModelica"     -falign-functions -msse2 -mfpmath=sse   -L"C:/OpenModelica1.9.0//lib/omc" -Wl,--stack,0x2000000,-rpath,'C:/OpenModelica1.9.0//lib/omc' -lSimulationRuntimeC   -linteractive  -lregex -lexpat -lgc  -static-libgcc -luuid -lole32 -lws2_32 -lsundials_kinsol -lsundials_nvecserial -llapack-mingw -Wl,-Bstatic -lf2c -Wl,-Bdynamic
g++: Multiple_Lines.o: No such file or directory
g++: Multiple_Lines_records.o: No such file or directory
mingw32-make: *** [omc_main_target] Error 1

I don't know if the error was caused because I am not a Linux user  and  I used Cygwin to run nano and  then edit the system's library. Also, I  had never used nano before, so I don't know if I commited some mistake. Do you know what could be the source of the problem ?

I am sorry for keeping asking you so many questions, but at the moment I have no one else to help me.

Thank you very much.

Mar-27-13 07:43:16
The model is checked without errors but can't be simualted

Dear sjoelund.se,

I haven't been able to test your solution yet because I am having trouble finding a way to edit the M_transformer model.

I tried to create a new library with a copy of the M_transformer model that had the correction you suggest, but I keep receiving error messages when I try to use my new library. How did you edit the M_transformer model in a way that it can be used in the M_oline model ? Did you use the OMedit to apply that changes ?

Kind Regards,

Ariadne

Mar-24-13 04:14:49
The model is checked without errors but can't be simualted

I am sorry, I don't know what this error means.

I've searched  the internet for an example which applies the M-Oline model but I found nothing. Also, there wasn't  anything in Peter Fritzon's book that I could use to help solve that problem, therefore, I am completely lost.

Do you have any idea about what is causing these errors, or where I could search for help ?

Kind Regards,

Ariadne.

Mar-23-13 04:06:25
The model is checked without errors but can't be simualted

I posted the first four messages I received in the message window. Is there any other place where I can check for error messages ?

I am sending a link from which  anyone interested can download the model I am trying to simulate. It's very simple, I just added four sine voltage sources and resistors to the M_Oline model, once I am still learning how to use the Modelica.

https://www.dropbox.com/s/pgccfvgn7cx9e … on_Line.mo

Thank you, sjoelund.se, for your reply.

Kind Regards,

Ariadne.

Mar-22-13 06:53:57
The model is checked without errors but can't be simualted

Hello!

I'm trying to do a simulation using the Modelica.Electrical.Analog.Lines.M_OLine component, but I am obtaining the following errors:


Translation    00:37:26        0:0-0:0    Internal error ./Compiler/BackEnd/SimCodeUtil.mo: function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]
Translation    00:37:26        0:0-0:0    Internal error ./Compiler/BackEnd/SimCodeUtil.mo: function createEquationsForSystem1 failed
Translation    00:37:26        0:0-0:0    Internal error ./Compiler/BackEnd/SimCodeUtil.mo: function createEquationsForSystem1 failed for component {403:460}
Translation    00:37:26        0:0-0:0    Internal error ./Compiler/BackEnd/SimCodeUtil.mo: function createOdeSystem failed for component {403:460}


I believe I have a problem with my compiler but I have no ideia on how to fix it.

I am very new in the use of Modelica programming and  would appreciate any help of somebody who have already experienced this type of error and could give me any hint to solve this problem.

Thank you very much.

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