Closed RiccardoRossi closed 3 years ago
it looks like the system is 32bit (which makes sense since the board has 4GB max)
@RiccardoRossi I have Kratos compiled in my RPi 3 and it is fine, which distro did you used?
Raspbian for 64 bits (kernel)
the default raspberry os is 32bit so if i can manage to make it to work under those settings i would prefer.
Anyhow it is very good to know that there is a 64bit version (thanks a lot!!). At least we can work with that if it is not possible to make it to work on 32 bit
I work with 64 bits since rpi3 for compiling Kratos...
BTW I haven't received mine rpi4 yet :P
@RiccardoRossi I think this was solved in #5532
@pooyan-dadvand why do we need Dof::EquationId to use 48bits? As i understand you are doing it on 64bit systems to avoid using the whole int, nevertheless as I understand on a 32 bit system it would be enough to limit it to 32, since no counter can be larger than that;
@philbucher no it is not fixed.
the problem here is that on a 32bit system sizeof(std::size_t)-->4 (32bits...= so you cannot ask for a std::size_t to occupy 48bits...
BTW: I am testing in my RPi 3 using the standard Raspbian and I can confirm this warning (with Clang 5.0.1):
/home/pi/src/Kratos/kratos/includes/dof.h:480:20: warning: width of bit-field
'mEquationId' (48 bits) exceeds the width of its type; value will be
truncated to 32 bits [-Wbitfield-width]
EquationIdType mEquationId : 48;
^
/home/pi/src/Kratos/kratos/includes/dof.h:480:20: warning: width of bit-field
'mEquationId' (48 bits) exceeds the width of its type; value will be
truncated to 32 bits [-Wbitfield-width]
/home/pi/src/Kratos/kratos/includes/key_hash.h:318:35:
We may define some defines for the system (32-64):
// Check windows
#if _WIN32 || _WIN64
#if _WIN64
#define ENVIRONMENT64
#else
#define ENVIRONMENT32
#endif
#endif
// Check GCC
#if __GNUC__
#if __x86_64__ || __ppc64__
#define ENVIRONMENT64
#else
#define ENVIRONMENT32
#endif
#endif
And then:
#if ENVIRONMENT64
EquationIdType mEquationId : 48;
#else
EquationIdType mEquationId : 24;
#endif
I assume this will not make @RiccardoRossi and @pooyan-dadvand happy , just proposing
We may define some defines for the system (32-64):
// Check windows #if _WIN32 || _WIN64 #if _WIN64 #define ENVIRONMENT64 #else #define ENVIRONMENT32 #endif #endif // Check GCC #if __GNUC__ #if __x86_64__ || __ppc64__ #define ENVIRONMENT64 #else #define ENVIRONMENT32 #endif #endif
This require to add more systems, but the concept I think is understood
BTW, the commit where the 48 bits were chosen: https://github.com/KratosMultiphysics/Kratos/commit/a3c4efcd1058fe582ae3279a5faa5d12fbe26234
One more thing: You can try to use crosscompilation, so you can test without using the RPi directly and compiling way faster: https://clang.llvm.org/docs/CrossCompilation.html
We are almost there. With the fix of @loumalouomega we can compile the core and pass ALMOST all the tests. The failing one is a cpp test "TestSerializerMatrix", it might be a accuracy issue
pi@raspberrypi:~/Kratos/kratos/python_scripts $ python3 run_tests.py
| / |
' / __| _` | __| _ \ __|
. \ | ( | | ( |\__ \
_|\_\_| \__,_|\__|\___/ ____/
Multi-Physics 7.0.0-e14eb3e-RelWithDebInfo
Compiled with OpenMP support.
Maximum OpenMP threads: 4.
Running tests for KratosCore
/home/pi/Kratos/kratos/tests/test_KratosCore.py
[Error]: Unable to execute /home/pi/Kratos/runkratos
Running cpp tests
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................F..............................................................................................................................................................................................
Ran 643 of 644 test cases in 0.889466s. 1 failed:
TestSerializerMatrix Failed with message:
Error: Check failed because rObjectToBeLoaded(i,j) is not equal to rObjectToBeSaved(i,j)
in kratos/tests/cpp_tests/sources/test_serializer.cpp:66:void Testing::TestObjectSerializationComponentwise2D(const TObjectType&, TObjectType&) [with TObjectType = boost::numeric::ublas::matrix<double>]
pi@raspberrypi:~/Kratos/kratos/python_scripts $ cd ..
pi@raspberrypi:~/Kratos/kratos $ cd tests/
pi@raspberrypi:~/Kratos/kratos/tests $ python3 test_KratosCore.py -v 0
| / |
' / __| _` | __| _ \ __|
. \ | ( | | ( |\__ \
_|\_\_| \__,_|\__|\___/ ____/
Multi-Physics 7.0.0-e14eb3e-RelWithDebInfo
Compiled with OpenMP support.
Maximum OpenMP threads: 4.
ReadMaterialsProcess:
DEPRECATED: This process is deprecated, please use the C++ utility: ReadMaterialsUtility
ReadMaterialsProcess:
DEPRECATED: This process is deprecated, please use the C++ utility: ReadMaterialsUtility
ReadMaterialsProcess:
DEPRECATED: This process is deprecated, please use the C++ utility: ReadMaterialsUtility
ReadMaterialsProcess:
DEPRECATED: This process is deprecated, please use the C++ utility: ReadMaterialsUtility
Geometry: Computation of local coordinates failed at iteration 0
Linear-Solver-Factory: DEPRECATION-WARNING:
Using a deprecated "solver_type"!
Replace "SkylineLUFactorizationSolver" with "skyline_lu_factorization"
TimeBasedAsciiFileWriterUtility: No valid data file was found after restarting,
writing to a new file
TimeBasedAsciiFileWriterUtility: No line was found in point_output_restart_time_not_found.dat after restarting containing indicated restart time,
appending results after restart from time 2.15 not possible.
To avoid loss of data continuing writing from the end of file
VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
Model: DEPREATION_WARNING: The ModelPart "aaa"
is retrieved from the Model by using the flat-map!
This will be removed end of November 2019
Please prepend the Parent-ModelPart-Names like this:
"Main.Outlet.Outlet"
VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
VARIABLE LIST MISMATCH - : Variable: FLAG_VARIABLE variable #3769276416 is in rOriginModelPart variables but not in the rDestinationModelPart variables
VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
VARIABLE LIST MISMATCH - : Variable: FLAG_VARIABLE variable #3769276416 is in rOriginModelPart variables but not in the rDestinationModelPart variables
ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
VARIABLE LIST MISMATCH - : Variable: FLAG_VARIABLE variable #3769276416 is in rOriginModelPart variables but not in the rDestinationModelPart variables
ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
----------------------------------------------------------------------
Ran 248 tests in 17.131s
OK (skipped=36, expected failures=1)
In fact I notice that the serializer test failed, I have said anything because the RPi3 takes 5 hours to compile Core+Structural and after that I had no forces to fix anything. In any case I assumed that it required to reimplement the test, as the serializer is a very memory specific stuff
i wrote the failing test a while ago. I had a look, to me it seems like a correct test :)
so, this is just to tell that the test failing is the one reading the "Matrix". The same error does not happen for example with "BoundedMatrix", which is using a different mechanism for serialization than "DenseMatrix".
Pooyan's feedback is that the char is wrongly used in serializer.h. @pooyan-dadvand could u comment on this? @roigcarlo i am mentioning you since this is a code you touched a lot
the fix is partual, we still have troubles with the serialization...
🙃
El mar., 1 oct. 2019 18:20, Riccardo Rossi notifications@github.com escribió:
the fix is partual, we still have troubles with the serialization...
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/KratosMultiphysics/Kratos/issues/5576?email_source=notifications&email_token=AEYQZAGJ5ZK6DJKKGDCCUADQMN2EBA5CNFSM4IWQUFZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAB3KYY#issuecomment-537113955, or mute the thread https://github.com/notifications/unsubscribe-auth/AEYQZAEC3KZNHJ2IG6NA3PDQMN2EBANCNFSM4IWQUFZQ .
Ping @Rbravo555. The problem with the tests failing because of the tolerance in raps4 may be related with this.
We have installed Ubuntu 19.10 in a RaspberryPi 4 with 4GB RAM. We selected Ubuntu since we can visualize results using for example Paraview.
However, in order to install Kratos, we had to split "Kratos/kratos/add_utilities_to_python" into three (#6284), so that the Pi wouldn´t run out of RAM.
THIS IS MY PI:
ubuntu@ubuntu:~/Desktop$ lscpu Architecture: aarch64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 Vendor ID: ARM Model: 3 Model name: Cortex-A72 Stepping: r0p3 CPU max MHz: 1500.0000 CPU min MHz: 600.0000 BogoMIPS: 108.00 Vulnerability Itlb multihit: Not affected Vulnerability L1tf: Not affected Vulnerability Mds: Not affected Vulnerability Meltdown: Not affected Vulnerability Spec store bypass: Vulnerable Vulnerability Spectre v1: Mitigation; __user pointer sanitization Vulnerability Spectre v2: Vulnerable Vulnerability Tsx async abort: Not affected Flags: fp asimd evtstrm crc32 cpuid
AFTER COMPILING AND RUNNING THE CORE TESTS I GET:
ubuntu@ubuntu:~/Kratos/kratos/tests$ python3 test_KratosCore.py
| / |
' / __| _` | __| _ \ __|
. \ | ( | | ( |\__ \
_|\_\_| \__,_|\__|\___/ ____/
Multi-Physics 7.1.0-0397c039f2-Release
Compiled with OpenMP support.
Maximum OpenMP threads: 4.
Importing KratosStructuralMechanicsApplication
KRATOS ___| | | |
\___ \ __| __| | | __| __| | | __| _` | |
| | | | | ( | | | | ( | |
_____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS
Initializing KratosStructuralMechanicsApplication...
.s..................x....sssss..........[WARNING] Geometry: Computation of local coordinates failed at iteration 0
...........................................s.s
.ssssss[WARNING] Linear-Solver-Factory: DEPRECATION-WARNING:
Using a deprecated "solver_type"!
Replace "SkylineLUFactorizationSolver" with "skyline_lu_factorization"
.s..................[WARNING] TimeBasedAsciiFileWriterUtility: No valid data file was found after restarting,
writing to a new file
...[WARNING] TimeBasedAsciiFileWriterUtility: No line was found in point_output_restart_time_not_found.dat after restarting containing indicated restart time,
appending results after restart from time 2.15 not possible.
To avoid loss of data continuing writing from the end of file
...sss[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
.[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
.[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
.....[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] VARIABLE LIST MISMATCH - : Variable: FLAG_VARIABLE variable #3769276416 is in rOriginModelPart variables but not in the rDestinationModelPart variables
..[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] VARIABLE LIST MISMATCH - : Variable: FLAG_VARIABLE variable #3769276416 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
.[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] VARIABLE LIST MISMATCH - : Variable: FLAG_VARIABLE variable #3769276416 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
.................................[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
.[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
.[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
.[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
.[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
.[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
....................ss.....ssssssss.sssss..............................s[WARNING] TestFileLogger: This is printed by 'PrintWarning'.
[WARNING] Rank 0: TestFileLogger: This is printed by 'PrintWarningOnAllRanks'.
.........s...s..F[WARNING] Quadrilateral3D4: detJ = 4.82837e-07 DeltaX = [2](1155.44,-686.129) stopping calculation. Iteration: 54
[WARNING] Quadrilateral3D4: detJ = 4.82837e-07 DeltaX = [2](1155.44,-686.129) stopping calculation. Iteration: 54
[WARNING] Quadrilateral3D4: detJ = 4.82837e-07 DeltaX = [2](1155.44,-686.129) stopping calculation. Iteration: 54
[WARNING] Quadrilateral3D4: detJ = 4.82837e-07 DeltaX = [2](1155.44,-686.129) stopping calculation. Iteration: 54
F....
======================================================================
FAIL: test_mortar_mapping_quad (test_mortar_mapper.TestMortarMapperCore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ubuntu/Kratos/kratos/tests/test_mortar_mapper.py", line 155, in test_mortar_mapping_quad
self._mapper_tests(input_filename, 4, 4)
File "/home/ubuntu/Kratos/kratos/tests/test_mortar_mapper.py", line 109, in _mapper_tests
check.ExecuteFinalizeSolutionStep()
File "/home/ubuntu/Kratos/bin/Release/KratosMultiphysics/from_json_check_result_process.py", line 141, in ExecuteFinalizeSolutionStep
self.__check_values(node.Id, "Node", value[component_index], value_json, variable_name+component)
File "/home/ubuntu/Kratos/bin/Release/KratosMultiphysics/from_json_check_result_process.py", line 262, in __check_values
self.assertTrue(isclosethis, msg=msg)
AssertionError: False is not true : Error checking Node #675 for variable DISPLACEMENT_X results:
46.5915477 != 46.5929020; rel_tol=0.000001, abs_tol=0.001
======================================================================
FAIL: test_mortar_mapping_quad_tri (test_mortar_mapper.TestMortarMapperCore)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ubuntu/Kratos/kratos/tests/test_mortar_mapper.py", line 159, in test_mortar_mapping_quad_tri
self._mapper_tests(input_filename, 4, 3, False, False, False, False, True)
File "/home/ubuntu/Kratos/kratos/tests/test_mortar_mapper.py", line 109, in _mapper_tests
check.ExecuteFinalizeSolutionStep()
File "/home/ubuntu/Kratos/bin/Release/KratosMultiphysics/from_json_check_result_process.py", line 141, in ExecuteFinalizeSolutionStep
self.__check_values(node.Id, "Node", value[component_index], value_json, variable_name+component)
File "/home/ubuntu/Kratos/bin/Release/KratosMultiphysics/from_json_check_result_process.py", line 262, in __check_values
self.assertTrue(isclosethis, msg=msg)
AssertionError: False is not true : Error checking Node #744 for variable DISPLACEMENT_X results:
45.8231686 != 45.8206883; rel_tol=0.000001, abs_tol=0.001
----------------------------------------------------------------------
Ran 264 tests in 18.207s
FAILED (failures=2, skipped=36, expected failures=1)
I don´t get these 2 errors when compiling in my own computer for the same branch. Also, I don´t get them when compiling the same branch using Raspbian in the Raspbberry.
pi@raspberrypi:~ $ lscpu Architecture: armv7l Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 4 Socket(s): 1 Vendor ID: ARM Model: 3 Model name: Cortex-A72 Stepping: r0p3 CPU max MHz: 1500.0000 CPU min MHz: 600.0000 BogoMIPS: 108.00 Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
pi@raspberrypi:~/Kratos/kratos/tests $ python3 test_KratosCore.py
| / |
' / __| _` | __| _ \ __|
. \ | ( | | ( |\__ \
_|\_\_| \__,_|\__|\___/ ____/
Multi-Physics 7.1.0-84d526cfec-Release
Compiled with OpenMP support.
Maximum OpenMP threads: 4.
Importing KratosStructuralMechanicsApplication
KRATOS ___| | | |
\___ \ __| __| | | __| __| | | __| _` | |
| | | | | ( | | | | ( | |
_____/ \__|_| \__,_|\___|\__|\__,_|_| \__,_|_| MECHANICS
Initializing KratosStructuralMechanicsApplication...
.s..................x....sssss..........[WARNING] Geometry: Computation of local coordinates failed at iteration 0
...........................................s.s
.ssssss[WARNING] Linear-Solver-Factory: DEPRECATION-WARNING:
Using a deprecated "solver_type"!
Replace "SkylineLUFactorizationSolver" with "skyline_lu_factorization"
.s..................[WARNING] TimeBasedAsciiFileWriterUtility: No valid data file was found after restarting,
writing to a new file
...[WARNING] TimeBasedAsciiFileWriterUtility: No line was found in point_output_restart_time_not_found.dat after restarting containing indicated restart time,
appending results after restart from time 2.15 not possible.
To avoid loss of data continuing writing from the end of file
...sss[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
.[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
.[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
.....[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] VARIABLE LIST MISMATCH - : Variable: FLAG_VARIABLE variable #3769276416 is in rOriginModelPart variables but not in the rDestinationModelPart variables
..[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] VARIABLE LIST MISMATCH - : Variable: FLAG_VARIABLE variable #3769276416 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
.[WARNING] VARIABLE LIST MISMATCH - : Variable: DISTANCE variable #594256384 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] VARIABLE LIST MISMATCH - : Variable: FLAG_VARIABLE variable #3769276416 is in rOriginModelPart variables but not in the rDestinationModelPart variables
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
[WARNING] ResidualBasedBlockBuilderAndSolver: ATTENTION! setting the RHS to zero!
.................................[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
.[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
.[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
.[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
.[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
.[WARNING] VtkOutput: Modelpart "Main" has both elements and conditions.
Giving precedence to elements and writing only elements!
....................ss..............sssss..............................s[WARNING] TestFileLogger: This is printed by 'PrintWarning'.
[WARNING] Rank 0: TestFileLogger: This is printed by 'PrintWarningOnAllRanks'.
.............s........
----------------------------------------------------------------------
Ran 264 tests in 22.474s
OK (skipped=27, expected failures=1)
I have the same failures on my systems for very long time already
We have installed Ubuntu 19.10 in a RaspberryPi 4 with 4GB RAM. We selected Ubuntu since we can visualize results using for example Paraview.
Just to comment that Paraview is also available in Rapsbian, at least in the last version
@loumalouomega seems that the mortal mapper test is failing...
Since when?
OK, now I see it. Looks like a small tolerance error. It can be fixed just increasing the tolerance.
@loumalouomega seems that the mortal mapper test is failing...
@loumalouomega as you know for me it fails since forever
while dubugging the potentialflow I saw some valgrind output that might be related:
2020-02-05T01:22:16.7725277Z ==2221== by 0x6C67DFF: __gnu_cxx::new_allocator<double>::deallocate(double*, unsigned long) (new_allocator.h:125)
2020-02-05T01:22:16.7725431Z ==2221== by 0x9475166: boost::numeric::ublas::unbounded_array<double, std::allocator<double> >::~unbounded_array() (storage.hpp:109)
2020-02-05T01:22:16.7725600Z ==2221== by 0x94725DD: boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >::~vector() (vector.hpp:49)
2020-02-05T01:22:16.7725765Z ==2221== by 0x9A7C2AB: Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > >::GlobalCoordinates(Kratos::array_1d<double, 3ul>&, Kratos::array_1d<double, 3ul> const&) const (geometry.h:1901)
2020-02-05T01:22:16.7726026Z ==2221== by 0x99096AB: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::AssemblyMortarOperators(std::vector<Kratos::array_1d<Kratos::Point, 3ul>, std::allocator<Kratos::array_1d<Kratos::Point, 3ul> > > const&, Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > > const&, Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > > const&, Kratos::array_1d<double, 3ul> const&, Kratos::MortarKinematicVariables<4ul, 4ul>&, Kratos::MortarOperator<4ul, 4ul>&, Kratos::GeometryData::IntegrationMethod const&, boost::numeric::ublas::bounded_matrix<double, 4ul, 4ul, boost::numeric::ublas::basic_row_major<unsigned long, long> >) (simple_mortar_mapper_process.cpp:451)
2020-02-05T01:22:16.7726622Z ==2221== by 0x9B50311: void Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::PerformMortarOperations<Kratos::IndexSet, false>(boost::numeric::ublas::compressed_matrix<double, boost::numeric::ublas::basic_row_major<unsigned long, long>, 0ul, boost::numeric::ublas::unbounded_array<unsigned long, std::allocator<unsigned long> >, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >&, std::vector<boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >, std::allocator<boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > > > >&, std::unordered_map<unsigned long, unsigned long, std::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >&, Kratos::IndexSet::Pointer, Kratos::intrusive_ptr<Kratos::GeometricalObject>, Kratos::ExactMortarIntegrationUtility<3ul, 4ul, false, 4ul>&, Kratos::MortarKinematicVariables<4ul, 4ul>&, Kratos::MortarOperator<4ul, 4ul>&, unsigned long) (simple_mortar_mapper_process.h:723)
2020-02-05T01:22:16.7727007Z ==2221== by 0x97A167A: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteExplicitMapping() [clone ._omp_fn.158] (simple_mortar_mapper_process.cpp:911)
2020-02-05T01:22:16.7727392Z ==2221== by 0xB48EECE: GOMP_parallel (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
2020-02-05T01:22:16.7727556Z ==2221== by 0x990BAA4: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteExplicitMapping() (simple_mortar_mapper_process.cpp:905)
2020-02-05T01:22:16.7727729Z ==2221== by 0x99065CD: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteInitializeSolutionStep() (simple_mortar_mapper_process.cpp:182)
2020-02-05T01:22:16.7727897Z ==2221== by 0x990488C: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::Execute() (simple_mortar_mapper_process.cpp:162)
2020-02-05T01:22:16.7728184Z ==2221== Block was alloc'd at
2020-02-05T01:22:16.7728529Z ==2221== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
2020-02-05T01:22:16.7728680Z ==2221== by 0x6C72AC7: __gnu_cxx::new_allocator<double>::allocate(unsigned long, void const*) (new_allocator.h:111)
2020-02-05T01:22:16.7728836Z ==2221== by 0x9479AA7: boost::numeric::ublas::unbounded_array<double, std::allocator<double> >::unbounded_array(unsigned long, std::allocator<double> const&) (storage.hpp:68)
2020-02-05T01:22:16.7728999Z ==2221== by 0x94750A6: boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >::vector(unsigned long) (vector.hpp:86)
2020-02-05T01:22:16.7729168Z ==2221== by 0x9A7C1AB: Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > >::GlobalCoordinates(Kratos::array_1d<double, 3ul>&, Kratos::array_1d<double, 3ul> const&) const (geometry.h:1901)
2020-02-05T01:22:16.7729421Z ==2221== by 0x99096AB: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::AssemblyMortarOperators(std::vector<Kratos::array_1d<Kratos::Point, 3ul>, std::allocator<Kratos::array_1d<Kratos::Point, 3ul> > > const&, Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > > const&, Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > > const&, Kratos::array_1d<double, 3ul> const&, Kratos::MortarKinematicVariables<4ul, 4ul>&, Kratos::MortarOperator<4ul, 4ul>&, Kratos::GeometryData::IntegrationMethod const&, boost::numeric::ublas::bounded_matrix<double, 4ul, 4ul, boost::numeric::ublas::basic_row_major<unsigned long, long> >) (simple_mortar_mapper_process.cpp:451)
2020-02-05T01:22:16.7729926Z ==2221== by 0x9B50311: void Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::PerformMortarOperations<Kratos::IndexSet, false>(boost::numeric::ublas::compressed_matrix<double, boost::numeric::ublas::basic_row_major<unsigned long, long>, 0ul, boost::numeric::ublas::unbounded_array<unsigned long, std::allocator<unsigned long> >, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >&, std::vector<boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >, std::allocator<boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > > > >&, std::unordered_map<unsigned long, unsigned long, std::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >&, Kratos::IndexSet::Pointer, Kratos::intrusive_ptr<Kratos::GeometricalObject>, Kratos::ExactMortarIntegrationUtility<3ul, 4ul, false, 4ul>&, Kratos::MortarKinematicVariables<4ul, 4ul>&, Kratos::MortarOperator<4ul, 4ul>&, unsigned long) (simple_mortar_mapper_process.h:723)
2020-02-05T01:22:16.7730318Z ==2221== by 0x97A167A: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteExplicitMapping() [clone ._omp_fn.158] (simple_mortar_mapper_process.cpp:911)
2020-02-05T01:22:16.7730688Z ==2221== by 0xB48EECE: GOMP_parallel (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
2020-02-05T01:22:16.7730849Z ==2221== by 0x990BAA4: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteExplicitMapping() (simple_mortar_mapper_process.cpp:905)
2020-02-05T01:22:16.7731014Z ==2221== by 0x99065CD: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteInitializeSolutionStep() (simple_mortar_mapper_process.cpp:182)
2020-02-05T01:22:16.7731178Z ==2221== by 0x990488C: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::Execute() (simple_mortar_mapper_process.cpp:162)
@loumalouomega seems that the mortal mapper test is failing...
@loumalouomega as you know for me it fails since forever
while dubugging the potentialflow I saw some valgrind output that might be related:
2020-02-05T01:22:16.7725277Z ==2221== by 0x6C67DFF: __gnu_cxx::new_allocator<double>::deallocate(double*, unsigned long) (new_allocator.h:125) 2020-02-05T01:22:16.7725431Z ==2221== by 0x9475166: boost::numeric::ublas::unbounded_array<double, std::allocator<double> >::~unbounded_array() (storage.hpp:109) 2020-02-05T01:22:16.7725600Z ==2221== by 0x94725DD: boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >::~vector() (vector.hpp:49) 2020-02-05T01:22:16.7725765Z ==2221== by 0x9A7C2AB: Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > >::GlobalCoordinates(Kratos::array_1d<double, 3ul>&, Kratos::array_1d<double, 3ul> const&) const (geometry.h:1901) 2020-02-05T01:22:16.7726026Z ==2221== by 0x99096AB: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::AssemblyMortarOperators(std::vector<Kratos::array_1d<Kratos::Point, 3ul>, std::allocator<Kratos::array_1d<Kratos::Point, 3ul> > > const&, Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > > const&, Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > > const&, Kratos::array_1d<double, 3ul> const&, Kratos::MortarKinematicVariables<4ul, 4ul>&, Kratos::MortarOperator<4ul, 4ul>&, Kratos::GeometryData::IntegrationMethod const&, boost::numeric::ublas::bounded_matrix<double, 4ul, 4ul, boost::numeric::ublas::basic_row_major<unsigned long, long> >) (simple_mortar_mapper_process.cpp:451) 2020-02-05T01:22:16.7726622Z ==2221== by 0x9B50311: void Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::PerformMortarOperations<Kratos::IndexSet, false>(boost::numeric::ublas::compressed_matrix<double, boost::numeric::ublas::basic_row_major<unsigned long, long>, 0ul, boost::numeric::ublas::unbounded_array<unsigned long, std::allocator<unsigned long> >, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >&, std::vector<boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >, std::allocator<boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > > > >&, std::unordered_map<unsigned long, unsigned long, std::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >&, Kratos::IndexSet::Pointer, Kratos::intrusive_ptr<Kratos::GeometricalObject>, Kratos::ExactMortarIntegrationUtility<3ul, 4ul, false, 4ul>&, Kratos::MortarKinematicVariables<4ul, 4ul>&, Kratos::MortarOperator<4ul, 4ul>&, unsigned long) (simple_mortar_mapper_process.h:723) 2020-02-05T01:22:16.7727007Z ==2221== by 0x97A167A: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteExplicitMapping() [clone ._omp_fn.158] (simple_mortar_mapper_process.cpp:911) 2020-02-05T01:22:16.7727392Z ==2221== by 0xB48EECE: GOMP_parallel (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0) 2020-02-05T01:22:16.7727556Z ==2221== by 0x990BAA4: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteExplicitMapping() (simple_mortar_mapper_process.cpp:905) 2020-02-05T01:22:16.7727729Z ==2221== by 0x99065CD: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteInitializeSolutionStep() (simple_mortar_mapper_process.cpp:182) 2020-02-05T01:22:16.7727897Z ==2221== by 0x990488C: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::Execute() (simple_mortar_mapper_process.cpp:162) 2020-02-05T01:22:16.7728184Z ==2221== Block was alloc'd at 2020-02-05T01:22:16.7728529Z ==2221== at 0x4C3017F: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) 2020-02-05T01:22:16.7728680Z ==2221== by 0x6C72AC7: __gnu_cxx::new_allocator<double>::allocate(unsigned long, void const*) (new_allocator.h:111) 2020-02-05T01:22:16.7728836Z ==2221== by 0x9479AA7: boost::numeric::ublas::unbounded_array<double, std::allocator<double> >::unbounded_array(unsigned long, std::allocator<double> const&) (storage.hpp:68) 2020-02-05T01:22:16.7728999Z ==2221== by 0x94750A6: boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >::vector(unsigned long) (vector.hpp:86) 2020-02-05T01:22:16.7729168Z ==2221== by 0x9A7C1AB: Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > >::GlobalCoordinates(Kratos::array_1d<double, 3ul>&, Kratos::array_1d<double, 3ul> const&) const (geometry.h:1901) 2020-02-05T01:22:16.7729421Z ==2221== by 0x99096AB: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::AssemblyMortarOperators(std::vector<Kratos::array_1d<Kratos::Point, 3ul>, std::allocator<Kratos::array_1d<Kratos::Point, 3ul> > > const&, Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > > const&, Kratos::Geometry<Kratos::Node<3ul, Kratos::Dof<double> > > const&, Kratos::array_1d<double, 3ul> const&, Kratos::MortarKinematicVariables<4ul, 4ul>&, Kratos::MortarOperator<4ul, 4ul>&, Kratos::GeometryData::IntegrationMethod const&, boost::numeric::ublas::bounded_matrix<double, 4ul, 4ul, boost::numeric::ublas::basic_row_major<unsigned long, long> >) (simple_mortar_mapper_process.cpp:451) 2020-02-05T01:22:16.7729926Z ==2221== by 0x9B50311: void Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::PerformMortarOperations<Kratos::IndexSet, false>(boost::numeric::ublas::compressed_matrix<double, boost::numeric::ublas::basic_row_major<unsigned long, long>, 0ul, boost::numeric::ublas::unbounded_array<unsigned long, std::allocator<unsigned long> >, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >&, std::vector<boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > >, std::allocator<boost::numeric::ublas::vector<double, boost::numeric::ublas::unbounded_array<double, std::allocator<double> > > > >&, std::unordered_map<unsigned long, unsigned long, std::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >&, Kratos::IndexSet::Pointer, Kratos::intrusive_ptr<Kratos::GeometricalObject>, Kratos::ExactMortarIntegrationUtility<3ul, 4ul, false, 4ul>&, Kratos::MortarKinematicVariables<4ul, 4ul>&, Kratos::MortarOperator<4ul, 4ul>&, unsigned long) (simple_mortar_mapper_process.h:723) 2020-02-05T01:22:16.7730318Z ==2221== by 0x97A167A: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteExplicitMapping() [clone ._omp_fn.158] (simple_mortar_mapper_process.cpp:911) 2020-02-05T01:22:16.7730688Z ==2221== by 0xB48EECE: GOMP_parallel (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0) 2020-02-05T01:22:16.7730849Z ==2221== by 0x990BAA4: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteExplicitMapping() (simple_mortar_mapper_process.cpp:905) 2020-02-05T01:22:16.7731014Z ==2221== by 0x99065CD: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::ExecuteInitializeSolutionStep() (simple_mortar_mapper_process.cpp:182) 2020-02-05T01:22:16.7731178Z ==2221== by 0x990488C: Kratos::SimpleMortarMapperProcess<3ul, 4ul, Kratos::Variable<Kratos::array_1d<double, 3ul> >, 4ul>::Execute() (simple_mortar_mapper_process.cpp:162)
Can you check again with https://github.com/KratosMultiphysics/Kratos/tree/core/trying-fix-mortar-mapper?
what is the status of this?
I need to compile the master in the Raspberry Pi and check again. Will let you know...
El mar., 14 jul. 2020 a las 17:22, Philipp Bucher (notifications@github.com) escribió:
what is the status of this?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/KratosMultiphysics/Kratos/issues/5576#issuecomment-658243620, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK7FEDFCGCVZXI4AEJPVPPTR3RZ4RANCNFSM4IWQUFZQ .
indon t think it is fixed as it was an inherent 32bit serialization issue. we need charlie to take a look into it
On Tue, Jul 14, 2020, 5:53 PM Rbravo555 notifications@github.com wrote:
I need to compile the master in the Raspberry Pi and check again. Will let you know...
El mar., 14 jul. 2020 a las 17:22, Philipp Bucher (< notifications@github.com>) escribió:
what is the status of this?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/KratosMultiphysics/Kratos/issues/5576#issuecomment-658243620 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AK7FEDFCGCVZXI4AEJPVPPTR3RZ4RANCNFSM4IWQUFZQ
.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/KratosMultiphysics/Kratos/issues/5576#issuecomment-658260406, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5PWEKUPZN4RS5IDPCITF3R3R5QHANCNFSM4IWQUFZQ .
Ok I will take a look, can I use your raspy @Rbravo555 ?
Is it still open?
We are still on it.
I think we can close it. Make another issue if necessary
worrysome warning when compiling on raspberry pi 4
@pooyan-dadvand this looks very worrysome