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

Posts

Posts

Sep-30-16 10:56:53
several "Undeclared " errors show up on certain models

This error ended up being caused by an index that was out of range for certain conditions. The IB2 was the second element of that array, and there was a case where that could have been out of the size of the array. I ended up fixing it with an if-then statement to make sure the equation was valid for all potential sizes of the array.

Aug-08-16 20:45:37
Getting Incompatible Pointer Type error

For a fairly large model, I get errors in the initialNonLinearSystem function of "43:warning: assignment from incompatible pointer type [Wincompatible-pointer-types]"

I am running the 64 bit windows version, latest nightly build (OpenModelica-v1.11.0-dev-54-g4ec62d0-64bit.exe). I also tested with the Linux version on a VM, and did not get that error. Seems like this is a compiler bug.

Unfortunately I can't share my code for the error to be replicated, but I can tell you this has a significant amount of nonlinearities.

Jul-26-16 16:49:04
1.11.x 64 bit appears to have changed something with how/where the results file is stored

I'm running OpenModelica through the corba interface, and with every version that starts with 1.11, my program can no longer find the .mat results file. In fact, when I do a manual search for the file in windows explorer, I can't find any .mat files that were created in the time frame where I'm trying to run that version. Any idea what changed from 1.10 to 1.11? I don't have the problem when I run OMEdit - just when I'm running OM through Corba.

Jun-29-16 20:12:09
Some models take significant time to translate/compile

I was able to run the diagnostics, and it looks like the part that takes the longest is the performance of FrontEnd:
Performance of FrontEnd: time 4.295/4.735, allocations: 0.6534 GB / -175796800, free: 28.79 MB / 474.9 MB

This is almost half of the compilation time for this particular model. It varies by model, but for the ones I have looked at, this is always a large fraction of the compile time. Does this tell you anything about the potential causes?

Thanks!

Jun-29-16 01:12:29
Some models take significant time to translate/compile

I don't understand how to run with the +d=execstat in OMEdit. How do I set that debug flag or the +d=nogen?

Jun-28-16 23:20:40
Some models take significant time to translate/compile

This is more of a general question. I'm trying to understand what kinds of things in models make translation/compilation phase take a long time. I have models, for instance, that take 1.5 minutes to compile, when the solve only takes 30 seconds or less. Are there known issues of specific types of models that take longer to translate and compile? Unfortunately I can't share the specific models, which is why I ask the question this way.

Jun-27-16 11:02:00
ways to limit output file size?

Thanks - that helps. I was not aware of the -noeventemit option.

Jun-27-16 08:54:10
ways to limit output file size?

Is there a way to limit the output file size? For example, can we choose to output only the data from every 10ms? With the variable step solver, the time step of the data in the .mat file is variable, but there are times when I would only want to see the data on a certain frequency, to limit the size of the file.

Mar-29-16 14:48:44
Unable to open 64 bit OMEdit

32 bit version is able to open fine.

Mar-29-16 12:50:54
Unable to open 64 bit OMEdit

I installed the 64 bit version that is posted in the nightly builds (OpenModelica-v1.10.0-dev-158-g96496c0-64bit), and it runs through the corba interface, but Connection editor fails to even open - I get a crash every time.

Mar-22-16 21:04:44
Too many heap sections on trying to run a model

Thanks for the update!

Mar-22-16 21:01:12
Too many heap sections on trying to run a model

It looks like the 64 bit version is not being built with the nightly builds. Is that as expected?

Mar-17-16 18:33:40
several "Undeclared " errors show up on certain models

This was an error that I got with 1.9.3, I'm now seeing it with 1.10.0 dev9
I get several errors similar to the following:
WebModel.c: In function 'WebModel_eqFunction_10199':
WebModel.c:47889: error: '$PDrivenRoll_5$POut$lB2$rB$PTension' undeclared (first use in this function)
WebModel_06inz.c: In function 'WebModel_eqFunction_5763':
WebModel_06inz.c:70367: error: '$PDrivenRoll_5$POut$lB2$rB$PTension' undeclared (first use in this function)

Mar-10-16 20:14:23
Too many heap sections on trying to run a model

That solved my problem, thanks! Any estimate when the 64 bit version will be official?

Mar-10-16 16:31:26
Too many heap sections on trying to run a model

With v1.9.4, I get an error with one of my models that says "too many heap sections", then crashes OMEdit.

Mar-01-16 15:07:04
Non-understood error message

Yes, it appears to be corrected in the latest nightly build, thanks! Any idea when this fix will be in an official release?

Feb-29-16 22:09:27
Non-understood error message

I try to run a simulation and I get Error Code 3, it says Got number 7443.000000, expected: 7441.000000. This is after it got through translation and compilation phase. This is in version 1.9.4 beta 2. When I try to run the same model in 1.9.3, I get:
WebModel_06inz.c:12220: error: '$P$STATESET0$PA$lB1$c1$rB' undeclared (first use in this function)
WebModel_06inz.c:12220: error: '$P$STATESET0$PA$lB1$c2$rB' undeclared (first use in this function)
WebModel_06inz.c:12220: error: '$P$STATESET0$PA$lB1$c5$rB' undeclared (first use in this function)
WebModel_06inz.c:12220: error: '$P$STATESET0$PA$lB1$c7$rB' undeclared (first use in this function)
WebModel_06inz.c:12220: error: '$P$STATESET0$PA$lB1$c8$rB' undeclared (first use in this function)
WebModel_06inz.c:12220: error: '$P$STATESET0$PA$lB1$c9$rB' undeclared (first use in this function)
WebModel_06inz.c:12220: error: '$P$STATESET0$PA$lB1$c12$rB' undeclared (first use in this function) With many more very similar things before and after. It looks like it is translating, but giving me this error in the compile phase.

Sep-17-15 18:23:45
Error of "no such file or directory"

I tried creating that directory, and placing the file in that directory, but it still didn't seem to recognize it. The annotation line I have (someone else wrote it for me, so I'm not sure why it was done this way or what it means) is:
  annotation(Include = "#include \"ModelicaRNG.c\"");

This is the annotation in a modelica function that calls it. With that annotation, should the file be in the same folder as the modelica function?

Thanks.

Sep-17-15 17:52:32
Error of "no such file or directory"

The rest of the error is (with names removed to make it more generic):
In file included from[<LibraryName>.<ModelName>_functions.c:7:
[[<LibraryName>.<ModelName>_includes.h:4:25: error: <ExternalFunctionName>.c: No such file or directory
mingw32-make: *** [<LibraryName>.<ModelName>_functions.o] Error 1
mingw32-make: *** Waiting for unfinished jobs....
Compilation process failed. Exited with code 2.

Sep-17-15 17:45:00
Error of "no such file or directory"

I'm trying to use an external c function in v1.9.3, and I get an error that the file does not exist. I have the file located in several places within the folder structure, but it still tells me that the file does not exist. I have also verified the spelling, and have tried it with the library as a single file, but nothing seems to get rid of the error. Please advise.

Aug-25-15 13:07:43
I'm working with the latest version, and when I try to run a model I get an out of memory...

I'm using the latest official release - 1.9.2.

Aug-24-15 20:18:06
I'm working with the latest version, and when I try to run a model I get an out of memory...

Any plans for a 64-bit Windows version?

Aug-24-15 19:28:17
I'm working with the latest version, and when I try to run a model I get an out of memory...

Unfortunately, due to the proprietary nature of my work I can't share it directly, but I can tell you that I also got several warnings that it got to the maximum number of iterations without being able to calculate the roots (not sure if the two things are related).

What I was hoping is that someone could tell me what "out of memory" means, since the memory usage shown on the Windows task manager stayed around 5GB, and I have 16GB of RAM available on my computer.

Thanks

Aug-24-15 16:05:56
I'm working with the latest version, and when I try to run a model I get an out of memory...

I'm using mat format

Aug-24-15 15:46:10
I'm working with the latest version, and when I try to run a model I get an out of memory...

I was able to get past the issue by increasing the step size (decreasing the number of steps), but I don't understand why I am hitting any kind of limit in the first place, or how I can get past the problem without having to change the step size.

Thanks.

Jul-09-14 17:01:03
Having issues with an equation that has a transpose function in it
Category: Programming

I am having trouble getting the following parameter definition to translate properly:

parameter Real C[4,2] = cat(1, {{0,0}}, transpose({array(B * i for i in 2:4),array(A * B * i for i in 2:4)}));

The error I get is:
Error: Instantiation of array component: C failed because index modification: (C[]= = {{0.0, 0.0}}) is invalid.
    Array component: C[] has more dimensions than binding  = {{0.0, 0.0}}

Any ideas what could cause that?

Thanks!

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