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

Buildings.ThermalZones.Detailed.Examples.FFD.* fail at runtime, probably because of binary issues #4015

Open
casella opened this issue Oct 7, 2024 · 10 comments
Assignees

Comments

@casella
Copy link
Contributor

casella commented Oct 7, 2024

The Buildings.ThermalZones.Detailed.Examples.FFD.* models (except ForcedConvection with OMC under Linux) fail at runtime with OMC 1.25.0-dev and Dymola 2024x. The runtime errors are different:

  • out of heap space (most models with OMC under Linux)
  • Process crashed Simulation process failed. Exited with code 0xffffffffc0000135. (ForcedConvection with OMC under Windows)
  • simulation dies silently without generating .mat file (simulation with Dymola under Windows)

Please check if the ffd binaries are up-to-date with modern compilers. The instructions to compile the files refer to MS Visual Studio version 10, currently I am using Visual Studio 2022 a.k.a. version 19.

Keeping @deepak19015 and @AndreaBartolini in the loop.

@mwetter
Copy link
Member

mwetter commented Nov 12, 2024

@JayHuLBL : Please see this ticket. I don't think https://github.com/lbl-srg/modelica-buildings/pull/4039/files addressed it as it did not change Windows binaries.

@casella
Copy link
Contributor Author

casella commented Nov 21, 2024

@mwetter, @JayHuLBL, the issue is still pending since Jan 2023. Can you please have a look at it?

Thanks!

@JayHuLBL
Copy link
Contributor

@casella Thanks for the reminder. I will address the issue.

@casella
Copy link
Contributor Author

casella commented Nov 21, 2024

Adding @Pavanrajhr to the loop

@casella
Copy link
Contributor Author

casella commented Nov 27, 2024

Our package indexing system is currently broken, so we are not updating the libraries since Nov 21. Hence, we still see those models failing in the CI report.

This should be fixed soon.

@casella
Copy link
Contributor Author

casella commented Nov 27, 2024

@Pavanrajhr, please check on Friday 29.

@mwetter
Copy link
Member

mwetter commented Nov 27, 2024

There is another fix for this issue through #4067

@Pavanrajhr
Copy link

@casella It is still failing.

@JayHuLBL
Copy link
Contributor

JayHuLBL commented Dec 3, 2024

@Pavanrajhr Let me double check.

@JayHuLBL
Copy link
Contributor

JayHuLBL commented Dec 3, 2024

In my tests,

in Windows 10 OS, the models can run successfully with Dymola 2024x.

However, the models failed to run with OpenModelica (v1.25.0-dev-210-ge91d746f9e) in Windows 10, with the error as below:

Process crashed Simulation process failed. Exited with code 0xffffffffc0000005.
C:/Users/Jianjun Hu/AppData/Local/Temp/OpenModelica/OMEdit/Buildings.ThermalZones.Detailed.Examples.FFD.ForcedConvection/ForcedConvection.exe -port=57562 -logFormat=xmltcp -override=startTime=0,stopTime=120,stepSize=0.24,tolerance=1e-06,solver=cvode,outputFormat=mat,variableFilter=.* -r=C:/Users/Jianjun Hu/AppData/Local/Temp/OpenModelica/OMEdit/Buildings.ThermalZones.Detailed.Examples.FFD.ForcedConvection/ForcedConvection_res.mat -w -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -inputPath=C:/Users/Jianjun Hu/AppData/Local/Temp/OpenModelica/OMEdit/Buildings.ThermalZones.Detailed.Examples.FFD.ForcedConvection -outputPath=C:/Users/Jianjun Hu/AppData/Local/Temp/OpenModelica/OMEdit/Buildings.ThermalZones.Detailed.Examples.FFD.ForcedConvection
Failed to solve linear system of equations (no. 627) at time 0.000000. Residual norm is 0.163351453522286.
The default linear solver fails, the fallback solver with total pivoting is started at time 0.000000. That might raise performance issues, for more information use -lv LOG_LS.
Process crashed
Failed to solve linear system of equations (no. 163) at time 0.000000. Residual norm is 0.432096271816718.
The default linear solver fails, the fallback solver with total pivoting is started at time 0.000000. That might raise performance issues, for more information use -lv LOG_LS.
Failed to solve linear system of equations (no. 627) at time 0.000000. Residual norm is 0.156162302442851.
The default linear solver fails, the fallback solver with total pivoting is started at time 0.000000. That might raise performance issues, for more information use -lv LOG_LS.
Failed to solve linear system of equations (no. 627) at time 0.000000. Residual norm is 0.156162302442851.
The default linear solver fails, the fallback solver with total pivoting is started at time 0.000000. That might raise performance issues, for more information use -lv LOG_LS.
The initialization finished successfully without homotopy method.
##CVODE## Desired step to small!

In Ubuntu 22.04, the models can run with both the dymola 2024x and OpenModelica. For OpenModelica simulation, it gives message as below:

/tmp/OpenModelica_jianjunhu/OMEdit/Buildings.ThermalZones.Detailed.Examples.FFD.ForcedConvection/ForcedConvection -port=33801 -logFormat=xmltcp -override=startTime=0,stopTime=120,stepSize=0.24,tolerance=1e-06,solver=cvode,outputFormat=mat,variableFilter=.* -r=/tmp/OpenModelica_jianjunhu/OMEdit/Buildings.ThermalZones.Detailed.Examples.FFD.ForcedConvection/ForcedConvection_res.mat -w -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -inputPath=/tmp/OpenModelica_jianjunhu/OMEdit/Buildings.ThermalZones.Detailed.Examples.FFD.ForcedConvection -outputPath=/tmp/OpenModelica_jianjunhu/OMEdit/Buildings.ThermalZones.Detailed.Examples.FFD.ForcedConvection
Failed to solve linear system of equations (no. 627) at time 0.000000. Residual norm is 0.163351453522286.
The default linear solver fails, the fallback solver with total pivoting is started at time 0.000000. That might raise performance issues, for more information use -lv LOG_LS.
### STATISTICS ###
The simulation finished successfully.
Successfully stopped the FFD simulation. 
Start Fast Fluid Dynamics Simulation with Thread 
Failed to solve linear system of equations (no. 163) at time 0.000000. Residual norm is 0.432096271816718.
The default linear solver fails, the fallback solver with total pivoting is started at time 0.000000. That might raise performance issues, for more information use -lv LOG_LS.
Failed to solve linear system of equations (no. 627) at time 0.000000. Residual norm is 0.156162302442851.
The default linear solver fails, the fallback solver with total pivoting is started at time 0.000000. That might raise performance issues, for more information use -lv LOG_LS.
Failed to solve linear system of equations (no. 627) at time 0.000000. Residual norm is 0.156162302442851.
The default linear solver fails, the fallback solver with total pivoting is started at time 0.000000. That might raise performance issues, for more information use -lv LOG_LS.
The initialization finished successfully without homotopy method.
##CVODE## Desired step to small!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants