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


Performing analysis on: 4FGL_J1054.5+2211_weekly_bin906
RA = 163.628, Dec = 22.1913
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='17378255', job_status='RUN', time_executed='2025-12-16 02:10:07.887031', time_epoch_executed='1765879807.89' WHERE source_name='4FGL J1054.5+2211' and cadence='weekly' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17378255

Creating custom pfile directory:
/lscratch/kocevski/17378255/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/17378255/ft1_4FGL_J1054.5+2211_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/17378255/ft2_4FGL_J1054.5+2211_weekly_bin906.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17378255/ft1_4FGL_J1054.5+2211_weekly_bin906.fits outfile=/lscratch/kocevski/17378255/ft1_filteredMKT_4FGL_J1054.5+2211_weekly_bin906.fits ra=163.628 dec=22.1913 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 5.59
user 4.75
sys 0.25

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17378255/ft2_4FGL_J1054.5+2211_weekly_bin906.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17378255/ft2_4FGL_J1054.5+2211_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/17378255/ft1_filteredMKT_4FGL_J1054.5+2211_weekly_bin906.fits evtable="EVENTS" outfile="/lscratch/kocevski/17378255/ft1_filtered_4FGL_J1054.5+2211_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.88
user 0.21
sys 0.12

Number of photons that the gtmktime cut: 1366

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17378255/ft1_filtered_4FGL_J1054.5+2211_weekly_bin906.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17378255/ft2_4FGL_J1054.5+2211_weekly_bin906.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17378255/ltcube_786931201_787536001_4FGL_J1054.5+2211_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/17378255/ft2_4FGL_J1054.5+2211_weekly_bin906.fits
.....................!
real 18.80
user 17.97
sys 0.24

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17378255/ft1_filtered_4FGL_J1054.5+2211_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378255/ft2_4FGL_J1054.5+2211_weekly_bin906.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17378255/ltcube_786931201_787536001_4FGL_J1054.5+2211_weekly_bin906.fits outfile=/lscratch/kocevski/17378255/expmap_786931201_787536001_4FGL_J1054.5+2211_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/17378255/ltcube_786931201_787536001_4FGL_J1054.5+2211_weekly_bin906.fits
.....................!
real 67.32
user 63.02
sys 3.31

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1054.5+2211 @ 163.628 22.1913

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17378255/ft1_filtered_4FGL_J1054.5+2211_weekly_bin906.fits scfile=/lscratch/kocevski/17378255/ft2_4FGL_J1054.5+2211_weekly_bin906.fits outfile=/lscratch/kocevski/17378255/cmap_786931201_787536001_4FGL_J1054.5+2211_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=163.628 yref=22.1913 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.84
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17378255/ft1_filtered_4FGL_J1054.5+2211_weekly_bin906.fits scfile=/lscratch/kocevski/17378255/ft2_4FGL_J1054.5+2211_weekly_bin906.fits outfile=/lscratch/kocevski/17378255/cmap_HighResolution_786931201_787536001_4FGL_J1054.5+2211_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=163.628 yref=22.1913 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.95
user 0.22
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17378255/ft1_filtered_4FGL_J1054.5+2211_weekly_bin906.fits evtable="EVENTS" scfile=/lscratch/kocevski/17378255/ft2_4FGL_J1054.5+2211_weekly_bin906.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17378255/Model_4FGL_J1054.5+2211_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/17378255/ft1_filtered_4FGL_J1054.5+2211_weekly_bin906.fits.....................!
real 46.36
user 44.61
sys 1.03

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17378255/ft1_filtered_4FGL_J1054.5+2211_weekly_bin906.fits', '/lscratch/kocevski/17378255/ft2_4FGL_J1054.5+2211_weekly_bin906.fits', expMap='/lscratch/kocevski/17378255/expmap_786931201_787536001_4FGL_J1054.5+2211_weekly_bin906.fits', expCube='/lscratch/kocevski/17378255/ltcube_786931201_787536001_4FGL_J1054.5+2211_weekly_bin906.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17378255/Model_4FGL_J1054.5+2211_weekly_bin906.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1054.5+2211'

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  5.931e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17378255/ft1_filtered_4FGL_J1054.5+2211_weekly_bin906.fits
Spacecraft file(s): /lscratch/kocevski/17378255/ft2_4FGL_J1054.5+2211_weekly_bin906.fits
Exposure map: /lscratch/kocevski/17378255/expmap_786931201_787536001_4FGL_J1054.5+2211_weekly_bin906.fits
Exposure cube: /lscratch/kocevski/17378255/ltcube_786931201_787536001_4FGL_J1054.5+2211_weekly_bin906.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17378255/Model_4FGL_J1054.5+2211_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) = 15401.3547502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8079       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21855E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .33401E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    27.201       1.0000          .0000       .10000E+07
     5 'Prefactor '    .28028E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    39.608       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.3327       1.0000          .0000       .10000E+07
     8 'Prefactor '    11.182       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.3671       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7541       1.0000          .0000       .10000E+07
    11 'Prefactor '    .36724       1.0000          .0000       .10000E+07
    12 'norm      '    2.1832       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.9360       1.0000          .0000       .10000E+07
    14 'Prefactor '    9.7608       1.0000          .0000       .10000E+07
    15 'norm      '    .45642E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.8617       1.0000          .0000       .10000E+07
    17 'Prefactor '    10.084       1.0000          .0000       .10000E+07
    18 'Normalizat'    .85008       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0502       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15401.22     FROM MIGRAD    STATUS=CONVERGED    145 CALLS     1144 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8099        3.5408       -.63283E-07    .36597E-03
   2  Prefactor     .70843E-06    7.0882        .21795E-05** at limit **
   3  Prefactor     .39357E-07    12.490       -.49833E-06** at limit **
   4  Prefactor     27.243        6.1039       -.59907E-07   -.79183E-02
   5  Prefactor      .0000        2.1408       -.24269E-07** at limit **
   6  Prefactor     39.603        6.4725       -.33593E-06   -.71715E-01
   7  Prefactor     3.4224        5.6508       -.19758E-07   -.43992E-02
   8  Prefactor     11.166        7.7647       -.11983E-05   -.10269    
   9  Prefactor     4.3597        5.1374       -.18838E-06   -.55932E-02
  10  Prefactor     2.7572        5.5853       -.84047E-06   -.15002E-01
  11  Prefactor     .10102E-05    391.37        .18380E-05** at limit **
  12  norm          2.1829        .89054       -.18663E-07    .62179E-02
  13  Prefactor     2.9347        1.8197        .39861E-07    .32357E-03
  14  Prefactor     9.7773        4.6135        .23415E-07   -.44045E-02
  15  norm          .68057E-06    9.0373       -.19812E-05** at limit **
  16  Prefactor     5.8559        5.4873       -.22981E-06   -.73079E-02
  17  Prefactor     10.220        8.7842        .62875E-07    .89314E-02
  18  Normalizat    .85042        .13018        .32973E-05   -.39401E-03
  19  Prefactor     1.0500        .13274       -.76033E-06   -.27725E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.80995
  Prefactor  = 7.08433e-07
  Prefactor  = 3.93574e-08
  Prefactor  = 27.2426
  Prefactor  = 0
  Prefactor  = 39.603
  Prefactor  = 3.42242
  Prefactor  = 11.1661
  Prefactor  = 4.35966
  Prefactor  = 2.75719
  Prefactor  = 1.01025e-06
  norm       = 2.18289
  Prefactor  = 2.93468
  Prefactor  = 9.7773
  norm       = 6.80567e-07
  Prefactor  = 5.85585
  Prefactor  = 10.2201
  Normalizat = 0.850418
  Prefactor  = 1.05002
 **********
 **   18 **HESSE 
 **********

 FCN=   15401.22     FROM HESSE     STATUS=OK           318 CALLS     1462 TOTAL
                     EDM=   .54E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8099        3.5437        .51702E-03   -1.5669    
   2  Prefactor     .70843E-06    9.9397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .39357E-07    12.756        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.243        6.1155        .19177E-03   -1.5604    
   5  Prefactor      .0000        2.0752        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.603        6.5595        .15891E-03   -1.5582    
   7  Prefactor     3.4224        5.9724        .55419E-03   -1.5671    
   8  Prefactor     11.166        10.121        .29935E-03   -1.5641    
   9  Prefactor     4.3597        5.2212        .48174E-03   -1.5666    
  10  Prefactor     2.7572        5.6627        .61313E-03   -1.5675    
  11  Prefactor     .10102E-05    4.4650        .93385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1829        .89539        .69641E-03   -1.5678    
  13  Prefactor     2.9347        1.8369        .59254E-03   -1.5674    
  14  Prefactor     9.7773        4.6205        .32050E-03   -1.5645    
  15  norm          .68057E-06    11.718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.8559        5.5053        .41456E-03   -1.5660    
  17  Prefactor     10.220        8.8081        .31529E-03   -1.5644    
  18  Normalizat    .85042        .11244        .44260E-01   -.98225    
  19  Prefactor     1.0500        .11387        .57957E-01   -.91080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39327e-07
Minuit parameter uncertainties:
  1  3.54367
  2  0.00530719
  3  0.00141724
  4  6.11545
  5  4.75136e-06
  6  6.55955
  7  5.97241
  8  10.1213
  9  5.22118
  10  5.66273
  11  0.00424773
  12  0.895391
  13  1.83689
  14  4.62051
  15  0.00564802
  16  5.50532
  17  8.80807
  18  0.11247
  19  0.113894
Done.

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

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  4.360e+00  5.221e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.050e+00  1.139e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  8.504e-01  1.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.57
Ra Dec: 163.628 22.191
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.19e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 6.09e-06 +/- 7.29e-06

TS (Fixed Index): 1.57
Ra Dec: 163.628 22.191
Photon Flux Upper Limit: 4.62653925909e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00350766640458 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17378255/likelihoodResults_786931201_787536001_4FGL_J1054.5+2211_weekly_bin906.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): 0
logL (Free Index) = 15401.1146204
delta logL = 0.106141214106

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15401.0987693
delta logL = 0.121992283452

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5062       1.0000          .0000       .10000E+07
     2 'Index     '    2.6254       1.0000          .0000       10.000    
     3 'Normalizat'    .83538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0587       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15401.10     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      231 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5041        66.353        .53968E-03    .10361E-01
   2  Index         2.6278        3.2199        .16557        .23627E-03
   3  Normalizat    .83529        .36829E-01    .44070E-01    .39360E-04
   4  Prefactor     1.0588        .32179E-01    .57738E-01   -.66011E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.50412
  Index      = 2.62778
  Normalizat = 0.83529
  Prefactor  = 1.05879
 **********
 **   18 **HESSE 
 **********

 FCN=   15401.10     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5041        5.6836        .20778E-04   -1.5671    
   2  Index         2.6278        1.1552        .10429E-01   -.49433    
   3  Normalizat    .83529        .13041        .26520E-03   -.98773    
   4  Prefactor     1.0588        .13507        .25531E-03   -.90795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41201e-10
Minuit parameter uncertainties:
  1  5.68361
  2  1.16884
  3  0.130456
  4  0.135117
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) = 15401.0987645
delta logL = 0.121997121229

Extracting fit parameters...

4FGL J1054.5+2211
   Spectrum: PowerLaw
249    Prefactor:  3.504e+00  5.684e+00  0.000e+00  1.000e+06 ( 1.000e-13)
250        Index:  2.628e+00  1.169e+00  0.000e+00  1.000e+01 (-1.000e+00)
251        Scale:  1.471e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
577    Prefactor:  1.059e+00  1.351e-01  0.000e+00  1.000e+01 ( 1.000e+00)
578        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
579        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
576   Normalization:  8.353e-01  1.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.83
Ra Dec: 163.628 22.191
Photon Index (Free Index): 2.63 +/- 1.17
Photon Flux (Free Index): 2.52e-08 +/- 3.65e-08
Energy Flux (Free Index): 6.44e-06 +/- 6.08e-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/17378255/cmap_HighResolution_786931201_787536001_4FGL_J1054.5+2211_weekly_bin906.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.51e-03', comment='SUCCESS', photon_flux='1.19e-08', energy_flux2='6.44e-06', photon_flux_error='1.43e-08', dlogl='1.22e-01', energy_flux='6.09e-06', photon_flux2='2.52e-08', job_status='DONE', time_completed='2025-12-16 02:20:17.127713', photon_index_error2='1.17', photon_index2='2.63', ts='1.57', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='4.63e-08', energy_flux_error2='6.08e-06', EG='0.85', time_epoch_completed='1765880417.13', return_code='0', job_id='17378255', GAL2='1.06', EG2='0.84', return_code2='0', energy_flux_error='7.29e-06', photon_flux_error2='3.65e-08', ts2='1.83', photon_index='2.13' WHERE bin_id='906' AND source_name='4FGL J1054.5+2211' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec 16 02:20:17 PST 2025

