FEM units tests fail

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

FEM units tests fail

Post by wmayer »

On travis all builds fail now due to an error in the units tests. The error messages are:
======================================================================
ERROR: test_1_static_analysis (femtest.testccxtools.FemCcxAnalysisTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Mod/Fem/femtest/testccxtools.py", line 134, in test_1_static_analysis
error = fea.write_inp_file()
File "/usr/local/Mod/Fem/femtools/ccxtools.py", line 549, in write_inp_file
self.working_dir)
File "/usr/local/Mod/Fem/femsolver/calculix/writer.py", line 61, in __init__
dir_name)
File "/usr/local/Mod/Fem/femsolver/writerbase.py", line 81, in __init__
self.theshape = self.mesh_object.Part
AttributeError: 'App.DocumentObject' object has no attribute 'Part'

======================================================================
ERROR: test_2_static_multiple_material (femtest.testccxtools.FemCcxAnalysisTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Mod/Fem/femtest/testccxtools.py", line 266, in test_2_static_multiple_material
error = fea.write_inp_file()
File "/usr/local/Mod/Fem/femtools/ccxtools.py", line 549, in write_inp_file
self.working_dir)
File "/usr/local/Mod/Fem/femsolver/calculix/writer.py", line 61, in __init__
dir_name)
File "/usr/local/Mod/Fem/femsolver/writerbase.py", line 81, in __init__
self.theshape = self.mesh_object.Part
AttributeError: 'App.DocumentObject' object has no attribute 'Part'

======================================================================
ERROR: test_3_freq_analysis (femtest.testccxtools.FemCcxAnalysisTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Mod/Fem/femtest/testccxtools.py", line 339, in test_3_freq_analysis
error = fea.write_inp_file()
File "/usr/local/Mod/Fem/femtools/ccxtools.py", line 549, in write_inp_file
self.working_dir)
File "/usr/local/Mod/Fem/femsolver/calculix/writer.py", line 61, in __init__
dir_name)
File "/usr/local/Mod/Fem/femsolver/writerbase.py", line 81, in __init__
self.theshape = self.mesh_object.Part
AttributeError: 'App.DocumentObject' object has no attribute 'Part'

======================================================================
ERROR: test_4_thermomech_analysis (femtest.testccxtools.FemCcxAnalysisTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Mod/Fem/femtest/testccxtools.py", line 468, in test_4_thermomech_analysis
error = fea.write_inp_file()
File "/usr/local/Mod/Fem/femtools/ccxtools.py", line 549, in write_inp_file
self.working_dir)
File "/usr/local/Mod/Fem/femsolver/calculix/writer.py", line 61, in __init__
dir_name)
File "/usr/local/Mod/Fem/femsolver/writerbase.py", line 81, in __init__
self.theshape = self.mesh_object.Part
AttributeError: 'App.DocumentObject' object has no attribute 'Part'

======================================================================
ERROR: test_5_Flow1D_thermomech_analysis (femtest.testccxtools.FemCcxAnalysisTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Mod/Fem/femtest/testccxtools.py", line 717, in test_5_Flow1D_thermomech_analysis
error = fea.write_inp_file()
File "/usr/local/Mod/Fem/femtools/ccxtools.py", line 549, in write_inp_file
self.working_dir)
File "/usr/local/Mod/Fem/femsolver/calculix/writer.py", line 61, in __init__
dir_name)
File "/usr/local/Mod/Fem/femsolver/writerbase.py", line 81, in __init__
self.theshape = self.mesh_object.Part
AttributeError: 'App.DocumentObject' object has no attribute 'Part'

======================================================================
ERROR: test_solver_framework (femtest.testsolverframework.SolverFrameWorkTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/Mod/Fem/femtest/testsolverframework.py", line 131, in test_solver_framework
ret = testtools.compare_inp_files(static_analysis_inp_file, solverframework_analysis_dir + self.mesh_name + '.inp')
File "/usr/local/Mod/Fem/femtest/testtools.py", line 79, in compare_inp_files
file2 = open(file_name2, 'r')
IOError: [Errno 2] No such file or directory: '/tmp/FEM_unittests/FEM_solverframework/Mesh.inp'

----------------------------------------------------------------------
Ran 308 tests in 45.191s

FAILED (errors=6)
Bernd, can you have a look please?
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM units tests fail

Post by bernd »

damn, my fault, sure I will !
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: FEM units tests fail

Post by bernd »

Post Reply