Skip to main content
FluidEarth Portal Header version 3

FluidEarth Portal

Go Search
  
FluidEarth Portal > FluidEarth Discussions > Pipistrelle error message of new solution  

FluidEarth Discussions

Modify settings and columns
Discussions board for FluidEarth Users
  
View: 
Post
Started: 15/03/2010 22:33
Picture: ZZhang
ZZhang
Pipistrelle error message of new solution
Hi Gordon,
 
You gave me very useful advice. Somes projects' output path were changed after I  reload them.
 
I got another issue. I try to built a new Solution to write output data from the 2D-sample.
But whne I run the Pipistrelle, I got error message as following:

2010-03-15T22:24:38,Error   , 2052,Write F  (C),Exception:
    _engine.Initialise(...) return value < 0
  Source:
    "OpenWEB_SDK"
  Target:
    targetSite unknown
  Stack:
   at OpenWeb.Sdk.ServerBase5.Initialise(String sdkConfigFileContents, Int32 arraySizeIn, Int32 arraySizeOut, Double[]& dataOut, String& log) in E:\OPENMI\OpenWEB\OpenWEB_SDK\src\ServerBase5.cs:line 495
2010-03-15T22:24:38,Error   , 2052,Write F  (C),Exception:
    ServerBase.Initialise(...)
  Source:
    ""
  Target:
    targetSite unknown
  Stack:
stackTrace unknown
2010-03-15T22:24:38,Error   , 2052,Write F  (C),Exception:
    time = Initialise(...), time < 0
  Source:
    "OpenWEB_SDK"
  Target:
    Double Initialise(System.Collections.Generic.Dictionary`2[System.String,System.String], OpenWeb.Sdk.ILinkage, System.Collections.Generic.List`1[OpenWeb.Sdk.DataOperations.IDataOperationRuntimeFactory])
  Stack:
   at OpenWeb.Sdk.EngineProxy.Initialise(Dictionary`2 properties, ILinkage linkage, List`1 dataOperationFactories) in E:\OPENMI\OpenWEB\OpenWEB_SDK\src\EngineProxy.cs:line 304
   at OpenWeb.Sdk.EngineClient.Initialize(Dictionary`2 properties, ILinkableComponent linkableComponent, ILinkage linkage, List`1 dataOperationFactories, ILogger logger) in E:\OPENMI\OpenWEB\OpenWEB_SDK\src\EngineClient.cs:line 309
2010-03-15T22:24:38,Error   , 2052,Write F  (C),Exception:
    _engineProxy.Initialise(...)
  Source:
    "OpenWEB_SDK"
  Target:
    Void Initialize(System.Collections.Generic.Dictionary`2[System.String,System.String], OpenMI.Standard.ILinkableComponent, OpenWeb.Sdk.ILinkage, System.Collections.Generic.List`1[OpenWeb.Sdk.DataOperations.IDataOperationRuntimeFactory], OpenWeb.Sdk.ILogger)
  Stack:
   at OpenWeb.Sdk.EngineClient.Initialize(Dictionary`2 properties, ILinkableComponent linkableComponent, ILinkage linkage, List`1 dataOperationFactories, ILogger logger) in E:\OPENMI\OpenWEB\OpenWEB_SDK\src\EngineClient.cs:line 313
   at OpenWeb.Sdk.LinkableComponent.Prepare() in E:\OPENMI\OpenWEB\OpenWEB_SDK\src\LinkableComponent.cs:line 554

I donot know the mean of the message.  Can you give me some advice.
Posted: 16/03/2010 08:36
Picture Placeholder: GGlasgow
GGlasgow
hi,
 
glad i could be some help.
 
could you rerun your pipistrelle composition with 'Event Monitoring' set to 'All' and 'Logging Level' set to 'Debug 2' and attach a copy of the full log file? pipistrelle has very comprehensive event logging, which can be very helpful when debugging, but it can be tricky to see where things have first started to go wrong. if you attach your full log file, i will quickly go through it and point out the most important things to look out for when things go wrong.
 
good luck!
 
gordon
Posted: 16/03/2010 12:44
Attachment
Picture: ZZhang
ZZhang

Hi, Gordon
 
I attached the log file as you said.
Hopefully, it would be useful to solve the issue.
Posted: 16/03/2010 14:48
Attachment
Picture Placeholder: GGlasgow
GGlasgow
hi,
 
i have a quick suggestion:
 
the first thing to check is your xml file for the correct specification of the size of 2D array you are trying to pass. 
 
i've attached a sample of the log file from my sample 2d model and you'll see there are a couple of differences between mine and the one you've uploaded. it seems as though you're missing the size of the transfer array (in my attached log, 10*10). this may be because you have removed it, because you have renamed it ...or some other (yet unknown!) reason.
 
if you check that the Elementsetgridregular specification in your xml matches the one i uploaded in the 2d_sample model, particularly looking for the size of the 2D array, we can work out why this is not appearing in the log file.
 
let me know how you get on,
 
gordon

Posted: 21/03/2010 12:06
Picture Placeholder: GGlasgow
GGlasgow
hi,
 
have you been able to get any further with your composition?
 
if you've made no progress, let me know and we can try to find out what's going wrong.
 
gordon
Posted: 22/03/2010 01:06
Picture: ZZhang
ZZhang
Hi Gordon,
 
Many thanks for your help.
I got an interesting issue. When i run the Pipistrelle on my laptop,  it warns "Index Out Of Range Exception". But Pipistrelle run on the desktop computer, it is OK.
My laptop uses Chinese operating system. Does this cause the issue?
Posted: 22/03/2010 01:11
Attachment
Picture: ZZhang
ZZhang
Attached is the log file. So you can check it.
Thanks very much.
Posted: 22/03/2010 15:03
Attachment
Picture Placeholder: GGlasgow
GGlasgow
hi,
 
it looks as though you are making good progress with your composition - nice work!
 
i have spoken to Adrian Harper, who doesn't think the language of the machine is necessarily a problem. in general, if you are having problems on one machine but not another, the first thing to check is that there are no hard-coded paths in any of your models/omi/xml files. if there are, one machine may be looking for data in the wrong place, but not the other.

from looking at your attached log file (the bitmap attached), we think you need to check the model named "Domain F". this model has 0 inputs and 0 outputs, which will mean it could be responsible for illegal attempts to declare/read/write data, if it is exchanging data in a composition.
 
you will probably need to check the .chi file to see how this model is being used in the composition - if you want to upload a copy, i can take a look for you as well. 
 
good luck!
 
gordon