I checked the M2 interface, and it doesn't work there because the TOPCOM program isn't available:
i3 : tri = topcomRegularFineTriangulation A
stdio:4:36:(3): error: could not find topcom
The following worked for me locally:
i1 : needsPackage "Topcom";
i2 : A = matrix {{0, 1, 2, 3, 4, 5, 6}, {0, 1, 4, 9, 16, 25, 36}, {0, 1, 8, 27, 64, 125, 216}};
3 7
o2 : Matrix ZZ <-- ZZ
i3 : tri = topcomRegularFineTriangulation A
o3 = {{0, 1, 2, 3}, {1, 2, 3, 4}, {0, 1, 3, 4}, {2, 3, 4, 5}, {1, 2, 4, 5}, {0, 1, 4, 5}, {3, 4, 5, 6}, {2, 3, 5, 6}, {1, 2, 5, 6},
-------------------------------------------------------------------------------------------------------------------------------
{0, 1, 5, 6}}
o3 : List
i4 : topcomRegularTriangulationWeights(A, tri)
5 5 1
o4 = {-, -, -, 0, 0, 0, 0}
2 6 6
o4 : List
What version of Macaulay2 are you using? There were some changes to the Topcom starting in Macaulay2 1.21. If you're using Macaulay2 1.20 or older, then you'll want to use "regularFineTriangulation" and "regularTriangulationWeights" instead.