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


Performing analysis on: 4FGL_J1045.8-2928_daily_bin2114
RA = 161.468, Dec = -29.4795
tmin = 787276801, 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='17371780', job_status='RUN', time_executed='2025-12-16 00:49:38.120699', time_epoch_executed='1765874978.12' WHERE source_name='4FGL J1045.8-2928' and cadence='daily' and bin_id='2114'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/17371780

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/17371780/ft1_4FGL_J1045.8-2928_daily_bin2114.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/17371780/ft2_4FGL_J1045.8-2928_daily_bin2114.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/17371780/ft1_4FGL_J1045.8-2928_daily_bin2114.fits outfile=/lscratch/kocevski/17371780/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin2114.fits ra=161.468 dec=-29.4795 rad=12.0 tmin=787276801.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 2.84
user 1.63
sys 0.20

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/17371780/ft2_4FGL_J1045.8-2928_daily_bin2114.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/17371780/ft2_4FGL_J1045.8-2928_daily_bin2114.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/17371780/ft1_filteredMKT_4FGL_J1045.8-2928_daily_bin2114.fits evtable="EVENTS" outfile="/lscratch/kocevski/17371780/ft1_filtered_4FGL_J1045.8-2928_daily_bin2114.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 1.14
user 0.16
sys 0.14

Number of photons that the gtmktime cut: 994

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/17371780/ft1_filtered_4FGL_J1045.8-2928_daily_bin2114.fits" evtable="EVENTS" scfile=/lscratch/kocevski/17371780/ft2_4FGL_J1045.8-2928_daily_bin2114.fits sctable="SC_DATA" outfile=/lscratch/kocevski/17371780/ltcube_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.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/17371780/ft2_4FGL_J1045.8-2928_daily_bin2114.fits
.....................!
real 7.83
user 6.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/17371780/ft1_filtered_4FGL_J1045.8-2928_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17371780/ft2_4FGL_J1045.8-2928_daily_bin2114.fits sctable="SC_DATA" expcube=/lscratch/kocevski/17371780/ltcube_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.fits outfile=/lscratch/kocevski/17371780/expmap_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.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/17371780/ltcube_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.fits
.....................!
real 59.71
user 55.27
sys 3.48

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

Setting source of interest to:
4FGL J1045.8-2928 @ 161.468 -29.4795

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/17371780/ft1_filtered_4FGL_J1045.8-2928_daily_bin2114.fits scfile=/lscratch/kocevski/17371780/ft2_4FGL_J1045.8-2928_daily_bin2114.fits outfile=/lscratch/kocevski/17371780/cmap_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.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=161.468 yref=-29.4795 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 1.03
user 0.19
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/17371780/ft1_filtered_4FGL_J1045.8-2928_daily_bin2114.fits scfile=/lscratch/kocevski/17371780/ft2_4FGL_J1045.8-2928_daily_bin2114.fits outfile=/lscratch/kocevski/17371780/cmap_HighResolution_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.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=161.468 yref=-29.4795 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 1.14
user 0.19
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/17371780/ft1_filtered_4FGL_J1045.8-2928_daily_bin2114.fits evtable="EVENTS" scfile=/lscratch/kocevski/17371780/ft2_4FGL_J1045.8-2928_daily_bin2114.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/17371780/Model_4FGL_J1045.8-2928_daily_bin2114.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/17371780/ft1_filtered_4FGL_J1045.8-2928_daily_bin2114.fits.....................!
real 34.49
user 32.70
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/17371780/ft1_filtered_4FGL_J1045.8-2928_daily_bin2114.fits', '/lscratch/kocevski/17371780/ft2_4FGL_J1045.8-2928_daily_bin2114.fits', expMap='/lscratch/kocevski/17371780/expmap_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.fits', expCube='/lscratch/kocevski/17371780/ltcube_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/17371780/Model_4FGL_J1045.8-2928_daily_bin2114.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1045.8-2928'

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  1.056e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        Index:  2.544e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/17371780/ft1_filtered_4FGL_J1045.8-2928_daily_bin2114.fits
Spacecraft file(s): /lscratch/kocevski/17371780/ft2_4FGL_J1045.8-2928_daily_bin2114.fits
Exposure map: /lscratch/kocevski/17371780/expmap_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.fits
Exposure cube: /lscratch/kocevski/17371780/ltcube_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/17371780/Model_4FGL_J1045.8-2928_daily_bin2114.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) = 10449.3157606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36947E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .12390E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .38625E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .59303E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .60933E-04   1.0000          .0000       .10000E+07
     6 'norm      '    7.6642       1.0000          .0000       .10000E+07
     7 'Prefactor '    28.104       1.0000          .0000       .10000E+07
     8 'norm      '    .73125E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.2384       1.0000          .0000       .10000E+07
    10 'Prefactor '    .15184E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .24991E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .55754E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .43382E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .48710E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    .70055E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    10.863       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.3694       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .78665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10448.32     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     1082 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    2.1210        .20728E-06** at limit **
   2  norm          .16813E-05    26.565        .27780E-06** at limit **
   3  Prefactor     .22704E-07    11.903       -.20421E-06** at limit **
   4  Prefactor     .17208E-08    3.0039        .89516E-07** at limit **
   5  norm          .97145E-08    1.9445        .22632E-06** at limit **
   6  norm          7.6359        5.6969        .12619E-07   -.31428E-03
   7  Prefactor     28.039        8.4840        .53713E-07    .37656E-01
   8  norm          .36748E-07    5.0456       -.28287E-07** at limit **
   9  Prefactor     1.0884        10.577       -.36642E-06    .16205E-04
  10  Prefactor      .0000        .93959        .31223E-07** at limit **
  11  Prefactor     .16653E-09    5.9449        .18574E-06** at limit **
  12  Prefactor     .88818E-08    2.2094        .18198E-06** at limit **
  13  Prefactor     .55511E-10    3.6705        .20348E-06** at limit **
  14  Prefactor     .14155E-06    1.5035        .62553E-07** at limit **
  15  Prefactor     .11102E-09    2.7616       -.15088E-06** at limit **
  16  Prefactor     9.5290        14.144        .11402E-06    .39799E-01
  17  Normalizat    1.3702        .19798        .98755E-06    .46415E-04
  18  Prefactor     .78681        .10007       -.25082E-05    .90650E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  norm       = 1.68127e-06
  Prefactor  = 2.27041e-08
  Prefactor  = 1.72085e-09
  norm       = 9.71445e-09
  norm       = 7.63595
  Prefactor  = 28.0392
  norm       = 3.67484e-08
  Prefactor  = 1.0884
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 8.88178e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 1.41553e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 9.52901
  Normalizat = 1.37017
  Prefactor  = 0.786808
 **********
 **   18 **HESSE 
 **********

 FCN=   10448.32     FROM HESSE     STATUS=OK           290 CALLS     1372 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    .66838        .31107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .16813E-05    3.9047        .64736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .22704E-07    12.041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .17208E-08    3.0956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .97145E-08    3.6887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.6359        5.7173        .36199E-03   -1.5653    
   7  Prefactor     28.039        13.513        .18866E-03   -1.5602    
   8  norm          .36748E-07    1.8626        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.0884        10.593        .10079E-02   -1.5687    
  10  Prefactor      .0000        .93771        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16653E-09    5.9819        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .88818E-08    3.6077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    4.0913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .14155E-06    69.272        .15592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-09    2.7759        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.5290        25.560        .30374E-03   -1.5646    
  17  Normalizat    1.3702        .16708        .63117E-01   -.81495    
  18  Prefactor     .78681        .83793E-01    .43543E-01   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82277e-06
Minuit parameter uncertainties:
  1  1.46571e-05
  2  0.00512443
  3  0.00104583
  4  0.000145025
  5  0.000379111
  6  5.71732
  7  13.5127
  8  0.000523295
  9  6.79106
  10  3.48175e-06
  11  6.44746e-05
  12  0.00035852
  13  3.31084e-05
  14  0.00626292
  15  3.57523e-05
  16  25.5603
  17  0.167141
  18  0.0838069
Done.

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

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  0.000e+00  3.482e-06  0.000e+00  1.000e+06 ( 1.000e-12)
295        Index:  2.544e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  7.868e-01  8.381e-02  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.370e+00  1.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 161.468 -29.480
Photon Flux Upper Limit: 4.68803630777e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00365639493518 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/17371780/likelihoodResults_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.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) = 10448.3248829
delta logL = -0.00250434489863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10448.3223787
delta logL = -1.60300260177e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   10448.32     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      236 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .76498        .42118E-03** at limit **
   2  Index         2.9487        1.4391       -.14358E-04     .0000    
   3  Normalizat    1.3702        1.0665       -.47654E-06   -.67067E-04
   4  Prefactor     .78681        1.1357        .30919E-07   -.10442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.94875
  Normalizat = 1.37017
  Prefactor  = 0.786807
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10448.32     FROM HESSE     STATUS=FAILED         9 CALLS      245 TOTAL
                     EDM=   .24E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .76498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .98376        2.0698       -.14358E-04   -.42273    
   3  Normalizat    1.3702        1.0665       -.47654E-06   -.81495    
   4  Prefactor     .78681        1.1357        .30919E-07   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.41269e-12
Minuit parameter uncertainties:
  1  2.49427e-08
  2  1.46413
  3  1.08449
  4  1.1724
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) = 10448.3223786
delta logL = 0.0

Extracting fit parameters...

4FGL J1045.8-2928
   Spectrum: PowerLaw
294    Prefactor:  0.000e+00  2.494e-08  0.000e+00  1.000e+06 ( 1.000e-12)
295        Index:  2.949e+00  1.464e+00  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.578e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
586    Prefactor:  7.868e-01  1.172e+00  0.000e+00  1.000e+01 ( 1.000e+00)
587        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
588        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
585   Normalization:  1.370e+00  1.084e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 161.468 -29.480

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/17371780/cmap_HighResolution_787276801_787536001_4FGL_J1045.8-2928_daily_bin2114.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-03', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2025-12-16 00:57:35.589281', job_id='17371780', GAL2='0.79', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1765875455.59', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='2114' AND source_name='4FGL J1045.8-2928' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 16 00:57:36 PST 2025

