java.lang.UnsupportedOperationException: Cannot convert expression to MX: size(A, 1)

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Optimal control of a boiler: using Fluid Library w. the DynamicPipe component using JModelica

    Stack Overflow | 7 months ago | Joakim B Petersen
    java.lang.UnsupportedOperationException: Cannot convert expression to MX: size(A, 1)

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Cannot convert expression to MX: size(A, 1)

      at org.jmodelica.optimica.compiler.FExp.toMX()
    2. org.jmodelica.optimica
      FVariable.findMXBindingExpressionIfPresent
      1. org.jmodelica.optimica.compiler.FExp.toMX(FExp.java:4516)
      2. org.jmodelica.optimica.compiler.FMaxExp.toMX(FMaxExp.java:560)
      3. org.jmodelica.optimica.compiler.FExp.toMXVector(FExp.java:4497)
      4. org.jmodelica.optimica.compiler.FAssignStmt.updateExpressionsAccordingToStatement(FAssignStmt.java:385)
      5. org.jmodelica.optimica.compiler.FFunctionDecl.generateFinalExpressionVector(FFunctionDecl.java:1365)
      6. org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction_compute(FFunctionDecl.java:2878)
      7. org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction(FFunctionDecl.java:2865)
      8. org.jmodelica.optimica.compiler.FFunctionCall.toMXVector(FFunctionCall.java:1578)
      9. org.jmodelica.optimica.compiler.FFunctionCallStmt.updateExpressionsAccordingToStatement(FFunctionCallStmt.java:391)
      10. org.jmodelica.optimica.compiler.FFunctionDecl.generateFinalExpressionVector(FFunctionDecl.java:1365)
      11. org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction_compute(FFunctionDecl.java:2878)
      12. org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction(FFunctionDecl.java:2865)
      13. org.jmodelica.optimica.compiler.FFunctionCall.toMXVector(FFunctionCall.java:1578)
      14. org.jmodelica.optimica.compiler.FFunctionCallStmt.updateExpressionsAccordingToStatement(FFunctionCallStmt.java:391)
      15. org.jmodelica.optimica.compiler.FFunctionDecl.generateFinalExpressionVector(FFunctionDecl.java:1365)
      16. org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction_compute(FFunctionDecl.java:2878)
      17. org.jmodelica.optimica.compiler.FFunctionDecl.toMXFunction(FFunctionDecl.java:2865)
      18. org.jmodelica.optimica.compiler.FFunctionCall.toMXVector(FFunctionCall.java:1578)
      19. org.jmodelica.optimica.compiler.FFunctionCall.toMX(FFunctionCall.java:1562)
      20. org.jmodelica.optimica.compiler.FDotSubExp.toMX(FDotSubExp.java:544)
      21. org.jmodelica.optimica.compiler.FVariable.parameterEquationToMXBindingExpression(FVariable.java:3807)
      22. org.jmodelica.optimica.compiler.FVariable.findMXBindingExpressionIfPresent(FVariable.java:3770)
      22 frames