Skip to content

Merge pull request #56 from symbiotic-engineering/use-wamit-multibody… #125

Merge pull request #56 from symbiotic-engineering/use-wamit-multibody…

Merge pull request #56 from symbiotic-engineering/use-wamit-multibody… #125

GitHub Actions / JUnit Test Report failed Oct 30, 2024 in 0s

32 tests run, 19 passed, 0 skipped, 13 failed.

Annotations

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.validateNominalFeasible

Verification failed in test/validateNominalFeasible.
    ---------------------
Raw output
Verification failed in test/validateNominalFeasible.
    ---------------------
    Framework Diagnostic:
    ---------------------
    verifyTrue failed.
    --> The value must evaluate to "true".
    
    Actual Value:
      logical
    
       0
    ----------------------
    Additional Diagnostic:
    ----------------------
    Nominal design violates these constraints:  irrelevant_max_force
    ------------------
    Stack Information:
    ------------------
    In /home/runner/work/MDOcean/MDOcean/tests/test.m (test.validateNominalFeasible) at 66

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.validateNominalHydroCoeffs

Verification failed in test/validateNominalHydroCoeffs.
    ---------------------
Raw output
Verification failed in test/validateNominalHydroCoeffs.
    ---------------------
    Framework Diagnostic:
    ---------------------
    verifyLessThanOrEqual failed.
    --> Each element must be less than or equal to the maximum value.
        
        Failing Indices:
             1     2     3     4
    
    Actual Value:
       0.204482267456327   0.887336280522300   0.208933730234385   0.813333333333333
    Maximum Value (Inclusive):
       0.100000000000000
    ------------------
    Stack Information:
    ------------------
    In /home/runner/work/MDOcean/MDOcean/tests/test.m (test.validateNominalHydroCoeffs) at 71

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.hydrodynamicLimitObeyed

Error occurred in test/hydrodynamicLimitObeyed and it did not run to completion.
    ---------
Raw output
Error occurred in test/hydrodynamicLimitObeyed and it did not run to completion.
    ---------
    Error ID:
    ---------
    'MATLAB:UndefinedFunction'
    --------------
    Error Details:
    --------------
    Undefined function 'generatedFunction_simulation1_withReuse' for input arguments of type 'struct'.
    
    Error in generatedObjectiveLCOE (line 53)
    [arg1,~,~,~] = generatedFunction_simulation1_withReuse(arg2(:)', extraParams{1});
    
    Error in optim.internal.problemdef.compile.snapExtraParams
    
    Error in optimfcnchk/checkfun (line 244)
                f = userfcn(x,varargin{:});
    
    Error in objfunEvaluator (line 5)
    fval = feval(Objfun, x, self.FunArgs.AdditionalParameters{:});
    
    Error in OptimFunctions/objectiveFirstEval (line 645)
                    [fval, grad, hess] = self.ObjectiveFunAndGrad(self,self.FunFcn{3},...
    
    Error in fmincon (line 501)
    [initVals.f,initVals.g,HESSIAN,funObj] = funObj.objectiveFirstEval(X);
    
    Error in run_solver (line 17)
            [X_opt,obj_opt,flag,output,lambda,grad,hess] = fmincon(problem);
    
    Error in gradient_optim>optimize_both_objectives (line 89)
            [X_opt_raw,obj_opt,flag,output,lambda,grad,hess,problem] = run_solver(prob, obj_names{which_obj}, x0, opts);
    
    Error in gradient_optim (line 43)
        [Xs_opt, objs_opt, flags, probs] = optimize_both_objectives(X,p,b,x0_input,opts,ploton,which_objs);
    
    Error in check_max_CW (line 10)
        X_opt = gradient_optim(x0,p,b,1); 
    
    Error in test/hydrodynamicLimitObeyed (line 75)
                ratio = check_max_CW();
    
    Caused by:
        Failure in initial objective function evaluation. FMINCON cannot continue.

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.allFiguresRun(which_figs=10,which_tabs=0_9)

Error occurred in test/allFiguresRun(which_figs=10,which_tabs=0_9) and it did not run to completion.
    ---------
Raw output
Error occurred in test/allFiguresRun(which_figs=10,which_tabs=0_9) and it did not run to completion.
    ---------
    Error ID:
    ---------
    'MATLAB:UndefinedFunction'
    --------------
    Error Details:
    --------------
    Undefined function 'generatedFunction_simulation1_withReuse' for input arguments of type 'struct'.
    
    Error in generatedObjectiveLCOE (line 53)
    [arg1,~,~,~] = generatedFunction_simulation1_withReuse(arg2(:)', extraParams{1});
    
    Error in optim.internal.problemdef.compile.snapExtraParams
    
    Error in optimfcnchk/checkfun (line 244)
                f = userfcn(x,varargin{:});
    
    Error in objfunEvaluator (line 5)
    fval = feval(Objfun, x, self.FunArgs.AdditionalParameters{:});
    
    Error in OptimFunctions/objectiveFirstEval (line 645)
                    [fval, grad, hess] = self.ObjectiveFunAndGrad(self,self.FunFcn{3},...
    
    Error in fmincon (line 501)
    [initVals.f,initVals.g,HESSIAN,funObj] = funObj.objectiveFirstEval(X);
    
    Error in run_solver (line 17)
            [X_opt,obj_opt,flag,output,lambda,grad,hess] = fmincon(problem);
    
    Error in gradient_optim>optimize_both_objectives (line 89)
            [X_opt_raw,obj_opt,flag,output,lambda,grad,hess,problem] = run_solver(prob, obj_names{which_obj}, x0, opts);
    
    Error in gradient_optim (line 43)
        [Xs_opt, objs_opt, flags, probs] = optimize_both_objectives(X,p,b,x0_input,opts,ploton,which_objs);
    
    Error in compare (line 7)
    Xs_opt = gradient_optim(x0_input,p,b);
    
    Error in all_figures (line 49)
        compare()
    
    Error in test/allFiguresRun (line 53)
                all_figures(which_figs,which_tabs);
    
    Caused by:
        Failure in initial objective function evaluation. FMINCON cannot continue.

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.allFiguresRun(which_figs=0_4,which_tabs=5)

Error occurred in test/allFiguresRun(which_figs=0_4,which_tabs=5) and it did not run to completion.
    ---------
Raw output
Error occurred in test/allFiguresRun(which_figs=0_4,which_tabs=5) and it did not run to completion.
    ---------
    Error ID:
    ---------
    'MATLAB:UndefinedFunction'
    --------------
    Error Details:
    --------------
    Undefined function 'generatedFunction_simulation1_withReuse' for input arguments of type 'struct'.
    
    Error in generatedObjectiveLCOE (line 53)
    [arg1,~,~,~] = generatedFunction_simulation1_withReuse(arg2(:)', extraParams{1});
    
    Error in optim.internal.problemdef.compile.snapExtraParams
    
    Error in optimfcnchk/checkfun (line 244)
                f = userfcn(x,varargin{:});
    
    Error in objfunEvaluator (line 5)
    fval = feval(Objfun, x, self.FunArgs.AdditionalParameters{:});
    
    Error in OptimFunctions/objectiveFirstEval (line 645)
                    [fval, grad, hess] = self.ObjectiveFunAndGrad(self,self.FunFcn{3},...
    
    Error in fmincon (line 501)
    [initVals.f,initVals.g,HESSIAN,funObj] = funObj.objectiveFirstEval(X);
    
    Error in run_solver (line 17)
            [X_opt,obj_opt,flag,output,lambda,grad,hess] = fmincon(problem);
    
    Error in gradient_optim>optimize_both_objectives (line 89)
            [X_opt_raw,obj_opt,flag,output,lambda,grad,hess,problem] = run_solver(prob, obj_names{which_obj}, x0, opts);
    
    Error in gradient_optim (line 43)
        [Xs_opt, objs_opt, flags, probs] = optimize_both_objectives(X,p,b,x0_input,opts,ploton,which_objs);
    
    Error in compare (line 7)
    Xs_opt = gradient_optim(x0_input,p,b);
    
    Error in all_figures (line 49)
        compare()
    
    Error in test/allFiguresRun (line 53)
                all_figures(which_figs,which_tabs);
    
    Caused by:
        Failure in initial objective function evaluation. FMINCON cannot continue.

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.allFiguresRun(which_figs=0_5,which_tabs=6)

Error occurred in test/allFiguresRun(which_figs=0_5,which_tabs=6) and it did not run to completion.
    ---------
Raw output
Error occurred in test/allFiguresRun(which_figs=0_5,which_tabs=6) and it did not run to completion.
    ---------
    Error ID:
    ---------
    'MATLAB:UndefinedFunction'
    --------------
    Error Details:
    --------------
    Undefined function 'generatedFunction_simulation1_withReuse' for input arguments of type 'struct'.
    
    Error in generatedObjectiveLCOE (line 53)
    [arg1,~,~,~] = generatedFunction_simulation1_withReuse(arg2(:)', extraParams{1});
    
    Error in optim.internal.problemdef.compile.snapExtraParams
    
    Error in optimfcnchk/checkfun (line 244)
                f = userfcn(x,varargin{:});
    
    Error in objfunEvaluator (line 5)
    fval = feval(Objfun, x, self.FunArgs.AdditionalParameters{:});
    
    Error in OptimFunctions/objectiveFirstEval (line 645)
                    [fval, grad, hess] = self.ObjectiveFunAndGrad(self,self.FunFcn{3},...
    
    Error in fmincon (line 501)
    [initVals.f,initVals.g,HESSIAN,funObj] = funObj.objectiveFirstEval(X);
    
    Error in run_solver (line 17)
            [X_opt,obj_opt,flag,output,lambda,grad,hess] = fmincon(problem);
    
    Error in gradient_optim>optimize_both_objectives (line 89)
            [X_opt_raw,obj_opt,flag,output,lambda,grad,hess,problem] = run_solver(prob, obj_names{which_obj}, x0, opts);
    
    Error in gradient_optim (line 43)
        [Xs_opt, objs_opt, flags, probs] = optimize_both_objectives(X,p,b,x0_input,opts,ploton,which_objs);
    
    Error in location_sensitivity (line 24)
        [X_opts(:,i), obj_opts(i), flags(i)]  = gradient_optim(X,p,b,which_obj);
    
    Error in all_figures (line 80)
        location_sensitivity()
    
    Error in test/allFiguresRun (line 53)
                all_figures(which_figs,which_tabs);
    
    Caused by:
        Failure in initial objective function evaluation. FMINCON cannot continue.

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.validateNominal(field=mass_f,rel_tol=0.1)

Verification failed in test/validateNominal(field=mass_f,rel_tol=0.1).
    ---------------------
Raw output
Verification failed in test/validateNominal(field=mass_f,rel_tol=0.1).
    ---------------------
    Framework Diagnostic:
    ---------------------
    verifyEqual failed.
    --> The numeric values are not equal using "isequaln".
    --> The error was not within relative tolerance.
    --> Failure table:
                 Actual         Expected          Error            RelativeError       RelativeTolerance
            ________________    ________    _________________    __________________    _________________
                                                                                                        
            183566.915708626     208000     -24433.0842913736    -0.117466751400835           0.1       
    
    Actual Value:
         1.835669157086264e+05
    Expected Value:
          208000
    ------------------
    Stack Information:
    ------------------
    In /home/runner/work/MDOcean/MDOcean/tests/test.m (test.validateNominal) at 59

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.validateNominal(field=mass_vc,rel_tol=0.1_1)

Verification failed in test/validateNominal(field=mass_vc,rel_tol=0.1_1).
    ---------------------
Raw output
Verification failed in test/validateNominal(field=mass_vc,rel_tol=0.1_1).
    ---------------------
    Framework Diagnostic:
    ---------------------
    verifyEqual failed.
    --> The numeric values are not equal using "isequaln".
    --> The error was not within relative tolerance.
    --> Failure table:
                 Actual         Expected          Error            RelativeError       RelativeTolerance
            ________________    ________    _________________    __________________    _________________
                                                                                                        
            180212.214605481     224000     -43787.7853945189    -0.195481184796959           0.1       
    
    Actual Value:
         1.802122146054811e+05
    Expected Value:
          224000
    ------------------
    Stack Information:
    ------------------
    In /home/runner/work/MDOcean/MDOcean/tests/test.m (test.validateNominal) at 59

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.validateNominal(field=LCOE,rel_tol=0.25_2)

Verification failed in test/validateNominal(field=LCOE,rel_tol=0.25_2).
    ---------------------
Raw output
Verification failed in test/validateNominal(field=LCOE,rel_tol=0.25_2).
    ---------------------
    Framework Diagnostic:
    ---------------------
    verifyEqual failed.
    --> The numeric values are not equal using "isequaln".
    --> The error was not within relative tolerance.
    --> Failure table:
            Index         Actual         Expected          Error             RelativeError       RelativeTolerance
            _____    ________________    ________    __________________    __________________    _________________
                                                                                                                  
              2      1.01883008167074      1.45      -0.431169918329259    -0.297358564365007          0.25       
    
    Actual Value:
       3.489117514901982   1.018830081670741   0.666746094082018   0.601884210823798
    Expected Value:
       4.480000000000000   1.450000000000000   0.850000000000000   0.760000000000000
    ------------------
    Stack Information:
    ------------------
    In /home/runner/work/MDOcean/MDOcean/tests/test.m (test.validateNominal) at 59

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.validateNominal(field=power_avg,rel_tol=0.1_4)

Verification failed in test/validateNominal(field=power_avg,rel_tol=0.1_4).
    ---------------------
Raw output
Verification failed in test/validateNominal(field=power_avg,rel_tol=0.1_4).
    ---------------------
    Framework Diagnostic:
    ---------------------
    verifyEqual failed.
    --> The numeric values are not equal using "isequaln".
    --> The error was not within relative tolerance.
    --> Failure table:
                 Actual         Expected         Error            RelativeError      RelativeTolerance
            ________________    ________    ________________    _________________    _________________
                                                                                                      
            110339.749612784     85900      24439.7496127838    0.284513965224492           0.1       
    
    Actual Value:
         1.103397496127838e+05
    Expected Value:
           85900
    ------------------
    Stack Information:
    ------------------
    In /home/runner/work/MDOcean/MDOcean/tests/test.m (test.validateNominal) at 59

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.validateNominal(field=force_heave,rel_tol=0.1_6)

Verification failed in test/validateNominal(field=force_heave,rel_tol=0.1_6).
    ---------------------
Raw output
Verification failed in test/validateNominal(field=force_heave,rel_tol=0.1_6).
    ---------------------
    Framework Diagnostic:
    ---------------------
    verifyEqual failed.
    --> The numeric values are not equal using "isequaln".
    --> The error was not within relative tolerance.
    --> Failure table:
                 Actual         Expected          Error            RelativeError       RelativeTolerance
            ________________    ________    _________________    __________________    _________________
                                                                                                        
            6611473.25975754    8500000     -1888526.74024246    -0.222179616499112           0.1       
    
    Actual Value:
         6.611473259757544e+06
    Expected Value:
         8500000
    ------------------
    Stack Information:
    ------------------
    In /home/runner/work/MDOcean/MDOcean/tests/test.m (test.validateNominal) at 59

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.validateNominal(field=FOS_b,rel_tol=0.1_7)

Verification failed in test/validateNominal(field=FOS_b,rel_tol=0.1_7).
    ---------------------
Raw output
Verification failed in test/validateNominal(field=FOS_b,rel_tol=0.1_7).
    ---------------------
    Framework Diagnostic:
    ---------------------
    verifyEqual failed.
    --> The numeric values are not equal using "isequaln".
    --> The error was not within relative tolerance.
    --> Failure table:
                 Actual         Expected         Error           RelativeError      RelativeTolerance
            ________________    ________    ________________    ________________    _________________
                                                                                                     
            110.540401901597       3        107.540401901597    35.8468006338658           0.1       
    
    Actual Value:
         1.105404019015975e+02
    Expected Value:
         3
    ------------------
    Stack Information:
    ------------------
    In /home/runner/work/MDOcean/MDOcean/tests/test.m (test.validateNominal) at 59

Check failure on line 1 in tests/test.m

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

test.allFiguresRun(which_figs=8,which_tabs=0_7)

Error occurred in test/allFiguresRun(which_figs=8,which_tabs=0_7) and it did not run to completion.
    ---------
Raw output
Error occurred in test/allFiguresRun(which_figs=8,which_tabs=0_7) and it did not run to completion.
    ---------
    Error ID:
    ---------
    'MATLAB:nonExistentField'
    --------------
    Error Details:
    --------------
    Unrecognized field name "T_f_over_h_f".
    
    Error in param_sweep (line 44)
        var_nom = p.(params{i});
    
    Error in all_figures (line 43)
        param_sweep()
    
    Error in test/allFiguresRun (line 53)
                all_figures(which_figs,which_tabs);