Opened 4 years ago

Last modified 4 years ago

#6276 new discussion

Error in simulation: Simulation process failed. Exited with code 3.

Reported by: Manivannan Duraisamy Owned by: somebody
Priority: high Milestone: NeedsInput
Component: *unknown* Version: 1.16.0
Keywords: Cc:

Description

Platform
OS: Windows10
OM: OpenModelica v1.16.1 (64-bit)

OMSimulator v2.1.0-dev-230-g10c82c8-mingw


Error Code:

src->ndims != dst->ndims, 1 != 0

Simulation process failed. Exited with code 3.


I have been working on simulation studies in power plant sector. I was able to successfully simulate the model using OMShell until Monday (12/07) but suddenly from 12/08, it is showing the above error in OMEdit. I Checked the .mo files from backup, it also shows same error message.

I am not a strong program decoder. The compilation process shows below error

STEAMPOWER.application.TURBINE_PLANT6B.c: In function 'STEAMPOWER_application_TURBINE_PLANT6B_eqFunction_4851':
STEAMPOWER.application.TURBINE_PLANT6B.c:13533:182: warning: passing argument 2 of 'copy_real_array_data' from incompatible pointer type [-Wincompatible-pointer-types]

copy_real_array_data(div_alloc_real_array(sub_alloc_real_array(mul_alloc_real_array(tmp661, tmp662), tmp663), sub_alloc_real_array(tmp674, mul_alloc_real_array(tmp676, tmp677))), &data->localData[0]->realVars[1244] /* BOILER.ploss[4] variable */);


In file included from C:/Program Files/OpenModelica1.16.1-64bit/include/omc/c/openmodelica_func.h:50:0,

from STEAMPOWER.application.TURBINE_PLANT6B_model.h:6,
from STEAMPOWER.application.TURBINE_PLANT6B.c:7:

C:/Program Files/OpenModelica1.16.1-64bit/include/omc/c/util/real_array.h:89:13: note: expected 'real_array_t * {aka struct base_array_s *}' but argument is of type 'modelica_real * {aka double *}'

extern void copy_real_array_data(const real_array_t source, real_array_t* dest);

Kindly let us know the best way to avoid/rectify this error.
Thank you

Attachments (1)

omeditcommunication.log (4.1 MB ) - added by Manivannan Duraisamy 4 years ago.
OMEdit communication log file

Change History (3)

by Manivannan Duraisamy, 4 years ago

Attachment: omeditcommunication.log added

OMEdit communication log file

comment:1 by Francesco Casella, 4 years ago

@Manivannan, I'm not sure I understand exactly what changed. First of all, did you always use 1.16.1? Then, what changed between 12/07 and 12/08? You say that until 12/07 you were running your model in OMShell, but you got the error from 12/08 in OMEdit. Did you also try OMShell after 12/07, and if so, with which outcome?

Last, but not least, have you given a try with the 1.17.0 nightly build?

Last edited 4 years ago by Francesco Casella (previous) (diff)

comment:2 by Karim Adbdelhak, 4 years ago

If you want us to debug this we need to have a (minimal) example for a failing model. Do you use OMSimulator for FMI? Or do you just simulate it regularly?

If the model is proprietary you could encrypt it:
https://trac.openmodelica.org/OpenModelica/wiki/PgpInstructions

Note: See TracTickets for help on using tickets.