You are here

Porting Simile model from 5.4p2 to 58

Hi,

I've been trying to port a large model developed in Simile 5.4p2 to a client installation running 5.8.  The model makes extensive use of sub-models with a variable number of instances, defined at compile time by enums. 

When I load the model into Simile 5.8 and Run, the model compilation fails because it cannot interpret a line of C++ code reported as "double[14] double" - seems fair, thats not valid C++ as I understand it. (one of the enum types has 14 values, incidentally).

When I execute the model via Debug, then it compiles successfully and the execution window appears: however, before the model can be started an error is reported to the effect that a particular piece of logic is trying to access a sub-model instance that it out of range. Since all of the model instances are specified via enums, I find it hard to believe that is the real cause - however, I've been unable to underastand what the real cause is.

I have: confirmed that the enums are specified as I expect; confirmed that *not* referencing an enum in the logic makes the error go away; confirmed that other constant parameters are as I expect.

I apologise for not including screen shots or cut+paste of error text - the client's machines run in an environment without internet access.

One solution, which would be fit for our purpose, is to revert the client's licences to 5.4p2 (I've spoken to your sales to confirm this is allowable).  However, in the long run I'd like to migrate to 5.8, so if you can provide me with any pointers as to what the problem might be, I'd be very grateful.

I look forward to hearing from you

Best regards,

Lawrence Dack

 

Reporter: 
Lawrence Dack
Created: 
Wed, 05/10/2011 - 10:11
Updated: 
Fri, 09/03/2012 - 07:16

Comments

Hi Lawrence,

Thanks for taking the trouble to report this. I've seen error messages as you describe before, but only when trying to develop new features for Simile, not in a release version. So, I wonder if you could send a copy of the model in question to support@simulistics.com so I can try to reproduce and fix the error. In any case I will be able to return you a version that will run correctly in Simile v5.8

Thanks very much in advance

    Jasper