fatal: not a git repository (or any of the parent directories): .git

================================================================================
  BRACKET DISPLACEMENT MAXIMIZATION STUDY
================================================================================

Study Configuration:
  - Objective: Maximize displacement
  - Constraint: Safety factor >= 4.0
  - Material: Aluminum 6061-T6 (Yield = 276 MPa)
  - Design Variables:
    * tip_thickness: 15-25 mm
    * support_angle: 20-40 degrees
  - Optimization trials: 20

Part file: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\Bracket.prt
Simulation file: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\Bracket_sim1.sim
Study directory: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing


================================================================================
  STEP 1: INITIALIZATION
================================================================================

Initializing Optimization Setup Wizard...
  [OK] Wizard initialized


================================================================================
  STEP 2: MODEL INTROSPECTION
================================================================================

Reading NX model expressions...
Found 4 expressions:
  - support_angle: 28.0 degrees
  - tip_thickness: 21.0 mm
  - p3: 10.0 mm
  - support_blend_radius: 10.0 mm


================================================================================
  STEP 3: BASELINE SIMULATION
================================================================================

Running baseline simulation to generate reference OP2...
(This validates that NX simulation works before optimization)

[NX SOLVER] Starting simulation...
  Input file: Bracket_sim1.sim
  Working dir: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model
  Mode: Journal
[JOURNAL OUTPUT]
  Mesh-Based Errors Summary
  -------------------------
  
  Total: 0 errors and 0 warnings
  
  
  Material-Based Errors Summary
  -----------------------------
  
  Total: 0 errors and 0 warnings
  
  
  Solution-Based Errors Summary
  -----------------------------
  
  Iterative Solver Option
  More than 80 percent of the elements in this model are 3D elements.
  It is therefore recommended that you turn ON the Element Iterative Solver in the "Edit 
  Solution" dialog.
  
  Total: 0 errors and 0 warnings
  
  
  Load/BC-Based Errors Summary
  ----------------------------
  
  Total: 0 errors and 0 warnings
  
  
  Nastran Model Setup Check completed
  
  
  
  
  *** 20:53:31 *** 
  Starting Nastran Exporter
  
  *** 20:53:31 *** 
  Writing file 
  C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\
  bracket_sim1-solution_1.dat
   
  *** 20:53:31 *** 
  Writing SIMCENTER NASTRAN 2412.0 compatible deck
  
  *** 20:53:31 *** 
  Writing Nastran System section
  
  *** 20:53:31 *** 
  Writing File Management section
  
  *** 20:53:31 *** 
  Writing Executive Control section
  
  *** 20:53:31 *** 
  Writing Case Control section
  
  *** 20:53:31 *** 
  Writing Bulk Data section
  
  *** 20:53:31 *** 
  Writing Nodes
  
  *** 20:53:31 *** 
  Writing Elements
  
  *** 20:53:31 *** 
  Writing Physical Properties
  
  *** 20:53:31 *** 
  Writing Materials
  
  *** 20:53:31 *** 
  Writing Degree-of-Freedom Sets
  
  *** 20:53:31 *** 
  Writing Loads and Constraints
  
  *** 20:53:31 *** 
  Writing Coordinate Systems
  
  *** 20:53:31 *** 
  Validating Solution Setup
  
  *** 20:53:31 *** 
  Summary of Bulk Data cards written
  
  +----------+----------+
  |   NAME   |  NUMBER  |
  +----------+----------+
  | CHEXA    | 306      |
  | CPENTA   | 10       |
  | FORCE    | 3        |
  | GRID     | 585      |
  | MAT1     | 1        |
  | MATT1    | 1        |
  | PARAM    | 6        |
  | PSOLID   | 1        |
  | SPC      | 51       |
  | TABLEM1  | 3        |
  +----------+----------+
  
  *** 20:53:31 *** 
  Nastran Deck Successfully Written
  
  [JOURNAL] Opening simulation: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\Bracket_sim1.sim
  [JOURNAL] Checking for open parts...
  [JOURNAL] Opening simulation fresh from disk...
  [JOURNAL] STEP 1: Updating Bracket.prt geometry...
  [JOURNAL]   Rebuilding geometry with new expression values...
  [JOURNAL]   Bracket geometry updated (0 errors)
  [JOURNAL] STEP 2: Opening Bracket_fem1.fem...
  [JOURNAL]   Updating FE Model...
  [JOURNAL]   FE Model updated with new geometry!
  [JOURNAL] STEP 3: Switching back to sim part...
  [JOURNAL]   Switched back to sim part
  [JOURNAL] Starting solve...
  [JOURNAL] Solve submitted!
  [JOURNAL]   Solutions solved: -1799017866
  [JOURNAL]   Solutions failed: 32764
  [JOURNAL]   Solutions skipped: -1956117952
  [JOURNAL] Saving simulation to ensure output files are written...
  [JOURNAL] Save complete!
[JOURNAL ERRORS]
  Journal execution results for C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\_temp_solve_journal.py...
  Syntax errors:
  Line 0: Traceback (most recent call last):
    File "C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\_temp_solve_journal.py", line 247, in <module>
      sys.exit(0 if success else 1)
[NX SOLVER] Waiting for solve to complete...
[NX SOLVER] Output files detected after 0.0s
[NX SOLVER] Complete in 4.3s
[NX SOLVER] Results: bracket_sim1-solution_1.op2
  [OK] Baseline OP2: bracket_sim1-solution_1.op2


================================================================================
  STEP 4: OP2 INTROSPECTION
================================================================================

Analyzing OP2 file to auto-detect element types...
DEBUG:   op2.py:614                   combine=True
DEBUG:   op2.py:615                   -------- reading op2 with read_mode=1 (array sizing) --------
INFO:    op2_scalar.py:1960           op2_filename = 'C:\\Users\\antoi\\Documents\\Atomaste\\Atomizer\\studies\\bracket_displacement_maximizing\\model\\bracket_sim1-solution_1.op2'
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_reader.py:403            mode='nx' version='2412'
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:634                   -------- reading op2 with read_mode=2 (array filling) --------
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:932                   combine_results
DEBUG:   op2.py:648                   finished reading op2
OP2 Contents:
  - Element types with stress: CHEXA, CPENTA
  - Available result types: displacement, stress
  - Subcases: [1]
  - Nodes: 0
  - Elements: 0


================================================================================
  STEP 5: WORKFLOW CONFIGURATION
================================================================================

Building LLM workflow with auto-detected element types...
  Using detected element type: CHEXA


================================================================================
  STEP 6: PIPELINE VALIDATION
================================================================================

Validating complete pipeline with baseline OP2...
(Dry-run test of extractors, calculations, hooks, objective)

DEBUG:   op2.py:614                   combine=True
DEBUG:   op2.py:615                   -------- reading op2 with read_mode=1 (array sizing) --------
INFO:    op2_scalar.py:1960           op2_filename = 'C:\\Users\\antoi\\Documents\\Atomaste\\Atomizer\\studies\\bracket_displacement_maximizing\\model\\bracket_sim1-solution_1.op2'
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_reader.py:403            mode='nx' version='2412'
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:634                   -------- reading op2 with read_mode=2 (array filling) --------
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:932                   combine_results
DEBUG:   op2.py:648                   finished reading op2
DEBUG:   op2.py:614                   combine=True
DEBUG:   op2.py:615                   -------- reading op2 with read_mode=1 (array sizing) --------
INFO:    op2_scalar.py:1960           op2_filename = 'C:\\Users\\antoi\\Documents\\Atomaste\\Atomizer\\studies\\bracket_displacement_maximizing\\model\\bracket_sim1-solution_1.op2'
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_reader.py:403            mode='nx' version='2412'
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
Required input 'min_force' not found in context
Hook 'ratio_hook' failed: Missing required input: min_force
Traceback (most recent call last):
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\hooks.py", line 72, in execute
    result = self.function(context)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\post_calculation\min_to_avg_ratio_hook.py", line 38, in ratio_hook
    raise ValueError(f"Missing required input: min_force")
ValueError: Missing required input: min_force
Hook 'ratio_hook' failed: Missing required input: min_force
Required input 'max_stress' not found in context
Hook 'safety_factor_hook' failed: Missing required input: max_stress
Traceback (most recent call last):
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\hooks.py", line 72, in execute
    result = self.function(context)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\post_calculation\safety_factor_hook.py", line 38, in safety_factor_hook
    raise ValueError(f"Missing required input: max_stress")
ValueError: Missing required input: max_stress
Hook 'safety_factor_hook' failed: Missing required input: max_stress
Required input 'norm_stress' not found in context
Hook 'weighted_objective_hook' failed: Missing required input: norm_stress
Traceback (most recent call last):
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\hooks.py", line 72, in execute
    result = self.function(context)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\post_calculation\weighted_objective_test.py", line 38, in weighted_objective_hook
    raise ValueError(f"Missing required input: norm_stress")
ValueError: Missing required input: norm_stress
Hook 'weighted_objective_hook' failed: Missing required input: norm_stress
  [WARNING]  No explicit objective, using: max_displacement
[I 2025-11-16 20:53:33,716] A new study created in RDB with name: bracket_displacement_maximizing
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:634                   -------- reading op2 with read_mode=2 (array filling) --------
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:932                   combine_results
DEBUG:   op2.py:648                   finished reading op2
Validation Results:
  [OK] extractor: ['max_displacement', 'max_disp_node', 'max_disp_x', 'max_disp_y', 'max_disp_z']
  [OK] extractor: ['max_von_mises', 'max_stress_element']
  [OK] calculation: Created ['safety_factor']
  [OK] calculation: Created ['safety_factor', 'neg_displacement']
  [OK] hook: 3 results
  [OK] objective: 0.36178338527679443

[SUCCESS] All pipeline components validated!


================================================================================
  STEP 7: OPTIMIZATION SETUP
================================================================================

Creating model updater and simulation runner...
  [OK] Model updater ready
  [OK] Simulation runner ready

Initializing LLM optimization runner...
  [OK] Output directory: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\results
  [OK] Extractors generated: 2
  [OK] Inline calculations: 2
  [OK] Hooks loaded: 9


================================================================================
  STEP 8: RUNNING OPTIMIZATION
================================================================================

Starting 20-trial optimization...
(This will take several minutes)


Updating 2 expressions in Bracket.prt:
Updated: tip_thickness = 21 -> 18
Updated: support_angle = 28 -> 35
Successfully updated 2/2 expressions
Backup created: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\Bracket.prt.bak_20251116_205333
Saved to: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\Bracket.prt

[NX SOLVER] Starting simulation...
  Input file: Bracket_sim1.sim
  Working dir: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model
  Mode: Journal
  Deleted 3 old result file(s) to force fresh solve
[JOURNAL OUTPUT]
  Mesh-Based Errors Summary
  -------------------------
  
  Total: 0 errors and 0 warnings
  
  
  Material-Based Errors Summary
  -----------------------------
  
  Total: 0 errors and 0 warnings
  
  
  Solution-Based Errors Summary
  -----------------------------
  
  Iterative Solver Option
  More than 80 percent of the elements in this model are 3D elements.
  It is therefore recommended that you turn ON the Element Iterative Solver in the "Edit 
  Solution" dialog.
  
  Total: 0 errors and 0 warnings
  
  
  Load/BC-Based Errors Summary
  ----------------------------
  
  Total: 0 errors and 0 warnings
  
  
  Nastran Model Setup Check completed
  
  
  
  
  *** 20:53:37 *** 
  Starting Nastran Exporter
  
  *** 20:53:37 *** 
  Writing file 
  C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\
  bracket_sim1-solution_1.dat
   
  *** 20:53:37 *** 
  Writing SIMCENTER NASTRAN 2412.0 compatible deck
  
  *** 20:53:37 *** 
  Writing Nastran System section
  
  *** 20:53:37 *** 
  Writing File Management section
  
  *** 20:53:37 *** 
  Writing Executive Control section
  
  *** 20:53:37 *** 
  Writing Case Control section
  
  *** 20:53:37 *** 
  Writing Bulk Data section
  
  *** 20:53:37 *** 
  Writing Nodes
  
  *** 20:53:37 *** 
  Writing Elements
  
  *** 20:53:37 *** 
  Writing Physical Properties
  
  *** 20:53:37 *** 
  Writing Materials
  
  *** 20:53:37 *** 
  Writing Degree-of-Freedom Sets
  
  *** 20:53:37 *** 
  Writing Loads and Constraints
  
  *** 20:53:37 *** 
  Writing Coordinate Systems
  
  *** 20:53:37 *** 
  Validating Solution Setup
  
  *** 20:53:37 *** 
  Summary of Bulk Data cards written
  
  +----------+----------+
  |   NAME   |  NUMBER  |
  +----------+----------+
  | CHEXA    | 306      |
  | CPENTA   | 10       |
  | FORCE    | 3        |
  | GRID     | 585      |
  | MAT1     | 1        |
  | MATT1    | 1        |
  | PARAM    | 6        |
  | PSOLID   | 1        |
  | SPC      | 51       |
  | TABLEM1  | 3        |
  +----------+----------+
  
  *** 20:53:37 *** 
  Nastran Deck Successfully Written
  
  [JOURNAL] Opening simulation: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\Bracket_sim1.sim
  [JOURNAL] Checking for open parts...
  [JOURNAL] Opening simulation fresh from disk...
  [JOURNAL] STEP 1: Updating Bracket.prt geometry...
  [JOURNAL]   Rebuilding geometry with new expression values...
  [JOURNAL]   Bracket geometry updated (0 errors)
  [JOURNAL] STEP 2: Opening Bracket_fem1.fem...
  [JOURNAL]   Updating FE Model...
  [JOURNAL]   FE Model updated with new geometry!
  [JOURNAL] STEP 3: Switching back to sim part...
  [JOURNAL]   Switched back to sim part
  [JOURNAL] Starting solve...
  [JOURNAL] Solve submitted!
  [JOURNAL]   Solutions solved: -1879102858
  [JOURNAL]   Solutions failed: 32764
  [JOURNAL]   Solutions skipped: -201784768
  [JOURNAL] Saving simulation to ensure output files are written...
  [JOURNAL] Save complete!
[JOURNAL ERRORS]
  Journal execution results for C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\_temp_solve_journal.py...
  Syntax errors:
  Line 0: Traceback (most recent call last):
    File "C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\_temp_solve_journal.py", line 247, in <module>
      sys.exit(0 if success else 1)
[NX SOLVER] Waiting for solve to complete...
[NX SOLVER] Output files detected after 0.0s
[NX SOLVER] Complete in 4.5s
[NX SOLVER] Results: bracket_sim1-solution_1.op2
DEBUG:   op2.py:614                   combine=True
DEBUG:   op2.py:615                   -------- reading op2 with read_mode=1 (array sizing) --------
INFO:    op2_scalar.py:1960           op2_filename = 'C:\\Users\\antoi\\Documents\\Atomaste\\Atomizer\\studies\\bracket_displacement_maximizing\\model\\bracket_sim1-solution_1.op2'
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_reader.py:403            mode='nx' version='2412'
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:634                   -------- reading op2 with read_mode=2 (array filling) --------
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:932                   combine_results
DEBUG:   op2.py:648                   finished reading op2
DEBUG:   op2.py:614                   combine=True
DEBUG:   op2.py:615                   -------- reading op2 with read_mode=1 (array sizing) --------
INFO:    op2_scalar.py:1960           op2_filename = 'C:\\Users\\antoi\\Documents\\Atomaste\\Atomizer\\studies\\bracket_displacement_maximizing\\model\\bracket_sim1-solution_1.op2'
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_reader.py:403            mode='nx' version='2412'
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:634                   -------- reading op2 with read_mode=2 (array filling) --------
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
Extraction failed: extract_solid_stress - 1
Extraction failed for extract_solid_stress: 1
Inline calculation failed: name 'max_von_mises' is not defined
Required input 'min_force' not found in context
Hook 'ratio_hook' failed: Missing required input: min_force
Traceback (most recent call last):
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\hooks.py", line 72, in execute
    result = self.function(context)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\post_calculation\min_to_avg_ratio_hook.py", line 38, in ratio_hook
    raise ValueError(f"Missing required input: min_force")
ValueError: Missing required input: min_force
Hook 'ratio_hook' failed: Missing required input: min_force
Required input 'max_stress' not found in context
Hook 'safety_factor_hook' failed: Missing required input: max_stress
Traceback (most recent call last):
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\hooks.py", line 72, in execute
    result = self.function(context)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\post_calculation\safety_factor_hook.py", line 38, in safety_factor_hook
    raise ValueError(f"Missing required input: max_stress")
ValueError: Missing required input: max_stress
Hook 'safety_factor_hook' failed: Missing required input: max_stress
Required input 'norm_stress' not found in context
Hook 'weighted_objective_hook' failed: Missing required input: norm_stress
Traceback (most recent call last):
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\hooks.py", line 72, in execute
    result = self.function(context)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\post_calculation\weighted_objective_test.py", line 38, in weighted_objective_hook
    raise ValueError(f"Missing required input: norm_stress")
ValueError: Missing required input: norm_stress
Hook 'weighted_objective_hook' failed: Missing required input: norm_stress
No explicit objective found, using: max_displacement
[I 2025-11-16 20:53:38,410] Trial 0 finished with value: 0.36178338527679443 and parameters: {'tip_thickness': 18.62158638569138, 'support_angle': 35.6600382365223}. Best is trial 0 with value: 0.36178338527679443.
Extraction failed: extract_displacement - There was a Nastran FATAL Error.  Check the F06.
last table=b'OES1'; post=-1 version='nx'
Extraction failed for extract_displacement: There was a Nastran FATAL Error.  Check the F06.
last table=b'OES1'; post=-1 version='nx'
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:932                   combine_results
DEBUG:   op2.py:648                   finished reading op2

Updating 2 expressions in Bracket.prt:
Updated: tip_thickness = 18 -> 16
Updated: support_angle = 35 -> 23
Successfully updated 2/2 expressions
Backup created: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\Bracket.prt.bak_20251116_205338
Saved to: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\Bracket.prt

[NX SOLVER] Starting simulation...
  Input file: Bracket_sim1.sim
  Working dir: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model
  Mode: Journal
  Warning: Could not delete bracket_sim1-solution_1.log: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\antoi\\Documents\\Atomaste\\Atomizer\\studies\\bracket_displacement_maximizing\\model\\bracket_sim1-solution_1.log'
  Deleted 2 old result file(s) to force fresh solve
[JOURNAL OUTPUT]
  Mesh-Based Errors Summary
  -------------------------
  
  Total: 0 errors and 0 warnings
  
  
  Material-Based Errors Summary
  -----------------------------
  
  Total: 0 errors and 0 warnings
  
  
  Solution-Based Errors Summary
  -----------------------------
  
  Iterative Solver Option
  More than 80 percent of the elements in this model are 3D elements.
  It is therefore recommended that you turn ON the Element Iterative Solver in the "Edit 
  Solution" dialog.
  
  Total: 0 errors and 0 warnings
  
  
  Load/BC-Based Errors Summary
  ----------------------------
  
  Total: 0 errors and 0 warnings
  
  
  Nastran Model Setup Check completed
  
  
  
  
  *** 20:53:41 *** 
  Starting Nastran Exporter
  
  *** 20:53:41 *** 
  Writing file 
  C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\
  bracket_sim1-solution_1.dat
   
  *** 20:53:41 *** 
  Writing SIMCENTER NASTRAN 2412.0 compatible deck
  
  *** 20:53:41 *** 
  Writing Nastran System section
  
  *** 20:53:41 *** 
  Writing File Management section
  
  *** 20:53:41 *** 
  Writing Executive Control section
  
  *** 20:53:41 *** 
  Writing Case Control section
  
  *** 20:53:41 *** 
  Writing Bulk Data section
  
  *** 20:53:41 *** 
  Writing Nodes
  
  *** 20:53:41 *** 
  Writing Elements
  
  *** 20:53:41 *** 
  Writing Physical Properties
  
  *** 20:53:41 *** 
  Writing Materials
  
  *** 20:53:41 *** 
  Writing Degree-of-Freedom Sets
  
  *** 20:53:41 *** 
  Writing Loads and Constraints
  
  *** 20:53:41 *** 
  Writing Coordinate Systems
  
  *** 20:53:41 *** 
  Validating Solution Setup
  
  *** 20:53:41 *** 
  Summary of Bulk Data cards written
  
  +----------+----------+
  |   NAME   |  NUMBER  |
  +----------+----------+
  | CHEXA    | 306      |
  | CPENTA   | 10       |
  | FORCE    | 3        |
  | GRID     | 585      |
  | MAT1     | 1        |
  | MATT1    | 1        |
  | PARAM    | 6        |
  | PSOLID   | 1        |
  | SPC      | 51       |
  | TABLEM1  | 3        |
  +----------+----------+
  
  *** 20:53:41 *** 
  Nastran Deck Successfully Written
  
  [JOURNAL] Opening simulation: C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\Bracket_sim1.sim
  [JOURNAL] Checking for open parts...
  [JOURNAL] Opening simulation fresh from disk...
  [JOURNAL] STEP 1: Updating Bracket.prt geometry...
  [JOURNAL]   Rebuilding geometry with new expression values...
  [JOURNAL]   Bracket geometry updated (0 errors)
  [JOURNAL] STEP 2: Opening Bracket_fem1.fem...
  [JOURNAL]   Updating FE Model...
  [JOURNAL]   FE Model updated with new geometry!
  [JOURNAL] STEP 3: Switching back to sim part...
  [JOURNAL]   Switched back to sim part
  [JOURNAL] Starting solve...
  [JOURNAL] Solve submitted!
  [JOURNAL]   Solutions solved: -1879102858
  [JOURNAL]   Solutions failed: 32764
  [JOURNAL]   Solutions skipped: -1429863872
  [JOURNAL] Saving simulation to ensure output files are written...
  [JOURNAL] Save complete!
[JOURNAL ERRORS]
  Journal execution results for C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\_temp_solve_journal.py...
  Syntax errors:
  Line 0: Traceback (most recent call last):
    File "C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\model\_temp_solve_journal.py", line 247, in <module>
      sys.exit(0 if success else 1)
[NX SOLVER] Waiting for solve to complete...
[NX SOLVER] Output files detected after 0.0s
[NX SOLVER] Complete in 4.0s
[NX SOLVER] Results: bracket_sim1-solution_1.op2
DEBUG:   op2.py:614                   combine=True
DEBUG:   op2.py:615                   -------- reading op2 with read_mode=1 (array sizing) --------
INFO:    op2_scalar.py:1960           op2_filename = 'C:\\Users\\antoi\\Documents\\Atomaste\\Atomizer\\studies\\bracket_displacement_maximizing\\model\\bracket_sim1-solution_1.op2'
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_reader.py:403            mode='nx' version='2412'
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151

ndata = 0:
  strings = (b'',)
  ints    = ()
  floats  = ()

ERROR:   op2_reader.py:2988           finished table_name = b'OES1'
ERROR:   op2_reader.py:2993           There was a Nastran FATAL Error.  Check the F06.
last table=b'OES1'; post=-1 version='nx'
DEBUG:   op2.py:614                   combine=True
DEBUG:   op2.py:615                   -------- reading op2 with read_mode=1 (array sizing) --------
INFO:    op2_scalar.py:1960           op2_filename = 'C:\\Users\\antoi\\Documents\\Atomaste\\Atomizer\\studies\\bracket_displacement_maximizing\\model\\bracket_sim1-solution_1.op2'
Extraction failed: extract_solid_stress - 1
Extraction failed for extract_solid_stress: 1
Inline calculation failed: name 'max_von_mises' is not defined
Inline calculation failed: name 'max_displacement' is not defined
Required input 'min_force' not found in context
Hook 'ratio_hook' failed: Missing required input: min_force
Traceback (most recent call last):
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\hooks.py", line 72, in execute
    result = self.function(context)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\post_calculation\min_to_avg_ratio_hook.py", line 38, in ratio_hook
    raise ValueError(f"Missing required input: min_force")
ValueError: Missing required input: min_force
Hook 'ratio_hook' failed: Missing required input: min_force
Required input 'max_stress' not found in context
Hook 'safety_factor_hook' failed: Missing required input: max_stress
Traceback (most recent call last):
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\hooks.py", line 72, in execute
    result = self.function(context)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\post_calculation\safety_factor_hook.py", line 38, in safety_factor_hook
    raise ValueError(f"Missing required input: max_stress")
ValueError: Missing required input: max_stress
Hook 'safety_factor_hook' failed: Missing required input: max_stress
Required input 'norm_stress' not found in context
Hook 'weighted_objective_hook' failed: Missing required input: norm_stress
Traceback (most recent call last):
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\hooks.py", line 72, in execute
    result = self.function(context)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\plugins\post_calculation\weighted_objective_test.py", line 38, in weighted_objective_hook
    raise ValueError(f"Missing required input: norm_stress")
ValueError: Missing required input: norm_stress
Hook 'weighted_objective_hook' failed: Missing required input: norm_stress
[W 2025-11-16 20:53:42,589] Trial 1 failed with parameters: {'tip_thickness': 16.861409202982674, 'support_angle': 23.878854189772426} because of the following error: ValueError('Could not determine objective value from results/calculations/hooks').
Traceback (most recent call last):
  File "C:\Users\antoi\anaconda3\envs\test_env\Lib\site-packages\optuna\study\_optimize.py", line 201, in _run_trial
    value_or_values = func(trial)
                      ^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\llm_optimization_runner.py", line 328, in _objective
    raise ValueError("Could not determine objective value from results/calculations/hooks")
ValueError: Could not determine objective value from results/calculations/hooks
[W 2025-11-16 20:53:42,590] Trial 1 failed with value None.
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_reader.py:403            mode='nx' version='2412'
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:634                   -------- reading op2 with read_mode=2 (array filling) --------
DEBUG:   op2_reader.py:323            date = (11, 16, 25)
WARNING: version.py:88                nx version='2412' is not supported
DEBUG:   op2_scalar.py:2173             table_name=b'IBULK'    (explicit bulk data)
DEBUG:   op2_scalar.py:2173             table_name=b'ICASE'    (explicit case control)
DEBUG:   op2_scalar.py:2173             table_name=b'CASECC'   (case control)
DEBUG:   op2_scalar.py:2173             table_name=b'PVT0'     (PARAM cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GPL'      (grid point list)
DEBUG:   op2_scalar.py:2173             table_name=b'GPDT'     (grid point locations)
DEBUG:   op2_scalar.py:2173             table_name=b'EPT'      (property cards)
DEBUG:   op2_scalar.py:2173             table_name=b'MPT'      (material cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM2'    (element cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM3'    (constraint cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM4'    (load cards)
DEBUG:   op2_scalar.py:2173             table_name=b'GEOM1'    (grid/coord cards)
DEBUG:   op2_scalar.py:2173             table_name=b'BGPDT'    (grid points in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'DIT'      (TABLEx cards)
DEBUG:   op2_scalar.py:2173             table_name=b'EQEXIN'   (internal/external ids)
DEBUG:   op2_reader.py:672            eqexin idata=(101, 585, 0, 0, 0, 0, 0)
DEBUG:   op2_scalar.py:2173             table_name=b'OQG1'     (spc/mpc forces)
DEBUG:   op2_scalar.py:2173             table_name=b'BOUGV1'   (g-set U in cid=0 frame)
DEBUG:   op2_scalar.py:2173             table_name=b'OES1'     (linear stress)
DEBUG:   oes.py:2840                  numwide_real=193
DEBUG:   oes.py:2840                  numwide_real=151
DEBUG:   op2.py:932                   combine_results
DEBUG:   op2.py:648                   finished reading op2
Traceback (most recent call last):
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\run_optimization.py", line 369, in <module>
    main()
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\studies\bracket_displacement_maximizing\run_optimization.py", line 323, in main
    results = runner.run_optimization(n_trials=20)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\llm_optimization_runner.py", line 368, in run_optimization
    self.study.optimize(self._objective, n_trials=n_trials)
  File "C:\Users\antoi\anaconda3\envs\test_env\Lib\site-packages\optuna\study\study.py", line 490, in optimize
    _optimize(
  File "C:\Users\antoi\anaconda3\envs\test_env\Lib\site-packages\optuna\study\_optimize.py", line 63, in _optimize
    _optimize_sequential(
  File "C:\Users\antoi\anaconda3\envs\test_env\Lib\site-packages\optuna\study\_optimize.py", line 160, in _optimize_sequential
    frozen_trial_id = _run_trial(study, func, catch)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\antoi\anaconda3\envs\test_env\Lib\site-packages\optuna\study\_optimize.py", line 258, in _run_trial
    raise func_err
  File "C:\Users\antoi\anaconda3\envs\test_env\Lib\site-packages\optuna\study\_optimize.py", line 201, in _run_trial
    value_or_values = func(trial)
                      ^^^^^^^^^^^
  File "C:\Users\antoi\Documents\Atomaste\Atomizer\optimization_engine\llm_optimization_runner.py", line 328, in _objective
    raise ValueError("Could not determine objective value from results/calculations/hooks")
ValueError: Could not determine objective value from results/calculations/hooks
