/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/sdf/group/fermi/u/kocevski/software/conda/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17306
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2236.3+2828_weekly_bin906
RA = 339.096, Dec = 28.4832
tmin = 786931201, tmax = 787536001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository job = True

LAT data source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='17381233', job_status='RUN', time_executed='2025-12-16 03:19:59.557119', time_epoch_executed='1765883999.56' WHERE source_name='4FGL J2236.3+2828' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17381233

Creating custom pfile directory:
/lscratch/kocevski/17381233/pfiles/

Retrieving the FT1 file...

Issuing command:
datacat find --group FT1 --filter 'nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Reprocess/P305

Issuing command:
datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17381233/ft1_4FGL_J2236.3+2828_weekly_bin906.fits


Retrieving the FT1 file...

Issuing command:
datacat find --group FT2 --filter 'nMetStop>=786931201.0 && nMetStart<787536001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17381233/ft2_4FGL_J2236.3+2828_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17381233/ft1_4FGL_J2236.3+2828_weekly_bin906.fits outfile=/lscratch/kocevski/17381233/ft1_filteredMKT_4FGL_J2236.3+2828_weekly_bin906.fits ra=339.096 dec=28.4832 rad=12.0 tmin=786931201.0 tmax=787536001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.15
user 5.32
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17381233/ft2_4FGL_J2236.3+2828_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17381233/ft2_4FGL_J2236.3+2828_weekly_bin906.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/lscratch/kocevski/17381233/ft1_filteredMKT_4FGL_J2236.3+2828_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17381233/ft1_filtered_4FGL_J2236.3+2828_weekly_bin906.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/sdf/group/fermi/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.90
user 0.23
sys 0.13

Number of photons that the gtmktime cut: 1885

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17381233/ft1_filtered_4FGL_J2236.3+2828_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17381233/ft2_4FGL_J2236.3+2828_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17381233/ltcube_786931201_787536001_4FGL_J2236.3+2828_weekly_bin906.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /lscratch/kocevski/17381233/ft2_4FGL_J2236.3+2828_weekly_bin906.fits
.....................!
real 19.94
user 18.95
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17381233/ft1_filtered_4FGL_J2236.3+2828_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381233/ft2_4FGL_J2236.3+2828_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17381233/ltcube_786931201_787536001_4FGL_J2236.3+2828_weekly_bin906.fits outfile=/lscratch/kocevski/17381233/expmap_786931201_787536001_4FGL_J2236.3+2828_weekly_bin906.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /lscratch/kocevski/17381233/ltcube_786931201_787536001_4FGL_J2236.3+2828_weekly_bin906.fits
.....................!
real 72.52
user 67.50
sys 4.08

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 155 point sources and 0 extended sources

Setting source of interest to:
4FGL J2236.3+2828 @ 339.096 28.4832

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17381233/ft1_filtered_4FGL_J2236.3+2828_weekly_bin906.fits scfile=/lscratch/kocevski/17381233/ft2_4FGL_J2236.3+2828_weekly_bin906.fits outfile=/lscratch/kocevski/17381233/cmap_786931201_787536001_4FGL_J2236.3+2828_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=339.096 yref=28.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.90
user 0.23
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17381233/ft1_filtered_4FGL_J2236.3+2828_weekly_bin906.fits scfile=/lscratch/kocevski/17381233/ft2_4FGL_J2236.3+2828_weekly_bin906.fits outfile=/lscratch/kocevski/17381233/cmap_HighResolution_786931201_787536001_4FGL_J2236.3+2828_weekly_bin906.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=339.096 yref=28.4832 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.98
user 0.25
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17381233/ft1_filtered_4FGL_J2236.3+2828_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17381233/ft2_4FGL_J2236.3+2828_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17381233/Model_4FGL_J2236.3+2828_weekly_bin906.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/lscratch/kocevski/17381233/ft1_filtered_4FGL_J2236.3+2828_weekly_bin906.fits.....................!
real 79.73
user 77.72
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17381233/ft1_filtered_4FGL_J2236.3+2828_weekly_bin906.fits', '/lscratch/kocevski/17381233/ft2_4FGL_J2236.3+2828_weekly_bin906.fits', expMap='/lscratch/kocevski/17381233/expmap_786931201_787536001_4FGL_J2236.3+2828_weekly_bin906.fits', expCube='/lscratch/kocevski/17381233/ltcube_786931201_787536001_4FGL_J2236.3+2828_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17381233/Model_4FGL_J2236.3+2828_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2236.3+2828'

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  2.238e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17381233/ft1_filtered_4FGL_J2236.3+2828_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17381233/ft2_4FGL_J2236.3+2828_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17381233/expmap_786931201_787536001_4FGL_J2236.3+2828_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17381233/ltcube_786931201_787536001_4FGL_J2236.3+2828_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17381233/Model_4FGL_J2236.3+2828_weekly_bin906.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 19974.4304266

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 19974.4262103

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15351E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .59173       1.0000          .0000       .10000E+07
     3 'Prefactor '    48.970       1.0000          .0000       .10000E+07
     4 'Prefactor '    4.8013       1.0000          .0000       .10000E+07
     5 'norm      '    2.8364       1.0000          .0000       .10000E+07
     6 'Prefactor '    .55204E-03   1.0000          .0000       .10000E+07
     7 'norm      '    .90884       1.0000          .0000       .10000E+07
     8 'norm      '    .16931E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    .39101E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .19634E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .27870E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .46074E-08   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.4384       1.0000          .0000       .10000E+07
    14 'Prefactor '    14.430       1.0000          .0000       .10000E+07
    15 'norm      '    3.0922       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.9407       1.0000          .0000       .10000E+07
    17 'Normalizat'    .67608       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .99603       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   19974.43     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     1349 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3637        .66042E-08** at limit **
   2  norm          .59192        .39619        .49796E-07    .84227E-03
   3  Prefactor     49.069        26.258        .10922E-05   -.28488E-01
   4  Prefactor     4.8013        5.8363       -.38660E-06   -.83655E-02
   5  norm          2.8335        2.1118        .22423E-07   -.68082E-03
   6  Prefactor     .38858E-09    3.9935       -.18552E-06** at limit **
   7  norm          .90864        .53373       -.12355E-07   -.29371E-02
   8  norm           .0000        1.2054        .12230E-06** at limit **
   9  Prefactor      .0000        1.5425        .27457E-07** at limit **
  10  Prefactor      .0000        2.6900        .13584E-07** at limit **
  11  Prefactor     .10547E-08    7.1291       -.16818E-06** at limit **
  12  norm           .0000        .96884        .10766E-06** at limit **
  13  Prefactor     6.4183        6.7348        .70346E-06   -.56659E-01
  14  Prefactor     14.443        2.7842        .28662E-06   -.19023E-01
  15  norm          3.0911        2.1143       -.71071E-07    .10385E-02
  16  Prefactor     6.9434        6.9681        .13171E-05    .53781E-01
  17  Normalizat    .67609        .14448       -.31863E-05    .13901E-05
  18  Prefactor     .99603        .67955E-01   -.70572E-06   -.13775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0.591919
  Prefactor  = 49.0692
  Prefactor  = 4.80129
  norm       = 2.83347
  Prefactor  = 3.88578e-10
  norm       = 0.908639
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.05471e-09
  norm       = 0
  Prefactor  = 6.41828
  Prefactor  = 14.4434
  norm       = 3.09106
  Prefactor  = 6.94335
  Normalizat = 0.676088
  Prefactor  = 0.996031
 **********
 **   18 **HESSE 
 **********

 FCN=   19974.43     FROM HESSE     STATUS=OK           296 CALLS     1645 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3608        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .59192        .40340        .69972E-03   -1.5693    
   3  Prefactor     49.069        27.751        .14291E-03   -1.5568    
   4  Prefactor     4.8013        5.8621        .45890E-03   -1.5664    
   5  norm          2.8335        2.1110        .60354E-03   -1.5674    
   6  Prefactor     .38858E-09    3.9789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .90864        .53612        .45151E-03   -1.5689    
   8  norm           .0000        .26041        .28116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.5408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        2.6917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10547E-08    7.1300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        .21485        .23012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4183        13.188        .39531E-03   -1.5657    
  14  Prefactor     14.443        14.586        .26340E-03   -1.5632    
  15  norm          3.0911        2.1384        .57647E-03   -1.5673    
  16  Prefactor     6.9434        8.1160        .38057E-03   -1.5655    
  17  Normalizat    .67609        .13023        .87390E-01   -1.0484    
  18  Prefactor     .99603        .60335E-01    .35099E-01   -.92862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29897e-07
Minuit parameter uncertainties:
  1  4.92287e-06
  2  0.403397
  3  27.7508
  4  5.86207
  5  2.111
  6  7.64934e-05
  7  0.536121
  8  1.76366e-06
  9  4.19416e-06
  10  1.03042e-05
  11  0.000174301
  12  2.05761e-06
  13  13.1885
  14  14.5863
  15  2.13841
  16  8.116
  17  0.13029
  18  0.0603387
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 19974.4260577

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  9.086e-01  5.361e-01  0.000e+00  1.000e+06 ( 1.000e-11)
287        alpha:  2.146e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  1.046e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.960e-01  6.034e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  6.761e-01  1.303e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 339.096 28.483
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.92e-08 +/- 1.72e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 6.97e-06

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19973.9861232
delta logL = 0.439934443923

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19973.9795266
delta logL = 0.446531079149

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .83597       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6516       1.0000          .0000       5.0000    
     3 'Normalizat'    .65263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0027       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19973.98     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      272 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83592        .53392        .64527E-05   -.68360E-03
   2  alpha         2.6509        .57435        .20999E-01    .37782E-03
   3  Normalizat    .65272        .14362        .39357E-03   -.21260E-03
   4  Prefactor     1.0027        .68148E-01    .15465E-03   -.57027E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.835919
  alpha      = 2.65086
  Normalizat = 0.652716
  Prefactor  = 1.0027
 **********
 **   18 **HESSE 
 **********

 FCN=   19973.98     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83592        .51278        .25811E-06   -1.5690    
   2  alpha         2.6509        .55150        .41998E-02    .60381E-01
   3  Normalizat    .65272        .14362        .15743E-04   -1.0579    
   4  Prefactor     1.0027        .68145E-01    .30930E-04   -.92640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.66867e-11
Minuit parameter uncertainties:
  1  0.512778
  2  0.556096
  3  0.143698
  4  0.0681512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19973.9795252
delta logL = 0.446532441016

Extracting fit parameters...

4FGL J2236.3+2828
   Spectrum: LogParabola
286         norm:  8.359e-01  5.128e-01  0.000e+00  1.000e+06 ( 1.000e-11)
287        alpha:  2.651e+00  5.561e-01  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  1.046e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  5.754e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  1.003e+00  6.815e-02  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  6.527e-01  1.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.21
Ra Dec: 339.096 28.483
Photon Index (Free Index): 2.65 +/- 0.56
Photon Flux (Free Index): 4.42e-08 +/- 2.64e-08
Energy Flux (Free Index): 1.11e-05 +/- 5.89e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /lscratch/kocevski/17381233/cmap_HighResolution_786931201_787536001_4FGL_J2236.3+2828_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.92e-08', energy_flux2='1.11e-05', photon_flux_error='1.72e-08', dlogl='4.47e-01', energy_flux='1.18e-05', photon_flux2='4.42e-08', job_status='DONE', time_completed='2025-12-16 03:32:06.457741', photon_index_error2='0.56', photon_index2='2.65', ts='5.16', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='5.89e-06', EG='0.68', time_epoch_completed='1765884726.46', return_code='0', job_id='17381233', GAL2='1.00', EG2='0.65', return_code2='0', energy_flux_error='6.97e-06', photon_flux_error2='2.64e-08', ts2='6.21', photon_index='2.15' WHERE bin_id='906' AND source_name='4FGL J2236.3+2828' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 03:32:06 PST 2025

