java.lang.UnsupportedOperationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
No Bugmate found.