I am having issues with Comsol with Matlab. My loop keeps stopping and I cannot figure out what the problem is. I am clearing out the answer and the model after each iteration. The error is listed below.
??? Java exception occurred:
Exception:
java.lang.RuntimeException: Error in reInitializeModel
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
Error in reInitializeModel
Stack trace:
at
com.comsol.clientserver.util.ClientServerManagerImpl.reInitializeModel(Unknown
Source)
at
com.comsol.model.clientserver.ClientManagerImpl.a(Unknown
Source)
at
com.comsol.model.clientserver.ClientManagerImpl.runServerJob(Unknown
Source)
at
com.comsol.model.internal.impl.SolverSequenceImpl$aj.a(Unknown
Source)
at
com.comsol.model.internal.impl.SolverSequenceImpl$aj.execute(Unknown
Source)
at
com.comsol.model.clientserver.ClientManagerImpl$e.call(Unknown
Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown
Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
... 11 more
Caused by:
org.eclipse.emf.cdo.common.util.TransportException:
java.util.concurrent.TimeoutException
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtocol.send(CDOClientProtocol.java:294)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtocol.send(CDOClientProtocol.java:319)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtocol.loadRevisions(CDOClientProtocol.java:110)
at
org.eclipse.emf.internal.cdo.session.CDORevisionManagerImpl.loadRevisions(CDORevisionManagerImpl.java:124)
at
org.eclipse.emf.internal.cdo.session.CDORevisionManagerImpl.loadRevision(CDORevisionManagerImpl.java:106)
at
org.eclipse.emf.cdo.internal.common.revision.CDORevisionResolverImpl.getRevision(CDORevisionResolverImpl.java:148)
at
org.eclipse.emf.cdo.internal.common.revision.CDORevisionResolverImpl.getRevision(CDORevisionResolverImpl.java:1)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.getRevision(CDOViewImpl.java:690)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.createObject(CDOViewImpl.java:849)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.getObject(CDOViewImpl.java:743)
at
org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.getObject(CDOTransactionImpl.java:572)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.convertIDToObject(CDOViewImpl.java:1043)
at
org.eclipse.emf.internal.cdo.CDOStore.convertToEMF(CDOStore.java:378)
at
org.eclipse.emf.internal.cdo.CDOStore.get(CDOStore.java:171)
at
org.eclipse.emf.internal.cdo.CDOObjectImpl.dynamicGet(CDOObjectImpl.java:485)
at
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleEObject.dynamicGet(EStructuralFeatureImpl.java:2303)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1029)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1013)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1005)
at
com.comsol.model.internal.impl.ModelImpl.getOdeGen(Unknown
Source)
at
com.comsol.model.internal.impl.ModelImpl.getOde(Unknown
Source)
at com.comsol.model.internal.impl.ModelImpl.X(Unknown
Source)
at com.comsol.model.internal.impl.ModelImpl.ode(Unknown
Source)
at com.comsol.applapi.util.m.a(Unknown Source)
at
com.comsol.applapi.variables.d.resetAllVariables(Unknown
Source)
at
com.comsol.model.internal.impl.PhysicsListImpl.getVarData(Unknown
Source)
at
com.comsol.model.applapi.UnitConverter.expandExpression(Unknown
Source)
at com.comsol.nativeutil.properties.ar.a(Unknown Source)
at
com.comsol.nativeutil.properties.ar.getUnitError(Unknown
Source)
at
com.comsol.nativeutil.properties.i.getUnitError(Unknown
Source)
at com.comsol.nativeutil.properties.Property.d(Unknown
Source)
at com.comsol.nativeutil.properties.w.a(Unknown Source)
at com.comsol.nativeutil.properties.w.evaluate(Unknown
Source)
at
com.comsol.model.internal.impl.PropValueImpl.internalReEvaluate(Unknown
Source)
at
com.comsol.model.internal.impl.PropFeatureImpl.reInitializeThis(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.reInitialize(Unknown
Source)
... 14 more
Caused by: java.util.concurrent.TimeoutException
at
org.eclipse.internal.net4j.IOTimeoutException.createTimeoutException(IOTimeoutException.java:45)
at
org.eclipse.net4j.signal.Signal.runSync(Signal.java:242)
at
org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalProtocol.java:427)
at
org.eclipse.net4j.signal.RequestWithConfirmation.doSend(RequestWithConfirmation.java:87)
at
org.eclipse.net4j.signal.RequestWithConfirmation.send(RequestWithConfirmation.java:73)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtocol.send(CDOClientProtocol.java:286)
... 55 more
??? Java exception occurred:
Exception:
java.lang.RuntimeException: Error in reInitializeModel
(rethrown as com.comsol.util.exceptions.FlException)
Messages:
Error in reInitializeModel
Stack trace:
at
com.comsol.clientserver.util.ClientServerManagerImpl.reInitializeModel(Unknown
Source)
at
com.comsol.model.clientserver.ClientManagerImpl.a(Unknown
Source)
at
com.comsol.model.clientserver.ClientManagerImpl.runServerJob(Unknown
Source)
at
com.comsol.model.internal.impl.SolverSequenceImpl$aj.a(Unknown
Source)
at
com.comsol.model.internal.impl.SolverSequenceImpl$aj.execute(Unknown
Source)
at
com.comsol.model.clientserver.ClientManagerImpl$e.call(Unknown
Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown
Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
... 11 more
Caused by:
org.eclipse.emf.cdo.common.util.TransportException:
java.util.concurrent.TimeoutException
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtocol.send(CDOClientProtocol.java:294)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtocol.send(CDOClientProtocol.java:319)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtocol.loadRevisions(CDOClientProtocol.java:110)
at
org.eclipse.emf.internal.cdo.session.CDORevisionManagerImpl.loadRevisions(CDORevisionManagerImpl.java:124)
at
org.eclipse.emf.internal.cdo.session.CDORevisionManagerImpl.loadRevision(CDORevisionManagerImpl.java:106)
at
org.eclipse.emf.cdo.internal.common.revision.CDORevisionResolverImpl.getRevision(CDORevisionResolverImpl.java:148)
at
org.eclipse.emf.cdo.internal.common.revision.CDORevisionResolverImpl.getRevision(CDORevisionResolverImpl.java:1)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.getRevision(CDOViewImpl.java:690)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.createObject(CDOViewImpl.java:849)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.getObject(CDOViewImpl.java:743)
at
org.eclipse.emf.internal.cdo.transaction.CDOTransactionImpl.getObject(CDOTransactionImpl.java:572)
at
org.eclipse.emf.internal.cdo.view.CDOViewImpl.convertIDToObject(CDOViewImpl.java:1043)
at
org.eclipse.emf.internal.cdo.CDOStore.convertToEMF(CDOStore.java:378)
at
org.eclipse.emf.internal.cdo.CDOStore.get(CDOStore.java:171)
at
org.eclipse.emf.internal.cdo.CDOObjectImpl.dynamicGet(CDOObjectImpl.java:485)
at
org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleEObject.dynamicGet(EStructuralFeatureImpl.java:2303)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1029)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1013)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1005)
at
com.comsol.model.internal.impl.ModelImpl.getOdeGen(Unknown
Source)
at
com.comsol.model.internal.impl.ModelImpl.getOde(Unknown
Source)
at com.comsol.model.internal.impl.ModelImpl.X(Unknown
Source)
at com.comsol.model.internal.impl.ModelImpl.ode(Unknown
Source)
at com.comsol.applapi.util.m.a(Unknown Source)
at
com.comsol.applapi.variables.d.resetAllVariables(Unknown
Source)
at
com.comsol.model.internal.impl.PhysicsListImpl.getVarData(Unknown
Source)
at
com.comsol.model.applapi.UnitConverter.expandExpression(Unknown
Source)
at com.comsol.nativeutil.properties.ar.a(Unknown Source)
at
com.comsol.nativeutil.properties.ar.getUnitError(Unknown
Source)
at
com.comsol.nativeutil.properties.i.getUnitError(Unknown
Source)
at com.comsol.nativeutil.properties.Property.d(Unknown
Source)
at com.comsol.nativeutil.properties.w.a(Unknown Source)
at com.comsol.nativeutil.properties.w.evaluate(Unknown
Source)
at
com.comsol.model.internal.impl.PropValueImpl.internalReEvaluate(Unknown
Source)
at
com.comsol.model.internal.impl.PropFeatureImpl.reInitializeThis(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.a(Unknown
Source)
at
com.comsol.model.internal.impl.ModelEntityImpl.reInitialize(Unknown
Source)
... 14 more
Caused by: java.util.concurrent.TimeoutException
at
org.eclipse.internal.net4j.IOTimeoutException.createTimeoutException(IOTimeoutException.java:45)
at
org.eclipse.net4j.signal.Signal.runSync(Signal.java:242)
at
org.eclipse.net4j.signal.SignalProtocol.startSignal(SignalProtocol.java:427)
at
org.eclipse.net4j.signal.RequestWithConfirmation.doSend(RequestWithConfirmation.java:87)
at
org.eclipse.net4j.signal.RequestWithConfirmation.send(RequestWithConfirmation.java:73)
at
org.eclipse.emf.internal.cdo.net4j.protocol.CDOClientProtocol.send(CDOClientProtocol.java:286)
... 55 more