/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 = 17307
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1632.2+0854_weekly_bin866
RA = 248.06, Dec = 8.9044
tmin = 762739201, tmax = 763344001
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='66988465', job_status='RUN', time_executed='2025-03-11 01:03:13.913182', time_epoch_executed='1741680193.91' WHERE source_name='4FGL J1632.2+0854' and cadence='weekly' and bin_id='866'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/66988465

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/66988465/ft1_4FGL_J1632.2+0854_weekly_bin866.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/66988465/ft2_4FGL_J1632.2+0854_weekly_bin866.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/66988465/ft1_4FGL_J1632.2+0854_weekly_bin866.fits outfile=/lscratch/kocevski/66988465/ft1_filteredMKT_4FGL_J1632.2+0854_weekly_bin866.fits ra=248.06 dec=8.9044 rad=12.0 tmin=762739201.0 tmax=763344001.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 5.04
user 4.33
sys 0.32

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/66988465/ft2_4FGL_J1632.2+0854_weekly_bin866.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/66988465/ft2_4FGL_J1632.2+0854_weekly_bin866.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/66988465/ft1_filteredMKT_4FGL_J1632.2+0854_weekly_bin866.fits evtable="EVENTS" outfile="/lscratch/kocevski/66988465/ft1_filtered_4FGL_J1632.2+0854_weekly_bin866.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.62
user 0.18
sys 0.14

Number of photons that the gtmktime cut: 2824

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/66988465/ft1_filtered_4FGL_J1632.2+0854_weekly_bin866.fits" evtable="EVENTS" scfile=/lscratch/kocevski/66988465/ft2_4FGL_J1632.2+0854_weekly_bin866.fits sctable="SC_DATA" outfile=/lscratch/kocevski/66988465/ltcube_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.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/66988465/ft2_4FGL_J1632.2+0854_weekly_bin866.fits
.....................!
real 15.87
user 15.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/66988465/ft1_filtered_4FGL_J1632.2+0854_weekly_bin866.fits evtable="EVENTS" scfile=/lscratch/kocevski/66988465/ft2_4FGL_J1632.2+0854_weekly_bin866.fits sctable="SC_DATA" expcube=/lscratch/kocevski/66988465/ltcube_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.fits outfile=/lscratch/kocevski/66988465/expmap_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.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/66988465/ltcube_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.fits
.....................!
real 59.16
user 55.54
sys 3.22

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 164 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1632.2+0854 @ 248.06 8.9044

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/66988465/ft1_filtered_4FGL_J1632.2+0854_weekly_bin866.fits scfile=/lscratch/kocevski/66988465/ft2_4FGL_J1632.2+0854_weekly_bin866.fits outfile=/lscratch/kocevski/66988465/cmap_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.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=248.06 yref=8.9044 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.60
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/66988465/ft1_filtered_4FGL_J1632.2+0854_weekly_bin866.fits scfile=/lscratch/kocevski/66988465/ft2_4FGL_J1632.2+0854_weekly_bin866.fits outfile=/lscratch/kocevski/66988465/cmap_HighResolution_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.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=248.06 yref=8.9044 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.64
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/66988465/ft1_filtered_4FGL_J1632.2+0854_weekly_bin866.fits evtable="EVENTS" scfile=/lscratch/kocevski/66988465/ft2_4FGL_J1632.2+0854_weekly_bin866.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/66988465/Model_4FGL_J1632.2+0854_weekly_bin866.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/lscratch/kocevski/66988465/ft1_filtered_4FGL_J1632.2+0854_weekly_bin866.fits.....................!
real 71.00
user 69.48
sys 0.86

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/66988465/ft1_filtered_4FGL_J1632.2+0854_weekly_bin866.fits', '/lscratch/kocevski/66988465/ft2_4FGL_J1632.2+0854_weekly_bin866.fits', expMap='/lscratch/kocevski/66988465/expmap_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.fits', expCube='/lscratch/kocevski/66988465/ltcube_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/66988465/Model_4FGL_J1632.2+0854_weekly_bin866.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1632.2+0854'

4FGL J1632.2+0854
   Spectrum: PowerLaw
243    Prefactor:  1.570e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
244        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
245        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/66988465/ft1_filtered_4FGL_J1632.2+0854_weekly_bin866.fits
Spacecraft file(s): /lscratch/kocevski/66988465/ft2_4FGL_J1632.2+0854_weekly_bin866.fits
Exposure map: /lscratch/kocevski/66988465/expmap_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.fits
Exposure cube: /lscratch/kocevski/66988465/ltcube_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/66988465/Model_4FGL_J1632.2+0854_weekly_bin866.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) = 30202.3476814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17264E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    36.909       1.0000          .0000       .10000E+07
     3 'norm      '    .19086       1.0000          .0000       .10000E+07
     4 'norm      '    5.5010       1.0000          .0000       .10000E+07
     5 'norm      '    44.664       1.0000          .0000       .10000E+07
     6 'Prefactor '    .55416E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .76465E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .64867E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.7086       1.0000          .0000       .10000E+07
    10 'Prefactor '    .54861       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11672E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .72649       1.0000          .0000       .10000E+07
    13 'Prefactor '    .22497       1.0000          .0000       .10000E+07
    14 'Prefactor '    4.2770       1.0000          .0000       .10000E+07
    15 'Normalizat'    .79177       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1815       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   30202.34     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     1750 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .62181       -.37919E-06** at limit **
   2  Prefactor     37.014        32.922       -.12112E-05    .92366E-04
   3  norm          .17824        8.4264       -.55840E-06** at limit **
   4  norm          5.5013        1.1914       -.41272E-07   -.21335E-02
   5  norm          44.658        10.617        .60626E-07    .22654E-04
   6  Prefactor     .55511E-10    13.594        .19996E-05** at limit **
   7  Prefactor      .0000        5.0838        .28149E-06** at limit **
   8  Prefactor      .0000        2.0835       -.53379E-06** at limit **
   9  Prefactor     2.7075        2.8210       -.21106E-07   -.89694E-04
  10  Prefactor     .54441        2.9618       -.10941E-05    .14417E-02
  11  Prefactor      .0000        2.4545        .43316E-06** at limit **
  12  Prefactor     .35527E-08    226.26       -.44445E-05** at limit **
  13  Prefactor     .25816        14.999       -.18171E-05    .14877E-03
  14  Prefactor     4.2722        7.2141       -.63827E-06    .23905E-03
  15  Normalizat    .79182        .16729        .39754E-05    .11714E-03
  16  Prefactor     1.1815        .60672E-01    .18630E-05    .45311E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 37.014
  norm       = 0.178244
  norm       = 5.50129
  norm       = 44.6585
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.7075
  Prefactor  = 0.54441
  Prefactor  = 0
  Prefactor  = 3.55271e-09
  Prefactor  = 0.258159
  Prefactor  = 4.27215
  Normalizat = 0.791823
  Prefactor  = 1.18154
 **********
 **   18 **HESSE 
 **********

 FCN=   30202.34     FROM HESSE     STATUS=OK           243 CALLS     1993 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .62539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     37.014        32.948        .16462E-03   -1.5586    
   3  norm          .17824        1.4098        .73102E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.5013        1.1985        .42815E-03   -1.5661    
   5  norm          44.658        10.627        .14964E-03   -1.5574    
   6  Prefactor     .55511E-10    13.553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        5.0727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        2.0819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.7075        2.8335        .61864E-03   -1.5675    
  10  Prefactor     .54441        2.9878        .73963E-03   -1.5693    
  11  Prefactor      .0000        2.4360        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .35527E-08    225.33        .58583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .25816        1.7038        .70677E-02   -1.5698    
  14  Prefactor     4.2722        7.2260        .48693E-03   -1.5667    
  15  Normalizat    .79182        .15340        .11271       -1.0037    
  16  Prefactor     1.1815        .54458E-01    .35084E-01   -.86901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2985e-07
Minuit parameter uncertainties:
  1  6.73499e-07
  2  32.9483
  3  1.00258
  4  1.19846
  5  10.6273
  6  4.68704e-05
  7  3.72311e-06
  8  4.20207e-06
  9  2.83351
  10  2.55076
  11  6.46359e-06
  12  0.00179086
  13  1.32643
  14  7.22597
  15  0.153483
  16  0.0544608
Done.

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

Extracting fit parameters...

4FGL J1632.2+0854
   Spectrum: PowerLaw
243    Prefactor:  0.000e+00  4.202e-06  0.000e+00  1.000e+06 ( 1.000e-13)
244        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
245        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.182e+00  5.446e-02  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.918e-01  1.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 248.060 8.904
Photon Flux Upper Limit: 3.26976933653e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00250649825931 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/66988465/likelihoodResults_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.txt

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): 102
logL (Free Index) = 30202.3458056
delta logL = -0.00222647641203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 30202.3435794
delta logL = -2.23466486204e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58664E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.3580       1.0000          .0000       10.000    
     3 'Normalizat'    .79186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1815       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   30202.34     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      236 TOTAL
                     EDM=   .17E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.3022        .42118E-03** at limit **
   2  Index         2.6838        1.3800        .24183E-04     .0000    
   3  Normalizat    .79182        1.1308        .39467E-05   -.16711E-04
   4  Prefactor     1.1815        1.1094       -.12170E-05   -.52964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.68379
  Normalizat = 0.791823
  Prefactor  = 1.18154
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   30202.34     FROM HESSE     STATUS=FAILED         9 CALLS      245 TOTAL
                     EDM=   .17E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.3022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .81535        1.9836        .24183E-04   -.48165    
   3  Normalizat    .79182        1.1308        .39467E-05   -1.0037    
   4  Prefactor     1.1815        1.1094       -.12170E-05   -.86901    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.68363e-13
Minuit parameter uncertainties:
  1  1.17429e-07
  2  1.40331
  3  1.16727
  4  1.13245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 101
logL (Free Index) = 30202.3435791
delta logL = 7.27595761418e-12

Extracting fit parameters...

4FGL J1632.2+0854
   Spectrum: PowerLaw
243    Prefactor:  0.000e+00  1.174e-07  0.000e+00  1.000e+06 ( 1.000e-13)
244        Index:  2.684e+00  1.403e+00  0.000e+00  1.000e+01 (-1.000e+00)
245        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.182e+00  1.132e+00  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  7.918e-01  1.167e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 248.060 8.904

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/66988465/cmap_HighResolution_762739201_763344001_4FGL_J1632.2+0854_weekly_bin866.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-03', job_status='DONE', photon_flux_upper_limit='3.27e-08', time_completed='2025-03-11 01:16:15.894771', job_id='66988465', GAL2='1.18', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1741680975.89', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='7.28e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='866' AND source_name='4FGL J1632.2+0854' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 11 01:16:16 PDT 2025

