error coupling saturne with aster

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
ashls
Posts: 2
Joined: Fri Nov 09, 2018 7:22 pm

error coupling saturne with aster

Post by ashls »

Hello,

I am trying to run an example FSI case "externecylindresconcentriques" given by Yvan on this forum using code saturne 5.0.9 and salome meca 2018 on ubuntu 16.04. I configured saturne using the following commands:
ash@ash-computer:~/code_saturne-5.0.9/cs$ /home/ash/code_saturne-5.0.9/configure --prefix=/home/ash/code_saturne-5.0.9/cs/arch/Linux_x86_64/ --with-salome=/home/ash/salome_meca/V2018.0.1_public --with-hdf5=salome --with-cgns=salome --with-med=salome QT_SELECT=5 CXXFLAGS=-D_GLIBCXX_USE_CXX11_ABI=0
after the calculation begins, it says there is an error creating the FSI_ASTER component and in the corresponding log in the /tmp directory it says:
>>> 2018/11/09-12:59:39.166 [local_shell@/home/ash/salome_meca/V2018.0.1_public/tools/Code_aster_frontend-201801/lib/python2.7/site-packages/asrun/system.py:333]
ERROR : iret = 1
+++ STANDARD OUTPUT:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
File "/home/ash/salome_meca/V2018.0.1_public/prerequisites/Numpy-1121/lib/python2.7/site-packages/site.py", line 73, in <module>
__boot()
File "/home/ash/salome_meca/V2018.0.1_public/prerequisites/Numpy-1121/lib/python2.7/site-packages/site.py", line 3, in __boot
import os
ImportError: No module named os
EXECUTION_CODE_ASTER_EXIT_24350=1

+++ STANDARD ERROR:

+++ END
I'm not sure if this is caused by using a different version of python or gcc. I believe salome meca uses python 2.7.10 and gcc 4.9.2 and my system python is 2.7.12. For this saturne installation i used my system's gcc-5.4 but i get the same result when i configured CS with gcc-4.9.3(i had trouble installing 4.9.2).

output from the run:
ash@ash-computer:~/fsi/ecc$ ./runcase
Coupling execution between:
o Code_Saturne [1 domain(s)];
o Code_Aster [1 domain(s)];
[1 coupler(s)];


Code_Saturne
************

Version: 5.0
Path: /home/ash/code_saturne-5.0.9/cs/arch/Linux_x86_64

Result directory:
/home/ash/fsi/ecc/RESU_COUPLING/20181109-1320


****************************************
Compiling user subroutines and linking
****************************************


****************************
Preparing calculation data
****************************

Single processor Code_Saturne simulation.
Single processor Code_Aster simulation.


***************************
Preprocessing calculation
***************************

Creating YACS coupling scheme.
Configure parser: processing /home/ash/code_saturne-5.0.9/cs/arch/Linux_x86_64/etc/salome/fsi_appli_config.xml ...
--- add module KERNEL /home/ash/salome_meca/V2018.0.1_public/modules/KERNEL_V8_5_0
link /home/ash/fsi/ecc/RESU_COUPLING/20181109-1320/appli/bin/salome/test/KERNEL --> /home/ash/salome_meca/V2018.0.1_public/modules/KERNEL_V8_5_0/bin/salome/test
--- add module GUI /home/ash/salome_meca/V2018.0.1_public/modules/GUI_V8_5_asterstudy_v011
--- add module YACS /home/ash/salome_meca/V2018.0.1_public/modules/YACS_V8_5_0
link /home/ash/fsi/ecc/RESU_COUPLING/20181109-1320/appli/bin/salome/test/YACS --> /home/ash/salome_meca/V2018.0.1_public/modules/YACS_V8_5_0/bin/salome/test
--- add module FSI /home/ash/code_saturne-5.0.9/cs/arch/Linux_x86_64
WARNING: context file does not exist
WARNING: sha1 collections file does not exist

**********************
Starting calculation
**********************

runSalome running on ash-Lenovo-Y50-70
Searching for a free port for naming service: 2810 - OK
Searching Naming Service + found in 0.1 seconds
Searching /Registry in Naming Service + found in 0.5 seconds
Searching /Kernel/ModulCatalog in Naming Service +th. 140253671368512 - Trace /home/A21173/smeca/yamm_build/V2018.0.1_public_build/V2018_public/modules/src/KERNEL/src/ModuleCatalog/SALOME_ModuleCatalog_Server.cxx [101] : Module Catalog Server: Naming Service was found
found in 0.5 seconds
RunStudy
Searching /myStudyManager in Naming Service + found in 0.5 seconds
Searching /Containers/ash-Lenovo-Y50-70/FactoryServer in Naming Service + found in 0.5 seconds
Start SALOME, elapsed time : 2.1 seconds
graph = fsi_yacs_scheme.xml options: display=0 verbose=0 stop-on-error=1 shutdown=1 reset=0 dumpErrorFile=dumpErrorState.xml
Starting 0 ms
Elapsed time before load: 79 ms
Elapsed time after load: 81 ms
Elapsed time after validation: 81 ms
Elapsed time after check consistency: 82 ms
+++++++++++++++++++ start calculation +++++++++++++++++++
th. 139800833894144 - Trace /home/A21173/smeca/yamm_build/V2018.0.1_public_build/V2018_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [624] : [GiveContainer] waiting 60 second steps container /Containers/ash-Lenovo-Y50-70/25022_FSI_MILIEU_0x1c527a0
th. 139800825501440 - Trace /home/A21173/smeca/yamm_build/V2018.0.1_public_build/V2018_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [624] : [GiveContainer] waiting 60 second steps container /Containers/ash-Lenovo-Y50-70/25022_FSI_ASTER_0x1c52490
th. 139800842286848 - Trace /home/A21173/smeca/yamm_build/V2018.0.1_public_build/V2018_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [624] : [GiveContainer] waiting 60 second steps container /Containers/ash-Lenovo-Y50-70/25022_FSI_SATURNE_0x1c52aa0
th. 139800833894144 - Trace /home/A21173/smeca/yamm_build/V2018.0.1_public_build/V2018_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [436] : [GiveContainer] container /Containers/ash-Lenovo-Y50-70/25022_FSI_MILIEU_0x1c527a0 launched
SalomeContainer launched : /Containers/ash-Lenovo-Y50-70/25022_FSI_MILIEU_0x1c527a0 ash-Lenovo-Y50-70 25045
th. 139800825501440 - Trace /home/A21173/smeca/yamm_build/V2018.0.1_public_build/V2018_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [436] : [GiveContainer] container /Containers/ash-Lenovo-Y50-70/25022_FSI_ASTER_0x1c52490 launched
SalomeContainer launched : /Containers/ash-Lenovo-Y50-70/25022_FSI_ASTER_0x1c52490 ash-Lenovo-Y50-70 25047
th. 139800842286848 - Trace /home/A21173/smeca/yamm_build/V2018.0.1_public_build/V2018_public/modules/src/KERNEL/src/Container/SALOME_ContainerManager.cxx [436] : [GiveContainer] container /Containers/ash-Lenovo-Y50-70/25022_FSI_SATURNE_0x1c52aa0 launched
SalomeContainer launched : /Containers/ash-Lenovo-Y50-70/25022_FSI_SATURNE_0x1c52aa0 ash-Lenovo-Y50-70 25049
Error while trying to create a new component: component 'FSI_ASTER' is not installed or it's a wrong name
SALOME_Container::create_component_instance failed
Problem in connectService: solid_service Component is probably not launched. Modify your YACS file
+++++++++++++++++++ end calculation +++++++++++++++++++
Proc state : FAILED
Elapsed time after execution: 21202 ms
Execution has ended in error
<error node= proc state= FAILED>
<error node= inter_service state= ERROR>
Problem in connectService: solid_service Component is probably not launched. Modify your YACS file
</error>
<error node= fluid_service state= ERROR>

</error>
<error node= solid_service state= ERROR>
Error while trying to create a new component: component 'FSI_ASTER' is not installed or it's a wrong name
SALOME_Container::create_component_instance failed
</error>
</error>
shutdown SALOME container: /Containers/ash-Lenovo-Y50-70/25022_FSI_MILIEU_0x1c527a0
shutdown SALOME container: /Containers/ash-Lenovo-Y50-70/25022_FSI_SATURNE_0x1c52aa0
shutdown SALOME container: /Containers/ash-Lenovo-Y50-70/25022_FSI_ASTER_0x1c52490
Error raised when executing command: driver -e fsi_yacs_scheme.xml
ERROR:salomeContext:SystemExit 1 in method _runSession.

****************************
Saving calculation results
****************************
Any help is appreciated. Thanks!

Ash
Attachments
logs_from_tmp.tar.gz
(14.77 KiB) Downloaded 155 times
externecylindresconcentriqes2.tar.gz
(116.67 KiB) Downloaded 175 times
config.log
(275.77 KiB) Downloaded 148 times
Last edited by ashls on Tue Nov 13, 2018 11:57 pm, edited 1 time in total.
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: error coupling saturne with aster

Post by Yvan Fournier »

Hello,

In your error logs, I see for the code_aster part:
import os
ImportError: No module named os
Which should no happen if Python is working properly.

So I would suspect a conflict between the Python interpreter in Salome and the one from your system. Both should by Python 2.7 so I am not sure what is wrong here. I assume salome meca is working properly on your system when not coupling with Code_Saturne.

One thing you may try is to install Code_Saturne from inside the Salome environment (using "salome shell" or "salome context" before configuring Code_Saturne, in which case th --with-salome option is not necessary (though it should be ok if you keep it). Using this approach, Code_Saturne will only run from within this environment (otherwise its associated Python scripts will not load), but this might solve the issue here, so I recommend trying this first.

Best regards,

Yvan
ashls
Posts: 2
Joined: Fri Nov 09, 2018 7:22 pm

Re: error coupling saturne with aster

Post by ashls »

Thanks. I tried to install code saturne in the salome shell, as you suggested, but i get the same error. I also tried configuring code saturne with the option PYTHON=(path to salome's python) but i got an error saying that the python is older than v2.6 for some strange reason. Salome meca 2018 works fine without coupling.

I installed salome meca 2017 and the coupling seems to work ok.

Ash
Yvan Fournier
Posts: 4070
Joined: Mon Feb 20, 2012 3:25 pm

Re: error coupling saturne with aster

Post by Yvan Fournier »

Hello,

I have not tested the coupling with Salome_meca 2018 yet (only with 2017).

So I'll try to see if I reproduce the error on my side and on our platforms in the coming weeks, and keep you informed.

Best regards,

Yvan
Post Reply