Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Creating log file for saving mass balance information

Creating log file for saving mass balance information 11 years 11 months ago #6682

  • jpbelliard
  • jpbelliard's Avatar
Dear all,

I was trying to save the mass balance that is displayed in the log screen of a simulation in a file by means of the -s command. However, my simulation stops. The error says the following: cannot run out6851_gfortran_linux.exe: No such file or directory

But that executable file is present in the temp folder.

Any idea on what could be the problem ?

I attached the log message below:


jp@jp-B43E:~/Modelling/TELEMAC/Test_cases/Test_23$ telemac2d -s test_23a.cas

=========================================================
Telemac System 5.6 to 6.2 - Perl scripts version 6.2
=========================================================
starting...

HOSTTYPE : gfortran_linux
PROJECT : /home/jp/Modelling/TELEMAC/svn/v6p2r1
BASE DIRECTORY : /home/jp/Modelling/TELEMAC/Test_cases/Test_23
LAUNCH DIRECTORY : /home/jp/Modelling/TELEMAC/Test_cases/Test_23
WORK DIRECTORY : /home/jp/Modelling/TELEMAC/Test_cases/Test_23/test_23a.cas6851_tmp
PARAMETER FILE : test_23a.cas


*** Using CUSTOM configuration file :
/home/jp/Modelling/TELEMAC/svn/v6p2r1/config/systel.ini ***



*** TELEMAC2D ON STATION ***


*** Interactive mode ***


*** RELEASE v6p2 ***

________________________________________________________
Steering file : test_23a.cas
________________________________________________________
________________________________________________________
Output file : test_23a.cas6851_sortie.txt
________________________________________________________

________________________________________________________
Starting execution: telemac2d.bat
________________________________________________________
- FORTRAN FILE : test_23.f
______________________________________________________________________________
*** LOCAL EXECUTABLE ***

test_23_gfortran_linux_v6p2.exe

______________________________________________________________________________
*** ALLOCATION OF USER FILES ***

- STEERING FILE : test_23a.cas
- DICTIONARY : telemac2dv6p2.dico
- GEOMETRY FILE : Mesh_coarse_big.slf
- BOUNDARY CONDITIONS FILE : BOTTOM_BC.cli
- LIQUID BOUNDARIES FILE : tides_03f.txt
______________________________________________________________________________
*** RUNNING ***

time: cannot run out6851_gfortran_linux.exe: No such file or directory
Command exited with non-zero status 127
0.00user 0.00system 0:00.00elapsed ?%CPU (0avgtext+0avgdata 1456maxresident)k
0inputs+0outputs (0major+77minor)pagefaults 0swaps
Duration of job : 0 seconds ( 0:0:0 ) (system=0 sec)
______________________________________________________________________________
*** FILES DELIVERY ***

- RESULTS FILE : test_23a.slf

________________________________________________________
Execution finished: telemac2d.bat
________________________________________________________
No compilation/linking/file errors detected.
No execution errors detected.
## Error : System command failed for delete_test_23a.cas6851 :-1

Thanks for your help.

Kind regards,

Jean-Philippe
The administrator has disabled public write access.

Creating log file for saving mass balance information 11 years 11 months ago #6685

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello Jean-Philippe,

Do you have the current directory in your PATH? If not. please add it, e.g. with the command:
$ export PATH=$PATH:.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.

Creating log file for saving mass balance information 11 years 11 months ago #6689

  • jpbelliard
  • jpbelliard's Avatar
Sorry but what do you imply by current directory ?

Are you mentioning about the work directory ?

Regards,

Jean-Philippe
The administrator has disabled public write access.

Creating log file for saving mass balance information 11 years 11 months ago #6692

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Sorry Jean-Philippe, I should have said "work directory".

I suppose that in the directory where you launched the simulation, you also had the file delete_test_23a.cas6851 after finishing the run, did you? With the last error message
## Error : System command failed for delete_test_23a.cas6851
, it seems that TELEMAC tried to execute this command "delete_test_23a.cas6851" but did not succeed. I have the feeling that it is due to the same error as
cannot run out6851_gfortran_linux.exe: No such file or directory
.

Regards,

Chi-Tuan
The administrator has disabled public write access.

Creating log file for saving mass balance information 11 years 10 months ago #6771

  • jpbelliard
  • jpbelliard's Avatar
Dear Chi-Tuan,

Sorry for this late reply, I was focusing on another part of my modelling work in the last days. To get back to this problem of saving the mass balance in a log file, I did as you suggested me: I added the path of the working directory under the PATH environmental variable in the bashrc file, and indeed, the program is now able to delete this delete_test_23a.cas6851 file as well as the temporary directory once the simulation is finished which was not the case previously.

However, doing so does not still eliminate the other error message which is the following: cannot run out6851_gfortran_linux.exe: No such file or directory

So, even if I enable the -s option in the command line when I want to run a t2d case to obtain the log file, the model stops because of this above error message.

Any idea on how to solve this problem?

Kind regards,

Jean-Philippe Belliard
The administrator has disabled public write access.

Creating log file for saving mass balance information 11 years 10 months ago #6774

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello Jean-Philippe,

Can you try a few things for me, please?
- run telemac2d test_23a.cas without the option -s. Do you still have the same error message? I suppose yes with your last post,
- look at the rights to execute the local executable test_23_gfortran_linux_v6p2.exe, which must be present in the directory where you try to run your simulation, it should be at least r-x
(or 500), and then compare the executables test_23_gfortran_linux_v6p2.exe and out6851_gfortran_linux.exe in the working directory (you can try the diff command, the last one should be a copy of the first one),
- in the working directory, try to run manually out6851_gfortran_linux.exe,
- delete the local executable test_23_gfortran_linux_v6p2.exe and recompile it by running telemac2d test_23a.cas (the local executable should be re-generated and a copy out***_gfortran_linux.exe made in the working directory),
- try to run another telemac2d case, e.g. one from the validation directory (via SVN), one with a Fortran file.

At last, if not yet solved, please send your case so that we can reproduce your error (not before 2013 for me).

Regards,

Chi-Tuan
The administrator has disabled public write access.

Creating log file for saving mass balance information 11 years 10 months ago #6775

  • jpbelliard
  • jpbelliard's Avatar
Hello Chi-Tuan,

No, in fact everything works perfectly if I remove the -s option. But if I add it, then it crashes

Even if I change the permission of the test_23_gfortran_linux_v6p2.exe to read and write, it still does not work. I ran manually both executable files, test_23_gfortran_linux_v6p2.exe and out6851_gfortran_linux.exe, and they both work properly. I compared their contents by using the diff command and they are identical. In fact, I only got an error message when I run test_23_gfortran_linux_v6p2.exe manaually as displayed below:



READ_CONFIG : FICHIER CONFIG NON TROUVE : CONFIG
VALEURS PAR DEFAUT DE LU ET LNG : 0 ET 0

READ_CONFIG: FILE CONFIG NOT FOUND: CONFIG
DEFAULTS VALUES OF LU AND LNG: 0 AND 0





TTTTT EEEEE L EEEEE M M AAAAA CCCCC
T E L E MM MM A A C
T EEE L EEE M M M AAAAA C
T E L E M M A A C
T EEEEE LLLLL EEEEE M M A A CCCCC

2D VERSION 6.2 FORTRAN 90
WITH SEVERAL TRACERS
COUPLED WITH SISYPHE AND TOMAWAC







CHOIX DE LA LANGUE = 0 INVALIDE.
ARRET DE DAMOCLES

STOP ERREUR DAMOCLES 1



Also, when I run a simulation with the -s option activated, below the error message I posted in the previous messages, I get the following:



=========================================================
Telemac System 5.6 to 6.2 - Perl scripts version 6.2
=========================================================
starting...

HOSTTYPE : gfortran_linux
PROJECT : /home/jp/Modelling/TELEMAC/svn/v6p2r1
BASE DIRECTORY : /home/jp/Modelling/TELEMAC/Morpho_test_cases/Test_02
LAUNCH DIRECTORY : /home/jp/Modelling/TELEMAC/Morpho_test_cases/Test_02
WORK DIRECTORY : /home/jp/Modelling/TELEMAC/Morpho_test_cases/Test_02/t2d_test_23d.cas3446_tmp
PARAMETER FILE : t2d_test_23d.cas


*** Using CUSTOM configuration file :
/home/jp/Modelling/TELEMAC/svn/v6p2r1/config/systel.ini ***



*** TELEMAC2D ON STATION ***


*** Interactive mode ***


*** RELEASE v6p2 ***

________________________________________________________
Steering file : t2d_test_23d.cas
________________________________________________________
________________________________________________________
Output file : t2d_test_23d.cas3446_sortie.txt
________________________________________________________

________________________________________________________
Starting execution: telemac2d.bat
________________________________________________________
- FORTRAN FILE : test_23.f
______________________________________________________________________________
*** LOCAL EXECUTABLE ***

test_23_gfortran_linux_v6p2.exe

______________________________________________________________________________
*** ALLOCATION OF USER FILES ***

- STEERING FILE : t2d_test_23d.cas
- DICTIONARY : telemac2dv6p2.dico
- GEOMETRY FILE : Mesh_coarse_big.slf
- BOUNDARY CONDITIONS FILE : BOTTOM_BC.cli
- LIQUID BOUNDARIES FILE : tides_03f.txt
- GEOMETRY FILE : Mesh_coarse_big.slf
- BOUNDARY CONDITIONS FILE : BOTTOM_BC.cli
- STEERING FILE : sis_test_01.cas
- DICTIONARY : sisyphev6p2.dico
______________________________________________________________________________
*** RUNNING ***

time: cannot run out3446_gfortran_linux.exe: No such file or directory
Command exited with non-zero status 127
0.00user 0.00system 0:00.00elapsed ?%CPU (0avgtext+0avgdata 1456maxresident)k
0inputs+0outputs (0major+77minor)pagefaults 0swaps
Duration of job : 0 seconds ( 0:0:0 ) (system=0 sec)
______________________________________________________________________________
*** FILES DELIVERY ***

- RESULTS FILE : test_23d.slf
- RESULTS FILE : sis_test_02.slf

________________________________________________________
Execution finished: telemac2d.bat
________________________________________________________
No compilation/linking/file errors detected.
No execution errors detected.

If I run another simulation with a validation case with the -s option activated, I still get the same error message.

Do you have any hint on what could be the problem? To me, it looks like it is rather something to do with the configuration of the telemac system than with any scenario file.

Thank you

Kind regards,

Jean-Philippe
The administrator has disabled public write access.

Creating log file for saving mass balance information 11 years 10 months ago #6776

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello Jean-Philippe,

Just to try to reproduce the same error as yours, can you run the enclosed test case, please (it is one of the TELEMAC-2D test case 011_bump without the step of validation to decrease the size of the archive)? I suppose that you will have the same error message.
On a Windows XP with gfortran and perl, the "telemac2d -s t2d_bumpflu_wo_valida.cas" runs well (see the t2d_bumpflu_wo_valida.cas1028_sortie.log file).
I will have to check on a linux machine with perl and gfortran or another compiler to see if it still works or not, but you will have to wait for a few days... There may be a problem with the command telemac2d in linux with option -s (I must admit that I do not use this option a lot).

Anyway, I can suggest you two temporary solutions:
- try to run TELEMAC with the Python environment (now advised),
- to reroute the error and standard outputs, you can use the linux command 2>&1 &
For example:
$ telemac2d cas > out_cas.txt 2>&1 &
then you can edit the out_cas.txt file and revert it during the simulation.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.

Creating log file for saving mass balance information 11 years 10 months ago #6777

  • jpbelliard
  • jpbelliard's Avatar
Hi Chi-Tuan,

Thank you for your help. However, I cannot find the enclosed test case "telemac2d -s t2d_bumpflu_wo_valida.cas" you mentioned in your previous email. Thank you for uploaing it again.
Regards,
Jean-Philippe
The administrator has disabled public write access.

Creating log file for saving mass balance information 11 years 10 months ago #6778

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hi Jean-Philippe,

Sorry, I forgot to attach it. Here it is.

File Attachment:

File Name: 011_bumpflu.zip
File Size: 37 KB


Regards,

Chi-Tuan
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.