# WSMLink not working?

**URL:** <https://community.wolfram.com/t/wsmlink-not-working/3333>\
**Category:** Questions\
**Tags:** mathematica, system-modeler\
**Created:** [September 17, 2014, 10:15am UTC](https://community.wolfram.com/t/wsmlink-not-working/3333 "2014-09-17T10:15:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![energydragon007](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/energydragon007/32/28012_2.png) [@energydragon007](https://community.wolfram.com/u/energydragon007)\
**Post date:** [September 17, 2014, 10:15am UTC](https://community.wolfram.com/t/wsmlink-not-working/3333/1 "2014-09-17T10:15:48Z")

</div>

I am new to Mathematica, and am using it primarily for the optimization features it has in relation to SystemModeler. I am unable to use this link between SystemModeler and Mathematica right now because the call Needs[“WSMLink`”]; is producing the following error:

Block::lvsym: Local variable specification {Function[x,False]} contains Function[x,False], which is not a symbol or an assignment to a symbol. \>\>

StringJoin::string: String expected at position 2 in Options[WSMLink`Private`SystemModeler]=“\<\>Block[{Function[x,False]},\<\<1\>\>]. !(\*ButtonBox["\>\>",  
Appearance-\>{Automatic, None},  
BaseStyle-\>"Link",  
ButtonData:\>"paclet:ref/StringJoin",  
ButtonNote-\>"StringJoin::string"])”

WSMLink`WSMLink::wdir: Configuration file /Users/-----/Library/Mathematica/Applications/WSMLink/Config.m does not contain location of SystemModeler program directory.

how do I fix this?

---

<div class="post-metadata">

**Author:** ![maltel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/maltel/32/36715_2.png) [@maltel](https://community.wolfram.com/u/maltel)\
**Post date:** [September 17, 2014, 1:38pm UTC](https://community.wolfram.com/t/wsmlink-not-working/3333/2 "2014-09-17T13:38:33Z")

</div>

Try removing the contents in this file (after backing up a copy of the file):

```
FileNameJoin[{$UserBaseDirectory, "Kernel", "init.m"}]

```

Then reconfigure the WSMLink through SystemModeler → Options → Mathematica → Configure SystemModeler Link

---

<div class="post-metadata">

**Author:** ![energydragon007](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/energydragon007/32/28012_2.png) [@energydragon007](https://community.wolfram.com/u/energydragon007)\
**Post date:** [September 18, 2014, 8:22am UTC](https://community.wolfram.com/t/wsmlink-not-working/3333/3 "2014-09-18T08:22:15Z")

</div>

I did clear the kernel, and reconfigure the connection between SystemModeler and Mathematica - the configuration apparently went fine. However, I experienced the same problem again. Is it because I am currently using the product trial of Mathematica? Or is there some other problem?

---

<div class="post-metadata">

**Author:** ![maltel](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/maltel/32/36715_2.png) [@maltel](https://community.wolfram.com/u/maltel)\
**Post date:** [September 18, 2014, 8:49am UTC](https://community.wolfram.com/t/wsmlink-not-working/3333/4 "2014-09-18T08:49:34Z")

</div>

What version of SystemModeler and Mathematica are you using? There was a problem with SystemModeler 3.0.0 and Mathematica trial.

---

<div class="post-metadata">

**Author:** ![energydragon007](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/energydragon007/32/28012_2.png) [@energydragon007](https://community.wolfram.com/u/energydragon007)\
**Post date:** [September 18, 2014, 9:12am UTC](https://community.wolfram.com/t/wsmlink-not-working/3333/5 "2014-09-18T09:12:33Z")

</div>

SystemModeler 4.0.0 and Mathematica ProductTrial 10.0.1.0 on Mac OS X 10.9.4
