Skip to main content
1-Visitor
September 21, 2017
Solved

Unable to test Analysis model using thingworx analytics manager

  • September 21, 2017
  • 2 replies
  • 4816 views

Hi,

I am following this tutorial https://support.ptc.com/help/thingworx_hc/thingworx_analytics_52/#page/thingworx_analytics_7%2Fthingpredictor%2Fthingpredictor-deployment.html%23

When I publish the model available in thingworx analytics to thingworx analytics manager, and provide the data in Test and pressSubmit job in thingworx analytics manager, I am getting the below error

Job was not found in runningJobs, could cause processing to stop


Please do let me know if I am missing something here.

Thanks,

Azim

Best answer by cmorfin

Hi Azim

From the log it seems that the job did execute and some prediction have been done.

So you might have a UI issue.

You have to note the following:

- the Test UI is not meant to be a fully robust one, it is only there for quick testing.

- in case it does not work you shoudl be able to get some result by populating the property of a Thign which are more what is expected to be needed in a real case scenario. See example at Video Link : 1817  around time 3:58.

- you can also try different browser to check if the display can be better

Kind regards

Chrisotphe

2 replies

20-Turquoise
September 21, 2017

Neel Sampat​ do we have a separate category on the community for analytics?

19-Tanzanite
September 21, 2017

Hi Azim

Do you have the ThingPredictor agent running ?

It is a standalone java application that needs to be started

Could you give the following info too:

- <ThignWorxStorage>/logs/ApplicationLog.log

-<thingpredictor>/logs/ folder

It woudl be also a good idea to try the demo scenario at PTC

this demo provide a pmml file for a machine learning model that you can upload so you can make sure that the setup is ok before starting using your own model.

Hope this helps

Regrards

Christophe

1-Visitor
September 22, 2017

Hi Christophe Morfin​,

ThingPredictor Agent is running. Below are the logs generated when I hit submit button in thingworx analytics manager in thingworx.

2017-09-22 10:46:19.556+0530 [L: ERROR] [O: c.p.a.c.s.BasicSDKConnector] [T: WSExecutionProcessor-11]

                 Job was not found in runningJobs, could cause processing to stop

2017-09-22 10:46:21.579+0530 [L: ERROR] [O: c.p.a.c.s.BasicSDKConnector] [T: WSExecutionProcessor-12]

                 Job was not found in runningJobs, could cause processing to stop

2017-09-22 10:47:53.918+0530 [L: ERROR] [O: c.p.a.c.s.BasicSDKConnector] [T: WSExecutionProcessor-13]

                 Job was not found in runningJobs, could cause processing to stop

2017-09-22 10:47:55.972+0530 [L: ERROR] [O: c.p.a.c.s.BasicSDKConnector] [T: WSExecutionProcessor-14]

                 Job was not found in runningJobs, could cause processing to stop

Below are the logs generated in thingworx predictor log folder

INFO  [2017-09-22 01:13:20,128] org.eclipse.jetty.server.handler.ContextHandler: Started i.d.j.MutableServletContextHandler@784d9bc{/,null,AVAILABLE}

INFO  [2017-09-22 01:13:20,138] org.eclipse.jetty.server.ServerConnector: Started application@65eabaab{HTTP/1.1}{0.0.0.0:9090}

INFO  [2017-09-22 01:13:20,141] org.eclipse.jetty.server.ServerConnector: Started admin@7123be6c{HTTP/1.1}{0.0.0.0:9091}

INFO  [2017-09-22 01:13:20,141] org.eclipse.jetty.server.Server: Started @23333ms

INFO  [2017-09-22 01:16:18,617] com.thingworx.analytics.ccc.data.datasources.JsonLocalDatasetSource: Received [1] rows to score

INFO  [2017-09-22 01:16:18,959] com.thingworx.analytics.scoring.core.predictive.PredictiveScoringJob: The model is not a time series model.

INFO  [2017-09-22 01:16:19,239] com.thingworx.analysis.TWAnalysisAgentAdapter: Completed synchronous scoring for [1] rows

INFO  [2017-09-22 01:16:19,239] com.thingworx.analysis.TWAnalysisAgentAdapter: Result of predictive scoring for the request PredictiveScoringRequest [modelUri=file:/D:/software/thingworx/MED-61217-CD-074_F000_ThingWorx-Analytics-ThingPredictor-7-4-0/ThingWorx-Analytics-ThingPredictor/./AgentWorkDir/TW.AnalysisServices.ThingPredictorConnector/Models/bearing_rul_Condition_368.xml, importantFieldCount=3, causalTechnique=FULL_RANGE, dataSource=com.thingworx.analytics.ccc.data.datasources.BodyDatasetRef@4b6bd1e6, goalName=condition] :

[[predictiveScore={condition=0.8478829789902185, condition_Max=0.9459829789902184, condition_Normalized=0.8478829789902185, condition_Result=0.8478829789902185, condition_ConfidenceInterval=0.0981, condition_Min=0.7497829789902185}, importantFields={time=0.9189298025133084, magnitude=0.08107019748669166}, errorMessage=null]]

INFO  [2017-09-22 01:17:53,607] com.thingworx.analytics.ccc.data.datasources.JsonLocalDatasetSource: Received [1] rows to score

INFO  [2017-09-22 01:17:53,607] com.thingworx.analytics.scoring.core.predictive.PredictiveScoringJob: The model is not a time series model.

INFO  [2017-09-22 01:17:53,613] com.thingworx.analysis.TWAnalysisAgentAdapter: Completed synchronous scoring for [1] rows

INFO  [2017-09-22 01:17:53,613] com.thingworx.analysis.TWAnalysisAgentAdapter: Result of predictive scoring for the request PredictiveScoringRequest [modelUri=file:/D:/software/thingworx/MED-61217-CD-074_F000_ThingWorx-Analytics-ThingPredictor-7-4-0/ThingWorx-Analytics-ThingPredictor/./AgentWorkDir/TW.AnalysisServices.ThingPredictorConnector/Models/bearing_rul_Condition_368.xml, importantFieldCount=3, causalTechnique=FULL_RANGE, dataSource=com.thingworx.analytics.ccc.data.datasources.BodyDatasetRef@54835f2, goalName=condition] :

[[predictiveScore={condition=0.8478829789902185, condition_Max=0.9459829789902184, condition_Normalized=0.8478829789902185, condition_Result=0.8478829789902185, condition_ConfidenceInterval=0.0981, condition_Min=0.7497829789902185}, importantFields={time=0.9189298025133084, magnitude=0.08107019748669166}, errorMessage=null]]

INFO  [2017-09-22 01:21:16,648] com.thingworx.analytics.ccc.data.datasources.JsonLocalDatasetSource: Received [1] rows to score

INFO  [2017-09-22 01:21:16,649] com.thingworx.analytics.scoring.core.predictive.PredictiveScoringJob: The model is not a time series model.

INFO  [2017-09-22 01:21:16,654] com.thingworx.analysis.TWAnalysisAgentAdapter: Completed synchronous scoring for [1] rows

INFO  [2017-09-22 01:21:16,655] com.thingworx.analysis.TWAnalysisAgentAdapter: Result of predictive scoring for the request PredictiveScoringRequest [modelUri=file:/D:/software/thingworx/MED-61217-CD-074_F000_ThingWorx-Analytics-ThingPredictor-7-4-0/ThingWorx-Analytics-ThingPredictor/./AgentWorkDir/TW.AnalysisServices.ThingPredictorConnector/Models/bearing_rul_Condition_368.xml, importantFieldCount=3, causalTechnique=FULL_RANGE, dataSource=com.thingworx.analytics.ccc.data.datasources.BodyDatasetRef@60694bd, goalName=condition] :

[[predictiveScore={condition=0.8478829789902185, condition_Max=0.9459829789902184, condition_Normalized=0.8478829789902185, condition_Result=0.8478829789902185, condition_ConfidenceInterval=0.0981, condition_Min=0.7497829789902185}, importantFields={time=0.9189298025133084, magnitude=0.08107019748669166}, errorMessage=null]]

But I do not see the result of Predictive scoring below the Submit job button. I have attached the screen shot of expected(captured from tutorial video) and actual UI. 

Expected

expected.png

Actual

actual.png

cmorfin19-TanzaniteAnswer
19-Tanzanite
September 22, 2017

Hi Azim

From the log it seems that the job did execute and some prediction have been done.

So you might have a UI issue.

You have to note the following:

- the Test UI is not meant to be a fully robust one, it is only there for quick testing.

- in case it does not work you shoudl be able to get some result by populating the property of a Thign which are more what is expected to be needed in a real case scenario. See example at Video Link : 1817  around time 3:58.

- you can also try different browser to check if the display can be better

Kind regards

Chrisotphe