# UQlink with Opensees problem

**URL:** <https://uqworld.org/t/uqlink-with-opensees-problem/1038>\
**Category:** Community Q&A and How To\
**Tags:** uqlink\
**Created:** [February 7, 2021, 1:22pm UTC](https://uqworld.org/t/uqlink-with-opensees-problem/1038 "2021-02-07T13:22:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ziead\_Metwally](https://uqworld.org/user_avatar/uqworld.org/ziead_metwally/32/484_2.png) [@Ziead\_Metwally](https://uqworld.org/u/Ziead_Metwally)\
**Post date:** [February 7, 2021, 1:22pm UTC](https://uqworld.org/t/uqlink-with-opensees-problem/1038/1 "2021-02-07T13:22:38Z")

</div>

Hello,  
I am trying to regenerate the opensees pushover analysis example (example 3, UQLink). However, the simulations are not performed and the following warning is shown.  
Could anybody help with that?  
Note that I did not have this problem before the update.  
Thanks  
 ![warning](https://uqworld.org/uploads/default/original/1X/e8f35fae7fa1f1a4359b24f6888d464c0283a494.png)

---

<div class="post-metadata">

**Author:** ![Ziead\_Metwally](https://uqworld.org/user_avatar/uqworld.org/ziead_metwally/32/484_2.png) [@Ziead\_Metwally](https://uqworld.org/u/Ziead_Metwally)\
**Post date:** [February 12, 2021, 8:22am UTC](https://uqworld.org/t/uqlink-with-opensees-problem/1038/2 "2021-02-12T08:22:44Z")

</div>

Any help?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Neryvaldo\_Galvao](https://uqworld.org/user_avatar/uqworld.org/neryvaldo_galvao/32/597_2.png) [@Neryvaldo\_Galvao](https://uqworld.org/u/Neryvaldo_Galvao)\
**Post date:** [February 26, 2021, 6:13pm UTC](https://uqworld.org/t/uqlink-with-opensees-problem/1038/3 "2021-02-26T18:13:54Z")

</div>

Hi

I am having the same problem with DIANA FEA. Before the update, it was working fine.

Warning: Third party software returned an error for run #1  
: Returning NaN in the corresponding output  
(Type "warning off " to suppress this warning.)

> In uq\_wrapper\_uqlink (line 437)  
> In uq\_eval\_uq\_uqlink (line 56)  
> In uq\_evalModel  
> In UQLink\_ExperimentalDesign (line 60)

Any help here @damarginal ?

Thanks for the support.  
Regards,  
NG

---

<div class="post-metadata">

**Author:** ![damarginal](https://uqworld.org/user_avatar/uqworld.org/damarginal/32/73_2.png) [@damarginal](https://uqworld.org/u/damarginal)\
**Post date:** [February 27, 2021, 12:38am UTC](https://uqworld.org/t/uqlink-with-opensees-problem/1038/4 "2021-02-27T00:38:53Z")

</div>

I’m not sure what’s the problem…

Perhaps you can try to set the display option of the UQLink Model to `'verbose'` (i.e., `ModelOpts.Display = 'verbose'`) and see what’s shown in the command window when you try to evaluate the model?

---

<div class="post-metadata">

**Author:** ![Philippe\_Again](https://uqworld.org/letter_avatar_proxy/v4/letter/p/c57346/32.png) [@Philippe\_Again](https://uqworld.org/u/Philippe_Again)\
**Post date:** [March 1, 2021, 10:26am UTC](https://uqworld.org/t/uqlink-with-opensees-problem/1038/5 "2021-03-01T10:26:23Z")

</div>

Dear all, dear Damar

I had the same issue now with another third-party software, SWMM. Even though all the the commands for the UQLink setup were correct and the generated input files were flawless (I was able to run them by hand through the command prompt), I got the same  
` "Warning: Third party software returned an error for run #xy: Returning NaN in the corresponding output"`.

I finally figured out the issue. My files are stored on a network drive, and the command prompt cannot access it even if you provide the total path, e.g. \myNetworkDrive\user\Documents\myStuff (you can access it in the command prompt using the `popd` command). So, simply copying the project folder to my local machine and running UQLab / UQLink in the local folder solved the issue for me.

Hope this helps!  
@damarginal : is this a known issue? Since it’s not OpenSees specific, should the title be modified? And more interestingly, do you know of a simpler workaround than a local copy?

Best  
Philippe

---

<div class="post-metadata">

**Author:** ![Neryvaldo\_Galvao](https://uqworld.org/user_avatar/uqworld.org/neryvaldo_galvao/32/597_2.png) [@Neryvaldo\_Galvao](https://uqworld.org/u/Neryvaldo_Galvao)\
**Post date:** [March 1, 2021, 5:06pm UTC](https://uqworld.org/t/uqlink-with-opensees-problem/1038/6 "2021-03-01T17:06:42Z")

</div>

Dear All

@Philippe_Again - I have just tried what you suggest but my UQlink with 3rd party software is still not working. But it did manage to solve a problem I had with the -selftest for the uplink. Any other suggestion?

@damarginal - It doesn’t show much in verbose. This is the only information displayed for each run

Running Realization 1  
The syntax of the file name, directory name, or volume label is incorrect.  
Warning: Third party software returned an error for run #1  
: Returning NaN in the corresponding output  
(Type "warning off " to suppress this warning.)

> In uq\_wrapper\_uqlink (line 437)  
> In uq\_eval\_uq\_uqlink (line 56)  
> In uq\_evalModel  
> In UQLink\_ExperimentalDesign (line 60)

And then, in the end, it displays the following:

```
The process cannot access the file because it is being used by another process.
Error in uq_wrapper_uqlink (line 586)
                movefile(inputfile{tt},InputFolder) ;

Error in uq_eval_uq_uqlink (line 56)
    [varargout{1:num_of_out_args}] = uq_wrapper_uqlink(X, current_model.Internal);

Error in UQLink_ExperimentalDesign (line 60)
Y = uq_evalModel(myUQLinkModel,X);

```

Thank you very much for your support.  
Regards,  
Neryvaldo

---

<div class="post-metadata">

**Author:** ![Neryvaldo\_Galvao](https://uqworld.org/user_avatar/uqworld.org/neryvaldo_galvao/32/597_2.png) [@Neryvaldo\_Galvao](https://uqworld.org/u/Neryvaldo_Galvao)\
**Post date:** [March 26, 2021, 2:29pm UTC](https://uqworld.org/t/uqlink-with-opensees-problem/1038/7 "2021-03-26T14:29:04Z")

</div>

Dear UQLab Team

I managed to work around this by replacing the files in the UQLink folder for the ones of the previous versions.

I am aware of some limitations this might cause, such as not being able to use to Dispatcher feature. Nevertheless, I won’t be using this new feature for now. But it seems to be working fine with the new ALR feature.

I would appreciate some feedback on how bad was this choice or if there is another way to solve this issue.

Thank you for your support.  
Best Regards,  
Neryvaldo Galvão

---

<div class="post-metadata">

**Author:** ![phnam](https://uqworld.org/user_avatar/uqworld.org/phnam/32/847_2.png) [@phnam](https://uqworld.org/u/phnam)\
**Post date:** [April 30, 2021, 3:13am UTC](https://uqworld.org/t/uqlink-with-opensees-problem/1038/8 "2021-04-30T03:13:18Z")

</div>

Please include the execution path (where the third-party software will be run), for example:  
ModelOpts.ExecutionPath = fullfile(‘D:\OpenSees\_Working’);

---

<div class="post-metadata">

**Author:** ![IHM](https://uqworld.org/letter_avatar_proxy/v4/letter/i/fbc32d/32.png) [@IHM](https://uqworld.org/u/IHM)\
**Post date:** [June 19, 2023, 7:10am UTC](https://uqworld.org/t/uqlink-with-opensees-problem/1038/9 "2023-06-19T07:10:52Z")

</div>

> [@damarginal](#):
>
> ``

I @Neryvaldo_Galvao  
I have the same problem and I don’t understand your solution. please which files did you modify?  
Warmly,  
IHM
