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


Performing analysis on: 4FGL_J1018.4+0528_weekly_bin863
RA = 154.617, Dec = 5.4702
tmin = 760924801, tmax = 761529601
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='64778408', job_status='RUN', time_executed='2025-02-18 00:36:42.096732', time_epoch_executed='1739867802.1' WHERE source_name='4FGL J1018.4+0528' and cadence='weekly' and bin_id='863'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/64778408

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/64778408/ft1_4FGL_J1018.4+0528_weekly_bin863.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/64778408/ft2_4FGL_J1018.4+0528_weekly_bin863.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/64778408/ft1_4FGL_J1018.4+0528_weekly_bin863.fits outfile=/lscratch/kocevski/64778408/ft1_filteredMKT_4FGL_J1018.4+0528_weekly_bin863.fits ra=154.617 dec=5.4702 rad=12.0 tmin=760924801.0 tmax=761529601.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 4.34
user 3.89
sys 0.32

Adding sun position to ft2 file:
/sdf/group/fermi/g/LCRepository/Repository/bin/sunpos /lscratch/kocevski/64778408/ft2_4FGL_J1018.4+0528_weekly_bin863.fits

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/64778408/ft2_4FGL_J1018.4+0528_weekly_bin863.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/64778408/ft1_filteredMKT_4FGL_J1018.4+0528_weekly_bin863.fits evtable="EVENTS" outfile="/lscratch/kocevski/64778408/ft1_filtered_4FGL_J1018.4+0528_weekly_bin863.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.39
user 0.18
sys 0.15

Number of photons that the gtmktime cut: 1304

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/64778408/ft1_filtered_4FGL_J1018.4+0528_weekly_bin863.fits" evtable="EVENTS" scfile=/lscratch/kocevski/64778408/ft2_4FGL_J1018.4+0528_weekly_bin863.fits sctable="SC_DATA" outfile=/lscratch/kocevski/64778408/ltcube_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.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/64778408/ft2_4FGL_J1018.4+0528_weekly_bin863.fits
.....................!
real 15.53
user 15.11
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/64778408/ft1_filtered_4FGL_J1018.4+0528_weekly_bin863.fits evtable="EVENTS" scfile=/lscratch/kocevski/64778408/ft2_4FGL_J1018.4+0528_weekly_bin863.fits sctable="SC_DATA" expcube=/lscratch/kocevski/64778408/ltcube_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.fits outfile=/lscratch/kocevski/64778408/expmap_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.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/64778408/ltcube_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.fits
.....................!
real 59.63
user 55.66
sys 3.65

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

Setting source of interest to:
4FGL J1018.4+0528 @ 154.617 5.4702

Creating the counts map:
time -p gtbin evfile=/lscratch/kocevski/64778408/ft1_filtered_4FGL_J1018.4+0528_weekly_bin863.fits scfile=/lscratch/kocevski/64778408/ft2_4FGL_J1018.4+0528_weekly_bin863.fits outfile=/lscratch/kocevski/64778408/cmap_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.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=154.617 yref=5.4702 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.42
user 0.21
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/64778408/ft1_filtered_4FGL_J1018.4+0528_weekly_bin863.fits scfile=/lscratch/kocevski/64778408/ft2_4FGL_J1018.4+0528_weekly_bin863.fits outfile=/lscratch/kocevski/64778408/cmap_HighResolution_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.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=154.617 yref=5.4702 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.40
user 0.21
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/lscratch/kocevski/64778408/ft1_filtered_4FGL_J1018.4+0528_weekly_bin863.fits evtable="EVENTS" scfile=/lscratch/kocevski/64778408/ft2_4FGL_J1018.4+0528_weekly_bin863.fits sctable="SC_DATA" srcmdl=/lscratch/kocevski/64778408/Model_4FGL_J1018.4+0528_weekly_bin863.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/64778408/ft1_filtered_4FGL_J1018.4+0528_weekly_bin863.fits.....................!
real 43.24
user 42.15
sys 0.83

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/64778408/ft1_filtered_4FGL_J1018.4+0528_weekly_bin863.fits', '/lscratch/kocevski/64778408/ft2_4FGL_J1018.4+0528_weekly_bin863.fits', expMap='/lscratch/kocevski/64778408/expmap_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.fits', expCube='/lscratch/kocevski/64778408/ltcube_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/64778408/Model_4FGL_J1018.4+0528_weekly_bin863.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1018.4+0528'

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  9.961e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /lscratch/kocevski/64778408/ft1_filtered_4FGL_J1018.4+0528_weekly_bin863.fits
Spacecraft file(s): /lscratch/kocevski/64778408/ft2_4FGL_J1018.4+0528_weekly_bin863.fits
Exposure map: /lscratch/kocevski/64778408/expmap_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.fits
Exposure cube: /lscratch/kocevski/64778408/ltcube_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/64778408/Model_4FGL_J1018.4+0528_weekly_bin863.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) = 14815.3097048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32846E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .35949E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    6.3901       1.0000          .0000       .10000E+07
     4 'Prefactor '    .28496E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .18725E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .69549E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.8756       1.0000          .0000       .10000E+07
     8 'Prefactor '    .29718E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .21959E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .93406       1.0000          .0000       .10000E+07
    11 'Prefactor '    .16173E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .42486E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.8209       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.7610       1.0000          .0000       .10000E+07
    15 'norm      '    1.1392       1.0000          .0000       .10000E+07
    16 'Prefactor '    1.7232       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.2678       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1207       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14815.23     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     1103 TOTAL
                     EDM=   .58E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        1.8239       -.33027E-06** at limit **
   2  norm           .0000        .19334       -.28623E-07** at limit **
   3  Prefactor     6.3902        7.6577        .31521E-06    .59937E-04
   4  Prefactor      .0000        9.6523        .11746E-06** at limit **
   5  Prefactor      .0000        21.174        .74447E-06** at limit **
   6  Prefactor      .0000        3.4984       -.44298E-07** at limit **
   7  Prefactor     .22760E-08    1176.5        .48275E-05** at limit **
   8  Prefactor      .0000        61.104       -.10636E-05** at limit **
   9  Prefactor      .0000        5.6113        .30384E-06** at limit **
  10  norm          .93229        .75106        .87799E-08   -.74854E-04
  11  Prefactor      .0000        1.1202       -.61056E-07** at limit **
  12  Prefactor      .0000        1.5746       -.49836E-07** at limit **
  13  Prefactor     6.5870        7.9340        .13573E-06    .24923E-03
  14  Prefactor     3.7049        5.6441       -.55409E-07   -.41808E-03
  15  norm          1.1382        .40829       -.18672E-08    .33688E-03
  16  Prefactor     1.7085        26.452        .99265E-06    .66339E-04
  17  Normalizat    1.2710        .15623        .98136E-06    .47789E-04
  18  Prefactor     1.1199        .12796       -.38513E-05    .19737E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0
  Prefactor  = 6.39016
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.27596e-09
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0.932286
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 6.58698
  Prefactor  = 3.70495
  norm       = 1.13825
  Prefactor  = 1.70851
  Normalizat = 1.27098
  Prefactor  = 1.11985
 **********
 **   18 **HESSE 
 **********

 FCN=   14815.23     FROM HESSE     STATUS=OK           302 CALLS     1405 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .39540        .25915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .11837        .16339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.3902        7.7983        .39682E-03   -1.5657    
   4  Prefactor      .0000        9.6929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        21.200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        3.5422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .22760E-08    47.628        .12271E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        12.945        .16465E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.6450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .93229        .75510        .43433E-03   -1.5689    
  11  Prefactor      .0000        1.1234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        1.5523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5870        7.8901        .38393E-03   -1.5657    
  14  Prefactor     3.7049        5.6943        .52035E-03   -1.5669    
  15  norm          1.1382        .42056        .10291E-02   -1.5687    
  16  Prefactor     1.7085        26.209        .79979E-03   -1.5682    
  17  Normalizat    1.2710        .13335        .60823E-01   -.84437    
  18  Prefactor     1.1199        .10713        .53811E-01   -.88835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65916e-07
Minuit parameter uncertainties:
  1  2.07728e-06
  2  4.67555e-08
  3  7.79833
  4  1.67966e-05
  5  2.76683e-05
  6  1.71432e-06
  7  0.000657286
  8  1.69487e-05
  9  2.69178e-06
  10  0.755095
  11  6.16651e-07
  12  1.3117e-06
  13  7.89014
  14  5.69433
  15  0.420558
  16  13.3835
  17  0.133388
  18  0.107154
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  0.000e+00  1.695e-05  0.000e+00  1.000e+06 ( 1.000e-14)
217        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.120e+00  1.072e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.271e+00  1.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 4.16710625535e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00319429246182 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/64778408/likelihoodResults_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.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) = 14815.2340486
delta logL = -0.00879624263689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14815.2252609
delta logL = -8.57858321979e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33030E-03   1.0000          .0000       .10000E+07
     2 'Index     '    2.0063       1.0000          .0000       10.000    
     3 'Normalizat'    1.2709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1197       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   14815.23     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      238 TOTAL
                     EDM=   .21E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        69.349        .42118E-03** at limit **
   2  Index         1.5520        .92223       -.12247E-04     .0000    
   3  Normalizat    1.2710        1.0860        .36351E-05   -.23141E-04
   4  Prefactor     1.1199        1.1369       -.39288E-05   -.17157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.552
  Normalizat = 1.27098
  Prefactor  = 1.11985
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   14815.23     FROM HESSE     STATUS=FAILED         9 CALLS      247 TOTAL
                     EDM=   .21E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        69.349        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .22311        1.4426       -.12247E-04   -.76094    
   3  Normalizat    1.2710        1.0860        .36351E-05   -.84437    
   4  Prefactor     1.1199        1.1369       -.39288E-05   -.88835    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.13797e-13
Minuit parameter uncertainties:
  1  2.27098e-05
  2  0.932506
  3  1.10639
  4  1.16307
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) = 14815.2252523
delta logL = 0.0

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  0.000e+00  2.271e-05  0.000e+00  1.000e+06 ( 1.000e-14)
217        Index:  1.552e+00  9.325e-01  0.000e+00  1.000e+01 (-1.000e+00)
218        Scale:  1.954e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.120e+00  1.163e+00  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.271e+00  1.106e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 154.617 5.470

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/64778408/cmap_HighResolution_760924801_761529601_4FGL_J1018.4+0528_weekly_bin863.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', job_status='DONE', photon_flux_upper_limit='4.17e-08', time_completed='2025-02-18 00:41:55.939365', job_id='64778408', GAL2='1.12', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1739868115.94', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='863' AND source_name='4FGL J1018.4+0528' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 18 00:41:55 PST 2025

