﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6276	Error in simulation: Simulation process failed. Exited with code 3.	Manivannan Duraisamy	somebody	"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 "	discussion	new	high	NeedsInput	*unknown*	1.16.0			
