Welcome to the TRNSYS Users Forum.

The forum is a place where people can interact and have discussions about different topics involving the use of the TRNSYS software package. Here you can post topics for discussion or questions on using TRNSYS and get advice from other users or TRNSYS experts. This forum is not intended for detailed technical support. Users should contact their distributor’s hotline for such assistance.

Some tips for success on using the forum:

  • Follow the Forum Rules posted in Forum Administration.
  • There are categories for different types of topics and questions. Post your topic or question into the proper category.
  • Before posting a topic or question search the existing topics  (and the TRNSYS Users listserv archive or Post archive) to see if a similar topic or question has already been answered.
  • Use a descriptive topic name. Don’t use attention getting subjects, they don’t get attention and only annoy people.
  • State the version of TRNSYS and which add-ons your are using.
  • Include enough specific details for your topic of question to be answered. Just posting “Why am I getting an error?” without describing the specific error and what you are trying to do when you get the error will not receive a response that fixes your issue.
  • Remember when people help you, they are doing you a favor. Be patient, help people out by posting good descriptions of what you need help with, and be polite even if a response does not solve your issue.
  • Moderators may edit your post for clarity or move your topic to a more appropriate category.

Notifications
Clear all

Error when linking TRNSYS and Matlab via Type 155

2 Posts
2 Users
0 Reactions
29 Views
0
Topic starter

Dear community,

I tried to link Matlab and TRNSYS via Type 155 but failed with the error below.

The simulation initially proceeds without problems, but then an error occurs at a certain moment.

(The moment of error occurrence is different depending on the simulation start time)

 

Has anyone else had the same problem as me or has any idea how to solve it?

 

------------------------------------------------------------

*** Warning at time : 1248.000000
Generated by Unit : 33
Generated by Type : 155
TRNSYS Message 315 : The TRNSYS processor has reported a potential problem with the connections in your input file. In version 16, there is a very specific calling order after convergence has been reached at each timestep. One of your connections flows against this calling order - for example you may have the output of an integrator connected as an input to a standard component (one that is being called iteratively at each timestep). While this is not technically an ERROR - it may cause incorrect values to be passed to the component. For example, the input to an iterating component from an integrator will be from the previously converged timestep and not the current timestep. Refer to the TRNSYS Manual - Volume 1 - for more information on the calling order for TRNSYS components
Reported information : ** Reported by Exec.f90

*** Fatal Error at time : 1259.000000
Generated by Unit : 33
Generated by Type : 155
Message : The M-File has flagged an error. Returned value for 'mFileErrorCode': 400.0000000000000 . The error occurred at info(7) = 0 , info(13) = 1

---------------------------------------------------------------

 

Thank you in advance,

1 Answer
0

@danalee The error would suggest that TRNSYS is sending a set of inputs to your *.m code that Matlab cannot solve. You might try adding a TRACE to your Type155 component. That will cause the input values that are being sent to Type155 to be written to your *.lst file. The data is a little hard to interpret (largely because there is a lot of it) but my hope is that you can isolate the set of inputs that is causing the error in Matlab then feed those into your Matlab code within the Matlab environment and see if you can find the problem.

kind regards,

 David

 

danalee Topic starter 09/03/2025 3:07 am

@davidbradley Thank you very much for your comment. However, I am still a new user of TRNSYS so I did not fully understand your comment. If you could explain a little more about how to add TRACE, I would really appreciate it.

Best regards,

Dana

Share: