Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue2517 spawn error message #2518

Merged
merged 5 commits into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Git LFS file not shown
Git LFS file not shown
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,15 @@ void getVariables(FMUBuilding* bui, const char* modelicaInstanceName, spawnReals

status = fmi2_import_get_real(bui->fmu, ptrReals->valRefs, ptrReals->n, ptrReals->valsEP);
if (status != (fmi2_status_t)fmi2OK) {
bui->SpawnFormatError("Failed to get variables for %s\n",
modelicaInstanceName);
if (bui->mode == initializationMode){
bui->SpawnFormatError(
"Failed to get parameter values for %s. This may be due to an error during the initialization or warm-up of EnergyPlus as the EnergyPlus FMU has been generated and loaded with no error.\n",
modelicaInstanceName, fmuModeToString(bui->mode));
}
else{
bui->SpawnFormatError("Failed to get variables for %s during mode = %s.\n",
modelicaInstanceName, fmuModeToString(bui->mode));
}
}
/* Set SI unit value */
for(i = 0; i < ptrReals->n; i++){
Expand Down