Hi all,
When we try to run CTM with time stream of 56 weeks/39 weeks/32 weeks, we see that there is an error called "Segmentation Fault" due to which whole planning run is failing.
<i> <#3608> 11:58:55 ctm_em_execute.cpp(41) 'SuperVisor' EM::execute for packet 10
<e> <#2836> 11:58:56 <WinPerfData> error in RegQueryValueEx(): [error-code 5] Access is denied.#
<i> <#2836> 11:58:56 [memory] usage after transforming model into relational data of packet 9: cpu_time: 361 real_time: 434 current_memory: 0 MB peak_memory: 0 MB
<i> <#2836> 11:58:56 physical memory: 28358 MB available [86% free]
<i> <#2836> 11:58:56 page file : 61632 MB available [93% free]
<i> <#2836> 11:58:56 virtual memory : 8387858 MB available [99% free]
<i> <#2836> 11:58:56
<i> <#2836> 11:58:56 number of orders: 5111
<i> <#2836> 11:58:56 number of pegging links: 13829
<i> <#2836> 11:58:56
<i> <#2836> 11:58:56 <rfc> calling function module /SAPAPO/CTM_INT_ORDER_CREATE
<e> <#3608> 11:59:03 ctmsvr_script.cpp(232) 'MsgMgr' <!> C-STRING EXCEPTION: <!> Segmentation fault
<i> <#3608> 11:59:03 rfc_connection.cpp(605) 'MsgMgr' <rfc> calling function module /SAPAPO/CTM_INT_STATUS_SET
<e> <#3608> 11:59:03 core_sysinfo.cpp(947) 'MsgMgr' <WinPerfData> error in RegQueryValueEx(): [error-code 5] Access is denied.#
<e> <#3608> 11:59:03 optsvr_main.cpp(369) 'MsgMgr' <!> CORE EXCEPTION:
#RFC_RC (RFC_SYS_EXCEPTION) System exception raised, connection closed
#RFC_ERROR_GROUP (RFC_ERROR_SYSTEM_FAILURE) e.g. SAP system exception raised
#key=RFC_ERROR_SYSTEM_FAILURE
#message=CPIC-CALL: 'CMRCV : rc=25
LOCATION SAP-Gateway on host IRVWP63PAT03 / sapgw00
ERROR program state check for conversation 12422607
TIME Wed Sep 23 11:59:03 2015
RELEASE 720
COMPONENT SAP-Gateway
VERSION 2
RC 471
MODULE gwr3cpic.c
LINE 3420
DETAIL program c:\apoopt\ctmsvr.exe on host IRVWP63P called function
SEND_DATA in state RECEIVE_WAIT_FOR_DATA
COUNTER 81997
#exception=SYSTEM_FAILURE
<i> <#3608> 11:59:03 optsvr_main.cpp(370) 'MsgMgr' _exiting...
SM37 Log is as follows
09/23/2015 12:30:01 Job started
09/23/2015 12:30:01 Step 001 started (program RSPROCESS, variant &0000000050948, user ID BWREMOTE)
09/23/2015 12:30:01 Start process SCM_CTM01 Z7M_CTM_ND in run DKVOKJM4KMCG52Y25PFNGVB01 of chain Z7M_SOLVE_2
09/23/2015 12:43:02 Communication error: A runtime error occurred while executing the remote function module
09/23/2015 12:43:02 Job cancelled after system exception ERROR_MESSAGE
When we run the Solve for 26 weeks, everything is fine as below,
<i> <#3392> 13:10:05 ctm_modelgen.cpp(1227) 'CTMModelGenerator' MG::upload of packet 11
<e> <#3392> 13:10:05 core_sysinfo.cpp(947) 'MsgMgr' <WinPerfData> error in RegQueryValueEx(): [error-code 5] Access is denied.#
<i> <#3392> 13:10:05 ctm_modelgen.cpp(1329) 'SuperVisor' [memory] usage after transforming model into relational data of packet 11: cpu_time: 401 real_time: 655 current_memory: 0 MB peak_memory: 0
<i> <#3392> 13:10:05 core_sysinfo.cpp(487) 'MsgMgr' physical memory: 28095 MB available [85% free]
<i> <#3392> 13:10:05 core_sysinfo.cpp(488) 'MsgMgr' page file : 61348 MB available [93% free]
<i> <#3392> 13:10:05 core_sysinfo.cpp(489) 'MsgMgr' virtual memory : 8387582 MB available [99% free]
<i> <#3392> 13:10:05 ctm_modelgen.cpp(1357) 'CTMModelGenerator'
<i> <#3392> 13:10:05 ctm_modelgen.cpp(1358) 'CTMModelGenerator' number of orders: 1166
<i> <#3392> 13:10:05 ctm_modelgen.cpp(1359) 'CTMModelGenerator' number of pegging links: 2783
<i> <#3392> 13:10:05 ctm_modelgen.cpp(1360) 'CTMModelGenerator'
<i> <#3392> 13:10:05 rfc_connection.cpp(605) 'MsgMgr' <rfc> calling function module /SAPAPO/CTM_INT_ORDER_CREATE
<i> <#3392> 13:10:19 rfc_connection.cpp(605) 'MsgMgr' <rfc> calling function module /SAPAPO/CTM_INT_INDC_CREATE
<i> <#3392> 13:10:20 rfc_connection.cpp(605) 'MsgMgr' <rfc> calling function module /SAPAPO/CTM_INT_EXPL_CREATE
<e> <#3392> 13:10:57 core_sysinfo.cpp(947) 'MsgMgr' <WinPerfData> error in RegQueryValueEx(): [error-code 5] Access is denied.#
<i> <#3392> 13:10:57 ctm_modelgen.cpp(1399) 'SuperVisor' [memory] usage after data upload of packet 11: cpu_time: 408 real_time: 706 current_memory: 0 MB peak_memory: 0 MB
<i> <#3392> 13:10:57 ctm_modelgen.cpp(1406) 'CTMModelGenerator' MG::upload of packet 11 done
....
...
...
nCPU_TIME#408
nCPU_TIME_MS#408129
nHD_FREESPACE#101891
nPEAK_MEMORY#0
nPEAK_MEMORY_MEMMGR#867035
nPEAK_RESIDENT_SET#0
nREAL_TIME#706
nREAL_TIME_MS#706506
<e> 13:10:57 core_sysinfo.cpp(947) 'MsgMgr' <WinPer
<i> 13:10:57 optsvr_dsr.cpp(86) 'MsgMgr' <writeDSRd
<i> 13:10:57 optsvr_main.cpp(1168) 'MsgMgr'
* ***********************
* Finished->SUCCESS ...
* ***********************
<i> 13:10:57 optsvr_rfcconnection.cpp(1883) 'MsgMgr
Please suggest if this CTM Segmentation Error is related to Memory/BASIS/Functional issue. We raised OSS Message, yet to hear from SAP. Suggestions appreciated, Thanks in advance.
Thanks,
Tej