Run sculpt with Cubit Learn License

Coreform Cubit Version: 2021.11
Platform: Windows 10 Version 20H2 (Build 19042.804)

Hello,

I have just updated to the new version of Cubit 2021.11 and I am using the Cubit Learn License.

When I try to run a sculpt command the command line gives the following error:

ERROR: Sculpt Aborted.  No mesh was generated. Check log file for details
Sculpt log file written: sculpt_parallel.log

The sculpt_parallel.log file is empty, but when I run sculpt_parallel.bat from the command line the last 4 rows indicate that the license could not be found:

Is there a solution for this problem or is sculpt just not working anymore with the Cubit Learn License?

Best regards and many thanks in advance,
Willi

This is a bug that I’m reproducing on my end. We should have a fix ready soon, I’ll notify you when it’s done.

@Willi This bug has been fixed. Please download the “Latest Development Build” from https://coreform.com/products/downloads and try again.

@scot Thanks a lot for fixing this bug so fast! It works now as expected.

Hi again,

I am facing another problem which is more or less related to this topic because it is another licensing issue. Therefore, I decided not to start an new topic.

The problem can be summarized like this:
I am running cubit from a python script which starts with these lines:

import sys
sys.path.append(“C:\Program Files\Coreform Cubit 2021.11\bin”)
import cubit
cubit.init([“cubit”, “-workingdir”, “C:\Temp”])
cubit.cmd(“reset”)
cubit.cmd(“import stl “C:\Temp\FemoralGrowth\TD06new_R\Segmentation\R_head.stl” feature_angle 135.00 merge”)

When I run this code I get the following output:

[2021-12-18 08:11:12.200] [error] Couldn’t initialize RLM! RLM ERROR code: -102 -> Can’t read license data
RLM Diagnostics at 12/18/2021 08:11

RLM version: 14.1BL3
RLM platform: x64_w4
OS version: 10.0

ISV name: csimsoft
Hostname: DESKTOP-17N84NC
User: willi
Working directory: C:\Temp\FemoralGrowth\TD06new_R\s_1.5_r_12_t_2_th_6\Mesh

Environment:

    RLM_CONNECT_TIMEOUT=<not set>
    RLM_EXTENDED_ERROR_MESSAGES=<not set>
    RLM_LICENSE=<not set>
    RLM_NO_UNLIMIT=<not set>
    RLM_PATH_RANDOMIZE=<not set>
    RLM_PROJECT=<not set>
    RLM_QUEUE=<not set>
    RLM_ROAM=<not set>
    RLMSTAT=<not set>
    HTTP_PROXY=<not set>
    HTTP_PROXY_CREDENTIALS=<not set>
    csimsoft_LICENSE=<not set>

RLM hostid list:

    c2924ccf uuid=84411E4C-32DF-11B2-A85C-BBE6892CFAD5 disksn=CA4E2_0E_060C0B_6B_7E24EA_0C_000000_00.1 5405dbf54379 182649f172d7 0a0027000003 182649f172d8 1a2649f172d7 182649f172db ip=192.168.56.1 ip=192.168.0.103

License files:
C:\ProgramData\Reprise\csimsoft

rlm_init() parameters:
1: C:/Program Files/Coreform Cubit 2021.11/bin/licenses;C:/Users/willi/AppData/Local/Coreform/licenses
2:
3:

Local licenses which can be checked out:

Client Cached Licenses (only the highest version # shown):

    <none>


In license file C:\ProgramData\Reprise\csimsoft
      (no server)

    <none>

Roaming Licenses:

    <none>

QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
HTTP ERROR: 0 CURL CODE: 77
Login error: Could not establish a connection to license server. Coreform Cubit will stop working in 3 day(s) unless you reestablish your connection to the internet.
Creating new Workspace session
Initializing LLVM
Loading workspace command plugin
Clearing uspline data

Then the code just does not produce any further output, so I think the imports are not executed.

However, previously I had the Cubit learn license with Cubit 2020.2 and when I run the same code as above and just replace the version “2021.11” to"2020.2" in the second line, it works as expected and I get this output:

[2021-12-18 08:14:56.836] [info] RLM session initialized
QObject::startTimer: Timers can only be used with threads started with QThread
QObject::startTimer: Timers can only be used with threads started with QThread
QObject::startTimer: Timers can only be used with threads started with QThread
QObject::startTimer: Timers can only be used with threads started with QThread
RLM Diagnostics at 12/18/2021 08:14

RLM version: 14.1BL3
RLM platform: x64_w4
OS version: 10.0

ISV name: csimsoft
Hostname: DESKTOP-17N84NC
User: willi
Working directory: C:\Temp\FemoralGrowth\TD06new_R\s_1.5_r_12_t_2_th_6\Mesh

Environment:

    RLM_CONNECT_TIMEOUT=<not set>
    RLM_EXTENDED_ERROR_MESSAGES=<not set>
    RLM_LICENSE=<not set>
    RLM_NO_UNLIMIT=<not set>
    RLM_PATH_RANDOMIZE=<not set>
    RLM_PROJECT=<not set>
    RLM_QUEUE=<not set>
    RLM_ROAM=<not set>
    RLMSTAT=<not set>
    HTTP_PROXY=<not set>
    HTTP_PROXY_CREDENTIALS=<not set>
    csimsoft_LICENSE=<not set>

RLM hostid list:

    c2924ccf uuid=84411E4C-32DF-11B2-A85C-BBE6892CFAD5 disksn=CA4E2_0E_060C0B_6B_7E24EA_0C_000000_00.1 5405dbf54379 182649f172d7 0a0027000003 182649f172d8 1a2649f172d7 182649f172db ip=192.168.56.1 ip=192.168.0.103

License files:
C:\ProgramData\Reprise\csimsoft
C:/Program Files/Coreform Cubit 2020.2/bin/licenses\cubit-learn.lic

rlm_init() parameters:
1: C:/Program Files/Coreform Cubit 2020.2/bin/licenses
2:
3:

Local licenses which can be checked out:

Client Cached Licenses (only the highest version # shown):

    <none>


In license file C:\ProgramData\Reprise\csimsoft
      (no server)

    <none>

In license file C:/Program Files/Coreform Cubit 2020.2/bin/licenses\cubit-learn.lic
      (customer "cubitlearn1" server at: 443@ls75.rlmcloud.com)

    <none>

Roaming Licenses:

    <none>


               CCCCC    UU   UU   BBBBBB    IIII   TTTTTT
              CC   CC   UU   UU   BB   BB    II      TT
              CC        UU   UU   BB   BB    II      TT
              CC        UU   UU   BBBBBB     II      TT
              CC        UU   UU   BB   BB    II      TT
              CC   CC   UU   UU   BB   BB    II      TT
               CCCCC     UUUUU    BBBBBB    IIII     TT  tm

                        MESH GENERATION TOOLKIT
                                  FOR
               PRE-PROCESSING OF FINITE ELEMENT ANALYSES

             User community mailing list: cubit@sandia.gov
     Report bugs and enhancement requests to cubit-help@sandia.gov


                     Cubit Version 2020.2 64-Bit Build cc80dc5
                           VTK Version 8.2.0
                          ACIS Version 28.0.2.0
                        Exodus API Version 8.03
                        MeshGems Version 2.11-5
                 Copyright 2001-2008 Sandia Corporation
          Revised Fri Jan 29 18:34:45 2021 +0000
                    Running 12/18/2021 08:14:56 AM

             CUBIT includes MeshGems by Distene S.A.S.
              CUBIT includes ACIS software by Spatial Inc.
              CUBIT includes LP Solve by Michel Berkelaar.
                   CUBIT includes VTK by Kitware Inc.
       CUBIT includes Exodus II, based on netCDF by UCAR/Unidata.
        CUBIT includes VERDICT, by Sandia National Laboratories.
      CUBIT includes MESQUITE, by Argonne National Laboratory and
                     Sandia National Laboratories.

Machine type is Microsoft Windows 10.0 (Build 19041)
Machine name is DESKTOP-17N84NC
Working Directory: C:\Temp\

Commands will be journaled to ‘C:\Temp\cubit04.jou’
Journaled Command: reset

Reading facets…
16284 facets read.
Building facet-based geometry from 16284 facets…
Body successfully created.
Number of new vertices = 20
Number of new curves = 21
Number of new surfaces = 7
Number of new shells = 1
Number of new volumes = 1
Number of new bodies = 1
Geometry engine set to: Facet Geometry Engine version 10.0.0
Journaled Command: import stl “C:\Temp\FemoralGrowth\TD06new_R\Segmentation\R_head.stl” feature_angle 135 merge

The error output is quite clear. I have tried to find a solution for this problem myself, but I was not successful.

I really appreciate your helpful replies. Thank you in advance!
Best regards,
Willi

Hi Willi,

I’m looking into this. We have some people out on holiday until after the New Year. I apologize for the delay.

Karl

We have had some issues with Sculpt and Cubit Learn come up recently and I’ve made some fixes. The first thing to try is to get the Latest Development Build from https://coreform.com/products/downloads. I’m pretty sure I already fixed this issue since the time you updated last.

Hi @scot
Thanks for your reply. I have tried the latest development build but I am still facing the same problem.
I do not think that this is a problem with Sculpt, it is more a general licensing problem of Cubit when running from a python script.

What I have done:
I have uninstalled the previous version of Cubit 2021.11 and installed the latest development build. When opening the newly installed version I did not have to sign in again. So probably, the licensing was not deleted by unistalling the program. Do I have to manually force a re-initialization?

However, when running the script from above the output slightly changed at rlm_init() parameters, see below.

I really appreciate your valuable help!
Best,
Willi

[2022-01-05 09:37:55.672] [error] Couldn't initialize RLM! RLM ERROR code: -102 -> Can't read license data
RLM Diagnostics at 01/05/2022 09:37

    RLM version: 14.1BL3
    RLM platform: x64_w4
    OS version: 10.0

    ISV name: csimsoft
    Hostname: DESKTOP-17N84NC
    User: willi
    Working directory: c:\Users\willi\Desktop

Environment:

        RLM_CONNECT_TIMEOUT=<not set>
        RLM_EXTENDED_ERROR_MESSAGES=<not set>
        RLM_LICENSE=<not set>
        RLM_NO_UNLIMIT=<not set>
        RLM_PATH_RANDOMIZE=<not set>
        RLM_PROJECT=<not set>
        RLM_QUEUE=<not set>
        RLM_ROAM=<not set>
        RLMSTAT=<not set>
        HTTP_PROXY=<not set>
        HTTP_PROXY_CREDENTIALS=<not set>
        csimsoft_LICENSE=<not set>

    RLM hostid list:

        c2924ccf uuid=84411E4C-32DF-11B2-A85C-BBE6892CFAD5 disksn=CA4E2_0E_060C0B_6B_7E24EA_0C_000000_00.1 5405dbf54379 182649f172d7 182649f172d8 1a2649f172d7 182649f172db ip=192.168.0.100 ip=77.80.70.97

License files:
        C:\ProgramData\Reprise\csimsoft

rlm_init() parameters:
        1: C:/Program Files/Coreform Cubit 2021.11/bin/licenses;C:/Users/willi/AppData/Local/Coreform/licenses
        2: <empty>
        3: <empty>

Local licenses which can be checked out:

    Client Cached Licenses (only the highest version # shown):

        <none>


    In license file C:\ProgramData\Reprise\csimsoft
          (no server)

        <none>

    Roaming Licenses:

        <none>

QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
HTTP ERROR: 0 CURL CODE: 77
Creating new Workspace session
Initializing LLVM
Loading workspace command plugin
Clearing uspline data

What’s your current working directory when you run the script? What happens if you change your working directory to C:/Program Files/Coreform Cubit 2021.11/bin?

Hi,
the current working directory was a folder where my user has all privileges.
I have now run the python script within the folder you mentioned, here is the output. After this it just stops.

[2022-01-05 15:24:33.556] [error] Couldn’t initialize RLM! RLM ERROR code: -102 -> Can’t read license data
RLM Diagnostics at 01/05/2022 15:24

RLM version: 14.1BL3
RLM platform: x64_w4
OS version: 10.0

ISV name: csimsoft
Hostname: DESKTOP-17N84NC
User: willi
Working directory: C:\Program Files\Coreform Cubit 2021.11\bin

Environment:

    RLM_CONNECT_TIMEOUT=<not set>
    RLM_EXTENDED_ERROR_MESSAGES=<not set>
    RLM_LICENSE=<not set>
    RLM_NO_UNLIMIT=<not set>
    RLM_PATH_RANDOMIZE=<not set>
    RLM_PROJECT=<not set>
    RLM_QUEUE=<not set>
    RLM_ROAM=<not set>
    RLMSTAT=<not set>
    HTTP_PROXY=<not set>
    HTTP_PROXY_CREDENTIALS=<not set>
    csimsoft_LICENSE=<not set>

RLM hostid list:

    c2924ccf uuid=84411E4C-32DF-11B2-A85C-BBE6892CFAD5 disksn=CA4E2_0E_060C0B_6B_7E24EA_0C_000000_00.1 5405dbf54379 182649f172d7 182649f172d8 1a2649f172d7 182649f172db ip=192.168.0.100 ip=77.80.70.97

License files:
C:\ProgramData\Reprise\csimsoft

rlm_init() parameters:
1: c:/Program Files/Coreform Cubit 2021.11/bin/licenses;C:/Users/willi/AppData/Local/Coreform/licenses
2:
3:

Local licenses which can be checked out:

Client Cached Licenses (only the highest version # shown):

    <none>


In license file C:\ProgramData\Reprise\csimsoft
      (no server)

    <none>

Roaming Licenses:

    <none>

QCoreApplication::applicationDirPath: Please instantiate the QApplication object first
HTTP ERROR: 0 CURL CODE: 77
Creating new Workspace session
Initializing LLVM
Loading workspace command plugin
Clearing uspline data

OK, I’ve reproduced the issue and I’ve got a fix for it. It should be available for download tomorrow.

The fix is up at https://coreform.com/products/downloads. Let me know how it goes.

Hi @scot
I have tried the latest development build on 2 computers and I am still facing the same problem.
The python-command cubit.init(["cubit","-nojournal"]) is producing the RLM-error and subsequent commands do not work as expected (import is not actually loading the file). Still, when I change the version in the import statement to 2020.2 everything works.


Best regards,
Willi

Hi again,
I now got it working somehow. The “Could’nt initialie RLM” - error is still visible but the subsequent lines of code work as expected.
I don’t know if it helps, but here is what I have done:
I uninstalled all versions of Coreform Cubit (i had 2020.2 and 2021.11) from my computer, then additionally deleted all Coreform folders from “C:\Users\willi\AppData” and reinstalled the latest development build.
I really want to thank you for your help, Scot! I appreciate that you take these request seriously!
Best regards,
Willi

Glad to hear it. The RLM output is because we no longer use RLM for the Cubit Learn login, it’s only used for commercial licenses.