Closed patrashantigopal closed 5 years ago
Have you installed the runtest from requirements file?
Yes, I have the runtest installed in my system.
Please have a look at Testing/Temporary/LastTest.log
- what error do you see there? I guess it is the same error for all tests.
Please have a look:
ERROR: filter [10 lines from " *** Integrating current"] did not extract anything from file /mnt/c/Users/shantigp/projects/gimic-master/build/test/benzene/integration-gauss/stdout
running test with input files ['gimic.inp'] and args None
Could you show us the steps of installation that you used ?
It looks like all tests fail for the same reason. So you can perhaps first focus on one test only. It might be helpful to run one of them interactively, e.g.:
$ cd ~/tmp/gimic/test/benzene/2d
$ ./test -b ~/tmp/gimic/build/bin/
dabu@RES-SHANTIPA:/mnt/c/Users/Shantigp/projects/gimic-master/test/benzene/2d$ ./test -b /mnt/c/Users/Shantigp/projects/gimic-master/build/bin/
running test with input files ['gimic.inp'] and args None ERROR: could not open file /mnt/c/Users/Shantigp/projects/gimic-master/test/benzene/2d/jvec.vti
dabu@RES-SHANTIPA:/mnt/c/Users/Shantigp/projects/gimic-master/test/benzene/2d$ ./test -b /mnt/c/Users/Shantigp/projects/gimic-master/build/bin/
running test with input files ['gimic.inp'] and args None passed
OK next thing to try is to run GIMIC directly (adjust path):
$ cd test/benzene/2d
$ /path/to/gimic/build/bin/gimic
Now it passed. Thanks a lot @bast . I am new to this program as well as Ubuntu. I may face another problem. Will post here please help.
OK but please explain how you solved it. For the next person who hits this same problem.
Actually jvec.vti file was inside 2D/reference folder. So I copied it from reference and pasted in 2D. Then it works.
But then I am not sure you really solved it. The error that you have seen meant that the test script could not find the file. But GIMIC should have generated it. Please try to run GIMIC directly as I have recommended. I think you will see some error.
unable to set path:
dabu@RES-SHANTIPA:/mnt/c/Users/Shantigp/projects/gimic-master/test/benzene/2d$ /path/to/gimic/build/bin/gimic -bash: /path/to/gimic/build/bin/gimic: No such file or directory
OK that was an example path I produced - it should be the path to your gimic
binary and I am not sure where precisely that is.
ok
The path is set now. What next?
The GIMIC example runs without any errors? I suspect there are errors.
how to run gimic from my work directory? I tried this way:
/mnt/c/Users/shantigp/projects/gimic-master/test/bz$ gimic [gimic.inp]>gimic.out /mnt/c/Users/shantigp/projects/gimic-master/build/bin/
Command 'gimic' not found, did you mean:
command 'gmic' from deb gmic
Try: sudo apt install
Please help.
Instead of
$ gimic [gimic.inp]>gimic.out /mnt/c/Users/shantigp/projects/gimic-master/build/bin/
Try
$ /mnt/c/Users/shantigp/projects/gimic-master/build/bin/gimic
/mnt/c/Users/shantigp/projects/gimic-master/test/bz$ /mnt/c/Users/shantigp/projects/gimic-master/build /bin/gimic
This is F-GIMIC.
****************************************************************
*** ***
*** GIMIC 2.1.4 () ***
*** Written by Jonas Juselius ***
*** ***
*** This software is copyright (c) 2003-2011 by ***
*** Jonas Juselius, University of Tromso. ***
*** ***
*** You are free to distribute this software under the ***
*** terms of the GNU General Public License ***
*** ***
*** A Pretty Advanced 'Hello World!' Program ***
****************************************************************
Thu Mar 21 12:23:51 2019
TITLE:
INFO: GIAOs not used!
INFO: Detected TURBOMOLE input
Number of atoms = 12
Normalizing basis
Total number of primitive GTO's 354
Total number of contracted GTO's 252
*** Calculating screening coefficients
INFO: Screening threshold: 0.1000E-07
INFO: Reordering densities [TURBOMOLE]
Integration grid data
------------------------------------------------
center 2.277078 -0.005328 0.000000
origin 7.277078 -0.005328 -5.000000
basv1 -0.000000 -0.000000 1.000000
basv2 -1.000000 -0.000000 -0.000000
basv3 0.000000 -1.000000 0.000000
lenghts 10.000000 7.200000 0.000000
magnet 0.000000 0.000000 -1.000000
Grid mode = bond
INFO: Integration grid selected.
INFO: Adjusted number of grid points for quadrature: 36 36 0
Number of grid points <v1,v2>: 36 36 1
Total number of grid points : 1296
*** Grid plot in grid.xyz
Magnetic field <x,y,z> = 0.00000 0.00000 -1.00000
INFO: Closed-shell calculation
Integrating current density
*****************************************
Jmod integration skipped.
*** Integrating current
Magnetic field <x,y,z> = 0.00000 0.00000 -1.00000
************************************************************
Induced current (au) : 0.890254
Positive contribution: 0.956999 ( 26.967661 )
Negative contribution: -0.066745 ( -1.880828 )
Induced current (nA/T) : 25.086833
(conversion factor) : 28.179409
************************************************************
*** Deallocated grid data
INFO: Deallocated basis set and atom data
----------------------------------------------------------------------
wall time: 0.55sec ( 0.0 h )
user: 0.48sec ( 0.0 h )
sys: 0.06sec ( 0.0 h )
----------------------------------------------------------------------
Thu Mar 21 12:23:52 2019
Hello World! (tm)
done.
Thank you @bast . You are awesome!
Excellent - no visible error to me (?). Still it is not clear to me why it hasn't created the file which the test script was looking for but it looks not too bad.
Yes, still some tests are not passed. But I just wanted to see whether I can do the final step.
Note, the Valgrind test do not pass when you have not installed Valgrind. When all other tests pass you can use the program.
Following up on the Valgrind aspect in #219. Apart from that I consider this to be solved. Closing.
I am having a problem in running $ make test:
dabu@RES-SHANTIPA:/mnt/c/Users/Shantigp/projects/gimic-master/build$ make test Running tests... Test project /mnt/c/Users/Shantigp/projects/gimic-master/build Start 1: benzene/integration-gauss 1/24 Test #1: benzene/integration-gauss .........Failed 28.46 sec Start 2: benzene/integration-lobatto 2/24 Test #2: benzene/integration-lobatto .......Failed 0.99 sec Start 3: benzene/vectors 3/24 Test #3: benzene/vectors ...................Failed 1.20 sec Start 4: benzene/2d 4/24 Test #4: benzene/2d ........................Failed 1.14 sec Start 5: benzene/3d 5/24 Test #5: benzene/3d ........................Failed 1.95 sec Start 6: benzene/keyword-magnet 6/24 Test #6: benzene/keyword-magnet ............Failed 1.06 sec Start 7: benzene/3d-keyword-magnet 7/24 Test #7: benzene/3d-keyword-magnet .........Failed 2.09 sec Start 8: benzene/2d-keyword-magnet 8/24 Test #8: benzene/2d-keyword-magnet .........Failed 1.21 sec Start 9: benzene/keyword-spacing 9/24 Test #9: benzene/keyword-spacing ...........Failed 1.08 sec Start 10: benzene/keyword-rotation 10/24 Test #10: benzene/keyword-rotation ..........Failed 1.01 sec Start 11: benzene/keyword-rotation_origin 11/24 Test #11: benzene/keyword-rotation_origin ...Failed 1.04 sec Start 12: benzene/keyword-radius 12/24 Test #12: benzene/keyword-radius ............Failed 1.22 sec Start 13: benzene/int-grid-bond-even 13/24 Test #13: benzene/int-grid-bond-even ........Failed 1.02 sec Start 14: benzene/int-cdens 14/24 Test #14: benzene/int-cdens .................Failed 1.23 sec Start 15: benzene/diamag-off 15/24 Test #15: benzene/diamag-off ................Failed 1.19 sec Start 16: benzene/paramag-off 16/24 Test #16: benzene/paramag-off ...............Failed 1.30 sec Start 17: benzene/giao-test 17/24 Test #17: benzene/giao-test .................Failed 1.31 sec Start 18: c4h4/integration 18/24 Test #18: c4h4/integration ..................Failed 1.31 sec Start 19: c4h4/read-grid 19/24 Test #19: c4h4/read-grid ....................Failed 1.28 sec Start 20: open-shell/3d 20/24 Test #20: open-shell/3d .....................Failed 5.27 sec Start 21: open-shell/integration 21/24 Test #21: open-shell/integration ............Failed 1.35 sec Start 22: benzene/valgrind-integral 22/24 Test #22: benzene/valgrind-integral .........Failed 19.49 sec Start 23: benzene/valgrind-2d 23/24 Test #23: benzene/valgrind-2d ...............Failed 3.49 sec Start 24: benzene/skip-jmod-integration 24/24 Test #24: benzene/skip-jmod-integration .....Failed 1.38 sec
0% tests passed, 24 tests failed out of 24
Total Test time (real) = 89.35 sec
The following tests FAILED: 1 - benzene/integration-gauss (Failed) 2 - benzene/integration-lobatto (Failed) 3 - benzene/vectors (Failed) 4 - benzene/2d (Failed) 5 - benzene/3d (Failed) 6 - benzene/keyword-magnet (Failed) 7 - benzene/3d-keyword-magnet (Failed) 8 - benzene/2d-keyword-magnet (Failed) 9 - benzene/keyword-spacing (Failed) 10 - benzene/keyword-rotation (Failed) 11 - benzene/keyword-rotation_origin (Failed) 12 - benzene/keyword-radius (Failed) 13 - benzene/int-grid-bond-even (Failed) 14 - benzene/int-cdens (Failed) 15 - benzene/diamag-off (Failed) 16 - benzene/paramag-off (Failed) 17 - benzene/giao-test (Failed) 18 - c4h4/integration (Failed) 19 - c4h4/read-grid (Failed) 20 - open-shell/3d (Failed) 21 - open-shell/integration (Failed) 22 - benzene/valgrind-integral (Failed) 23 - benzene/valgrind-2d (Failed) 24 - benzene/skip-jmod-integration (Failed) Errors while running CTest Makefile:94: recipe for target 'test' failed make: *** [test] Error 8
I shall be very grateful if someone can help me.
Best regards, Shanti