Norton *CREEP in a linear *VISCO step: a large increment stops ccx with "matrix found to be singular" (exit 255) instead of a cutback

Summary

A cube with a Norton creep law under a constant pressure, one *VISCO step with automatic incrementation. The stress is constant, so the creep rate is constant and CETOL never limits the increment: ccx increases it by 1.5 after every increment. Increments 1 to 12 converge in 2-3 iterations each, and the displacements are exact. In increment 13 (size 0.0865, a creep strain of about 17 elastic strains), ccx stops in the first iteration:

  • exit status 255;
  • the last lines ccx prints for increment 13 are “Factoring the system of equations using the symmetric spooles solver” and “Using 1 cpu for spooles.”;
  • the only message is “matrix found to be singular”, in spooles.out.

There is no cutback and no *ERROR. The same deck with *STEP, NLGEOM (routine incplas.f instead of incplas_lin.f) runs to the end of the step.

A tighter CETOL does not help: with CETOL=1.e-6 the deck stops in the same way at increment 19 (size 0.0837).

The stop depends on the creep exponent n and on r, the creep strain of one increment divided by the elastic strain q/E. I ran the same deck with other n and A (same creep rate), with the first and the largest increment set to a given r. n = 3 runs with increments of r = 150 and 200. n = 4 runs with r = 40; with a maximum of r = 50 the first increment is cut back and the run stops when the increment has grown back to r = 42. n = 5 runs with r = 15 and stops at r = 17. n = 8 and n = 10 stop already at r = 4 and r = 2, in increment 2: its start also extrapolates the elastic strain of increment 1. A long creep analysis with automatic increments reaches such an increment sooner or later, because the increments keep growing.

Version

ccx 2.23 (macOS arm64) and current master (537aa81, 2 Nov 2026) give the same output.

Already reported or fixed?

Not reported as far as I can find: no matching GitHub issue (open or closed) or pull request in Dhondtguido/CalculiX (searched 3 Nov 2026). Not fixed: incplas_lin.f and the increment start in nonlingeo.c are unchanged in this respect on master (537aa81).

The deck of Creep calculation and results (2021) ends this way on ccx 2.23 and master: in iteration 1 of increment 23 of its *VISCO step, at total time 0.997577E-03 (post 7 there reports the same stop time for ccx 2.17), with “matrix found to be singular” and exit 255. Its creep rate is far too high because ccx raises A·t^m to 1e-20 (reported separately), and that brings the increments to r ≈ 16 early.

Minimal input

norton_visco.inp:

** Unit cube C3D8, pressure q = 10 on the face x = 1 (symmetry BCs on x = 0, y = 0, z = 0).
** E = 2.e5, nu = 0.3. Norton creep (m = 0): A = 1.e-7, n = 5, creep rate A q^n = 0.01.
** One *VISCO step of 1 time unit, automatic increments starting at 0.001.
** Exact (small strain): u_x(x = 1) = q/E + 0.01 t = 5.e-5 + 0.01 t.
*NODE
1, 0., 0., 0.
2, 1., 0., 0.
3, 1., 1., 0.
4, 0., 1., 0.
5, 0., 0., 1.
6, 1., 0., 1.
7, 1., 1., 1.
8, 0., 1., 1.
*ELEMENT, TYPE=C3D8, ELSET=EALL
1, 1, 2, 3, 4, 5, 6, 7, 8
*NSET, NSET=X0
1, 4, 5, 8
*NSET, NSET=Y0
1, 2, 5, 6
*NSET, NSET=Z0
1, 2, 3, 4
*NSET, NSET=N7
7
*BOUNDARY
X0, 1, 1
Y0, 2, 2
Z0, 3, 3
*MATERIAL, NAME=MAT
*ELASTIC
2.e5, 0.3
*CREEP
1.e-7, 5., 0.
*SOLID SECTION, ELSET=EALL, MATERIAL=MAT
*STEP, INC=1000
*VISCO, CETOL=5.e-3
0.001, 1., 1.e-6, 1.
*DLOAD
1, P4, -10.
*NODE PRINT, NSET=N7
U
*END STEP

norton_visco_nl.inp is the same deck with *STEP, INC=1000, NLGEOM.

How to run

ccx norton_visco
ccx norton_visco_nl

Expected

The step runs to t = 1. If an increment is too large for the material routine, ccx cuts it back, as it does elsewhere (“increment size decrease requested by a material user routine (through pnewdt)”). Small-strain answer at node 7: u_x = 5e-5 + 0.01 t, 1.005e-2 at t = 1.

Actual

norton_visco: exit status 255. The .sta file:

     1         11     1     2  0.114330E+00  0.114330E+00  0.384434E-01
     1         12     1     2  0.171995E+00  0.171995E+00  0.576650E-01

Node 7 after increment 12: 7 1.769866E-03 -8.749328E-04 -8.749328E-04, matching 5e-5 + 0.01 t to 5 digits. Then “increment 13 attempt 1, increment size= 8.649756e-02, iteration 1” and the stop. spooles.out:

 matrix found to be singular

norton_visco_nl: exit 0 after 17 increments; node 7 at t = 1: 7 1.001457E-02 -4.960035E-03 -4.960035E-03.

ccx 2.23 and master (537aa81) print the same numbers.

Where it goes wrong

The local Newton iteration for the creep increment in src/incplas_lin.f (master lines 255-361) starts from cop=0 and gives up after 15 iterations (lines 358-361):

         if((iloop.gt.15).or.(cop.le.0.d0)) then
            pnewdt=0.25d0
            return
         endif

It returns before it computes the tangent stiff (from line 399). The NLGEOM routine incplas.f has the same test at line 620, but there it restarts with a bracketing and bisection search for the root (lines 620-755) and gives up only after 100 more steps.

At the start of an increment, ccx extrapolates the displacements of the previous increment. With a constant creep rate this gives a trial stress of about q(1 + 1.15 r), with r the creep strain of the new increment in elastic strains. Far from the root, each Newton step lowers the stress by about a factor (1 - 1/n). So the number of iterations grows with ln(1 + 1.15 r)·n. A short script that repeats the loop of incplas_lin.f for this trial state needs more than 15 iterations above r ≈ 16 for n = 5. For n = 3, 4 and 5 that script puts the limit in the same ranges as the runs above (200-300, 40-50, 15-17). In the deck, increment 12 has r = 11.5 and increment 13 has r = 17.3.

That return happens in the results() call at the start of the increment (nonlingeo.c, master line 2230), whose stiffness (xstiff, resultsmech.f lines 974-977) is assembled for iteration 1. nonlingeo.c does not look at the cutback request (qa[2]) after that call. It only acts on it in checkconvergence after a solve. Here the solve fails first: the integration points that gave up have no valid tangent, and SPOOLES stops with exit(-1). When the same failure happens inside the iterations, the request works. With a first increment of 0.1 (r = 20) instead of 0.001, attempt 1 of increment 1 ends with “increment size decrease requested by a material user routine (through pnewdt)” and ccx retries with 0.025. That run then stops in the same way at increment 6 (size 0.084).

Fix

Either or both:

  • give incplas_lin.f the fallback that incplas.f already has (bracketing and bisection when Newton fails), or a better start value for cop;
  • in nonlingeo.c, check qa[2] after the results() call at the start of an increment and cut back before the first solve.

Confirmed using official ccx 2.23 build on Windows, needs a GitHub ticket.

The analysis (norton_visco) indeed crashes.

1 Like

Posted: Norton *CREEP in a linear *VISCO step: a large increment stops ccx with "matrix found to be singular" (exit 255) instead of a cutback · Issue #324 · Dhondtguido/CalculiX · GitHub

1 Like

I know there is a new development team, but maybe try to not overwhelm them with issues?

I have to disagree. That’s how GitHub issues work - they can stay there for as long as necessary, and the dev team will handle them at their own pace. It’s good to have them already documented. Devs can always prioritize the bugs as desired.

FreeCAD currently has 3506 open issues (885 with bug label, 101 with crash label, 1581 with feature label, and the rest with no such labels), with not so many active devs either (and pretty much only one person doing the triage).

The key might be proper labeling - the CalculiX repo may need more label types (for priority, type of bug, and so on) and perhaps even some help with the issue triage (I can volunteer if desired).

However, the forum is a different story. One could indeed say that these reports flood it, but there is a requirement that each issue must be discussed on the forum first. With so many detected bugs, it would take a lot of time to do it at a slower pace, and let’s keep in mind that the release is coming, so it would be good to have as many bugs fixed as possible.

Maybe this requirement of the forum discussion should be relaxed, or an exception should be made here due to the number of detected issues. But they should land on GitHub either way. Let’s ping @Durbul for feedback.

1 Like

We clearly encourage issue reporting and GitHub is the right place to document confirmed bugs, etc.

With AI it looks like a lot of untested input combinations can be checked in a systematic and automated way, which naturally produces errors and crashes and explains the many new issues reported over the last months (among others of course).

As mentioned by @Calc_em, prioritization is the key. Do you have a suggestion how to organize this? Prioritizing misbehaving features would be particularly helpful.

With the many new reports it also makes sense to relax the requirement for new issues to be confirmed in the forum first. I guess, obvious crashes do not need a forum post. We have this GitHub issues requirement mainly to avoid lengthy discussions on GitHub whether something is a bug or simply intended behavior or a shortcoming of the software.

@Sandervdb would you mind clustering your posts in only a couple separate threads on the forum? Or do you see a better way to organize these posts @Calc_em?

1 Like

Yes, Abaqus can detect and warn about many different input syntax mistakes. CalculiX still needs a lot more built-in checks and specific warnings/errors to handle various situations, but such automated tests can make it easier to detect them. And Sandervdb provides very detailed reports along with the sources of the issues and often pull requests to address them. Hopefully, it will make your work easier.

I would use something similar to FreeCAD’s approach to labels. But they also have project boards on GitHub with prioritized issues. Maybe that would be helpful: FEM Roadmap · GitHub

Or this to do list: Mechanical Advisory Group · GitHub

As for the labels, there could be separate ones for crashes and for specific features (like modules in FreeCAD) - material models, contact, analysis procedures, outputs and so on.

Stuff that has easy workarounds or is rare/very specific could have a lower priority.

FreeCAD also has priority labels:

and labels for issues that needs triage, confirmation or other help, things that are blockers for the next release and regressions.

Right, that could go straight to GitHub.

Yeah, sure. FreeCAD used to have this approach to, but relaxed it a bit due to the number of reported issues. It’s still requested to ask on the forum first if one is unsure whether it’s a bug or expected behavior. Maybe such a statement should be added to the pinned GitHub post - that users can post issues directly on GitHub if they are sure what they see is a bug/limitation/missing feature.

Gathering them in collective threads (e.g., separate ones for crashes and other issues) can be a good way, although it will make it a bit harder to check which are confirmed and posted on GitHub. So maybe an additional category like “Bug reports” (since “Analysis issues” are more general and not necessarily for confirmed and documented bugs). And it should be red :wink: Or it could be even more specific category such as “Confirmed bugs”.

Should I post my remaining bugs in one thread (maybe numbering them so confimations can be more easily be identified). I am not sure if there is a post character limit - otherwise I can also post them in replies. It’s important that any checks would make it clear which of the items are being confirmed. I can edit the post to state the current status

I guess replies would be best to separate the issues. We can try with one thread, sort of depending on how many you have left. Let’s try it, though.

1 Like

It definitely does.

That sounds helpful.

I’ll change that in the policy to have a similar wording.

Sounds good to me.

1 Like

Things take time. I am impressed and grateful for the quality assurance being done here.

Calculix has become my favourite solver since Salome-MECA started distributing by singularity images. Partly as stand alone (cgx/ccx) or integrated (ppm, freecad).

As user and definitely not programmer I think that one appropriate step for releases of Calculix and for programs relying on Calculix (like PrePoMax and FreeCAD) is to incorporate a link to the list over known bugs/issues (on github) and advocate that users of calculix keep themselves oriented there.