Tag Archives: matlab
Can’t see licenses after payment
I made an order for licenses and have paid by card. And today is 2-nd day already but I don’t have nor licenses nor even an email about my order.
I just can’t believe that orders are being processed manually in Mathworks.
Is this normal?I made an order for licenses and have paid by card. And today is 2-nd day already but I don’t have nor licenses nor even an email about my order.
I just can’t believe that orders are being processed manually in Mathworks.
Is this normal? I made an order for licenses and have paid by card. And today is 2-nd day already but I don’t have nor licenses nor even an email about my order.
I just can’t believe that orders are being processed manually in Mathworks.
Is this normal? license MATLAB Answers — New Questions
Unable to find the Specialized Power Systems group in simscape electrical in newer version r2025b
Is it relocated to other sub folder? I was particularly looking for universal bridge for simulating converters but I cant find the specific folder.Is it relocated to other sub folder? I was particularly looking for universal bridge for simulating converters but I cant find the specific folder. Is it relocated to other sub folder? I was particularly looking for universal bridge for simulating converters but I cant find the specific folder. simulink, simscape, simpowersystems MATLAB Answers — New Questions
Is it possible to preview the contents of MAT files in R2025a?
I can’t seem to be able to preview the contents of a MAT file in the Current folder pane in R2025a. Is it ineed one of the "advanced features" of this release?I can’t seem to be able to preview the contents of a MAT file in the Current folder pane in R2025a. Is it ineed one of the "advanced features" of this release? I can’t seem to be able to preview the contents of a MAT file in the Current folder pane in R2025a. Is it ineed one of the "advanced features" of this release? mat file, preview MATLAB Answers — New Questions
Matlab Segfaults with OMP Error
Hi Everyone,
we are a research group, using multiple Matlab versions on some linux systems. After a recent updates, across different Matlab versions, all of them crash whenever matlab decides to multithread a computation. Simple example is a QR decomp via qr(rand(100,100)).
The resulting error is:
OMP: Error #29: Unable to set OMP thread stack size to 525440:
OMP: System error #22: Invalid argument
OMP: Hint Try increasing OMP_STACKSIZE or the shell stack limit.
Segmentation fault (core dumped) ./matlab
and the stack trace is:
OMP: Error #29: Unable to set OMP thread stack size to 525440 bytes:
OMP: System error #22: Invalid argument
OMP: Hint Try increasing OMP_STACKSIZE or the shell stack limit.
MATLAB Log File: /home/$username/matlab_crash_dump.1602-1
————————————————
MATLAB Log File
————————————————
——————————————————————————–
abort() detected at 2025-10-18 04:20:05 +0200
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
GNU C Library : 2.42 stable
Graphics Driver : Unknown software
Graphics card 1 : 0x10de ( 0x10de ) 0x2204 Version 580.95.5.0 (0-0-0)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : 1971833
MATLAB Root : /usr/local/MATLAB/R2021b
MATLAB Version : 9.11.0.2179507 (R2021b) Update 5
OpenGL : software
Operating System : Linux 6.12.53-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 15 Oct 2025 11:05:48 +0000 x86_64
Process ID : 1602
Processor ID : x86 Family 143 Model 113 Stepping 0, AuthenticAMD
Session Key : dbcb8a74-44ab-46a5-96da-511734bf8746
Static TLS mitigation : Enabled: Full
Window System : The X.Org Foundation (12101015), display redqueen:11.0
Fault Count: 1
Abnormal termination:
abort()
Current Thread: ‘MCR 0 interpret’ id 139753454302912
Register State (from fault):
RAX = 0000000000000000 RBX = 000000000000068b
RCX = 00007f1b2429894c RDX = 0000000000000006
RSP = 00007f1ae2fe25e0 RBP = 00007f1ae2fe2620
RSI = 000000000000068b RDI = 0000000000000642
R8 = 0000000000000018 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 0000000000000246
R12 = 00007f1b033d3a78 R13 = 00007f19ae5b6400
R14 = 0000000000000006 R15 = 00007f1b033d3988
RIP = 00007f1b2429894c EFL = 0000000000000246
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f1b2429894c /usr/lib/libc.so.6+00624972
[ 1] 0x00007f1b2423e410 /usr/lib/libc.so.6+00254992 gsignal+00000032
[ 2] 0x00007f1b2422557a /usr/lib/libc.so.6+00152954 abort+00000038
[ 3] 0x00007f1b030bd7f7 /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00776183
[ 4] 0x00007f1b030a7abb /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00686779
[ 5] 0x00007f1b031314dc /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+01250524
[ 6] 0x00007f1b030b15fa /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00726522
[ 7] 0x00007f1b030b7efd /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00753405
[ 8] 0x00007f1b030b562f /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00742959 __kmp_fork_call+00004335
[ 9] 0x00007f1b03078533 /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00492851 __kmpc_fork_call+00000387
[ 10] 0x00007f0ddf55f56b /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+05633387 mkl_lapack_dgeqrf_pfnr+00000587
[ 11] 0x00007f0ddf7e5b10 /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+08280848 mkl_lapack_xdgeqrf+00000576
[ 12] 0x00007f0ddf5484a4 /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+05538980 mkl_lapack_dgeqrf+00005428
[ 13] 0x00007f0ddf399a6c /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+03775084 DGEQRF+00000220
[ 14] 0x00007f1b04e75705 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmathlinalg.so+02578181
[ 15] 0x00007f1b04e6e8bf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmathlinalg.so+02549951 _Z15mathlinalgQRFcniPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPKS0_+00000175
[ 16] 0x00007f18f29f66f0 /usr/local/MATLAB/R2021b/bin/glnxa64/builtins/mathlinalg/mwlibmwmathlinalg_builtinimpl.so+00337648
[ 17] 0x00007f1b1b65e8fa /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbuiltin.so+00076026 _ZNK9MathWorks7builtin10BuiltinFcn6invokeEiPP11mxArray_tagiS4_NS1_18VariantsToConsiderE+00000106
[ 18] 0x00007f1b1a323b4e /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+00764750
[ 19] 0x00007f1b1a326938 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+00776504
[ 20] 0x00007f1b07e080ee /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12615918
[ 21] 0x00007f1b07f58c91 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13995153
[ 22] 0x00007f1b07f58f86 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13995910
[ 23] 0x00007f1b07ee3f3d /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13516605
[ 24] 0x00007f1b07eec030 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13549616
[ 25] 0x00007f1b079abdc0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08043968
[ 26] 0x00007f1b079adde4 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08052196
[ 27] 0x00007f1b079aae71 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08040049
[ 28] 0x00007f1b079a0d25 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+07998757
[ 29] 0x00007f1b079a1211 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08000017
[ 30] 0x00007f1b079aa6ba /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038074
[ 31] 0x00007f1b079aa7b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038326
[ 32] 0x00007f1b07ad8e1b /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09276955
[ 33] 0x00007f1b07adbd40 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09289024
[ 34] 0x00007f1b07d0b8b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11581622
[ 35] 0x00007f1b07df5da2 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12541346
[ 36] 0x00007f1b07df6264 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12542564
[ 37] 0x00007f1b07df637d /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12542845
[ 38] 0x00007f1b1a396df0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+01236464 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000208
[ 39] 0x00007f1b1a398a02 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+01243650 _ZN8Mfh_file19dispatch_with_reuseEiPP11mxArray_tagiS2_+00000306
[ 40] 0x00007f1ae1ee41ca /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+05128650
[ 41] 0x00007f1ae1e640cf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04604111
[ 42] 0x00007f1ae1e668ec /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04614380
[ 43] 0x00007f1ae1e6cc49 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04639817
[ 44] 0x00007f1ae1e650d5 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04608213
[ 45] 0x00007f1ae1fb528f /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+05984911
[ 46] 0x00007f1ae1fb1872 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+05970034
[ 47] 0x00007f1b1a3069da /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+00645594 _ZN18Mfh_MATLAB_fn_impl19dispatch_with_reuseEiPP11mxArray_tagiS2_+00000266
[ 48] 0x00007f1b07f7cd9e /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14142878
[ 49] 0x00007f1b07f81125 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14160165
[ 50] 0x00007f1b07f7cef5 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14143221
[ 51] 0x00007f1b07f8687f /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14182527
[ 52] 0x00007f1b07e097d8 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12621784
[ 53] 0x00007f1b07f548eb /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13977835
[ 54] 0x00007f1b07ee3f3d /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13516605
[ 55] 0x00007f1b07ee5eb0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13524656
[ 56] 0x00007f1b079abdc0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08043968
[ 57] 0x00007f1b079adde4 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08052196
[ 58] 0x00007f1b079aae71 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08040049
[ 59] 0x00007f1b079a0d25 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+07998757
[ 60] 0x00007f1b079a1211 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08000017
[ 61] 0x00007f1b079aa6ba /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038074
[ 62] 0x00007f1b079aa7b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038326
[ 63] 0x00007f1b07ad8e1b /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09276955
[ 64] 0x00007f1b07adbd40 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09289024
[ 65] 0x00007f1b07d0b8b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11581622
[ 66] 0x00007f1b07cb784c /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11237452
[ 67] 0x00007f1b07cb850c /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11240716
[ 68] 0x00007f1b07d59a64 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11901540
[ 69] 0x00007f1b07d59c29 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11901993
[ 70] 0x00007f1b1bb53489 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00595081
[ 71] 0x00007f1b1bbb3762 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00989026 _ZN3iqm14UserEvalPlugin7executeEP15inWorkSpace_tag+00000642
[ 72] 0x00007f1a91b6f31c /usr/local/MATLAB/R2021b/bin/glnxa64/libnativejmi.so+01008412 _ZN9nativejmi17JmiUserEvalPlugin7executeEP15inWorkSpace_tag+00000028
[ 73] 0x00007f1b1bb8ebdf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00838623
[ 74] 0x00007f1b1bb9a846 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00886854
[ 75] 0x00007f1b1bb5e516 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00640278
[ 76] 0x00007f1b1c9ccc02 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00302082
[ 77] 0x00007f1b1c9cd543 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00304451
[ 78] 0x00007f1b1c9d37f2 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00329714 _Z22mnGetCommandLineBufferbRbN7mwboost8optionalIKP15inWorkSpace_tagEEbRKNS0_9function2IN6mlutil14cmddistributor17inExecutionStatusERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEES4_EE+00000274
[ 79] 0x00007f1b1c9d3a92 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00330386 _Z8mnParserv+00000482
[ 80] 0x00007f1b1b774307 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00946951
[ 81] 0x00007f1b256b3bd0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmvm.so+02833360 _ZNK7mwboost9function0IvEclEv+00000032
[ 82] 0x00007f1b256bba10 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmvm.so+02865680 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000048
[ 83] 0x00007f1b256bbab8 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmvm.so+02865848 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 84] 0x00007f1b1bbaf14b /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00971083 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000091
[ 85] 0x00007f1b1b771f65 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00937829
[ 86] 0x00007f1b1bb8ebdf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00838623
[ 87] 0x00007f1b1bb5c3cc /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00631756
[ 88] 0x00007f1b1bb5ce60 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00634464
[ 89] 0x00007f1b1b75c30e /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00848654
[ 90] 0x00007f1b1b75c92c /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00850220
[ 91] 0x00007f1b1b75cba2 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00850850
[ 92] 0x00007f1b2360f8a7 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwboost_thread.so.1.72.0+00063655
[ 93] 0x00007f1b242969cb /usr/lib/libc.so.6+00616907
[ 94] 0x00007f1b2431aa0c /usr/lib/libc.so.6+01157644
One likely culprit is recent updates to glibc that don’t play well with Matlab.
Currently, this really breakes any usage of Matlab for our group. Maybe a recompile of the libiomp5.so might already fix it?
Looks like a Matlab bug. New installation did not fix the problem.Hi Everyone,
we are a research group, using multiple Matlab versions on some linux systems. After a recent updates, across different Matlab versions, all of them crash whenever matlab decides to multithread a computation. Simple example is a QR decomp via qr(rand(100,100)).
The resulting error is:
OMP: Error #29: Unable to set OMP thread stack size to 525440:
OMP: System error #22: Invalid argument
OMP: Hint Try increasing OMP_STACKSIZE or the shell stack limit.
Segmentation fault (core dumped) ./matlab
and the stack trace is:
OMP: Error #29: Unable to set OMP thread stack size to 525440 bytes:
OMP: System error #22: Invalid argument
OMP: Hint Try increasing OMP_STACKSIZE or the shell stack limit.
MATLAB Log File: /home/$username/matlab_crash_dump.1602-1
————————————————
MATLAB Log File
————————————————
——————————————————————————–
abort() detected at 2025-10-18 04:20:05 +0200
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
GNU C Library : 2.42 stable
Graphics Driver : Unknown software
Graphics card 1 : 0x10de ( 0x10de ) 0x2204 Version 580.95.5.0 (0-0-0)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : 1971833
MATLAB Root : /usr/local/MATLAB/R2021b
MATLAB Version : 9.11.0.2179507 (R2021b) Update 5
OpenGL : software
Operating System : Linux 6.12.53-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 15 Oct 2025 11:05:48 +0000 x86_64
Process ID : 1602
Processor ID : x86 Family 143 Model 113 Stepping 0, AuthenticAMD
Session Key : dbcb8a74-44ab-46a5-96da-511734bf8746
Static TLS mitigation : Enabled: Full
Window System : The X.Org Foundation (12101015), display redqueen:11.0
Fault Count: 1
Abnormal termination:
abort()
Current Thread: ‘MCR 0 interpret’ id 139753454302912
Register State (from fault):
RAX = 0000000000000000 RBX = 000000000000068b
RCX = 00007f1b2429894c RDX = 0000000000000006
RSP = 00007f1ae2fe25e0 RBP = 00007f1ae2fe2620
RSI = 000000000000068b RDI = 0000000000000642
R8 = 0000000000000018 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 0000000000000246
R12 = 00007f1b033d3a78 R13 = 00007f19ae5b6400
R14 = 0000000000000006 R15 = 00007f1b033d3988
RIP = 00007f1b2429894c EFL = 0000000000000246
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f1b2429894c /usr/lib/libc.so.6+00624972
[ 1] 0x00007f1b2423e410 /usr/lib/libc.so.6+00254992 gsignal+00000032
[ 2] 0x00007f1b2422557a /usr/lib/libc.so.6+00152954 abort+00000038
[ 3] 0x00007f1b030bd7f7 /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00776183
[ 4] 0x00007f1b030a7abb /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00686779
[ 5] 0x00007f1b031314dc /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+01250524
[ 6] 0x00007f1b030b15fa /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00726522
[ 7] 0x00007f1b030b7efd /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00753405
[ 8] 0x00007f1b030b562f /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00742959 __kmp_fork_call+00004335
[ 9] 0x00007f1b03078533 /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00492851 __kmpc_fork_call+00000387
[ 10] 0x00007f0ddf55f56b /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+05633387 mkl_lapack_dgeqrf_pfnr+00000587
[ 11] 0x00007f0ddf7e5b10 /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+08280848 mkl_lapack_xdgeqrf+00000576
[ 12] 0x00007f0ddf5484a4 /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+05538980 mkl_lapack_dgeqrf+00005428
[ 13] 0x00007f0ddf399a6c /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+03775084 DGEQRF+00000220
[ 14] 0x00007f1b04e75705 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmathlinalg.so+02578181
[ 15] 0x00007f1b04e6e8bf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmathlinalg.so+02549951 _Z15mathlinalgQRFcniPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPKS0_+00000175
[ 16] 0x00007f18f29f66f0 /usr/local/MATLAB/R2021b/bin/glnxa64/builtins/mathlinalg/mwlibmwmathlinalg_builtinimpl.so+00337648
[ 17] 0x00007f1b1b65e8fa /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbuiltin.so+00076026 _ZNK9MathWorks7builtin10BuiltinFcn6invokeEiPP11mxArray_tagiS4_NS1_18VariantsToConsiderE+00000106
[ 18] 0x00007f1b1a323b4e /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+00764750
[ 19] 0x00007f1b1a326938 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+00776504
[ 20] 0x00007f1b07e080ee /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12615918
[ 21] 0x00007f1b07f58c91 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13995153
[ 22] 0x00007f1b07f58f86 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13995910
[ 23] 0x00007f1b07ee3f3d /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13516605
[ 24] 0x00007f1b07eec030 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13549616
[ 25] 0x00007f1b079abdc0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08043968
[ 26] 0x00007f1b079adde4 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08052196
[ 27] 0x00007f1b079aae71 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08040049
[ 28] 0x00007f1b079a0d25 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+07998757
[ 29] 0x00007f1b079a1211 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08000017
[ 30] 0x00007f1b079aa6ba /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038074
[ 31] 0x00007f1b079aa7b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038326
[ 32] 0x00007f1b07ad8e1b /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09276955
[ 33] 0x00007f1b07adbd40 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09289024
[ 34] 0x00007f1b07d0b8b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11581622
[ 35] 0x00007f1b07df5da2 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12541346
[ 36] 0x00007f1b07df6264 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12542564
[ 37] 0x00007f1b07df637d /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12542845
[ 38] 0x00007f1b1a396df0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+01236464 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000208
[ 39] 0x00007f1b1a398a02 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+01243650 _ZN8Mfh_file19dispatch_with_reuseEiPP11mxArray_tagiS2_+00000306
[ 40] 0x00007f1ae1ee41ca /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+05128650
[ 41] 0x00007f1ae1e640cf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04604111
[ 42] 0x00007f1ae1e668ec /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04614380
[ 43] 0x00007f1ae1e6cc49 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04639817
[ 44] 0x00007f1ae1e650d5 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04608213
[ 45] 0x00007f1ae1fb528f /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+05984911
[ 46] 0x00007f1ae1fb1872 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+05970034
[ 47] 0x00007f1b1a3069da /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+00645594 _ZN18Mfh_MATLAB_fn_impl19dispatch_with_reuseEiPP11mxArray_tagiS2_+00000266
[ 48] 0x00007f1b07f7cd9e /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14142878
[ 49] 0x00007f1b07f81125 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14160165
[ 50] 0x00007f1b07f7cef5 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14143221
[ 51] 0x00007f1b07f8687f /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14182527
[ 52] 0x00007f1b07e097d8 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12621784
[ 53] 0x00007f1b07f548eb /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13977835
[ 54] 0x00007f1b07ee3f3d /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13516605
[ 55] 0x00007f1b07ee5eb0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13524656
[ 56] 0x00007f1b079abdc0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08043968
[ 57] 0x00007f1b079adde4 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08052196
[ 58] 0x00007f1b079aae71 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08040049
[ 59] 0x00007f1b079a0d25 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+07998757
[ 60] 0x00007f1b079a1211 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08000017
[ 61] 0x00007f1b079aa6ba /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038074
[ 62] 0x00007f1b079aa7b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038326
[ 63] 0x00007f1b07ad8e1b /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09276955
[ 64] 0x00007f1b07adbd40 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09289024
[ 65] 0x00007f1b07d0b8b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11581622
[ 66] 0x00007f1b07cb784c /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11237452
[ 67] 0x00007f1b07cb850c /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11240716
[ 68] 0x00007f1b07d59a64 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11901540
[ 69] 0x00007f1b07d59c29 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11901993
[ 70] 0x00007f1b1bb53489 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00595081
[ 71] 0x00007f1b1bbb3762 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00989026 _ZN3iqm14UserEvalPlugin7executeEP15inWorkSpace_tag+00000642
[ 72] 0x00007f1a91b6f31c /usr/local/MATLAB/R2021b/bin/glnxa64/libnativejmi.so+01008412 _ZN9nativejmi17JmiUserEvalPlugin7executeEP15inWorkSpace_tag+00000028
[ 73] 0x00007f1b1bb8ebdf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00838623
[ 74] 0x00007f1b1bb9a846 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00886854
[ 75] 0x00007f1b1bb5e516 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00640278
[ 76] 0x00007f1b1c9ccc02 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00302082
[ 77] 0x00007f1b1c9cd543 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00304451
[ 78] 0x00007f1b1c9d37f2 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00329714 _Z22mnGetCommandLineBufferbRbN7mwboost8optionalIKP15inWorkSpace_tagEEbRKNS0_9function2IN6mlutil14cmddistributor17inExecutionStatusERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEES4_EE+00000274
[ 79] 0x00007f1b1c9d3a92 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00330386 _Z8mnParserv+00000482
[ 80] 0x00007f1b1b774307 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00946951
[ 81] 0x00007f1b256b3bd0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmvm.so+02833360 _ZNK7mwboost9function0IvEclEv+00000032
[ 82] 0x00007f1b256bba10 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmvm.so+02865680 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000048
[ 83] 0x00007f1b256bbab8 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmvm.so+02865848 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 84] 0x00007f1b1bbaf14b /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00971083 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000091
[ 85] 0x00007f1b1b771f65 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00937829
[ 86] 0x00007f1b1bb8ebdf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00838623
[ 87] 0x00007f1b1bb5c3cc /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00631756
[ 88] 0x00007f1b1bb5ce60 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00634464
[ 89] 0x00007f1b1b75c30e /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00848654
[ 90] 0x00007f1b1b75c92c /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00850220
[ 91] 0x00007f1b1b75cba2 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00850850
[ 92] 0x00007f1b2360f8a7 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwboost_thread.so.1.72.0+00063655
[ 93] 0x00007f1b242969cb /usr/lib/libc.so.6+00616907
[ 94] 0x00007f1b2431aa0c /usr/lib/libc.so.6+01157644
One likely culprit is recent updates to glibc that don’t play well with Matlab.
Currently, this really breakes any usage of Matlab for our group. Maybe a recompile of the libiomp5.so might already fix it?
Looks like a Matlab bug. New installation did not fix the problem. Hi Everyone,
we are a research group, using multiple Matlab versions on some linux systems. After a recent updates, across different Matlab versions, all of them crash whenever matlab decides to multithread a computation. Simple example is a QR decomp via qr(rand(100,100)).
The resulting error is:
OMP: Error #29: Unable to set OMP thread stack size to 525440:
OMP: System error #22: Invalid argument
OMP: Hint Try increasing OMP_STACKSIZE or the shell stack limit.
Segmentation fault (core dumped) ./matlab
and the stack trace is:
OMP: Error #29: Unable to set OMP thread stack size to 525440 bytes:
OMP: System error #22: Invalid argument
OMP: Hint Try increasing OMP_STACKSIZE or the shell stack limit.
MATLAB Log File: /home/$username/matlab_crash_dump.1602-1
————————————————
MATLAB Log File
————————————————
——————————————————————————–
abort() detected at 2025-10-18 04:20:05 +0200
——————————————————————————–
Configuration:
Crash Decoding : Disabled – No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : UTF-8
Deployed : false
GNU C Library : 2.42 stable
Graphics Driver : Unknown software
Graphics card 1 : 0x10de ( 0x10de ) 0x2204 Version 580.95.5.0 (0-0-0)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : glnxa64
MATLAB Entitlement ID : 1971833
MATLAB Root : /usr/local/MATLAB/R2021b
MATLAB Version : 9.11.0.2179507 (R2021b) Update 5
OpenGL : software
Operating System : Linux 6.12.53-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 15 Oct 2025 11:05:48 +0000 x86_64
Process ID : 1602
Processor ID : x86 Family 143 Model 113 Stepping 0, AuthenticAMD
Session Key : dbcb8a74-44ab-46a5-96da-511734bf8746
Static TLS mitigation : Enabled: Full
Window System : The X.Org Foundation (12101015), display redqueen:11.0
Fault Count: 1
Abnormal termination:
abort()
Current Thread: ‘MCR 0 interpret’ id 139753454302912
Register State (from fault):
RAX = 0000000000000000 RBX = 000000000000068b
RCX = 00007f1b2429894c RDX = 0000000000000006
RSP = 00007f1ae2fe25e0 RBP = 00007f1ae2fe2620
RSI = 000000000000068b RDI = 0000000000000642
R8 = 0000000000000018 R9 = 0000000000000000
R10 = 0000000000000000 R11 = 0000000000000246
R12 = 00007f1b033d3a78 R13 = 00007f19ae5b6400
R14 = 0000000000000006 R15 = 00007f1b033d3988
RIP = 00007f1b2429894c EFL = 0000000000000246
CS = 0033 FS = 0000 GS = 0000
Stack Trace (from fault):
[ 0] 0x00007f1b2429894c /usr/lib/libc.so.6+00624972
[ 1] 0x00007f1b2423e410 /usr/lib/libc.so.6+00254992 gsignal+00000032
[ 2] 0x00007f1b2422557a /usr/lib/libc.so.6+00152954 abort+00000038
[ 3] 0x00007f1b030bd7f7 /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00776183
[ 4] 0x00007f1b030a7abb /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00686779
[ 5] 0x00007f1b031314dc /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+01250524
[ 6] 0x00007f1b030b15fa /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00726522
[ 7] 0x00007f1b030b7efd /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00753405
[ 8] 0x00007f1b030b562f /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00742959 __kmp_fork_call+00004335
[ 9] 0x00007f1b03078533 /usr/local/MATLAB/R2021b/bin/glnxa64/../../sys/os/glnxa64/libiomp5.so+00492851 __kmpc_fork_call+00000387
[ 10] 0x00007f0ddf55f56b /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+05633387 mkl_lapack_dgeqrf_pfnr+00000587
[ 11] 0x00007f0ddf7e5b10 /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+08280848 mkl_lapack_xdgeqrf+00000576
[ 12] 0x00007f0ddf5484a4 /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+05538980 mkl_lapack_dgeqrf+00005428
[ 13] 0x00007f0ddf399a6c /usr/local/MATLAB/R2021b/bin/glnxa64/mkl.so+03775084 DGEQRF+00000220
[ 14] 0x00007f1b04e75705 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmathlinalg.so+02578181
[ 15] 0x00007f1b04e6e8bf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmathlinalg.so+02549951 _Z15mathlinalgQRFcniPSt10unique_ptrI11mxArray_tagN6matrix6detail17mxDestroy_deleterEEiPPKS0_+00000175
[ 16] 0x00007f18f29f66f0 /usr/local/MATLAB/R2021b/bin/glnxa64/builtins/mathlinalg/mwlibmwmathlinalg_builtinimpl.so+00337648
[ 17] 0x00007f1b1b65e8fa /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbuiltin.so+00076026 _ZNK9MathWorks7builtin10BuiltinFcn6invokeEiPP11mxArray_tagiS4_NS1_18VariantsToConsiderE+00000106
[ 18] 0x00007f1b1a323b4e /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+00764750
[ 19] 0x00007f1b1a326938 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+00776504
[ 20] 0x00007f1b07e080ee /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12615918
[ 21] 0x00007f1b07f58c91 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13995153
[ 22] 0x00007f1b07f58f86 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13995910
[ 23] 0x00007f1b07ee3f3d /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13516605
[ 24] 0x00007f1b07eec030 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13549616
[ 25] 0x00007f1b079abdc0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08043968
[ 26] 0x00007f1b079adde4 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08052196
[ 27] 0x00007f1b079aae71 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08040049
[ 28] 0x00007f1b079a0d25 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+07998757
[ 29] 0x00007f1b079a1211 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08000017
[ 30] 0x00007f1b079aa6ba /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038074
[ 31] 0x00007f1b079aa7b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038326
[ 32] 0x00007f1b07ad8e1b /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09276955
[ 33] 0x00007f1b07adbd40 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09289024
[ 34] 0x00007f1b07d0b8b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11581622
[ 35] 0x00007f1b07df5da2 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12541346
[ 36] 0x00007f1b07df6264 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12542564
[ 37] 0x00007f1b07df637d /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12542845
[ 38] 0x00007f1b1a396df0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+01236464 _ZN8Mfh_file20dispatch_file_commonEMS_FviPP11mxArray_tagiS2_EiS2_iS2_+00000208
[ 39] 0x00007f1b1a398a02 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+01243650 _ZN8Mfh_file19dispatch_with_reuseEiPP11mxArray_tagiS2_+00000306
[ 40] 0x00007f1ae1ee41ca /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+05128650
[ 41] 0x00007f1ae1e640cf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04604111
[ 42] 0x00007f1ae1e668ec /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04614380
[ 43] 0x00007f1ae1e6cc49 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04639817
[ 44] 0x00007f1ae1e650d5 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+04608213
[ 45] 0x00007f1ae1fb528f /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+05984911
[ 46] 0x00007f1ae1fb1872 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcos_impl.so+05970034
[ 47] 0x00007f1b1a3069da /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_dispatcher.so+00645594 _ZN18Mfh_MATLAB_fn_impl19dispatch_with_reuseEiPP11mxArray_tagiS2_+00000266
[ 48] 0x00007f1b07f7cd9e /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14142878
[ 49] 0x00007f1b07f81125 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14160165
[ 50] 0x00007f1b07f7cef5 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14143221
[ 51] 0x00007f1b07f8687f /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+14182527
[ 52] 0x00007f1b07e097d8 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+12621784
[ 53] 0x00007f1b07f548eb /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13977835
[ 54] 0x00007f1b07ee3f3d /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13516605
[ 55] 0x00007f1b07ee5eb0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+13524656
[ 56] 0x00007f1b079abdc0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08043968
[ 57] 0x00007f1b079adde4 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08052196
[ 58] 0x00007f1b079aae71 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08040049
[ 59] 0x00007f1b079a0d25 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+07998757
[ 60] 0x00007f1b079a1211 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08000017
[ 61] 0x00007f1b079aa6ba /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038074
[ 62] 0x00007f1b079aa7b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+08038326
[ 63] 0x00007f1b07ad8e1b /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09276955
[ 64] 0x00007f1b07adbd40 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+09289024
[ 65] 0x00007f1b07d0b8b6 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11581622
[ 66] 0x00007f1b07cb784c /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11237452
[ 67] 0x00007f1b07cb850c /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11240716
[ 68] 0x00007f1b07d59a64 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11901540
[ 69] 0x00007f1b07d59c29 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwm_lxe.so+11901993
[ 70] 0x00007f1b1bb53489 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00595081
[ 71] 0x00007f1b1bbb3762 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00989026 _ZN3iqm14UserEvalPlugin7executeEP15inWorkSpace_tag+00000642
[ 72] 0x00007f1a91b6f31c /usr/local/MATLAB/R2021b/bin/glnxa64/libnativejmi.so+01008412 _ZN9nativejmi17JmiUserEvalPlugin7executeEP15inWorkSpace_tag+00000028
[ 73] 0x00007f1b1bb8ebdf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00838623
[ 74] 0x00007f1b1bb9a846 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00886854
[ 75] 0x00007f1b1bb5e516 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00640278
[ 76] 0x00007f1b1c9ccc02 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00302082
[ 77] 0x00007f1b1c9cd543 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00304451
[ 78] 0x00007f1b1c9d37f2 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00329714 _Z22mnGetCommandLineBufferbRbN7mwboost8optionalIKP15inWorkSpace_tagEEbRKNS0_9function2IN6mlutil14cmddistributor17inExecutionStatusERKNSt7__cxx1112basic_stringIDsSt11char_traitsIDsESaIDsEEES4_EE+00000274
[ 79] 0x00007f1b1c9d3a92 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwbridge.so+00330386 _Z8mnParserv+00000482
[ 80] 0x00007f1b1b774307 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00946951
[ 81] 0x00007f1b256b3bd0 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmvm.so+02833360 _ZNK7mwboost9function0IvEclEv+00000032
[ 82] 0x00007f1b256bba10 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmvm.so+02865680 _ZN14cmddistributor15PackagedTaskIIP10invokeFuncIN7mwboost8functionIFvvEEEEENS2_10shared_ptrINS2_13unique_futureIDTclfp_EEEEEERKT_+00000048
[ 83] 0x00007f1b256bbab8 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmvm.so+02865848 _ZNSt17_Function_handlerIFN7mwboost3anyEvEZN14cmddistributor15PackagedTaskIIP10createFuncINS0_8functionIFvvEEEEESt8functionIS2_ET_EUlvE_E9_M_invokeERKSt9_Any_data+00000024
[ 84] 0x00007f1b1bbaf14b /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00971083 _ZN3iqm18PackagedTaskPlugin7executeEP15inWorkSpace_tag+00000091
[ 85] 0x00007f1b1b771f65 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00937829
[ 86] 0x00007f1b1bb8ebdf /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00838623
[ 87] 0x00007f1b1bb5c3cc /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00631756
[ 88] 0x00007f1b1bb5ce60 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwiqm.so+00634464
[ 89] 0x00007f1b1b75c30e /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00848654
[ 90] 0x00007f1b1b75c92c /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00850220
[ 91] 0x00007f1b1b75cba2 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwmcr.so+00850850
[ 92] 0x00007f1b2360f8a7 /usr/local/MATLAB/R2021b/bin/glnxa64/libmwboost_thread.so.1.72.0+00063655
[ 93] 0x00007f1b242969cb /usr/lib/libc.so.6+00616907
[ 94] 0x00007f1b2431aa0c /usr/lib/libc.so.6+01157644
One likely culprit is recent updates to glibc that don’t play well with Matlab.
Currently, this really breakes any usage of Matlab for our group. Maybe a recompile of the libiomp5.so might already fix it?
Looks like a Matlab bug. New installation did not fix the problem. openmp, linux, bug, matlab, matrix MATLAB Answers — New Questions
How to Run an Indeterminate Number of Simulations with parsim?
I want to use parsim in Simulink to run a variable (non-fixed) number of simulations, where the number of iterations may depend on the results of each simulation. Normally, parsim requires you to specify all simulation input objects ahead of time, but I need a way to dynamically trigger additional simulations based on logic within the simulation itself.
Is there a way to achieve this kind of adaptive or recursive simulation workflow using parsim?I want to use parsim in Simulink to run a variable (non-fixed) number of simulations, where the number of iterations may depend on the results of each simulation. Normally, parsim requires you to specify all simulation input objects ahead of time, but I need a way to dynamically trigger additional simulations based on logic within the simulation itself.
Is there a way to achieve this kind of adaptive or recursive simulation workflow using parsim? I want to use parsim in Simulink to run a variable (non-fixed) number of simulations, where the number of iterations may depend on the results of each simulation. Normally, parsim requires you to specify all simulation input objects ahead of time, but I need a way to dynamically trigger additional simulations based on logic within the simulation itself.
Is there a way to achieve this kind of adaptive or recursive simulation workflow using parsim? MATLAB Answers — New Questions
simulate the maximum power point in a photovoltaic system using the Sand Cat Optimization (SCSO) algorithm in Simulink.
Hello everyone, I want to simulate the maximum power point in a photovoltaic system using the Sand Cat Optimization (SCSO) algorithm in Simulink. Can anyone help or has worked on this?Hello everyone, I want to simulate the maximum power point in a photovoltaic system using the Sand Cat Optimization (SCSO) algorithm in Simulink. Can anyone help or has worked on this? Hello everyone, I want to simulate the maximum power point in a photovoltaic system using the Sand Cat Optimization (SCSO) algorithm in Simulink. Can anyone help or has worked on this? mppt, scso MATLAB Answers — New Questions
here is the problem in fuzzy logic controller i dont understand how to fix flc in simulink and sort out this problem.
Post Content Post Content flc, matlab, simulink MATLAB Answers — New Questions
license problems “cheat sheet”
It can be a nuisance to find the meaning of the various license manager error codes, so I have summarized below. Numbered error codes that are not LME errors are listed in the table after that.
In many cases, the error number will be displayed twice to the user, with the first version being the major error number (such as "Error -15") and the second (less obvious) occurance having a more specific subcode (such as "Error -15,570") that acts to narrow down the cause of the error. In the below list, when subcodes are not known for a cause, the known causes are listed under the major error number; but when the subcode is known for the cause, the more specific cases are listed in numeric subcode order. This includes, for example, that the major cause of major error -9 is not listed directly in the error -9 paragraph, and is instead listed immediately afterwards in the error -9,57 paragraph. If you do not have a subcode available, review all of the entries with the same error major error number.
error -1: cannot find or read license file https://www.mathworks.com/matlabcentral/answers/101018-why-do-i-receive-license-manager-error-1; or PLP misentered or for wrong version https://www.mathworks.com/matlabcentral/answers/94774-why-do-i-receive-an-error-1-after-entering-my-plp-during-a-windows-installation-of-matlab (Note there is also error 1731 that could be confused with -1,xxx errors.)
error -1,714: MAC problems https://www.mathworks.com/matlabcentral/answers/100235-why-can-t-i-activate-matlab-or-start-the-license-manager-in-a-newer-linux-environment#answer_220657
error -2: polyspace license file error https://www.mathworks.com/matlabcentral/answers/101696-why-does-polyspace-become-queued-due-to-license-failure-and-my-log-files-contain-a-license-manager
error -2,413: extra cr or newlines in license file https://www.mathworks.com/matlabcentral/answers/94656-why-do-i-receive-license-manager-error-2;
error -2,753 : you do not need to activate this license. https://www.mathworks.com/matlabcentral/answers/2176070-why-do-i-receive-error-2-753-this-license-does-not-need-to-be-activated-when-activating-matlab
error -3: DAEMON line is wrong on server https://www.mathworks.com/matlabcentral/answers/101344-why-do-i-receive-license-manager-error-3
error -3,121 environment variable not set right https://www.mathworks.com/matlabcentral/answers/100948-why-do-i-get-license-manager-error-3-when-i-try-to-use-the-matlab-compiler
error -4: polyspace https://www.mathworks.com/matlabcentral/answers/215635-why-do-i-receive-a-license-manager-error-4-in-polyspace ; webapps not shut down: https://www.mathworks.com/matlabcentral/answers/2174566-license-manager-error-4-if-matlab-web-app-server-is-not-stopped-before-computer-is-shut-down
error -4,0: all licenses for toolbox are checked out https://www.mathworks.com/matlabcentral/answers/101313-why-do-i-receive-the-error-license-manager-error-4
error -5: misconfigured for redundant servers https://www.mathworks.com/matlabcentral/answers/293231-why-do-i-receive-license-manager-error-5-when-using-redundant-servers; or redundant server bug in R2016a https://www.mathworks.com/matlabcentral/answers/293224-why-do-i-receive-an-activation-loop-when-using-redundant-servers ; or port conflict, or need to update flexlm https://www.mathworks.com/matlabcentral/answers/93789-why-do-i-receive-a-flexnet-licensing-error-17-xx-system-error-10054-winsock-connection-reset
error -5,357: product you are not licensed for https://www.mathworks.com/matlabcentral/answers/98719-why-do-i-receive-license-manager-error-5; or you asked for license diagnostics https://www.mathworks.com/matlabcentral/answers/163423-why-do-i-receive-multiple-license-manager-error-5-s-for-products-not-on-my-licenses-when-starting-m
error -7: used to be you need to update the license server https://www.mathworks.com/matlabcentral/answers/216384-why-do-i-receive-license-manager-error-7 but now is license daemon problems
error -8: corrupt license file, or license server hostid not same as license file https://www.mathworks.com/matlabcentral/answers/100496-why-do-i-receive-license-manager-error-8; or flexnet bug for redundant servers https://www.mathworks.com/matlabcentral/answers/103212-why-am-i-getting-a-license-manager-error-8-when-running-redundant-servers; or bug that affected locale Turkey https://www.mathworks.com/matlabcentral/answers/357580-why-do-i-see-license-manager-error-8-when-launching-matlab-on-linux-when-my-locale-is-set-to-turkey; or attempt to use cracked license
error -9: you may need interface en1 for Mac or disk serial number with leading 0 for Windows https://www.mathworks.com/matlabcentral/answers/91555-why-am-i-getting-an-error-9-after-manually-activating-a-windows-machine-with-a-disk-serial-number-t ; or wrong disk serial number for polyspace https://www.mathworks.com/matlabcentral/answers/93587-why-do-i-receive-a-license-error-9-when-using-a-polyspace-client-locked-to-the-computer-s-hard-driv; or R2008a Active Directory and username case sensitivity https://www.mathworks.com/matlabcentral/answers/93146-why-do-i-receive-a-license-manager-error-9-in-matlab-r2008a-after-changing-network-connections-on-w; or running R12 with old dongle https://www.mathworks.com/matlabcentral/answers/97510-why-do-i-receive-license-manager-error-9-when-i-run-matlab-6-0-r12-with-a-dongle
error -9,57: username mismatch https://www.mathworks.com/matlabcentral/answers/99067-why-do-i-receive-license-manager-error-9
error -10: license (possibly trial) expired https://www.mathworks.com/matlabcentral/answers/93260-why-do-i-receive-license-manager-error-10
error -11: misformatted expiry date https://www.mathworks.com/matlabcentral/answers/94755-why-do-i-receive-license-manager-error-11
error -12: problems communicating with license server https://www.mathworks.com/matlabcentral/answers/98736-why-do-i-receive-license-manager-error-12
error -13: missing SERVER or DAEMON lines in license file https://www.mathworks.com/matlabcentral/answers/100538-why-do-i-receive-license-manager-error-13
error -14: server name listed on client must be same as what the server knows itself as https://www.mathworks.com/matlabcentral/answers/96049-why-do-i-receive-license-manager-error-14
error -15: attempt to borrow license over remote network timed out https://www.mathworks.com/matlabcentral/answers/97930-why-do-i-receive-a-license-manager-error-15-when-trying-to-checkout-a-license-key-from-a-distant-lo ; or log says MLM exited 255: conflict WMI vs MLM https://www.mathworks.com/matlabcentral/answers/126051-why-do-i-get-an-license-manager-error-15-on-my-windows-os-server-and-my-server-log-file-states-that
error -15,10: license server not running or cannot be reached https://www.mathworks.com/matlabcentral/answers/98092-why-do-i-receive-license-manager-error-15; or MLM problem communicating with lmgrd https://www.mathworks.com/matlabcentral/answers/222781-why-do-i-get-an-exiting-due-to-signal-39-error-when-trying-to-start-my-license-manager
error -15,570: problem reaching license server due to port problem or security software https://www.mathworks.com/matlabcentral/answers/91576-why-do-i-receive-flexlm-error-15-570-system-error-10038-winsock-specified-socket-is-invalid-w
error -16: wrong path to MLM in your license file https://www.mathworks.com/matlabcentral/answers/93627-why-do-i-receive-license-manager-error-16; or ran out of file descriptors on Solaris 9 https://www.mathworks.com/matlabcentral/answers/99367-why-am-i-receiving-license-manager-error-16-when-starting-flexlm-8-0d-on-a-solaris-9-machine;
error -16,287: path to MLM too long in R2009a https://www.mathworks.com/matlabcentral/answers/100367-why-do-i-receive-a-license-manager-error-16-when-my-directory-for-flexnet-is-very-long
error -17: port conflict or license manager needs update https://www.mathworks.com/matlabcentral/answers/93789-why-do-i-receive-a-flexnet-licensing-error-17-xx-system-error-10054-winsock-connection-reset
error -17,13: problem with license file or communicating with server https://www.mathworks.com/matlabcentral/answers/93815-why-do-i-receive-a-flexlm-error-17-xxx-system-error-10038-winsock-specified-socket-is-inva
error -18: restart your license manager after updating license https://www.mathworks.com/matlabcentral/answers/106124-why-do-i-receive-license-manager-error-18; or DAEMON line is wrong, or quorum problems https://www.mathworks.com/matlabcentral/answers/349491-why-do-i-receive-mlm-not-master-server-checkout-attempt-of-matlab-from-user-host-refused-in-t
error -21: you need a newer license file for this MATLAB release https://www.mathworks.com/matlabcentral/answers/100851-why-do-i-receive-license-manager-error-21
error -25: you need a newer license file to support new license feature https://www.mathworks.com/matlabcentral/answers/95993-why-do-i-receive-license-manager-error-25
error -29: no hardwired ethernet on Mac https://www.mathworks.com/matlabcentral/answers/184573-why-do-i-receive-a-flexnet-error-29-cannot-find-ethernet-device-when-trying-to-start-matlab
error -31: current date is before date MATLAB was installed https://www.mathworks.com/matlabcentral/answers/91897-why-do-i-receive-license-manager-error-31
error -33: network connection interrupted https://www.mathworks.com/matlabcentral/answers/94342-why-do-i-receive-license-manager-error-33
error -34: system clock or timezone problem https://www.mathworks.com/matlabcentral/answers/94898-why-do-i-receive-license-manager-error-34 or https://www.mathworks.com/matlabcentral/answers/94745-why-do-i-receive-license-manager-error-34-when-i-start-matlab
error -37: port number mismatch between client and server, you might be running multiple flexlm servers https://www.mathworks.com/matlabcentral/answers/98698-why-do-i-receive-license-manager-error-37
error -38: you have been deliberately excluded from the license https://www.mathworks.com/matlabcentral/answers/102446-why-do-i-receive-license-manager-error-38
error -39: you or your host are not listed in a group license https://www.mathworks.com/matlabcentral/answers/98895-why-do-i-receive-license-manager-error-39 ; or flexlm bug with INCLUDE_BORROW https://www.mathworks.com/matlabcentral/answers/93927-why-does-include_borrow-cause-error-39-with-specifed-features or you have installed product that you are not licensed for https://www.mathworks.com/matlabcentral/answers/695580-license-checkout-failed-user-host-not-on-include-list-for-neural_network_toolbox
error -42,298 https://www.mathworks.com/matlabcentral/answers/245417-license-manager-error-42 "invalid parameter" (possibly host ID inconsistency)
error -59: license port number already in use https://www.mathworks.com/matlabcentral/answers/92542-why-do-i-get-license-manager-error-59-when-starting-the-license-manager
error -63: permissions issue returning borrowed license https://www.mathworks.com/matlabcentral/answers/96938-why-do-i-receive-a-license-administrator-63-error-when-trying-to-return-a-borrowed-license-key
error -67: all keys are busy or reserved for lowwater https://www.mathworks.com/matlabcentral/answers/280252-why-do-i-receive-license-manager-error-67
error -68: license borrowing is not enabled https://www.mathworks.com/matlabcentral/answers/279245-why-do-i-receive-license-manager-error-68
error -83: update license file on server or update flexlm https://www.mathworks.com/matlabcentral/answers/92385-why-do-i-receive-license-manager-error-83
error -84: user based license but no users listed https://www.mathworks.com/matlabcentral/answers/95191-why-do-i-receive-license-manager-error-84
error -87: all licenses are checked out https://www.mathworks.com/matlabcentral/answers/97179-why-do-i-receive-license-manager-error-87 or flexlm bug affecting Simulink for R13 https://www.mathworks.com/matlabcentral/answers/95309-why-do-i-get-license-manager-error-87-when-i-try-open-a-second-model-in-simulink
error -88: your clock is set wrong https://www.mathworks.com/matlabcentral/answers/97478-why-do-i-receive-license-manager-error-88
error -89: license file is for different OS https://www.mathworks.com/matlabcentral/answers/95756-why-do-i-get-license-manager-error-89
error -90: license file format problem https://www.mathworks.com/matlabcentral/answers/99834-why-do-i-receive-the-error-license-manager-error-90
error -92: problem with license file on server https://www.mathworks.com/matlabcentral/answers/96724-why-am-i-receiving-license-manager-error-92
error -95: license server cannot be resolved at license server;https://www.mathworks.com/matlabcentral/answers/95791-why-do-i-receive-license-manager-error-95; dynamic hostname problems on old OS-X versions https://www.mathworks.com/matlabcentral/answers/94341-why-do-i-receive-errors-when-i-try-to-start-either-matlab-or-the-network-license-manager-on-my-mac-o
error -96: license server cannot be resolved at client https://www.mathworks.com/matlabcentral/answers/95122-why-do-i-receive-license-manager-error-96
error -97: MLM failed to start because ports https://www.mathworks.com/matlabcentral/answers/97558-why-do-i-receive-license-manager-error-97; C: drive required to run license server on Windows https://www.mathworks.com/matlabcentral/answers/92414-why-did-i-receive-the-error-can-t-make-directory-c-flexlm-in-my-flexlm-log-file
error -100: use different method of returning borrowed license https://www.mathworks.com/matlabcentral/answers/99240-why-do-i-receive-the-error-cannot-remove-a-linger-license-100-398-when-i-use-the-lmremove-comma
error -101: you do not have a reservation for a product https://www.mathworks.com/matlabcentral/answers/101652-why-do-i-receive-license-manager-error-101
error -103: you cannot always run MATLAB through Remote Desktop https://www.mathworks.com/matlabcentral/answers/91874-why-do-i-receive-license-manager-error-103; or you need at least R2007a for Windows Vista https://www.mathworks.com/matlabcentral/answers/97123-why-do-i-receive-a-license-manager-error-103-when-running-matlab-6-5-r13-on-windows-vista-or-wind
error -104: license borrowed for too long; https://www.mathworks.com/matlabcentral/answers/106148-why-do-i-receive-license-manager-error-104
error -114: license file needs newer license manager https://web.archive.org/web/20170110102956/https://www.mathworks.com/matlabcentral/answers/103563-why-do-i-receive-license-manager-error-114
error -118: connection timed out, possibly firewall problems https://www.mathworks.com/matlabcentral/answers/609471-error-118-during-installation-of-matlab-r2020b-in-windows-computer-is-connected-to-the-internet
error -139: communications timeout, try restricting your wildcards https://www.mathworks.com/matlabcentral/answers/126853-why-do-i-receive-license-manager-error-139
error -140: license file needs newer license manager https://www.mathworks.com/matlabcentral/answers/330007-why-do-i-receive-license-manager-error-140-when-trying-to-start-matlab
error -194: not enough license left for you to check license out https://www.mathworks.com/matlabcentral/answers/127046-why-do-i-get-a-license-manager-error-194-when-i-start-matlab
error -361: license file is for newer version than your license https://www.mathworks.com/matlabcentral/answers/92071-why-do-i-get-activation-error-361-when-performing-a-license-update-within-matlab
error -400: trial license expired but is still in your path https://www.mathworks.com/matlabcentral/answers/153559-why-do-i-receive-license-manager-error-400
error -1302: license file is invalid for R2011a https://www.mathworks.com/matlabcentral/answers/102285-why-do-i-receive-error-1302-invalid-license-number-found-when-starting-my-r2011a-license-manager
There are also some other numbered conditions with slightly different origins
error -1: PLP misentered or for wrong version https://www.mathworks.com/matlabcentral/answers/94774-why-do-i-receive-an-error-1-after-entering-my-plp-during-a-windows-installation-of-matlab
error 1,1731: this license needs Mathworks Hosted License Manager (MHLM) https://www.mathworks.com/matlabcentral/answers/195328-why-do-i-receive-error-1-731-when-activating-mdcs-products, also observed with some trial licenses that included MDCS https://www.mathworks.com/matlabcentral/answers/140155-why-do-i-receive-error-1731-during-activation
error 2: you tried to return a borrowed license but you have a license configuration problem https://www.mathworks.com/matlabcentral/answers/389303-why-do-i-get-error-2-when-returning-a-borrowed-license
error 2,008: R2013a DVD key expired, use R2014a installer https://www.mathworks.com/matlabcentral/answers/121590-why-do-i-receive-the-error-2-008-license-not-active-or-not-found-when-activating-my-copy-of-matlab
error 5,011: trying to install with wrong architecture files https://www.mathworks.com/matlabcentral/answers/125469-why-do-i-receive-error-5-011-when-clicking-next-after-selecting-my-license-number-in-the-matlab-inst
error 16: problems contacting license server for MDCS https://www.mathworks.com/matlabcentral/answers/106144-why-do-i-receive-error-code-16-when-i-try-to-start-matlab-production-server-mps-using-mps-start
error 24: ran out of file descriptors https://www.mathworks.com/matlabcentral/answers/306879-why-does-the-license-manager-failt-to-start-with-the-errno-24-in-the-logfile
MLM signal 27: license file wrapped wrong https://www.mathworks.com/matlabcentral/answers/98645-why-does-the-license-manager-log-file-state-mlm-exiting-due-to-signal-27-after-starting-the-lice
status 37: MLM problem resolving hostname https://www.mathworks.com/matlabcentral/answers/99185-why-do-i-receive-a-vendor-daemon-died-with-status-37-error-message-in-my-debug-log-file-when-tryin
MLM signal 39: MLM problem communicating with lmgrd https://www.mathworks.com/matlabcentral/answers/222781-why-do-i-get-an-exiting-due-to-signal-39-error-when-trying-to-start-my-license-manager
MLM status 52: unicode encoding problem https://www.mathworks.com/matlabcentral/answers/91393-why-does-the-license-manager-report-mlm-exited-with-status-52-no-license-file-with-the-polyspace-l
error 201 when updating MATLAB: file is locked by another program https://www.mathworks.com/matlabcentral/answers/1899890-why-do-i-get-an-unable-to-continue-error-201-when-updating-matlab
MLM status 241: tcp port wrong in license file https://www.mathworks.com/matlabcentral/answers/96143-why-does-the-error-vendor-daemon-died-with-status-241-appear-in-the-lmdebug-file
Polyspace error code 241: is really -15 cannot connect to license server https://www.mathworks.com/matlabcentral/answers/102806-why-does-my-verification-stop-with-the-message-failure-with-error-code-241
MLM status 255: conflict WMI vs MLM https://www.mathworks.com/matlabcentral/answers/126051-why-do-i-get-an-license-manager-error-15-on-my-windows-os-server-and-my-server-log-file-states-that
error 334: you tried to create a profile for an email address that already exists https://www.mathworks.com/matlabcentral/answers/93320-why-do-i-get-a-service-error-error-334-an-attempt-to-create-a-new-profile-for-an-email-address-alr
error 337: problem processing the activation https://www.mathworks.com/matlabcentral/answers/93689-why-do-i-get-the-error-337-the-information-you-provided-could-not-be-processed-please-check-your
error 339 Your Mathworks Account Login session has expired: unknown cause, https://www.mathworks.com/matlabcentral/answers/2043847-why-i-got-error-339-while-trying-to-install-package-signal-processing-toolbox
error 353: you have activated on the maximum number of systems permitted for that license type https://www.mathworks.com/matlabcentral/answers/92674-why-do-i-receive-error-353-or-error-1616-no-more-activations-available-when-attempting-to-activate
activation error 340: change your MATLAB Central account type from Student to Academic https://www.mathworks.com/matlabcentral/answers/96683-why-do-i-receive-an-activation-error-340-or-983-when-activating-my-academic-license
error 345: activation key is no longer valid https://www.mathworks.com/matlabcentral/answers/98193-why-do-i-get-error-345-when-trying-to-activate-my-matlab-license
error 347: this kind of license needs user to have Mathworks account https://www.mathworks.com/matlabcentral/answers/95135-why-do-i-receive-an-error-347-when-activating-my-license; see https://www.mathworks.com/help/install/ug/how-can-i-activate-without-a-mathworks-account.html
error 348: conflict over who will use license https://www.mathworks.com/matlabcentral/answers/97775-why-do-i-get-activation-error-348-when-logged-in-as-a-license-administrator and https://www.mathworks.com/matlabcentral/answers/95794-why-do-i-receive-an-error-348-when-attempting-to-activate-my-matlab-license
error 353: you license admin activated this license https://www.mathworks.com/matlabcentral/answers/95521-why-do-i-get-activation-error-353-when-there-are-no-activations-listed-in-the-license-center
error 354: you tried to move your license to a different host too many times this year https://www.mathworks.com/matlabcentral/answers/99612-why-do-i-receive-an-error-354-when-activating-my-license
error 358: license has expired (while trying to activate) https://www.mathworks.com/matlabcentral/answers/101914-why-do-i-get-an-error-358-when-attempting-to-activate-matlab
error 361: license file is for newer version than your license https://www.mathworks.com/matlabcentral/answers/92071-why-do-i-get-activation-error-361-when-performing-a-license-update-within-matlab
error 375: proxy problems? https://www.mathworks.com/matlabcentral/answers/466842-problem-in-launching-matlab-error-code-375
error 379: you are probably trying to enter Activation Key in File Installation Key field or other way around https://www.mathworks.com/matlabcentral/answers/196997-why-do-i-receive-an-error-510-when-installing-or-error-7000-or-error-379-when-activating-matlab
error 400: you are not authorized to use this on-demand license https://www.mathworks.com/matlabcentral/answers/279690-why-do-i-receive-a-licensing-error-400-when-using-my-mdcs-on-demand-license; or your trial license was not properly converted when you purchased https://www.mathworks.com/matlabcentral/answers/153559-why-do-i-receive-license-manager-error-400
error 510: you are probably trying to enter Activation Key in File Installation Key field or other way around https://www.mathworks.com/matlabcentral/answers/196997-why-do-i-receive-an-error-510-when-installing-or-error-7000-or-error-379-when-activating-matlab
error 624: reactivate instead of Update license https://www.mathworks.com/matlabcentral/answers/101950-why-do-i-get-error-624-when-trying-to-update-my-license-through-matlab
error 655: bug related to switching from Designated Computer to Named User https://www.mathworks.com/matlabcentral/answers/235075-why-do-i-receive-an-error-655-when-activating-matlab
error 668: you tried to move your license to a different username too many times this year https://www.mathworks.com/matlabcentral/answers/100275-why-am-i-getting-an-error-668-maximum-number-of-licensed-end-user-redesignations-during-activatio
error 676: you have so many licenses you need to use Activation Key instead of activation client https://www.mathworks.com/matlabcentral/answers/102858-why-do-i-receive-an-error-676-when-activating-matlab
error 697: you gave the wrong Mathworks password https://www.mathworks.com/matlabcentral/answers/94165-why-do-i-get-error-1001-or-error-697-when-installing-or-activating-matlab
error 956: you tried to activate a network license on a client https://www.mathworks.com/matlabcentral/answers/93733-why-do-i-receive-an-error-956-when-trying-to-activate
activation error 983: change your MATLAB Central account type from Student to Academic https://www.mathworks.com/matlabcentral/answers/96683-why-do-i-receive-an-activation-error-340-or-983-when-activating-my-academic-license
error -1001: you gave the wrong Mathworks password https://www.mathworks.com/matlabcentral/answers/94165-why-do-i-get-error-1001-or-error-697-when-installing-or-activating-matlab
error 1616: you have activated on the maximum number of systems permitted for that license type https://www.mathworks.com/matlabcentral/answers/92674-why-do-i-receive-error-353-or-error-1616-no-more-activations-available-when-attempting-to-activate
error 1731: this license needs Mathworks Hosted License Manager (MHLM) https://www.mathworks.com/matlabcentral/answers/195328-why-do-i-receive-error-1-731-when-activating-mdcs-products, also observed with some trial licenses that included MDCS or trying to activate a license that does not use activation https://www.mathworks.com/matlabcentral/answers/140155-why-do-i-receive-error-1731-during-activation
error 1800, 1801, 1802, 1803, 1804, 1805, 1811: connection errors https://www.mathworks.com/matlabcentral/answers/92634-why-do-i-get-a-connection-error-when-installing-or-activating-matlab-or-other-mathworks-products
error 2002: you are trying to activate MATLAB on too many systems https://www.mathworks.com/matlabcentral/answers/106133-why-do-i-receive-error-2002-the-serial-number-you-entered-cannot-be-activated-after-entering-my
error 2006: you are trying to activate MATLAB on too many systems https://www.mathworks.com/matlabcentral/answers/110846-why-do-i-receive-error-2006-maximum-number-of-activations-exceeded-when-attempting-to-activate-ma
error 4301: MATLAB was unable to install the MathWorks Service Host https://www.mathworks.com/matlabcentral/answers/2173200-why-do-i-receive-error-4301-error-initializing-licensing-could-not-start-mathworks-service-host
error 4401: MCDS communications error or firewall problem https://www.mathworks.com/matlabcentral/answers/264358-why-do-i-receive-license-error-4401-when-validating-my-mdcs-cluster
error 4402: connection error reaching Mathworks hosted license https://www.mathworks.com/matlabcentral/answers/279686-why-do-i-receive-license-manager-error-4402-when-launching-matlab-using-a-login-named-user-license
error 5016: bug installing license when SMS expired, fixed R2011a https://www.mathworks.com/matlabcentral/answers/100128-why-do-i-receive-an-error-5016-when-installing-matlab
error 5202: incompatible MacOS version, or need to restart Service Host, or antivirus problems https://www.mathworks.com/matlabcentral/answers/1815390-why-do-i-receive-error-5202-unable-to-access-services-required-to-run-matlab
error 7000: you are probably trying to enter Activation Key in File Installation Key field or other way around https://www.mathworks.com/matlabcentral/answers/196997-why-do-i-receive-an-error-510-when-installing-or-error-7000-or-error-379-when-activating-matlab
Miscellaneous
MATLAB cannot verify your license rights over the Internet https://www.mathworks.com/matlabcentral/answers/195430-why-do-i-see-the-error-matlab-cannot-verify-your-license-rights-over-the-internet-when-launching-m
on monitoring license usage: https://www.mathworks.com/matlabcentral/answers/102546-how-do-i-monitor-the-usage-of-license-keys-for-matlab-and-toolboxes
Application error The instruction at 0x78011f41 referenced memory at 0x000622d4: license manager DNS problems for R12 and R13 https://www.mathworks.com/matlabcentral/answers/94313-why-do-i-receive-an-application-error-when-starting-matlab-on-my-win-2000-machine
Prevent users from running the license manager utilities: https://www.mathworks.com/matlabcentral/answers/94180-how-do-i-prevent-users-from-running-lmdown-lmremove-or-lmreread-from-a-client-machine
Host ID shows up as 000000000000 on Linux: https://www.mathworks.com/matlabcentral/answers/100235-why-can-t-i-activate-matlab-or-start-the-network-license-manager-in-a-newer-linux-environment
license manager will not start on Suse 9.3 due to case sensitivity: https://www.mathworks.com/matlabcentral/answers/93767-why-does-the-network-license-manager-not-start-at-boot-time-on-my-suse-9-3-linux-machine
/sys/os/glnxa64/libstdc++.so.6: file too short: https://www.mathworks.com/matlabcentral/answers/301508-why-do-i-get-the-error-mlm-error-while-loading-shared-libraries-sys-os-glnxa64-libstdc-so-6-f
Incorrectly built binary which accesses errno, h_errno or_res directly: https://www.mathworks.com/matlabcentral/answers/102247-why-do-i-receive-an-error-message-about-an-incorrectly-built-binary-on-my-linux-system-when-startingIt can be a nuisance to find the meaning of the various license manager error codes, so I have summarized below. Numbered error codes that are not LME errors are listed in the table after that.
In many cases, the error number will be displayed twice to the user, with the first version being the major error number (such as "Error -15") and the second (less obvious) occurance having a more specific subcode (such as "Error -15,570") that acts to narrow down the cause of the error. In the below list, when subcodes are not known for a cause, the known causes are listed under the major error number; but when the subcode is known for the cause, the more specific cases are listed in numeric subcode order. This includes, for example, that the major cause of major error -9 is not listed directly in the error -9 paragraph, and is instead listed immediately afterwards in the error -9,57 paragraph. If you do not have a subcode available, review all of the entries with the same error major error number.
error -1: cannot find or read license file https://www.mathworks.com/matlabcentral/answers/101018-why-do-i-receive-license-manager-error-1; or PLP misentered or for wrong version https://www.mathworks.com/matlabcentral/answers/94774-why-do-i-receive-an-error-1-after-entering-my-plp-during-a-windows-installation-of-matlab (Note there is also error 1731 that could be confused with -1,xxx errors.)
error -1,714: MAC problems https://www.mathworks.com/matlabcentral/answers/100235-why-can-t-i-activate-matlab-or-start-the-license-manager-in-a-newer-linux-environment#answer_220657
error -2: polyspace license file error https://www.mathworks.com/matlabcentral/answers/101696-why-does-polyspace-become-queued-due-to-license-failure-and-my-log-files-contain-a-license-manager
error -2,413: extra cr or newlines in license file https://www.mathworks.com/matlabcentral/answers/94656-why-do-i-receive-license-manager-error-2;
error -2,753 : you do not need to activate this license. https://www.mathworks.com/matlabcentral/answers/2176070-why-do-i-receive-error-2-753-this-license-does-not-need-to-be-activated-when-activating-matlab
error -3: DAEMON line is wrong on server https://www.mathworks.com/matlabcentral/answers/101344-why-do-i-receive-license-manager-error-3
error -3,121 environment variable not set right https://www.mathworks.com/matlabcentral/answers/100948-why-do-i-get-license-manager-error-3-when-i-try-to-use-the-matlab-compiler
error -4: polyspace https://www.mathworks.com/matlabcentral/answers/215635-why-do-i-receive-a-license-manager-error-4-in-polyspace ; webapps not shut down: https://www.mathworks.com/matlabcentral/answers/2174566-license-manager-error-4-if-matlab-web-app-server-is-not-stopped-before-computer-is-shut-down
error -4,0: all licenses for toolbox are checked out https://www.mathworks.com/matlabcentral/answers/101313-why-do-i-receive-the-error-license-manager-error-4
error -5: misconfigured for redundant servers https://www.mathworks.com/matlabcentral/answers/293231-why-do-i-receive-license-manager-error-5-when-using-redundant-servers; or redundant server bug in R2016a https://www.mathworks.com/matlabcentral/answers/293224-why-do-i-receive-an-activation-loop-when-using-redundant-servers ; or port conflict, or need to update flexlm https://www.mathworks.com/matlabcentral/answers/93789-why-do-i-receive-a-flexnet-licensing-error-17-xx-system-error-10054-winsock-connection-reset
error -5,357: product you are not licensed for https://www.mathworks.com/matlabcentral/answers/98719-why-do-i-receive-license-manager-error-5; or you asked for license diagnostics https://www.mathworks.com/matlabcentral/answers/163423-why-do-i-receive-multiple-license-manager-error-5-s-for-products-not-on-my-licenses-when-starting-m
error -7: used to be you need to update the license server https://www.mathworks.com/matlabcentral/answers/216384-why-do-i-receive-license-manager-error-7 but now is license daemon problems
error -8: corrupt license file, or license server hostid not same as license file https://www.mathworks.com/matlabcentral/answers/100496-why-do-i-receive-license-manager-error-8; or flexnet bug for redundant servers https://www.mathworks.com/matlabcentral/answers/103212-why-am-i-getting-a-license-manager-error-8-when-running-redundant-servers; or bug that affected locale Turkey https://www.mathworks.com/matlabcentral/answers/357580-why-do-i-see-license-manager-error-8-when-launching-matlab-on-linux-when-my-locale-is-set-to-turkey; or attempt to use cracked license
error -9: you may need interface en1 for Mac or disk serial number with leading 0 for Windows https://www.mathworks.com/matlabcentral/answers/91555-why-am-i-getting-an-error-9-after-manually-activating-a-windows-machine-with-a-disk-serial-number-t ; or wrong disk serial number for polyspace https://www.mathworks.com/matlabcentral/answers/93587-why-do-i-receive-a-license-error-9-when-using-a-polyspace-client-locked-to-the-computer-s-hard-driv; or R2008a Active Directory and username case sensitivity https://www.mathworks.com/matlabcentral/answers/93146-why-do-i-receive-a-license-manager-error-9-in-matlab-r2008a-after-changing-network-connections-on-w; or running R12 with old dongle https://www.mathworks.com/matlabcentral/answers/97510-why-do-i-receive-license-manager-error-9-when-i-run-matlab-6-0-r12-with-a-dongle
error -9,57: username mismatch https://www.mathworks.com/matlabcentral/answers/99067-why-do-i-receive-license-manager-error-9
error -10: license (possibly trial) expired https://www.mathworks.com/matlabcentral/answers/93260-why-do-i-receive-license-manager-error-10
error -11: misformatted expiry date https://www.mathworks.com/matlabcentral/answers/94755-why-do-i-receive-license-manager-error-11
error -12: problems communicating with license server https://www.mathworks.com/matlabcentral/answers/98736-why-do-i-receive-license-manager-error-12
error -13: missing SERVER or DAEMON lines in license file https://www.mathworks.com/matlabcentral/answers/100538-why-do-i-receive-license-manager-error-13
error -14: server name listed on client must be same as what the server knows itself as https://www.mathworks.com/matlabcentral/answers/96049-why-do-i-receive-license-manager-error-14
error -15: attempt to borrow license over remote network timed out https://www.mathworks.com/matlabcentral/answers/97930-why-do-i-receive-a-license-manager-error-15-when-trying-to-checkout-a-license-key-from-a-distant-lo ; or log says MLM exited 255: conflict WMI vs MLM https://www.mathworks.com/matlabcentral/answers/126051-why-do-i-get-an-license-manager-error-15-on-my-windows-os-server-and-my-server-log-file-states-that
error -15,10: license server not running or cannot be reached https://www.mathworks.com/matlabcentral/answers/98092-why-do-i-receive-license-manager-error-15; or MLM problem communicating with lmgrd https://www.mathworks.com/matlabcentral/answers/222781-why-do-i-get-an-exiting-due-to-signal-39-error-when-trying-to-start-my-license-manager
error -15,570: problem reaching license server due to port problem or security software https://www.mathworks.com/matlabcentral/answers/91576-why-do-i-receive-flexlm-error-15-570-system-error-10038-winsock-specified-socket-is-invalid-w
error -16: wrong path to MLM in your license file https://www.mathworks.com/matlabcentral/answers/93627-why-do-i-receive-license-manager-error-16; or ran out of file descriptors on Solaris 9 https://www.mathworks.com/matlabcentral/answers/99367-why-am-i-receiving-license-manager-error-16-when-starting-flexlm-8-0d-on-a-solaris-9-machine;
error -16,287: path to MLM too long in R2009a https://www.mathworks.com/matlabcentral/answers/100367-why-do-i-receive-a-license-manager-error-16-when-my-directory-for-flexnet-is-very-long
error -17: port conflict or license manager needs update https://www.mathworks.com/matlabcentral/answers/93789-why-do-i-receive-a-flexnet-licensing-error-17-xx-system-error-10054-winsock-connection-reset
error -17,13: problem with license file or communicating with server https://www.mathworks.com/matlabcentral/answers/93815-why-do-i-receive-a-flexlm-error-17-xxx-system-error-10038-winsock-specified-socket-is-inva
error -18: restart your license manager after updating license https://www.mathworks.com/matlabcentral/answers/106124-why-do-i-receive-license-manager-error-18; or DAEMON line is wrong, or quorum problems https://www.mathworks.com/matlabcentral/answers/349491-why-do-i-receive-mlm-not-master-server-checkout-attempt-of-matlab-from-user-host-refused-in-t
error -21: you need a newer license file for this MATLAB release https://www.mathworks.com/matlabcentral/answers/100851-why-do-i-receive-license-manager-error-21
error -25: you need a newer license file to support new license feature https://www.mathworks.com/matlabcentral/answers/95993-why-do-i-receive-license-manager-error-25
error -29: no hardwired ethernet on Mac https://www.mathworks.com/matlabcentral/answers/184573-why-do-i-receive-a-flexnet-error-29-cannot-find-ethernet-device-when-trying-to-start-matlab
error -31: current date is before date MATLAB was installed https://www.mathworks.com/matlabcentral/answers/91897-why-do-i-receive-license-manager-error-31
error -33: network connection interrupted https://www.mathworks.com/matlabcentral/answers/94342-why-do-i-receive-license-manager-error-33
error -34: system clock or timezone problem https://www.mathworks.com/matlabcentral/answers/94898-why-do-i-receive-license-manager-error-34 or https://www.mathworks.com/matlabcentral/answers/94745-why-do-i-receive-license-manager-error-34-when-i-start-matlab
error -37: port number mismatch between client and server, you might be running multiple flexlm servers https://www.mathworks.com/matlabcentral/answers/98698-why-do-i-receive-license-manager-error-37
error -38: you have been deliberately excluded from the license https://www.mathworks.com/matlabcentral/answers/102446-why-do-i-receive-license-manager-error-38
error -39: you or your host are not listed in a group license https://www.mathworks.com/matlabcentral/answers/98895-why-do-i-receive-license-manager-error-39 ; or flexlm bug with INCLUDE_BORROW https://www.mathworks.com/matlabcentral/answers/93927-why-does-include_borrow-cause-error-39-with-specifed-features or you have installed product that you are not licensed for https://www.mathworks.com/matlabcentral/answers/695580-license-checkout-failed-user-host-not-on-include-list-for-neural_network_toolbox
error -42,298 https://www.mathworks.com/matlabcentral/answers/245417-license-manager-error-42 "invalid parameter" (possibly host ID inconsistency)
error -59: license port number already in use https://www.mathworks.com/matlabcentral/answers/92542-why-do-i-get-license-manager-error-59-when-starting-the-license-manager
error -63: permissions issue returning borrowed license https://www.mathworks.com/matlabcentral/answers/96938-why-do-i-receive-a-license-administrator-63-error-when-trying-to-return-a-borrowed-license-key
error -67: all keys are busy or reserved for lowwater https://www.mathworks.com/matlabcentral/answers/280252-why-do-i-receive-license-manager-error-67
error -68: license borrowing is not enabled https://www.mathworks.com/matlabcentral/answers/279245-why-do-i-receive-license-manager-error-68
error -83: update license file on server or update flexlm https://www.mathworks.com/matlabcentral/answers/92385-why-do-i-receive-license-manager-error-83
error -84: user based license but no users listed https://www.mathworks.com/matlabcentral/answers/95191-why-do-i-receive-license-manager-error-84
error -87: all licenses are checked out https://www.mathworks.com/matlabcentral/answers/97179-why-do-i-receive-license-manager-error-87 or flexlm bug affecting Simulink for R13 https://www.mathworks.com/matlabcentral/answers/95309-why-do-i-get-license-manager-error-87-when-i-try-open-a-second-model-in-simulink
error -88: your clock is set wrong https://www.mathworks.com/matlabcentral/answers/97478-why-do-i-receive-license-manager-error-88
error -89: license file is for different OS https://www.mathworks.com/matlabcentral/answers/95756-why-do-i-get-license-manager-error-89
error -90: license file format problem https://www.mathworks.com/matlabcentral/answers/99834-why-do-i-receive-the-error-license-manager-error-90
error -92: problem with license file on server https://www.mathworks.com/matlabcentral/answers/96724-why-am-i-receiving-license-manager-error-92
error -95: license server cannot be resolved at license server;https://www.mathworks.com/matlabcentral/answers/95791-why-do-i-receive-license-manager-error-95; dynamic hostname problems on old OS-X versions https://www.mathworks.com/matlabcentral/answers/94341-why-do-i-receive-errors-when-i-try-to-start-either-matlab-or-the-network-license-manager-on-my-mac-o
error -96: license server cannot be resolved at client https://www.mathworks.com/matlabcentral/answers/95122-why-do-i-receive-license-manager-error-96
error -97: MLM failed to start because ports https://www.mathworks.com/matlabcentral/answers/97558-why-do-i-receive-license-manager-error-97; C: drive required to run license server on Windows https://www.mathworks.com/matlabcentral/answers/92414-why-did-i-receive-the-error-can-t-make-directory-c-flexlm-in-my-flexlm-log-file
error -100: use different method of returning borrowed license https://www.mathworks.com/matlabcentral/answers/99240-why-do-i-receive-the-error-cannot-remove-a-linger-license-100-398-when-i-use-the-lmremove-comma
error -101: you do not have a reservation for a product https://www.mathworks.com/matlabcentral/answers/101652-why-do-i-receive-license-manager-error-101
error -103: you cannot always run MATLAB through Remote Desktop https://www.mathworks.com/matlabcentral/answers/91874-why-do-i-receive-license-manager-error-103; or you need at least R2007a for Windows Vista https://www.mathworks.com/matlabcentral/answers/97123-why-do-i-receive-a-license-manager-error-103-when-running-matlab-6-5-r13-on-windows-vista-or-wind
error -104: license borrowed for too long; https://www.mathworks.com/matlabcentral/answers/106148-why-do-i-receive-license-manager-error-104
error -114: license file needs newer license manager https://web.archive.org/web/20170110102956/https://www.mathworks.com/matlabcentral/answers/103563-why-do-i-receive-license-manager-error-114
error -118: connection timed out, possibly firewall problems https://www.mathworks.com/matlabcentral/answers/609471-error-118-during-installation-of-matlab-r2020b-in-windows-computer-is-connected-to-the-internet
error -139: communications timeout, try restricting your wildcards https://www.mathworks.com/matlabcentral/answers/126853-why-do-i-receive-license-manager-error-139
error -140: license file needs newer license manager https://www.mathworks.com/matlabcentral/answers/330007-why-do-i-receive-license-manager-error-140-when-trying-to-start-matlab
error -194: not enough license left for you to check license out https://www.mathworks.com/matlabcentral/answers/127046-why-do-i-get-a-license-manager-error-194-when-i-start-matlab
error -361: license file is for newer version than your license https://www.mathworks.com/matlabcentral/answers/92071-why-do-i-get-activation-error-361-when-performing-a-license-update-within-matlab
error -400: trial license expired but is still in your path https://www.mathworks.com/matlabcentral/answers/153559-why-do-i-receive-license-manager-error-400
error -1302: license file is invalid for R2011a https://www.mathworks.com/matlabcentral/answers/102285-why-do-i-receive-error-1302-invalid-license-number-found-when-starting-my-r2011a-license-manager
There are also some other numbered conditions with slightly different origins
error -1: PLP misentered or for wrong version https://www.mathworks.com/matlabcentral/answers/94774-why-do-i-receive-an-error-1-after-entering-my-plp-during-a-windows-installation-of-matlab
error 1,1731: this license needs Mathworks Hosted License Manager (MHLM) https://www.mathworks.com/matlabcentral/answers/195328-why-do-i-receive-error-1-731-when-activating-mdcs-products, also observed with some trial licenses that included MDCS https://www.mathworks.com/matlabcentral/answers/140155-why-do-i-receive-error-1731-during-activation
error 2: you tried to return a borrowed license but you have a license configuration problem https://www.mathworks.com/matlabcentral/answers/389303-why-do-i-get-error-2-when-returning-a-borrowed-license
error 2,008: R2013a DVD key expired, use R2014a installer https://www.mathworks.com/matlabcentral/answers/121590-why-do-i-receive-the-error-2-008-license-not-active-or-not-found-when-activating-my-copy-of-matlab
error 5,011: trying to install with wrong architecture files https://www.mathworks.com/matlabcentral/answers/125469-why-do-i-receive-error-5-011-when-clicking-next-after-selecting-my-license-number-in-the-matlab-inst
error 16: problems contacting license server for MDCS https://www.mathworks.com/matlabcentral/answers/106144-why-do-i-receive-error-code-16-when-i-try-to-start-matlab-production-server-mps-using-mps-start
error 24: ran out of file descriptors https://www.mathworks.com/matlabcentral/answers/306879-why-does-the-license-manager-failt-to-start-with-the-errno-24-in-the-logfile
MLM signal 27: license file wrapped wrong https://www.mathworks.com/matlabcentral/answers/98645-why-does-the-license-manager-log-file-state-mlm-exiting-due-to-signal-27-after-starting-the-lice
status 37: MLM problem resolving hostname https://www.mathworks.com/matlabcentral/answers/99185-why-do-i-receive-a-vendor-daemon-died-with-status-37-error-message-in-my-debug-log-file-when-tryin
MLM signal 39: MLM problem communicating with lmgrd https://www.mathworks.com/matlabcentral/answers/222781-why-do-i-get-an-exiting-due-to-signal-39-error-when-trying-to-start-my-license-manager
MLM status 52: unicode encoding problem https://www.mathworks.com/matlabcentral/answers/91393-why-does-the-license-manager-report-mlm-exited-with-status-52-no-license-file-with-the-polyspace-l
error 201 when updating MATLAB: file is locked by another program https://www.mathworks.com/matlabcentral/answers/1899890-why-do-i-get-an-unable-to-continue-error-201-when-updating-matlab
MLM status 241: tcp port wrong in license file https://www.mathworks.com/matlabcentral/answers/96143-why-does-the-error-vendor-daemon-died-with-status-241-appear-in-the-lmdebug-file
Polyspace error code 241: is really -15 cannot connect to license server https://www.mathworks.com/matlabcentral/answers/102806-why-does-my-verification-stop-with-the-message-failure-with-error-code-241
MLM status 255: conflict WMI vs MLM https://www.mathworks.com/matlabcentral/answers/126051-why-do-i-get-an-license-manager-error-15-on-my-windows-os-server-and-my-server-log-file-states-that
error 334: you tried to create a profile for an email address that already exists https://www.mathworks.com/matlabcentral/answers/93320-why-do-i-get-a-service-error-error-334-an-attempt-to-create-a-new-profile-for-an-email-address-alr
error 337: problem processing the activation https://www.mathworks.com/matlabcentral/answers/93689-why-do-i-get-the-error-337-the-information-you-provided-could-not-be-processed-please-check-your
error 339 Your Mathworks Account Login session has expired: unknown cause, https://www.mathworks.com/matlabcentral/answers/2043847-why-i-got-error-339-while-trying-to-install-package-signal-processing-toolbox
error 353: you have activated on the maximum number of systems permitted for that license type https://www.mathworks.com/matlabcentral/answers/92674-why-do-i-receive-error-353-or-error-1616-no-more-activations-available-when-attempting-to-activate
activation error 340: change your MATLAB Central account type from Student to Academic https://www.mathworks.com/matlabcentral/answers/96683-why-do-i-receive-an-activation-error-340-or-983-when-activating-my-academic-license
error 345: activation key is no longer valid https://www.mathworks.com/matlabcentral/answers/98193-why-do-i-get-error-345-when-trying-to-activate-my-matlab-license
error 347: this kind of license needs user to have Mathworks account https://www.mathworks.com/matlabcentral/answers/95135-why-do-i-receive-an-error-347-when-activating-my-license; see https://www.mathworks.com/help/install/ug/how-can-i-activate-without-a-mathworks-account.html
error 348: conflict over who will use license https://www.mathworks.com/matlabcentral/answers/97775-why-do-i-get-activation-error-348-when-logged-in-as-a-license-administrator and https://www.mathworks.com/matlabcentral/answers/95794-why-do-i-receive-an-error-348-when-attempting-to-activate-my-matlab-license
error 353: you license admin activated this license https://www.mathworks.com/matlabcentral/answers/95521-why-do-i-get-activation-error-353-when-there-are-no-activations-listed-in-the-license-center
error 354: you tried to move your license to a different host too many times this year https://www.mathworks.com/matlabcentral/answers/99612-why-do-i-receive-an-error-354-when-activating-my-license
error 358: license has expired (while trying to activate) https://www.mathworks.com/matlabcentral/answers/101914-why-do-i-get-an-error-358-when-attempting-to-activate-matlab
error 361: license file is for newer version than your license https://www.mathworks.com/matlabcentral/answers/92071-why-do-i-get-activation-error-361-when-performing-a-license-update-within-matlab
error 375: proxy problems? https://www.mathworks.com/matlabcentral/answers/466842-problem-in-launching-matlab-error-code-375
error 379: you are probably trying to enter Activation Key in File Installation Key field or other way around https://www.mathworks.com/matlabcentral/answers/196997-why-do-i-receive-an-error-510-when-installing-or-error-7000-or-error-379-when-activating-matlab
error 400: you are not authorized to use this on-demand license https://www.mathworks.com/matlabcentral/answers/279690-why-do-i-receive-a-licensing-error-400-when-using-my-mdcs-on-demand-license; or your trial license was not properly converted when you purchased https://www.mathworks.com/matlabcentral/answers/153559-why-do-i-receive-license-manager-error-400
error 510: you are probably trying to enter Activation Key in File Installation Key field or other way around https://www.mathworks.com/matlabcentral/answers/196997-why-do-i-receive-an-error-510-when-installing-or-error-7000-or-error-379-when-activating-matlab
error 624: reactivate instead of Update license https://www.mathworks.com/matlabcentral/answers/101950-why-do-i-get-error-624-when-trying-to-update-my-license-through-matlab
error 655: bug related to switching from Designated Computer to Named User https://www.mathworks.com/matlabcentral/answers/235075-why-do-i-receive-an-error-655-when-activating-matlab
error 668: you tried to move your license to a different username too many times this year https://www.mathworks.com/matlabcentral/answers/100275-why-am-i-getting-an-error-668-maximum-number-of-licensed-end-user-redesignations-during-activatio
error 676: you have so many licenses you need to use Activation Key instead of activation client https://www.mathworks.com/matlabcentral/answers/102858-why-do-i-receive-an-error-676-when-activating-matlab
error 697: you gave the wrong Mathworks password https://www.mathworks.com/matlabcentral/answers/94165-why-do-i-get-error-1001-or-error-697-when-installing-or-activating-matlab
error 956: you tried to activate a network license on a client https://www.mathworks.com/matlabcentral/answers/93733-why-do-i-receive-an-error-956-when-trying-to-activate
activation error 983: change your MATLAB Central account type from Student to Academic https://www.mathworks.com/matlabcentral/answers/96683-why-do-i-receive-an-activation-error-340-or-983-when-activating-my-academic-license
error -1001: you gave the wrong Mathworks password https://www.mathworks.com/matlabcentral/answers/94165-why-do-i-get-error-1001-or-error-697-when-installing-or-activating-matlab
error 1616: you have activated on the maximum number of systems permitted for that license type https://www.mathworks.com/matlabcentral/answers/92674-why-do-i-receive-error-353-or-error-1616-no-more-activations-available-when-attempting-to-activate
error 1731: this license needs Mathworks Hosted License Manager (MHLM) https://www.mathworks.com/matlabcentral/answers/195328-why-do-i-receive-error-1-731-when-activating-mdcs-products, also observed with some trial licenses that included MDCS or trying to activate a license that does not use activation https://www.mathworks.com/matlabcentral/answers/140155-why-do-i-receive-error-1731-during-activation
error 1800, 1801, 1802, 1803, 1804, 1805, 1811: connection errors https://www.mathworks.com/matlabcentral/answers/92634-why-do-i-get-a-connection-error-when-installing-or-activating-matlab-or-other-mathworks-products
error 2002: you are trying to activate MATLAB on too many systems https://www.mathworks.com/matlabcentral/answers/106133-why-do-i-receive-error-2002-the-serial-number-you-entered-cannot-be-activated-after-entering-my
error 2006: you are trying to activate MATLAB on too many systems https://www.mathworks.com/matlabcentral/answers/110846-why-do-i-receive-error-2006-maximum-number-of-activations-exceeded-when-attempting-to-activate-ma
error 4301: MATLAB was unable to install the MathWorks Service Host https://www.mathworks.com/matlabcentral/answers/2173200-why-do-i-receive-error-4301-error-initializing-licensing-could-not-start-mathworks-service-host
error 4401: MCDS communications error or firewall problem https://www.mathworks.com/matlabcentral/answers/264358-why-do-i-receive-license-error-4401-when-validating-my-mdcs-cluster
error 4402: connection error reaching Mathworks hosted license https://www.mathworks.com/matlabcentral/answers/279686-why-do-i-receive-license-manager-error-4402-when-launching-matlab-using-a-login-named-user-license
error 5016: bug installing license when SMS expired, fixed R2011a https://www.mathworks.com/matlabcentral/answers/100128-why-do-i-receive-an-error-5016-when-installing-matlab
error 5202: incompatible MacOS version, or need to restart Service Host, or antivirus problems https://www.mathworks.com/matlabcentral/answers/1815390-why-do-i-receive-error-5202-unable-to-access-services-required-to-run-matlab
error 7000: you are probably trying to enter Activation Key in File Installation Key field or other way around https://www.mathworks.com/matlabcentral/answers/196997-why-do-i-receive-an-error-510-when-installing-or-error-7000-or-error-379-when-activating-matlab
Miscellaneous
MATLAB cannot verify your license rights over the Internet https://www.mathworks.com/matlabcentral/answers/195430-why-do-i-see-the-error-matlab-cannot-verify-your-license-rights-over-the-internet-when-launching-m
on monitoring license usage: https://www.mathworks.com/matlabcentral/answers/102546-how-do-i-monitor-the-usage-of-license-keys-for-matlab-and-toolboxes
Application error The instruction at 0x78011f41 referenced memory at 0x000622d4: license manager DNS problems for R12 and R13 https://www.mathworks.com/matlabcentral/answers/94313-why-do-i-receive-an-application-error-when-starting-matlab-on-my-win-2000-machine
Prevent users from running the license manager utilities: https://www.mathworks.com/matlabcentral/answers/94180-how-do-i-prevent-users-from-running-lmdown-lmremove-or-lmreread-from-a-client-machine
Host ID shows up as 000000000000 on Linux: https://www.mathworks.com/matlabcentral/answers/100235-why-can-t-i-activate-matlab-or-start-the-network-license-manager-in-a-newer-linux-environment
license manager will not start on Suse 9.3 due to case sensitivity: https://www.mathworks.com/matlabcentral/answers/93767-why-does-the-network-license-manager-not-start-at-boot-time-on-my-suse-9-3-linux-machine
/sys/os/glnxa64/libstdc++.so.6: file too short: https://www.mathworks.com/matlabcentral/answers/301508-why-do-i-get-the-error-mlm-error-while-loading-shared-libraries-sys-os-glnxa64-libstdc-so-6-f
Incorrectly built binary which accesses errno, h_errno or_res directly: https://www.mathworks.com/matlabcentral/answers/102247-why-do-i-receive-an-error-message-about-an-incorrectly-built-binary-on-my-linux-system-when-starting It can be a nuisance to find the meaning of the various license manager error codes, so I have summarized below. Numbered error codes that are not LME errors are listed in the table after that.
In many cases, the error number will be displayed twice to the user, with the first version being the major error number (such as "Error -15") and the second (less obvious) occurance having a more specific subcode (such as "Error -15,570") that acts to narrow down the cause of the error. In the below list, when subcodes are not known for a cause, the known causes are listed under the major error number; but when the subcode is known for the cause, the more specific cases are listed in numeric subcode order. This includes, for example, that the major cause of major error -9 is not listed directly in the error -9 paragraph, and is instead listed immediately afterwards in the error -9,57 paragraph. If you do not have a subcode available, review all of the entries with the same error major error number.
error -1: cannot find or read license file https://www.mathworks.com/matlabcentral/answers/101018-why-do-i-receive-license-manager-error-1; or PLP misentered or for wrong version https://www.mathworks.com/matlabcentral/answers/94774-why-do-i-receive-an-error-1-after-entering-my-plp-during-a-windows-installation-of-matlab (Note there is also error 1731 that could be confused with -1,xxx errors.)
error -1,714: MAC problems https://www.mathworks.com/matlabcentral/answers/100235-why-can-t-i-activate-matlab-or-start-the-license-manager-in-a-newer-linux-environment#answer_220657
error -2: polyspace license file error https://www.mathworks.com/matlabcentral/answers/101696-why-does-polyspace-become-queued-due-to-license-failure-and-my-log-files-contain-a-license-manager
error -2,413: extra cr or newlines in license file https://www.mathworks.com/matlabcentral/answers/94656-why-do-i-receive-license-manager-error-2;
error -2,753 : you do not need to activate this license. https://www.mathworks.com/matlabcentral/answers/2176070-why-do-i-receive-error-2-753-this-license-does-not-need-to-be-activated-when-activating-matlab
error -3: DAEMON line is wrong on server https://www.mathworks.com/matlabcentral/answers/101344-why-do-i-receive-license-manager-error-3
error -3,121 environment variable not set right https://www.mathworks.com/matlabcentral/answers/100948-why-do-i-get-license-manager-error-3-when-i-try-to-use-the-matlab-compiler
error -4: polyspace https://www.mathworks.com/matlabcentral/answers/215635-why-do-i-receive-a-license-manager-error-4-in-polyspace ; webapps not shut down: https://www.mathworks.com/matlabcentral/answers/2174566-license-manager-error-4-if-matlab-web-app-server-is-not-stopped-before-computer-is-shut-down
error -4,0: all licenses for toolbox are checked out https://www.mathworks.com/matlabcentral/answers/101313-why-do-i-receive-the-error-license-manager-error-4
error -5: misconfigured for redundant servers https://www.mathworks.com/matlabcentral/answers/293231-why-do-i-receive-license-manager-error-5-when-using-redundant-servers; or redundant server bug in R2016a https://www.mathworks.com/matlabcentral/answers/293224-why-do-i-receive-an-activation-loop-when-using-redundant-servers ; or port conflict, or need to update flexlm https://www.mathworks.com/matlabcentral/answers/93789-why-do-i-receive-a-flexnet-licensing-error-17-xx-system-error-10054-winsock-connection-reset
error -5,357: product you are not licensed for https://www.mathworks.com/matlabcentral/answers/98719-why-do-i-receive-license-manager-error-5; or you asked for license diagnostics https://www.mathworks.com/matlabcentral/answers/163423-why-do-i-receive-multiple-license-manager-error-5-s-for-products-not-on-my-licenses-when-starting-m
error -7: used to be you need to update the license server https://www.mathworks.com/matlabcentral/answers/216384-why-do-i-receive-license-manager-error-7 but now is license daemon problems
error -8: corrupt license file, or license server hostid not same as license file https://www.mathworks.com/matlabcentral/answers/100496-why-do-i-receive-license-manager-error-8; or flexnet bug for redundant servers https://www.mathworks.com/matlabcentral/answers/103212-why-am-i-getting-a-license-manager-error-8-when-running-redundant-servers; or bug that affected locale Turkey https://www.mathworks.com/matlabcentral/answers/357580-why-do-i-see-license-manager-error-8-when-launching-matlab-on-linux-when-my-locale-is-set-to-turkey; or attempt to use cracked license
error -9: you may need interface en1 for Mac or disk serial number with leading 0 for Windows https://www.mathworks.com/matlabcentral/answers/91555-why-am-i-getting-an-error-9-after-manually-activating-a-windows-machine-with-a-disk-serial-number-t ; or wrong disk serial number for polyspace https://www.mathworks.com/matlabcentral/answers/93587-why-do-i-receive-a-license-error-9-when-using-a-polyspace-client-locked-to-the-computer-s-hard-driv; or R2008a Active Directory and username case sensitivity https://www.mathworks.com/matlabcentral/answers/93146-why-do-i-receive-a-license-manager-error-9-in-matlab-r2008a-after-changing-network-connections-on-w; or running R12 with old dongle https://www.mathworks.com/matlabcentral/answers/97510-why-do-i-receive-license-manager-error-9-when-i-run-matlab-6-0-r12-with-a-dongle
error -9,57: username mismatch https://www.mathworks.com/matlabcentral/answers/99067-why-do-i-receive-license-manager-error-9
error -10: license (possibly trial) expired https://www.mathworks.com/matlabcentral/answers/93260-why-do-i-receive-license-manager-error-10
error -11: misformatted expiry date https://www.mathworks.com/matlabcentral/answers/94755-why-do-i-receive-license-manager-error-11
error -12: problems communicating with license server https://www.mathworks.com/matlabcentral/answers/98736-why-do-i-receive-license-manager-error-12
error -13: missing SERVER or DAEMON lines in license file https://www.mathworks.com/matlabcentral/answers/100538-why-do-i-receive-license-manager-error-13
error -14: server name listed on client must be same as what the server knows itself as https://www.mathworks.com/matlabcentral/answers/96049-why-do-i-receive-license-manager-error-14
error -15: attempt to borrow license over remote network timed out https://www.mathworks.com/matlabcentral/answers/97930-why-do-i-receive-a-license-manager-error-15-when-trying-to-checkout-a-license-key-from-a-distant-lo ; or log says MLM exited 255: conflict WMI vs MLM https://www.mathworks.com/matlabcentral/answers/126051-why-do-i-get-an-license-manager-error-15-on-my-windows-os-server-and-my-server-log-file-states-that
error -15,10: license server not running or cannot be reached https://www.mathworks.com/matlabcentral/answers/98092-why-do-i-receive-license-manager-error-15; or MLM problem communicating with lmgrd https://www.mathworks.com/matlabcentral/answers/222781-why-do-i-get-an-exiting-due-to-signal-39-error-when-trying-to-start-my-license-manager
error -15,570: problem reaching license server due to port problem or security software https://www.mathworks.com/matlabcentral/answers/91576-why-do-i-receive-flexlm-error-15-570-system-error-10038-winsock-specified-socket-is-invalid-w
error -16: wrong path to MLM in your license file https://www.mathworks.com/matlabcentral/answers/93627-why-do-i-receive-license-manager-error-16; or ran out of file descriptors on Solaris 9 https://www.mathworks.com/matlabcentral/answers/99367-why-am-i-receiving-license-manager-error-16-when-starting-flexlm-8-0d-on-a-solaris-9-machine;
error -16,287: path to MLM too long in R2009a https://www.mathworks.com/matlabcentral/answers/100367-why-do-i-receive-a-license-manager-error-16-when-my-directory-for-flexnet-is-very-long
error -17: port conflict or license manager needs update https://www.mathworks.com/matlabcentral/answers/93789-why-do-i-receive-a-flexnet-licensing-error-17-xx-system-error-10054-winsock-connection-reset
error -17,13: problem with license file or communicating with server https://www.mathworks.com/matlabcentral/answers/93815-why-do-i-receive-a-flexlm-error-17-xxx-system-error-10038-winsock-specified-socket-is-inva
error -18: restart your license manager after updating license https://www.mathworks.com/matlabcentral/answers/106124-why-do-i-receive-license-manager-error-18; or DAEMON line is wrong, or quorum problems https://www.mathworks.com/matlabcentral/answers/349491-why-do-i-receive-mlm-not-master-server-checkout-attempt-of-matlab-from-user-host-refused-in-t
error -21: you need a newer license file for this MATLAB release https://www.mathworks.com/matlabcentral/answers/100851-why-do-i-receive-license-manager-error-21
error -25: you need a newer license file to support new license feature https://www.mathworks.com/matlabcentral/answers/95993-why-do-i-receive-license-manager-error-25
error -29: no hardwired ethernet on Mac https://www.mathworks.com/matlabcentral/answers/184573-why-do-i-receive-a-flexnet-error-29-cannot-find-ethernet-device-when-trying-to-start-matlab
error -31: current date is before date MATLAB was installed https://www.mathworks.com/matlabcentral/answers/91897-why-do-i-receive-license-manager-error-31
error -33: network connection interrupted https://www.mathworks.com/matlabcentral/answers/94342-why-do-i-receive-license-manager-error-33
error -34: system clock or timezone problem https://www.mathworks.com/matlabcentral/answers/94898-why-do-i-receive-license-manager-error-34 or https://www.mathworks.com/matlabcentral/answers/94745-why-do-i-receive-license-manager-error-34-when-i-start-matlab
error -37: port number mismatch between client and server, you might be running multiple flexlm servers https://www.mathworks.com/matlabcentral/answers/98698-why-do-i-receive-license-manager-error-37
error -38: you have been deliberately excluded from the license https://www.mathworks.com/matlabcentral/answers/102446-why-do-i-receive-license-manager-error-38
error -39: you or your host are not listed in a group license https://www.mathworks.com/matlabcentral/answers/98895-why-do-i-receive-license-manager-error-39 ; or flexlm bug with INCLUDE_BORROW https://www.mathworks.com/matlabcentral/answers/93927-why-does-include_borrow-cause-error-39-with-specifed-features or you have installed product that you are not licensed for https://www.mathworks.com/matlabcentral/answers/695580-license-checkout-failed-user-host-not-on-include-list-for-neural_network_toolbox
error -42,298 https://www.mathworks.com/matlabcentral/answers/245417-license-manager-error-42 "invalid parameter" (possibly host ID inconsistency)
error -59: license port number already in use https://www.mathworks.com/matlabcentral/answers/92542-why-do-i-get-license-manager-error-59-when-starting-the-license-manager
error -63: permissions issue returning borrowed license https://www.mathworks.com/matlabcentral/answers/96938-why-do-i-receive-a-license-administrator-63-error-when-trying-to-return-a-borrowed-license-key
error -67: all keys are busy or reserved for lowwater https://www.mathworks.com/matlabcentral/answers/280252-why-do-i-receive-license-manager-error-67
error -68: license borrowing is not enabled https://www.mathworks.com/matlabcentral/answers/279245-why-do-i-receive-license-manager-error-68
error -83: update license file on server or update flexlm https://www.mathworks.com/matlabcentral/answers/92385-why-do-i-receive-license-manager-error-83
error -84: user based license but no users listed https://www.mathworks.com/matlabcentral/answers/95191-why-do-i-receive-license-manager-error-84
error -87: all licenses are checked out https://www.mathworks.com/matlabcentral/answers/97179-why-do-i-receive-license-manager-error-87 or flexlm bug affecting Simulink for R13 https://www.mathworks.com/matlabcentral/answers/95309-why-do-i-get-license-manager-error-87-when-i-try-open-a-second-model-in-simulink
error -88: your clock is set wrong https://www.mathworks.com/matlabcentral/answers/97478-why-do-i-receive-license-manager-error-88
error -89: license file is for different OS https://www.mathworks.com/matlabcentral/answers/95756-why-do-i-get-license-manager-error-89
error -90: license file format problem https://www.mathworks.com/matlabcentral/answers/99834-why-do-i-receive-the-error-license-manager-error-90
error -92: problem with license file on server https://www.mathworks.com/matlabcentral/answers/96724-why-am-i-receiving-license-manager-error-92
error -95: license server cannot be resolved at license server;https://www.mathworks.com/matlabcentral/answers/95791-why-do-i-receive-license-manager-error-95; dynamic hostname problems on old OS-X versions https://www.mathworks.com/matlabcentral/answers/94341-why-do-i-receive-errors-when-i-try-to-start-either-matlab-or-the-network-license-manager-on-my-mac-o
error -96: license server cannot be resolved at client https://www.mathworks.com/matlabcentral/answers/95122-why-do-i-receive-license-manager-error-96
error -97: MLM failed to start because ports https://www.mathworks.com/matlabcentral/answers/97558-why-do-i-receive-license-manager-error-97; C: drive required to run license server on Windows https://www.mathworks.com/matlabcentral/answers/92414-why-did-i-receive-the-error-can-t-make-directory-c-flexlm-in-my-flexlm-log-file
error -100: use different method of returning borrowed license https://www.mathworks.com/matlabcentral/answers/99240-why-do-i-receive-the-error-cannot-remove-a-linger-license-100-398-when-i-use-the-lmremove-comma
error -101: you do not have a reservation for a product https://www.mathworks.com/matlabcentral/answers/101652-why-do-i-receive-license-manager-error-101
error -103: you cannot always run MATLAB through Remote Desktop https://www.mathworks.com/matlabcentral/answers/91874-why-do-i-receive-license-manager-error-103; or you need at least R2007a for Windows Vista https://www.mathworks.com/matlabcentral/answers/97123-why-do-i-receive-a-license-manager-error-103-when-running-matlab-6-5-r13-on-windows-vista-or-wind
error -104: license borrowed for too long; https://www.mathworks.com/matlabcentral/answers/106148-why-do-i-receive-license-manager-error-104
error -114: license file needs newer license manager https://web.archive.org/web/20170110102956/https://www.mathworks.com/matlabcentral/answers/103563-why-do-i-receive-license-manager-error-114
error -118: connection timed out, possibly firewall problems https://www.mathworks.com/matlabcentral/answers/609471-error-118-during-installation-of-matlab-r2020b-in-windows-computer-is-connected-to-the-internet
error -139: communications timeout, try restricting your wildcards https://www.mathworks.com/matlabcentral/answers/126853-why-do-i-receive-license-manager-error-139
error -140: license file needs newer license manager https://www.mathworks.com/matlabcentral/answers/330007-why-do-i-receive-license-manager-error-140-when-trying-to-start-matlab
error -194: not enough license left for you to check license out https://www.mathworks.com/matlabcentral/answers/127046-why-do-i-get-a-license-manager-error-194-when-i-start-matlab
error -361: license file is for newer version than your license https://www.mathworks.com/matlabcentral/answers/92071-why-do-i-get-activation-error-361-when-performing-a-license-update-within-matlab
error -400: trial license expired but is still in your path https://www.mathworks.com/matlabcentral/answers/153559-why-do-i-receive-license-manager-error-400
error -1302: license file is invalid for R2011a https://www.mathworks.com/matlabcentral/answers/102285-why-do-i-receive-error-1302-invalid-license-number-found-when-starting-my-r2011a-license-manager
There are also some other numbered conditions with slightly different origins
error -1: PLP misentered or for wrong version https://www.mathworks.com/matlabcentral/answers/94774-why-do-i-receive-an-error-1-after-entering-my-plp-during-a-windows-installation-of-matlab
error 1,1731: this license needs Mathworks Hosted License Manager (MHLM) https://www.mathworks.com/matlabcentral/answers/195328-why-do-i-receive-error-1-731-when-activating-mdcs-products, also observed with some trial licenses that included MDCS https://www.mathworks.com/matlabcentral/answers/140155-why-do-i-receive-error-1731-during-activation
error 2: you tried to return a borrowed license but you have a license configuration problem https://www.mathworks.com/matlabcentral/answers/389303-why-do-i-get-error-2-when-returning-a-borrowed-license
error 2,008: R2013a DVD key expired, use R2014a installer https://www.mathworks.com/matlabcentral/answers/121590-why-do-i-receive-the-error-2-008-license-not-active-or-not-found-when-activating-my-copy-of-matlab
error 5,011: trying to install with wrong architecture files https://www.mathworks.com/matlabcentral/answers/125469-why-do-i-receive-error-5-011-when-clicking-next-after-selecting-my-license-number-in-the-matlab-inst
error 16: problems contacting license server for MDCS https://www.mathworks.com/matlabcentral/answers/106144-why-do-i-receive-error-code-16-when-i-try-to-start-matlab-production-server-mps-using-mps-start
error 24: ran out of file descriptors https://www.mathworks.com/matlabcentral/answers/306879-why-does-the-license-manager-failt-to-start-with-the-errno-24-in-the-logfile
MLM signal 27: license file wrapped wrong https://www.mathworks.com/matlabcentral/answers/98645-why-does-the-license-manager-log-file-state-mlm-exiting-due-to-signal-27-after-starting-the-lice
status 37: MLM problem resolving hostname https://www.mathworks.com/matlabcentral/answers/99185-why-do-i-receive-a-vendor-daemon-died-with-status-37-error-message-in-my-debug-log-file-when-tryin
MLM signal 39: MLM problem communicating with lmgrd https://www.mathworks.com/matlabcentral/answers/222781-why-do-i-get-an-exiting-due-to-signal-39-error-when-trying-to-start-my-license-manager
MLM status 52: unicode encoding problem https://www.mathworks.com/matlabcentral/answers/91393-why-does-the-license-manager-report-mlm-exited-with-status-52-no-license-file-with-the-polyspace-l
error 201 when updating MATLAB: file is locked by another program https://www.mathworks.com/matlabcentral/answers/1899890-why-do-i-get-an-unable-to-continue-error-201-when-updating-matlab
MLM status 241: tcp port wrong in license file https://www.mathworks.com/matlabcentral/answers/96143-why-does-the-error-vendor-daemon-died-with-status-241-appear-in-the-lmdebug-file
Polyspace error code 241: is really -15 cannot connect to license server https://www.mathworks.com/matlabcentral/answers/102806-why-does-my-verification-stop-with-the-message-failure-with-error-code-241
MLM status 255: conflict WMI vs MLM https://www.mathworks.com/matlabcentral/answers/126051-why-do-i-get-an-license-manager-error-15-on-my-windows-os-server-and-my-server-log-file-states-that
error 334: you tried to create a profile for an email address that already exists https://www.mathworks.com/matlabcentral/answers/93320-why-do-i-get-a-service-error-error-334-an-attempt-to-create-a-new-profile-for-an-email-address-alr
error 337: problem processing the activation https://www.mathworks.com/matlabcentral/answers/93689-why-do-i-get-the-error-337-the-information-you-provided-could-not-be-processed-please-check-your
error 339 Your Mathworks Account Login session has expired: unknown cause, https://www.mathworks.com/matlabcentral/answers/2043847-why-i-got-error-339-while-trying-to-install-package-signal-processing-toolbox
error 353: you have activated on the maximum number of systems permitted for that license type https://www.mathworks.com/matlabcentral/answers/92674-why-do-i-receive-error-353-or-error-1616-no-more-activations-available-when-attempting-to-activate
activation error 340: change your MATLAB Central account type from Student to Academic https://www.mathworks.com/matlabcentral/answers/96683-why-do-i-receive-an-activation-error-340-or-983-when-activating-my-academic-license
error 345: activation key is no longer valid https://www.mathworks.com/matlabcentral/answers/98193-why-do-i-get-error-345-when-trying-to-activate-my-matlab-license
error 347: this kind of license needs user to have Mathworks account https://www.mathworks.com/matlabcentral/answers/95135-why-do-i-receive-an-error-347-when-activating-my-license; see https://www.mathworks.com/help/install/ug/how-can-i-activate-without-a-mathworks-account.html
error 348: conflict over who will use license https://www.mathworks.com/matlabcentral/answers/97775-why-do-i-get-activation-error-348-when-logged-in-as-a-license-administrator and https://www.mathworks.com/matlabcentral/answers/95794-why-do-i-receive-an-error-348-when-attempting-to-activate-my-matlab-license
error 353: you license admin activated this license https://www.mathworks.com/matlabcentral/answers/95521-why-do-i-get-activation-error-353-when-there-are-no-activations-listed-in-the-license-center
error 354: you tried to move your license to a different host too many times this year https://www.mathworks.com/matlabcentral/answers/99612-why-do-i-receive-an-error-354-when-activating-my-license
error 358: license has expired (while trying to activate) https://www.mathworks.com/matlabcentral/answers/101914-why-do-i-get-an-error-358-when-attempting-to-activate-matlab
error 361: license file is for newer version than your license https://www.mathworks.com/matlabcentral/answers/92071-why-do-i-get-activation-error-361-when-performing-a-license-update-within-matlab
error 375: proxy problems? https://www.mathworks.com/matlabcentral/answers/466842-problem-in-launching-matlab-error-code-375
error 379: you are probably trying to enter Activation Key in File Installation Key field or other way around https://www.mathworks.com/matlabcentral/answers/196997-why-do-i-receive-an-error-510-when-installing-or-error-7000-or-error-379-when-activating-matlab
error 400: you are not authorized to use this on-demand license https://www.mathworks.com/matlabcentral/answers/279690-why-do-i-receive-a-licensing-error-400-when-using-my-mdcs-on-demand-license; or your trial license was not properly converted when you purchased https://www.mathworks.com/matlabcentral/answers/153559-why-do-i-receive-license-manager-error-400
error 510: you are probably trying to enter Activation Key in File Installation Key field or other way around https://www.mathworks.com/matlabcentral/answers/196997-why-do-i-receive-an-error-510-when-installing-or-error-7000-or-error-379-when-activating-matlab
error 624: reactivate instead of Update license https://www.mathworks.com/matlabcentral/answers/101950-why-do-i-get-error-624-when-trying-to-update-my-license-through-matlab
error 655: bug related to switching from Designated Computer to Named User https://www.mathworks.com/matlabcentral/answers/235075-why-do-i-receive-an-error-655-when-activating-matlab
error 668: you tried to move your license to a different username too many times this year https://www.mathworks.com/matlabcentral/answers/100275-why-am-i-getting-an-error-668-maximum-number-of-licensed-end-user-redesignations-during-activatio
error 676: you have so many licenses you need to use Activation Key instead of activation client https://www.mathworks.com/matlabcentral/answers/102858-why-do-i-receive-an-error-676-when-activating-matlab
error 697: you gave the wrong Mathworks password https://www.mathworks.com/matlabcentral/answers/94165-why-do-i-get-error-1001-or-error-697-when-installing-or-activating-matlab
error 956: you tried to activate a network license on a client https://www.mathworks.com/matlabcentral/answers/93733-why-do-i-receive-an-error-956-when-trying-to-activate
activation error 983: change your MATLAB Central account type from Student to Academic https://www.mathworks.com/matlabcentral/answers/96683-why-do-i-receive-an-activation-error-340-or-983-when-activating-my-academic-license
error -1001: you gave the wrong Mathworks password https://www.mathworks.com/matlabcentral/answers/94165-why-do-i-get-error-1001-or-error-697-when-installing-or-activating-matlab
error 1616: you have activated on the maximum number of systems permitted for that license type https://www.mathworks.com/matlabcentral/answers/92674-why-do-i-receive-error-353-or-error-1616-no-more-activations-available-when-attempting-to-activate
error 1731: this license needs Mathworks Hosted License Manager (MHLM) https://www.mathworks.com/matlabcentral/answers/195328-why-do-i-receive-error-1-731-when-activating-mdcs-products, also observed with some trial licenses that included MDCS or trying to activate a license that does not use activation https://www.mathworks.com/matlabcentral/answers/140155-why-do-i-receive-error-1731-during-activation
error 1800, 1801, 1802, 1803, 1804, 1805, 1811: connection errors https://www.mathworks.com/matlabcentral/answers/92634-why-do-i-get-a-connection-error-when-installing-or-activating-matlab-or-other-mathworks-products
error 2002: you are trying to activate MATLAB on too many systems https://www.mathworks.com/matlabcentral/answers/106133-why-do-i-receive-error-2002-the-serial-number-you-entered-cannot-be-activated-after-entering-my
error 2006: you are trying to activate MATLAB on too many systems https://www.mathworks.com/matlabcentral/answers/110846-why-do-i-receive-error-2006-maximum-number-of-activations-exceeded-when-attempting-to-activate-ma
error 4301: MATLAB was unable to install the MathWorks Service Host https://www.mathworks.com/matlabcentral/answers/2173200-why-do-i-receive-error-4301-error-initializing-licensing-could-not-start-mathworks-service-host
error 4401: MCDS communications error or firewall problem https://www.mathworks.com/matlabcentral/answers/264358-why-do-i-receive-license-error-4401-when-validating-my-mdcs-cluster
error 4402: connection error reaching Mathworks hosted license https://www.mathworks.com/matlabcentral/answers/279686-why-do-i-receive-license-manager-error-4402-when-launching-matlab-using-a-login-named-user-license
error 5016: bug installing license when SMS expired, fixed R2011a https://www.mathworks.com/matlabcentral/answers/100128-why-do-i-receive-an-error-5016-when-installing-matlab
error 5202: incompatible MacOS version, or need to restart Service Host, or antivirus problems https://www.mathworks.com/matlabcentral/answers/1815390-why-do-i-receive-error-5202-unable-to-access-services-required-to-run-matlab
error 7000: you are probably trying to enter Activation Key in File Installation Key field or other way around https://www.mathworks.com/matlabcentral/answers/196997-why-do-i-receive-an-error-510-when-installing-or-error-7000-or-error-379-when-activating-matlab
Miscellaneous
MATLAB cannot verify your license rights over the Internet https://www.mathworks.com/matlabcentral/answers/195430-why-do-i-see-the-error-matlab-cannot-verify-your-license-rights-over-the-internet-when-launching-m
on monitoring license usage: https://www.mathworks.com/matlabcentral/answers/102546-how-do-i-monitor-the-usage-of-license-keys-for-matlab-and-toolboxes
Application error The instruction at 0x78011f41 referenced memory at 0x000622d4: license manager DNS problems for R12 and R13 https://www.mathworks.com/matlabcentral/answers/94313-why-do-i-receive-an-application-error-when-starting-matlab-on-my-win-2000-machine
Prevent users from running the license manager utilities: https://www.mathworks.com/matlabcentral/answers/94180-how-do-i-prevent-users-from-running-lmdown-lmremove-or-lmreread-from-a-client-machine
Host ID shows up as 000000000000 on Linux: https://www.mathworks.com/matlabcentral/answers/100235-why-can-t-i-activate-matlab-or-start-the-network-license-manager-in-a-newer-linux-environment
license manager will not start on Suse 9.3 due to case sensitivity: https://www.mathworks.com/matlabcentral/answers/93767-why-does-the-network-license-manager-not-start-at-boot-time-on-my-suse-9-3-linux-machine
/sys/os/glnxa64/libstdc++.so.6: file too short: https://www.mathworks.com/matlabcentral/answers/301508-why-do-i-get-the-error-mlm-error-while-loading-shared-libraries-sys-os-glnxa64-libstdc-so-6-f
Incorrectly built binary which accesses errno, h_errno or_res directly: https://www.mathworks.com/matlabcentral/answers/102247-why-do-i-receive-an-error-message-about-an-incorrectly-built-binary-on-my-linux-system-when-starting flexlm, lme, license error, complete list, cheat sheet MATLAB Answers — New Questions
How to solve error 1616 for licence activation when old computer crashed and License Center doesn’t show a deactivation tab?
My old computer crashed. I tried to install Matlab on my new one. Activation generates error 1616.
Mathworks solution to deactivate the old computer does not apply as it already seems to be desctivated. It does not generate a deactivation tab.
When I try to manually activate the license in the License Center, an unspecified error is generated in case the Mac address has been used or it states that `Information needed to identify your computer is missing or invalid.` when the local ip/address (IPv4) is used.
What more can be tried?My old computer crashed. I tried to install Matlab on my new one. Activation generates error 1616.
Mathworks solution to deactivate the old computer does not apply as it already seems to be desctivated. It does not generate a deactivation tab.
When I try to manually activate the license in the License Center, an unspecified error is generated in case the Mac address has been used or it states that `Information needed to identify your computer is missing or invalid.` when the local ip/address (IPv4) is used.
What more can be tried? My old computer crashed. I tried to install Matlab on my new one. Activation generates error 1616.
Mathworks solution to deactivate the old computer does not apply as it already seems to be desctivated. It does not generate a deactivation tab.
When I try to manually activate the license in the License Center, an unspecified error is generated in case the Mac address has been used or it states that `Information needed to identify your computer is missing or invalid.` when the local ip/address (IPv4) is used.
What more can be tried? deactivation, activation, error 1616 MATLAB Answers — New Questions
Parallel computation leaking memory and slowing a loop
I am doing a parallel computation, specifically a row by row integration of a symbolic matrix (sic I am integrating 4 rows at a time on my quadcore). 2 curious things occur:
*(1)* As the computation progresses, the free RAM steadily gets used up (see graph below). The initial surge in RAM is expected – it is the memory that is "actually" required by the computation. However, I am at a loss to explain why the remaining RAM then steadily continues to be used up. The issue is that eventually, after maybe an hour or so of computation and many rows having been integrated, the RAM is used up. MATLAB then starts to use virtual memory on the HDD, which decreases computation speeds to unacceptable levels (5 fold or so decrease in speed, with further slowing over time). I can circumvent this problem by dividing my matrix into smaller matrices (with fewer rows) that can individually be integrated before HDD switching is required. However, in my estimation this should not be necessary. I have plenty of RAM (16GB) and the actual computation only requires about 2900MB judging by the kink in the graph. Is MATLAB saving output to the RAM? What else could be messing up the memory allocation? The CPU effort never gets above ~65% and is typically around 40%.
<</matlabcentral/answers/uploaded_files/771/memory_allocation.png>>
*(2)* Much more concerning. Before the RAM is used up, a row integration typically takes about 60s per row. However, I just discovered that if I close the worker pool and effectively "reset" my processors (or instead simply restart matlab) and I manually instruct the same exact read/compute/write as is done in the loop, the same computation takes only fractions of a second (see command window dialogue below). I suspect this may be related to (1). This is completely unacceptable, why might this happening?
MATLAB command window output for integration of the first 4 rows:
Starting matlabpool using the ‘local’ profile … connected to 4 workers.
K_a_12
Elapsed time is 8.039642 seconds.
Commencing integration…
currently integrating row 1Elapsed time is 63.642951 seconds.
currently integrating row 3Elapsed time is 64.052436 seconds.
currently integrating row 4Elapsed time is 63.787564 seconds.
currently integrating row 2Elapsed time is 64.686729 seconds.
>> tic
K_a_12(2,:)=2*h_a*int(int(K_a_12_unintegrated(2,:),y,0,W),x);
toc
Elapsed time is 49.989623 seconds.
>> matlabpool close
Sending a stop signal to all the workers … stopped.
>> %Assign 4 cores
if matlabpool(‘size’) == 0
matlabpool open 4
end
Starting matlabpool using the ‘local’ profile … connected to 4 workers.
>> tic
K_a_12(2,:)=2*h_a*int(int(K_a_12_unintegrated(2,:),y,0,W),x);
toc
Elapsed time is 0.360260 seconds.
>>
My source code is attached below (note that symbolic toolbox is required). If you do not have a quadcore processor, you can change _matlabpool open 4_ to _matlabpool open_ [# of processors on your machine]:
%% Initialization
%Clear variables
clear;
clc;
%Assign 4 cores
if matlabpool(‘size’) == 0
matlabpool open 4
end
%% Problem description
syms G_a E_a h_a L1 L2 La W h_1 h_2 A1 B1 D1 G1 a11 a12 a16 a22 a26 a66 b11 b12 b16 b22 b26 b66 d11 d12 d16 d22 d26 d66 a44 a45 a55
% Laminate 1
A1=[a11,a12,a16;a12,a22,a26;a16,a26,a66];
B1=zeros(3);
D1=[d11,d12,d16;d12,d22,d26;d16,d26,d66];
G1=[a44,a45;a45,a55];
%Laminate 2
A2=A1;
B2=B1;
D2=D1;
G2=G1;
%% Assumed Displacement Field
m=10;
n=5;
syms x y z
B11 = sym(zeros(m+1, 1));
B21 = sym(zeros(m+1, 1));
B12 = sym(zeros(n+1, 1));
B22 = sym(zeros(n+1, 1));
for i = 0:m
A=factorial(m)/(factorial(i)*factorial(m-i))*((x-(L2-La))/L1)^i*(1-(x-(L2-La))/L1)^(m-i);
B11(i+1)=A;
end
for i = 0:n
B=factorial(n)/(factorial(i)*factorial(n-i))*(y/W)^i*(1-y/W)^(n-i);
B12(i+1)=B;
end
for i = 0:m
A=factorial(m)/(factorial(i)*factorial(m-i))*(x/L2)^i*(1-x/L2)^(m-i);
B21(i+1)=A;
end
for i = 0:n
B=factorial(n)/(factorial(i)*factorial(n-i))*(y/W)^i*(1-y/W)^(n-i);
B22(i+1)=B;
end
zero_vector=zeros((m+1)*(n+1),1);
counter=0;
for i = 0:m
for j=0:n
counter=counter+1;
C=B11(i+1)*B12(j+1);
Vx1(counter,1)=C; %x-displacement
Vy1(counter,1)=C; %y-displacement
Vz1(counter,1)=C; %z-displacement
Vrx1(counter,1)=C; %x-rotation
Vry1(counter,1)=C; %y-rotation
end
end
Vx1=[Vx1;zero_vector;zero_vector;zero_vector;zero_vector];
Vy1=[zero_vector;Vy1;zero_vector;zero_vector;zero_vector];
Vz1=[zero_vector;zero_vector;Vz1;zero_vector;zero_vector];
Vrx1=[zero_vector;zero_vector;zero_vector;Vrx1;zero_vector];
Vry1=[zero_vector;zero_vector;zero_vector;zero_vector;Vry1];
counter=0;
for i = 0:m
for j=0:n
counter=counter+1;
C=B21(i+1)*B22(j+1);
Vx2(counter,1)=C; %x-displacement
Vy2(counter,1)=C; %y-displacement
Vz2(counter,1)=C; %z-displacement
Vrx2(counter,1)=C; %x-rotation
Vry2(counter,1)=C; %y-rotation
end
end
Vx2=[Vx2;zero_vector;zero_vector;zero_vector;zero_vector];
Vy2=[zero_vector;Vy2;zero_vector;zero_vector;zero_vector];
Vz2=[zero_vector;zero_vector;Vz2;zero_vector;zero_vector];
Vrx2=[zero_vector;zero_vector;zero_vector;Vrx2;zero_vector];
Vry2=[zero_vector;zero_vector;zero_vector;zero_vector;Vry2];
Vxx1=diff(Vx1,x);
Vyy1=diff(Vy1,y);
Vxy1=diff(Vx1,y);
Vyx1=diff(Vy1,x);
Vzx1=diff(Vz1,x);
Vzy1=diff(Vz1,y);
Vrxx1=diff(Vrx1,x);
Vryy1=diff(Vry1,y);
Vrxy1=diff(Vrx1,y);
Vryx1=diff(Vry1,x);
Vxx2=diff(Vx2,x);
Vyy2=diff(Vy2,y);
Vxy2=diff(Vx2,y);
Vyx2=diff(Vy2,x);
Vzx2=diff(Vz2,x);
Vzy2=diff(Vz2,y);
Vrxx2=diff(Vrx2,x);
Vryy2=diff(Vry2,y);
Vrxy2=diff(Vrx2,y);
Vryx2=diff(Vry2,x);
%Strain matrices
B_epsilon_1=[Vxx1.’;Vyy1.’;Vxy1.’+Vyx1.’];
B_kappa_1=[Vrxx1.’;Vryy1.’;Vrxy1.’+Vryx1.’];
B_gamma_1=[Vzy1.’-Vry1.’;Vzx1.’-Vrx1.’];
B_epsilon_2=[Vxx2.’;Vyy2.’;Vxy2.’+Vyx2.’];
B_kappa_2=[Vrxx2.’;Vryy2.’;Vrxy2.’+Vryx2.’];
B_gamma_2=[Vzy2.’-Vry2.’;Vzx2.’-Vrx2.’];
B_a_1=1/(2*h_a)*[(-Vz1).’;(-Vx1).’+h_1*Vrx1.’;(-Vy1).’+h_1*Vry1.’];
B_a_2=1/(2*h_a)*[Vz2.’;Vx2.’+h_2*Vrx2.’;Vy2.’+h_2*Vry2.’];
B_1=[B_epsilon_1;B_kappa_1;B_gamma_1];
B_2=[B_epsilon_2;B_kappa_2;B_gamma_2];
C1=[A1,B1,zeros(3,2);B1,D1,zeros(3,2);zeros(2,6),G1];
C2=[A2,B2,zeros(3,2);B2,D2,zeros(3,2);zeros(2,6),G2];
Ca=[E_a,0,0;0,G_a,0;0,0,G_a];
%————————————
%!!! THIS IS WHERE THE PROBLEMS OCCUR
%————————————
%K_a_12
disp(‘K_a_12’)
tic
K_a_12_unintegrated=B_a_1.’*Ca*B_a_2;
K_a_12_unintegrated = reshape(K_a_12_unintegrated,1089,100);
K_a_12=sym(zeros(1089,100));
toc
fprintf(‘Commencing integration…n’);
parfor i=1:1089
tic
fprintf(‘currently integrating row %d’,i);
K_a_12(i,:)=2*h_a*int(int(K_a_12_unintegrated(i,:),y,0,W),x);
toc
end
return;I am doing a parallel computation, specifically a row by row integration of a symbolic matrix (sic I am integrating 4 rows at a time on my quadcore). 2 curious things occur:
*(1)* As the computation progresses, the free RAM steadily gets used up (see graph below). The initial surge in RAM is expected – it is the memory that is "actually" required by the computation. However, I am at a loss to explain why the remaining RAM then steadily continues to be used up. The issue is that eventually, after maybe an hour or so of computation and many rows having been integrated, the RAM is used up. MATLAB then starts to use virtual memory on the HDD, which decreases computation speeds to unacceptable levels (5 fold or so decrease in speed, with further slowing over time). I can circumvent this problem by dividing my matrix into smaller matrices (with fewer rows) that can individually be integrated before HDD switching is required. However, in my estimation this should not be necessary. I have plenty of RAM (16GB) and the actual computation only requires about 2900MB judging by the kink in the graph. Is MATLAB saving output to the RAM? What else could be messing up the memory allocation? The CPU effort never gets above ~65% and is typically around 40%.
<</matlabcentral/answers/uploaded_files/771/memory_allocation.png>>
*(2)* Much more concerning. Before the RAM is used up, a row integration typically takes about 60s per row. However, I just discovered that if I close the worker pool and effectively "reset" my processors (or instead simply restart matlab) and I manually instruct the same exact read/compute/write as is done in the loop, the same computation takes only fractions of a second (see command window dialogue below). I suspect this may be related to (1). This is completely unacceptable, why might this happening?
MATLAB command window output for integration of the first 4 rows:
Starting matlabpool using the ‘local’ profile … connected to 4 workers.
K_a_12
Elapsed time is 8.039642 seconds.
Commencing integration…
currently integrating row 1Elapsed time is 63.642951 seconds.
currently integrating row 3Elapsed time is 64.052436 seconds.
currently integrating row 4Elapsed time is 63.787564 seconds.
currently integrating row 2Elapsed time is 64.686729 seconds.
>> tic
K_a_12(2,:)=2*h_a*int(int(K_a_12_unintegrated(2,:),y,0,W),x);
toc
Elapsed time is 49.989623 seconds.
>> matlabpool close
Sending a stop signal to all the workers … stopped.
>> %Assign 4 cores
if matlabpool(‘size’) == 0
matlabpool open 4
end
Starting matlabpool using the ‘local’ profile … connected to 4 workers.
>> tic
K_a_12(2,:)=2*h_a*int(int(K_a_12_unintegrated(2,:),y,0,W),x);
toc
Elapsed time is 0.360260 seconds.
>>
My source code is attached below (note that symbolic toolbox is required). If you do not have a quadcore processor, you can change _matlabpool open 4_ to _matlabpool open_ [# of processors on your machine]:
%% Initialization
%Clear variables
clear;
clc;
%Assign 4 cores
if matlabpool(‘size’) == 0
matlabpool open 4
end
%% Problem description
syms G_a E_a h_a L1 L2 La W h_1 h_2 A1 B1 D1 G1 a11 a12 a16 a22 a26 a66 b11 b12 b16 b22 b26 b66 d11 d12 d16 d22 d26 d66 a44 a45 a55
% Laminate 1
A1=[a11,a12,a16;a12,a22,a26;a16,a26,a66];
B1=zeros(3);
D1=[d11,d12,d16;d12,d22,d26;d16,d26,d66];
G1=[a44,a45;a45,a55];
%Laminate 2
A2=A1;
B2=B1;
D2=D1;
G2=G1;
%% Assumed Displacement Field
m=10;
n=5;
syms x y z
B11 = sym(zeros(m+1, 1));
B21 = sym(zeros(m+1, 1));
B12 = sym(zeros(n+1, 1));
B22 = sym(zeros(n+1, 1));
for i = 0:m
A=factorial(m)/(factorial(i)*factorial(m-i))*((x-(L2-La))/L1)^i*(1-(x-(L2-La))/L1)^(m-i);
B11(i+1)=A;
end
for i = 0:n
B=factorial(n)/(factorial(i)*factorial(n-i))*(y/W)^i*(1-y/W)^(n-i);
B12(i+1)=B;
end
for i = 0:m
A=factorial(m)/(factorial(i)*factorial(m-i))*(x/L2)^i*(1-x/L2)^(m-i);
B21(i+1)=A;
end
for i = 0:n
B=factorial(n)/(factorial(i)*factorial(n-i))*(y/W)^i*(1-y/W)^(n-i);
B22(i+1)=B;
end
zero_vector=zeros((m+1)*(n+1),1);
counter=0;
for i = 0:m
for j=0:n
counter=counter+1;
C=B11(i+1)*B12(j+1);
Vx1(counter,1)=C; %x-displacement
Vy1(counter,1)=C; %y-displacement
Vz1(counter,1)=C; %z-displacement
Vrx1(counter,1)=C; %x-rotation
Vry1(counter,1)=C; %y-rotation
end
end
Vx1=[Vx1;zero_vector;zero_vector;zero_vector;zero_vector];
Vy1=[zero_vector;Vy1;zero_vector;zero_vector;zero_vector];
Vz1=[zero_vector;zero_vector;Vz1;zero_vector;zero_vector];
Vrx1=[zero_vector;zero_vector;zero_vector;Vrx1;zero_vector];
Vry1=[zero_vector;zero_vector;zero_vector;zero_vector;Vry1];
counter=0;
for i = 0:m
for j=0:n
counter=counter+1;
C=B21(i+1)*B22(j+1);
Vx2(counter,1)=C; %x-displacement
Vy2(counter,1)=C; %y-displacement
Vz2(counter,1)=C; %z-displacement
Vrx2(counter,1)=C; %x-rotation
Vry2(counter,1)=C; %y-rotation
end
end
Vx2=[Vx2;zero_vector;zero_vector;zero_vector;zero_vector];
Vy2=[zero_vector;Vy2;zero_vector;zero_vector;zero_vector];
Vz2=[zero_vector;zero_vector;Vz2;zero_vector;zero_vector];
Vrx2=[zero_vector;zero_vector;zero_vector;Vrx2;zero_vector];
Vry2=[zero_vector;zero_vector;zero_vector;zero_vector;Vry2];
Vxx1=diff(Vx1,x);
Vyy1=diff(Vy1,y);
Vxy1=diff(Vx1,y);
Vyx1=diff(Vy1,x);
Vzx1=diff(Vz1,x);
Vzy1=diff(Vz1,y);
Vrxx1=diff(Vrx1,x);
Vryy1=diff(Vry1,y);
Vrxy1=diff(Vrx1,y);
Vryx1=diff(Vry1,x);
Vxx2=diff(Vx2,x);
Vyy2=diff(Vy2,y);
Vxy2=diff(Vx2,y);
Vyx2=diff(Vy2,x);
Vzx2=diff(Vz2,x);
Vzy2=diff(Vz2,y);
Vrxx2=diff(Vrx2,x);
Vryy2=diff(Vry2,y);
Vrxy2=diff(Vrx2,y);
Vryx2=diff(Vry2,x);
%Strain matrices
B_epsilon_1=[Vxx1.’;Vyy1.’;Vxy1.’+Vyx1.’];
B_kappa_1=[Vrxx1.’;Vryy1.’;Vrxy1.’+Vryx1.’];
B_gamma_1=[Vzy1.’-Vry1.’;Vzx1.’-Vrx1.’];
B_epsilon_2=[Vxx2.’;Vyy2.’;Vxy2.’+Vyx2.’];
B_kappa_2=[Vrxx2.’;Vryy2.’;Vrxy2.’+Vryx2.’];
B_gamma_2=[Vzy2.’-Vry2.’;Vzx2.’-Vrx2.’];
B_a_1=1/(2*h_a)*[(-Vz1).’;(-Vx1).’+h_1*Vrx1.’;(-Vy1).’+h_1*Vry1.’];
B_a_2=1/(2*h_a)*[Vz2.’;Vx2.’+h_2*Vrx2.’;Vy2.’+h_2*Vry2.’];
B_1=[B_epsilon_1;B_kappa_1;B_gamma_1];
B_2=[B_epsilon_2;B_kappa_2;B_gamma_2];
C1=[A1,B1,zeros(3,2);B1,D1,zeros(3,2);zeros(2,6),G1];
C2=[A2,B2,zeros(3,2);B2,D2,zeros(3,2);zeros(2,6),G2];
Ca=[E_a,0,0;0,G_a,0;0,0,G_a];
%————————————
%!!! THIS IS WHERE THE PROBLEMS OCCUR
%————————————
%K_a_12
disp(‘K_a_12’)
tic
K_a_12_unintegrated=B_a_1.’*Ca*B_a_2;
K_a_12_unintegrated = reshape(K_a_12_unintegrated,1089,100);
K_a_12=sym(zeros(1089,100));
toc
fprintf(‘Commencing integration…n’);
parfor i=1:1089
tic
fprintf(‘currently integrating row %d’,i);
K_a_12(i,:)=2*h_a*int(int(K_a_12_unintegrated(i,:),y,0,W),x);
toc
end
return; I am doing a parallel computation, specifically a row by row integration of a symbolic matrix (sic I am integrating 4 rows at a time on my quadcore). 2 curious things occur:
*(1)* As the computation progresses, the free RAM steadily gets used up (see graph below). The initial surge in RAM is expected – it is the memory that is "actually" required by the computation. However, I am at a loss to explain why the remaining RAM then steadily continues to be used up. The issue is that eventually, after maybe an hour or so of computation and many rows having been integrated, the RAM is used up. MATLAB then starts to use virtual memory on the HDD, which decreases computation speeds to unacceptable levels (5 fold or so decrease in speed, with further slowing over time). I can circumvent this problem by dividing my matrix into smaller matrices (with fewer rows) that can individually be integrated before HDD switching is required. However, in my estimation this should not be necessary. I have plenty of RAM (16GB) and the actual computation only requires about 2900MB judging by the kink in the graph. Is MATLAB saving output to the RAM? What else could be messing up the memory allocation? The CPU effort never gets above ~65% and is typically around 40%.
<</matlabcentral/answers/uploaded_files/771/memory_allocation.png>>
*(2)* Much more concerning. Before the RAM is used up, a row integration typically takes about 60s per row. However, I just discovered that if I close the worker pool and effectively "reset" my processors (or instead simply restart matlab) and I manually instruct the same exact read/compute/write as is done in the loop, the same computation takes only fractions of a second (see command window dialogue below). I suspect this may be related to (1). This is completely unacceptable, why might this happening?
MATLAB command window output for integration of the first 4 rows:
Starting matlabpool using the ‘local’ profile … connected to 4 workers.
K_a_12
Elapsed time is 8.039642 seconds.
Commencing integration…
currently integrating row 1Elapsed time is 63.642951 seconds.
currently integrating row 3Elapsed time is 64.052436 seconds.
currently integrating row 4Elapsed time is 63.787564 seconds.
currently integrating row 2Elapsed time is 64.686729 seconds.
>> tic
K_a_12(2,:)=2*h_a*int(int(K_a_12_unintegrated(2,:),y,0,W),x);
toc
Elapsed time is 49.989623 seconds.
>> matlabpool close
Sending a stop signal to all the workers … stopped.
>> %Assign 4 cores
if matlabpool(‘size’) == 0
matlabpool open 4
end
Starting matlabpool using the ‘local’ profile … connected to 4 workers.
>> tic
K_a_12(2,:)=2*h_a*int(int(K_a_12_unintegrated(2,:),y,0,W),x);
toc
Elapsed time is 0.360260 seconds.
>>
My source code is attached below (note that symbolic toolbox is required). If you do not have a quadcore processor, you can change _matlabpool open 4_ to _matlabpool open_ [# of processors on your machine]:
%% Initialization
%Clear variables
clear;
clc;
%Assign 4 cores
if matlabpool(‘size’) == 0
matlabpool open 4
end
%% Problem description
syms G_a E_a h_a L1 L2 La W h_1 h_2 A1 B1 D1 G1 a11 a12 a16 a22 a26 a66 b11 b12 b16 b22 b26 b66 d11 d12 d16 d22 d26 d66 a44 a45 a55
% Laminate 1
A1=[a11,a12,a16;a12,a22,a26;a16,a26,a66];
B1=zeros(3);
D1=[d11,d12,d16;d12,d22,d26;d16,d26,d66];
G1=[a44,a45;a45,a55];
%Laminate 2
A2=A1;
B2=B1;
D2=D1;
G2=G1;
%% Assumed Displacement Field
m=10;
n=5;
syms x y z
B11 = sym(zeros(m+1, 1));
B21 = sym(zeros(m+1, 1));
B12 = sym(zeros(n+1, 1));
B22 = sym(zeros(n+1, 1));
for i = 0:m
A=factorial(m)/(factorial(i)*factorial(m-i))*((x-(L2-La))/L1)^i*(1-(x-(L2-La))/L1)^(m-i);
B11(i+1)=A;
end
for i = 0:n
B=factorial(n)/(factorial(i)*factorial(n-i))*(y/W)^i*(1-y/W)^(n-i);
B12(i+1)=B;
end
for i = 0:m
A=factorial(m)/(factorial(i)*factorial(m-i))*(x/L2)^i*(1-x/L2)^(m-i);
B21(i+1)=A;
end
for i = 0:n
B=factorial(n)/(factorial(i)*factorial(n-i))*(y/W)^i*(1-y/W)^(n-i);
B22(i+1)=B;
end
zero_vector=zeros((m+1)*(n+1),1);
counter=0;
for i = 0:m
for j=0:n
counter=counter+1;
C=B11(i+1)*B12(j+1);
Vx1(counter,1)=C; %x-displacement
Vy1(counter,1)=C; %y-displacement
Vz1(counter,1)=C; %z-displacement
Vrx1(counter,1)=C; %x-rotation
Vry1(counter,1)=C; %y-rotation
end
end
Vx1=[Vx1;zero_vector;zero_vector;zero_vector;zero_vector];
Vy1=[zero_vector;Vy1;zero_vector;zero_vector;zero_vector];
Vz1=[zero_vector;zero_vector;Vz1;zero_vector;zero_vector];
Vrx1=[zero_vector;zero_vector;zero_vector;Vrx1;zero_vector];
Vry1=[zero_vector;zero_vector;zero_vector;zero_vector;Vry1];
counter=0;
for i = 0:m
for j=0:n
counter=counter+1;
C=B21(i+1)*B22(j+1);
Vx2(counter,1)=C; %x-displacement
Vy2(counter,1)=C; %y-displacement
Vz2(counter,1)=C; %z-displacement
Vrx2(counter,1)=C; %x-rotation
Vry2(counter,1)=C; %y-rotation
end
end
Vx2=[Vx2;zero_vector;zero_vector;zero_vector;zero_vector];
Vy2=[zero_vector;Vy2;zero_vector;zero_vector;zero_vector];
Vz2=[zero_vector;zero_vector;Vz2;zero_vector;zero_vector];
Vrx2=[zero_vector;zero_vector;zero_vector;Vrx2;zero_vector];
Vry2=[zero_vector;zero_vector;zero_vector;zero_vector;Vry2];
Vxx1=diff(Vx1,x);
Vyy1=diff(Vy1,y);
Vxy1=diff(Vx1,y);
Vyx1=diff(Vy1,x);
Vzx1=diff(Vz1,x);
Vzy1=diff(Vz1,y);
Vrxx1=diff(Vrx1,x);
Vryy1=diff(Vry1,y);
Vrxy1=diff(Vrx1,y);
Vryx1=diff(Vry1,x);
Vxx2=diff(Vx2,x);
Vyy2=diff(Vy2,y);
Vxy2=diff(Vx2,y);
Vyx2=diff(Vy2,x);
Vzx2=diff(Vz2,x);
Vzy2=diff(Vz2,y);
Vrxx2=diff(Vrx2,x);
Vryy2=diff(Vry2,y);
Vrxy2=diff(Vrx2,y);
Vryx2=diff(Vry2,x);
%Strain matrices
B_epsilon_1=[Vxx1.’;Vyy1.’;Vxy1.’+Vyx1.’];
B_kappa_1=[Vrxx1.’;Vryy1.’;Vrxy1.’+Vryx1.’];
B_gamma_1=[Vzy1.’-Vry1.’;Vzx1.’-Vrx1.’];
B_epsilon_2=[Vxx2.’;Vyy2.’;Vxy2.’+Vyx2.’];
B_kappa_2=[Vrxx2.’;Vryy2.’;Vrxy2.’+Vryx2.’];
B_gamma_2=[Vzy2.’-Vry2.’;Vzx2.’-Vrx2.’];
B_a_1=1/(2*h_a)*[(-Vz1).’;(-Vx1).’+h_1*Vrx1.’;(-Vy1).’+h_1*Vry1.’];
B_a_2=1/(2*h_a)*[Vz2.’;Vx2.’+h_2*Vrx2.’;Vy2.’+h_2*Vry2.’];
B_1=[B_epsilon_1;B_kappa_1;B_gamma_1];
B_2=[B_epsilon_2;B_kappa_2;B_gamma_2];
C1=[A1,B1,zeros(3,2);B1,D1,zeros(3,2);zeros(2,6),G1];
C2=[A2,B2,zeros(3,2);B2,D2,zeros(3,2);zeros(2,6),G2];
Ca=[E_a,0,0;0,G_a,0;0,0,G_a];
%————————————
%!!! THIS IS WHERE THE PROBLEMS OCCUR
%————————————
%K_a_12
disp(‘K_a_12’)
tic
K_a_12_unintegrated=B_a_1.’*Ca*B_a_2;
K_a_12_unintegrated = reshape(K_a_12_unintegrated,1089,100);
K_a_12=sym(zeros(1089,100));
toc
fprintf(‘Commencing integration…n’);
parfor i=1:1089
tic
fprintf(‘currently integrating row %d’,i);
K_a_12(i,:)=2*h_a*int(int(K_a_12_unintegrated(i,:),y,0,W),x);
toc
end
return; parallel computation, quadcore, matlabpool, memory MATLAB Answers — New Questions
Phase Change Material in Simscape
Dear Sir or Madam,
I would like to model a Phase Change Material in Simscape by editing a normal thermal mass block. I already found this question <https://de.mathworks.com/matlabcentral/answers/300839-simscape-model-of-latent-heat-storage-in-a-pcm> but it’s not working when I put the mentioned code to the thermal mass block. Do you have any idea why it’s not working? I’ll attach the code which is the normal thermal mass block modified with the code I found on that link. But if I want to introduce a Simcape component block it always says "Line: 37 Column: 25 Unexpected MATLAB operator."
Many greetings,
Ralf
if true
component mass
% Thermal Mass
% This block models internal energy storage in a thermal network. The rate
% of temperature increase is proportional to the heat flow rate into the
% material and inversely proportioanl to the mass and specific heat of the
% material.
% Copyright 2005-2016 The MathWorks, Inc.
nodes
M = foundation.thermal.thermal; % :top
end
parameters
m = {1, ‘kg’ }; % Mass
Cps = {200, ‘J/(kg*K)’}; % Specific heat solid
Cpl = {1000, ‘J/(kg*K)’}; % Specific heat liquid
Tmelt = {310, ‘K’}; % Melting Temperature
L = {100, ‘J/(kg)’}; % Specific Latent Heat
end
variables
% Differential variables
T = {value = {300, ‘K’}, priority = priority.high}; % Temperature
Q = {0, ‘W’}; % Heat flow rate
end
branches
Q : M.Q -> *;
end
equations
T == M.T;
if T < Tmelt
Q == m * integral(Cps dT,0,Tmelt)
else if T > Tmelt
Q == m * integral(Cpl dT, Tmelt, Inf)
else
Q == m*L;
end
end
endDear Sir or Madam,
I would like to model a Phase Change Material in Simscape by editing a normal thermal mass block. I already found this question <https://de.mathworks.com/matlabcentral/answers/300839-simscape-model-of-latent-heat-storage-in-a-pcm> but it’s not working when I put the mentioned code to the thermal mass block. Do you have any idea why it’s not working? I’ll attach the code which is the normal thermal mass block modified with the code I found on that link. But if I want to introduce a Simcape component block it always says "Line: 37 Column: 25 Unexpected MATLAB operator."
Many greetings,
Ralf
if true
component mass
% Thermal Mass
% This block models internal energy storage in a thermal network. The rate
% of temperature increase is proportional to the heat flow rate into the
% material and inversely proportioanl to the mass and specific heat of the
% material.
% Copyright 2005-2016 The MathWorks, Inc.
nodes
M = foundation.thermal.thermal; % :top
end
parameters
m = {1, ‘kg’ }; % Mass
Cps = {200, ‘J/(kg*K)’}; % Specific heat solid
Cpl = {1000, ‘J/(kg*K)’}; % Specific heat liquid
Tmelt = {310, ‘K’}; % Melting Temperature
L = {100, ‘J/(kg)’}; % Specific Latent Heat
end
variables
% Differential variables
T = {value = {300, ‘K’}, priority = priority.high}; % Temperature
Q = {0, ‘W’}; % Heat flow rate
end
branches
Q : M.Q -> *;
end
equations
T == M.T;
if T < Tmelt
Q == m * integral(Cps dT,0,Tmelt)
else if T > Tmelt
Q == m * integral(Cpl dT, Tmelt, Inf)
else
Q == m*L;
end
end
end Dear Sir or Madam,
I would like to model a Phase Change Material in Simscape by editing a normal thermal mass block. I already found this question <https://de.mathworks.com/matlabcentral/answers/300839-simscape-model-of-latent-heat-storage-in-a-pcm> but it’s not working when I put the mentioned code to the thermal mass block. Do you have any idea why it’s not working? I’ll attach the code which is the normal thermal mass block modified with the code I found on that link. But if I want to introduce a Simcape component block it always says "Line: 37 Column: 25 Unexpected MATLAB operator."
Many greetings,
Ralf
if true
component mass
% Thermal Mass
% This block models internal energy storage in a thermal network. The rate
% of temperature increase is proportional to the heat flow rate into the
% material and inversely proportioanl to the mass and specific heat of the
% material.
% Copyright 2005-2016 The MathWorks, Inc.
nodes
M = foundation.thermal.thermal; % :top
end
parameters
m = {1, ‘kg’ }; % Mass
Cps = {200, ‘J/(kg*K)’}; % Specific heat solid
Cpl = {1000, ‘J/(kg*K)’}; % Specific heat liquid
Tmelt = {310, ‘K’}; % Melting Temperature
L = {100, ‘J/(kg)’}; % Specific Latent Heat
end
variables
% Differential variables
T = {value = {300, ‘K’}, priority = priority.high}; % Temperature
Q = {0, ‘W’}; % Heat flow rate
end
branches
Q : M.Q -> *;
end
equations
T == M.T;
if T < Tmelt
Q == m * integral(Cps dT,0,Tmelt)
else if T > Tmelt
Q == m * integral(Cpl dT, Tmelt, Inf)
else
Q == m*L;
end
end
end phase change material, simscape MATLAB Answers — New Questions
Can’t install statistics and machine learning tolbox
Hi,
I have problem on installing statistics and machine learning tolbox, error says access denied and I dont have write permission to this folder. My installing version is matlab R2025bHi,
I have problem on installing statistics and machine learning tolbox, error says access denied and I dont have write permission to this folder. My installing version is matlab R2025b Hi,
I have problem on installing statistics and machine learning tolbox, error says access denied and I dont have write permission to this folder. My installing version is matlab R2025b installation, toolbox MATLAB Answers — New Questions
figure won’t come up after using plot
I am fairly new to MATLAB. In the past I’ve been able to plot with no trouble. A figure would automatically come up after I used "plot". Now when I plot, no figure appears. Here’s a simple example:
>> x = 1:10;
>> y = 3*x;
>> plot(x,y)
>>
Nothing comes up after this – no error message, no figure. I’m hoping this involves something simple like changing a setting. It worked fine just a week or two ago.
I tried using the "plottools" command, but that just brings up a blank figure window. It also gives me the following message in the command window:
>> plottools
Warning: OpenGL appears to be installed incorrectly.
> In opengl at 150
In getplottool>createOrGetSelectionManager at 71
In getplottool at 58
In plottools at 148
>>
I should also mention that I have been remote accessing my office computer for the last week and I can’t recall if this problem started before or after. Though I wouldn’t think that would be the cause of the problem. Any help would be greatly appreciated.I am fairly new to MATLAB. In the past I’ve been able to plot with no trouble. A figure would automatically come up after I used "plot". Now when I plot, no figure appears. Here’s a simple example:
>> x = 1:10;
>> y = 3*x;
>> plot(x,y)
>>
Nothing comes up after this – no error message, no figure. I’m hoping this involves something simple like changing a setting. It worked fine just a week or two ago.
I tried using the "plottools" command, but that just brings up a blank figure window. It also gives me the following message in the command window:
>> plottools
Warning: OpenGL appears to be installed incorrectly.
> In opengl at 150
In getplottool>createOrGetSelectionManager at 71
In getplottool at 58
In plottools at 148
>>
I should also mention that I have been remote accessing my office computer for the last week and I can’t recall if this problem started before or after. Though I wouldn’t think that would be the cause of the problem. Any help would be greatly appreciated. I am fairly new to MATLAB. In the past I’ve been able to plot with no trouble. A figure would automatically come up after I used "plot". Now when I plot, no figure appears. Here’s a simple example:
>> x = 1:10;
>> y = 3*x;
>> plot(x,y)
>>
Nothing comes up after this – no error message, no figure. I’m hoping this involves something simple like changing a setting. It worked fine just a week or two ago.
I tried using the "plottools" command, but that just brings up a blank figure window. It also gives me the following message in the command window:
>> plottools
Warning: OpenGL appears to be installed incorrectly.
> In opengl at 150
In getplottool>createOrGetSelectionManager at 71
In getplottool at 58
In plottools at 148
>>
I should also mention that I have been remote accessing my office computer for the last week and I can’t recall if this problem started before or after. Though I wouldn’t think that would be the cause of the problem. Any help would be greatly appreciated. plot, figure, plottools, remote access MATLAB Answers — New Questions
HDL Coder generated Verilog code for 2-D LUT block propogates X in Vivado Simulator
When generating HDL code with HDL Coder for a 2-D Look Up Table block, I observed different behavior between VHDL and Verilog for the same lookup table access:
In VHDL, the generated code uses
to_integer(add_cast + resize(mul_temp, 32))
which ensures that everything is resized into a 32-bit signed domain, producing a deterministic index.
In Verilog, however, the generated code was:
$signed({1’b0, prelookup_idx}) + alpha2_D_Lookup_Table_mul_temp_2
Here, prelookup_idx is only 2 bits, while mul_temp_2 is 35 bits signed. The result is a 35-bit signed expression, and if any bit in the operands propagates X, the whole lookup table output becomes X in Vivado simulator.
Solution
To mimic the VHDL resize behavior, the Verilog code needs explicit truncation and casting:
wire signed [31:0] add_cast_2 = $signed({{30{1’b0}}, prelookup_idx});
wire signed [31:0] mul_temp_2_resized = alpha2_D_Lookup_Table_mul_temp_2[31:0];
wire signed [31:0] idx2 = add_cast_2 + mul_temp_2_resized;
assign alpha2_D_Lookup_Table_tableout3 = alpha2_D_Lookup_Table_7[idx2[5:0]];
With this change:
The 35-bit value is truncated to 32 bits (matching the VHDL resize).
The addition is performed in a 32-bit signed domain.
The X propagation issue in Verilog simulation disappears.
Conclusion
There is a subtle difference between HDL Coder’s VHDL and Verilog backends regarding resize handling.
VHDL always produces a deterministic integer with resize + to_integer.
Verilog can leave the expression at a wider signed width, which increases the chance of X propagation.
Explicit truncation/casting in Verilog aligns its behavior with VHDL and resolves the simulation mismatch.
HDL Coder version is 25.1.When generating HDL code with HDL Coder for a 2-D Look Up Table block, I observed different behavior between VHDL and Verilog for the same lookup table access:
In VHDL, the generated code uses
to_integer(add_cast + resize(mul_temp, 32))
which ensures that everything is resized into a 32-bit signed domain, producing a deterministic index.
In Verilog, however, the generated code was:
$signed({1’b0, prelookup_idx}) + alpha2_D_Lookup_Table_mul_temp_2
Here, prelookup_idx is only 2 bits, while mul_temp_2 is 35 bits signed. The result is a 35-bit signed expression, and if any bit in the operands propagates X, the whole lookup table output becomes X in Vivado simulator.
Solution
To mimic the VHDL resize behavior, the Verilog code needs explicit truncation and casting:
wire signed [31:0] add_cast_2 = $signed({{30{1’b0}}, prelookup_idx});
wire signed [31:0] mul_temp_2_resized = alpha2_D_Lookup_Table_mul_temp_2[31:0];
wire signed [31:0] idx2 = add_cast_2 + mul_temp_2_resized;
assign alpha2_D_Lookup_Table_tableout3 = alpha2_D_Lookup_Table_7[idx2[5:0]];
With this change:
The 35-bit value is truncated to 32 bits (matching the VHDL resize).
The addition is performed in a 32-bit signed domain.
The X propagation issue in Verilog simulation disappears.
Conclusion
There is a subtle difference between HDL Coder’s VHDL and Verilog backends regarding resize handling.
VHDL always produces a deterministic integer with resize + to_integer.
Verilog can leave the expression at a wider signed width, which increases the chance of X propagation.
Explicit truncation/casting in Verilog aligns its behavior with VHDL and resolves the simulation mismatch.
HDL Coder version is 25.1. When generating HDL code with HDL Coder for a 2-D Look Up Table block, I observed different behavior between VHDL and Verilog for the same lookup table access:
In VHDL, the generated code uses
to_integer(add_cast + resize(mul_temp, 32))
which ensures that everything is resized into a 32-bit signed domain, producing a deterministic index.
In Verilog, however, the generated code was:
$signed({1’b0, prelookup_idx}) + alpha2_D_Lookup_Table_mul_temp_2
Here, prelookup_idx is only 2 bits, while mul_temp_2 is 35 bits signed. The result is a 35-bit signed expression, and if any bit in the operands propagates X, the whole lookup table output becomes X in Vivado simulator.
Solution
To mimic the VHDL resize behavior, the Verilog code needs explicit truncation and casting:
wire signed [31:0] add_cast_2 = $signed({{30{1’b0}}, prelookup_idx});
wire signed [31:0] mul_temp_2_resized = alpha2_D_Lookup_Table_mul_temp_2[31:0];
wire signed [31:0] idx2 = add_cast_2 + mul_temp_2_resized;
assign alpha2_D_Lookup_Table_tableout3 = alpha2_D_Lookup_Table_7[idx2[5:0]];
With this change:
The 35-bit value is truncated to 32 bits (matching the VHDL resize).
The addition is performed in a 32-bit signed domain.
The X propagation issue in Verilog simulation disappears.
Conclusion
There is a subtle difference between HDL Coder’s VHDL and Verilog backends regarding resize handling.
VHDL always produces a deterministic integer with resize + to_integer.
Verilog can leave the expression at a wider signed width, which increases the chance of X propagation.
Explicit truncation/casting in Verilog aligns its behavior with VHDL and resolves the simulation mismatch.
HDL Coder version is 25.1. hdl coder generated verilog coder propoagates x MATLAB Answers — New Questions
Why are column names truncated while using “readtable” with long variable names in MATLAB R2024b
When using "readtable" with import options in MATLAB R2024b, I noticed that some column names are unexpectedly truncated or renamed, especially when the original variable names are long. This occurs even though the correct variable names are present in the import options. Why does this happen, and is there a workaround?When using "readtable" with import options in MATLAB R2024b, I noticed that some column names are unexpectedly truncated or renamed, especially when the original variable names are long. This occurs even though the correct variable names are present in the import options. Why does this happen, and is there a workaround? When using "readtable" with import options in MATLAB R2024b, I noticed that some column names are unexpectedly truncated or renamed, especially when the original variable names are long. This occurs even though the correct variable names are present in the import options. Why does this happen, and is there a workaround? readtable, importoptions, truncation MATLAB Answers — New Questions
Why does it take so long to stop my Speedgoat real-time application?
Why does it take so long to stop my Speedgoat real-time application?Why does it take so long to stop my Speedgoat real-time application? Why does it take so long to stop my Speedgoat real-time application? speedgoat, slrt, stop, delay, freeze MATLAB Answers — New Questions
how to calculate common dates from two date arrays?
I have two arrays with many datenums in format [startTime endTime]. I am trying to find a way to calculate all common datetimes (i.e duration), and end product should be new array where is all [startTime endTime] of all common datetimes.
Example (datenums are datetime for clarity in this example): dates1 array some row is :
[1.10.2025 10:00:00, 1.10.2025 13:00:00]
and some rows in dates2 are:
[1.10.2025 09:30:00, 1.10.2025 11:00:00]
[1.10.2025 12:30:00 ,1.10.2025 14:40:00]
so new array of common times will get rows
[1.10.2025 10:00:00, 1.10.2025 11:00:00]
[1.10.2025 12:30:00, 1.10.2025 13:00:00]
Tried to ask Grok but its function was erroneus. Greatly appreciate help!I have two arrays with many datenums in format [startTime endTime]. I am trying to find a way to calculate all common datetimes (i.e duration), and end product should be new array where is all [startTime endTime] of all common datetimes.
Example (datenums are datetime for clarity in this example): dates1 array some row is :
[1.10.2025 10:00:00, 1.10.2025 13:00:00]
and some rows in dates2 are:
[1.10.2025 09:30:00, 1.10.2025 11:00:00]
[1.10.2025 12:30:00 ,1.10.2025 14:40:00]
so new array of common times will get rows
[1.10.2025 10:00:00, 1.10.2025 11:00:00]
[1.10.2025 12:30:00, 1.10.2025 13:00:00]
Tried to ask Grok but its function was erroneus. Greatly appreciate help! I have two arrays with many datenums in format [startTime endTime]. I am trying to find a way to calculate all common datetimes (i.e duration), and end product should be new array where is all [startTime endTime] of all common datetimes.
Example (datenums are datetime for clarity in this example): dates1 array some row is :
[1.10.2025 10:00:00, 1.10.2025 13:00:00]
and some rows in dates2 are:
[1.10.2025 09:30:00, 1.10.2025 11:00:00]
[1.10.2025 12:30:00 ,1.10.2025 14:40:00]
so new array of common times will get rows
[1.10.2025 10:00:00, 1.10.2025 11:00:00]
[1.10.2025 12:30:00, 1.10.2025 13:00:00]
Tried to ask Grok but its function was erroneus. Greatly appreciate help! intersect, datetime MATLAB Answers — New Questions
How do I report accessibility issues for MATLAB Grader?
How do I report accessibility issues for MATLAB Grader?How do I report accessibility issues for MATLAB Grader? How do I report accessibility issues for MATLAB Grader? accessibility, matlab_grader, grader, distance_learning, matlab grader, vpat MATLAB Answers — New Questions
how to create a volume from the revolution of a variable area trapezoid
I’m looking for the work flow of how to create a volume by revolving a variable area trapezoid around the z axis. I have a formula for the area of the trapezoid and it is a function of the radial distance from the origin. Both the height and this radial distance vary with the angle of revolution.
The figure immediately below shows the elliptical path that the rotation takes. Because the trapezoid area varies with the angle of revolution, the path traced in the x-y plane is an ellipse and not a circle. The figure below shows the path in the x-y plane:
This next figure shows the x-z plane which shows the variable-area trapezoid at phi = 0 degrees and phi = 180 degrees. The rotation occurs around the vertical axis that goes through the point "S". Notice the large reduction in area of the trapezoid.
The radial line length, p, to the ellipse edge is given by,
where is a constant value as are w and R. At = 45 degrees and R = 0.0006, w = 0.0007908.
What I am trying to do is to verify an equation that I have developed for calculating this volume. I want to make sure that my equation, in fact, produces the volume of the revolved variable-area trapezoid. The area of the trapezoid is given by
and h is given by:
where B is a constant and is a constant where p is evaluated at = 90 degrees. For the values of , w and R given above, B = 0.867.
The volume then is given by,
The next figure shows an incremental volume diagram which is then integrated as in the equation immediately above,
And so the final result should look something like the blue portion of each drawing below. How would I go about implementing this in Matlab?I’m looking for the work flow of how to create a volume by revolving a variable area trapezoid around the z axis. I have a formula for the area of the trapezoid and it is a function of the radial distance from the origin. Both the height and this radial distance vary with the angle of revolution.
The figure immediately below shows the elliptical path that the rotation takes. Because the trapezoid area varies with the angle of revolution, the path traced in the x-y plane is an ellipse and not a circle. The figure below shows the path in the x-y plane:
This next figure shows the x-z plane which shows the variable-area trapezoid at phi = 0 degrees and phi = 180 degrees. The rotation occurs around the vertical axis that goes through the point "S". Notice the large reduction in area of the trapezoid.
The radial line length, p, to the ellipse edge is given by,
where is a constant value as are w and R. At = 45 degrees and R = 0.0006, w = 0.0007908.
What I am trying to do is to verify an equation that I have developed for calculating this volume. I want to make sure that my equation, in fact, produces the volume of the revolved variable-area trapezoid. The area of the trapezoid is given by
and h is given by:
where B is a constant and is a constant where p is evaluated at = 90 degrees. For the values of , w and R given above, B = 0.867.
The volume then is given by,
The next figure shows an incremental volume diagram which is then integrated as in the equation immediately above,
And so the final result should look something like the blue portion of each drawing below. How would I go about implementing this in Matlab? I’m looking for the work flow of how to create a volume by revolving a variable area trapezoid around the z axis. I have a formula for the area of the trapezoid and it is a function of the radial distance from the origin. Both the height and this radial distance vary with the angle of revolution.
The figure immediately below shows the elliptical path that the rotation takes. Because the trapezoid area varies with the angle of revolution, the path traced in the x-y plane is an ellipse and not a circle. The figure below shows the path in the x-y plane:
This next figure shows the x-z plane which shows the variable-area trapezoid at phi = 0 degrees and phi = 180 degrees. The rotation occurs around the vertical axis that goes through the point "S". Notice the large reduction in area of the trapezoid.
The radial line length, p, to the ellipse edge is given by,
where is a constant value as are w and R. At = 45 degrees and R = 0.0006, w = 0.0007908.
What I am trying to do is to verify an equation that I have developed for calculating this volume. I want to make sure that my equation, in fact, produces the volume of the revolved variable-area trapezoid. The area of the trapezoid is given by
and h is given by:
where B is a constant and is a constant where p is evaluated at = 90 degrees. For the values of , w and R given above, B = 0.867.
The volume then is given by,
The next figure shows an incremental volume diagram which is then integrated as in the equation immediately above,
And so the final result should look something like the blue portion of each drawing below. How would I go about implementing this in Matlab? volume MATLAB Answers — New Questions
Is Assignment from symmatrix/symfunmatrix Consistent with Assignment from sym/symfun ?
I’ve just started using symmatrix and symfunmatrix and noticed a behavior that I don’t understand and seems to be inconsistent with sym and symfun.
clear all
syms t
syms zfun(t)
zfun(t) = t;
class(zfun)
Consider four ways to assign from zfun to a new variable h
h = zfun; class(h), clear h % 1
h = zfun(t); class(h), clear h % 2
h(t) = zfun(t); class(h), clear h % 3
h(t) = zfun; class(h), clear h % 4
Cases 1-4 work as I expect, at least based on experience (not sure what the doc states)
Now try the same thing for assigning from a symfunmatrix
clear all
syms t
zfun = symfunmatrix(‘zfun(t)’,t,[3,1]);
zfun(t) = [t;t;t];
class(zfun)
h = zfun; class(h), clear h % 5
h = zfun(t); class(h), clear h % 6
h(t) = zfun(t); class(h), clear h % 7
try
h(t) = zfun; class(h), clear h % 8
catch ME
ME.message
end
I was expecting cases 5-8 be analagous with cases 1-4.
But case 7 returns a symmatrix into h, contra to a symfun as in case 3, even though the the LHS of the case 7 assignment has a functional form.
Case 8 throws an error altogether, though the caught message seems irrelevant to whatever the error actually was.
Am I missing something as to expected behavior of cases 7 and 8?
The workaround is to define h(t) before the assignment, but that seems inconsistent the symfun cases.
h = symfunmatrix(‘h(t)’,t,[3,1]);
h(t) = zfun(t); class(h)
h(t) = zfun; class(h)
FWIW, we can see the true error for case 8 by executing outside of the try/catch construct.
clear h
h(t) = zfun;I’ve just started using symmatrix and symfunmatrix and noticed a behavior that I don’t understand and seems to be inconsistent with sym and symfun.
clear all
syms t
syms zfun(t)
zfun(t) = t;
class(zfun)
Consider four ways to assign from zfun to a new variable h
h = zfun; class(h), clear h % 1
h = zfun(t); class(h), clear h % 2
h(t) = zfun(t); class(h), clear h % 3
h(t) = zfun; class(h), clear h % 4
Cases 1-4 work as I expect, at least based on experience (not sure what the doc states)
Now try the same thing for assigning from a symfunmatrix
clear all
syms t
zfun = symfunmatrix(‘zfun(t)’,t,[3,1]);
zfun(t) = [t;t;t];
class(zfun)
h = zfun; class(h), clear h % 5
h = zfun(t); class(h), clear h % 6
h(t) = zfun(t); class(h), clear h % 7
try
h(t) = zfun; class(h), clear h % 8
catch ME
ME.message
end
I was expecting cases 5-8 be analagous with cases 1-4.
But case 7 returns a symmatrix into h, contra to a symfun as in case 3, even though the the LHS of the case 7 assignment has a functional form.
Case 8 throws an error altogether, though the caught message seems irrelevant to whatever the error actually was.
Am I missing something as to expected behavior of cases 7 and 8?
The workaround is to define h(t) before the assignment, but that seems inconsistent the symfun cases.
h = symfunmatrix(‘h(t)’,t,[3,1]);
h(t) = zfun(t); class(h)
h(t) = zfun; class(h)
FWIW, we can see the true error for case 8 by executing outside of the try/catch construct.
clear h
h(t) = zfun; I’ve just started using symmatrix and symfunmatrix and noticed a behavior that I don’t understand and seems to be inconsistent with sym and symfun.
clear all
syms t
syms zfun(t)
zfun(t) = t;
class(zfun)
Consider four ways to assign from zfun to a new variable h
h = zfun; class(h), clear h % 1
h = zfun(t); class(h), clear h % 2
h(t) = zfun(t); class(h), clear h % 3
h(t) = zfun; class(h), clear h % 4
Cases 1-4 work as I expect, at least based on experience (not sure what the doc states)
Now try the same thing for assigning from a symfunmatrix
clear all
syms t
zfun = symfunmatrix(‘zfun(t)’,t,[3,1]);
zfun(t) = [t;t;t];
class(zfun)
h = zfun; class(h), clear h % 5
h = zfun(t); class(h), clear h % 6
h(t) = zfun(t); class(h), clear h % 7
try
h(t) = zfun; class(h), clear h % 8
catch ME
ME.message
end
I was expecting cases 5-8 be analagous with cases 1-4.
But case 7 returns a symmatrix into h, contra to a symfun as in case 3, even though the the LHS of the case 7 assignment has a functional form.
Case 8 throws an error altogether, though the caught message seems irrelevant to whatever the error actually was.
Am I missing something as to expected behavior of cases 7 and 8?
The workaround is to define h(t) before the assignment, but that seems inconsistent the symfun cases.
h = symfunmatrix(‘h(t)’,t,[3,1]);
h(t) = zfun(t); class(h)
h(t) = zfun; class(h)
FWIW, we can see the true error for case 8 by executing outside of the try/catch construct.
clear h
h(t) = zfun; symmmatrix, symfunmatrix, assignment MATLAB Answers — New Questions