Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.UnsupportedOperationException: Cannot convert expression to MX: size(A, 1)	at org.jmodelica.optimica.compiler.FExp.toMX(FExp.java:4516)	at org.jmodelica.optimica.compiler.FMaxExp.toMX(FMaxExp.java:560)	at org.jmodelica.optimica.compiler.FExp.toMXVector(FExp.java:4497)	at org.jmodelica.optimica.compiler.FAssignStmt.updateExpressionsAccordingToStatement(FAssignStmt.java:385)	at org.jmodelica.optimica.compiler.FFunctionDecl.generateFinalExpressionVector(FFunctionDecl.java:1365)	at org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction_compute(FFunctionDecl.java:2878)	at org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction(FFunctionDecl.java:2865)	at org.jmodelica.optimica.compiler.FFunctionCall.toMXVector(FFunctionCall.java:1578)	at org.jmodelica.optimica.compiler.FFunctionCallStmt.updateExpressionsAccordingToStatement(FFunctionCallStmt.java:391)	at org.jmodelica.optimica.compiler.FFunctionDecl.generateFinalExpressionVector(FFunctionDecl.java:1365)	at org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction_compute(FFunctionDecl.java:2878)	at org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction(FFunctionDecl.java:2865)	at org.jmodelica.optimica.compiler.FFunctionCall.toMXVector(FFunctionCall.java:1578)	at org.jmodelica.optimica.compiler.FFunctionCallStmt.updateExpressionsAccordingToStatement(FFunctionCallStmt.java:391)	at org.jmodelica.optimica.compiler.FFunctionDecl.generateFinalExpressionVector(FFunctionDecl.java:1365)	at org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction_compute(FFunctionDecl.java:2878)	at org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction(FFunctionDecl.java:2865)	at org.jmodelica.optimica.compiler.FFunctionCall.toMXVector(FFunctionCall.java:1578)	at org.jmodelica.optimica.compiler.FFunctionCall.toMX(FFunctionCall.java:1562)	at org.jmodelica.optimica.compiler.FDotSubExp.toMX(FDotSubExp.java:544)	at org.jmodelica.optimica.compiler.FVariable.parameterEquationToMXBindingExpression(FVariable.java:3807)	at org.jmodelica.optimica.compiler.FVariable.findMXBindingExpressionIfPresent(FVariable.java:3770)