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


Performing analysis on: 4FGL_J1018.4+0528_weekly_bin835
RA = 154.617, Dec = 5.4702
tmin = 743990401, tmax = 744595201
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='53079378', job_status='RUN', time_executed='2024-08-06 08:56:34.452937', time_epoch_executed='1722959794.45' WHERE source_name='4FGL J1018.4+0528' and cadence='weekly' and bin_id='835'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/53079378

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/53079378/ft1_4FGL_J1018.4+0528_weekly_bin835.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/53079378/ft2_4FGL_J1018.4+0528_weekly_bin835.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/53079378/ft1_4FGL_J1018.4+0528_weekly_bin835.fits outfile=/lscratch/kocevski/53079378/ft1_filteredMKT_4FGL_J1018.4+0528_weekly_bin835.fits ra=154.617 dec=5.4702 rad=12.0 tmin=743990401.0 tmax=744595201.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 3.40
user 3.04
sys 0.24

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

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

Number of photons that the gtmktime cut: 585

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/53079378/ft1_filtered_4FGL_J1018.4+0528_weekly_bin835.fits" evtable="EVENTS" scfile=/lscratch/kocevski/53079378/ft2_4FGL_J1018.4+0528_weekly_bin835.fits sctable="SC_DATA" outfile=/lscratch/kocevski/53079378/ltcube_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.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/53079378/ft2_4FGL_J1018.4+0528_weekly_bin835.fits
.....................!
real 22.63
user 22.08
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/53079378/ft1_filtered_4FGL_J1018.4+0528_weekly_bin835.fits evtable="EVENTS" scfile=/lscratch/kocevski/53079378/ft2_4FGL_J1018.4+0528_weekly_bin835.fits sctable="SC_DATA" expcube=/lscratch/kocevski/53079378/ltcube_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.fits outfile=/lscratch/kocevski/53079378/expmap_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.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/53079378/ltcube_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.fits
.....................!
real 59.17
user 55.43
sys 3.33

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/53079378/ft1_filtered_4FGL_J1018.4+0528_weekly_bin835.fits scfile=/lscratch/kocevski/53079378/ft2_4FGL_J1018.4+0528_weekly_bin835.fits outfile=/lscratch/kocevski/53079378/cmap_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.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.38
user 0.22
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/53079378/ft1_filtered_4FGL_J1018.4+0528_weekly_bin835.fits scfile=/lscratch/kocevski/53079378/ft2_4FGL_J1018.4+0528_weekly_bin835.fits outfile=/lscratch/kocevski/53079378/cmap_HighResolution_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.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.41
user 0.21
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/lscratch/kocevski/53079378/ft1_filtered_4FGL_J1018.4+0528_weekly_bin835.fits', '/lscratch/kocevski/53079378/ft2_4FGL_J1018.4+0528_weekly_bin835.fits', expMap='/lscratch/kocevski/53079378/expmap_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.fits', expCube='/lscratch/kocevski/53079378/ltcube_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/lscratch/kocevski/53079378/Model_4FGL_J1018.4+0528_weekly_bin835.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/53079378/ft1_filtered_4FGL_J1018.4+0528_weekly_bin835.fits
Spacecraft file(s): /lscratch/kocevski/53079378/ft2_4FGL_J1018.4+0528_weekly_bin835.fits
Exposure map: /lscratch/kocevski/53079378/expmap_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.fits
Exposure cube: /lscratch/kocevski/53079378/ltcube_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.fits
IRFs: P8R3_SOURCE_V2
Source model file: /lscratch/kocevski/53079378/Model_4FGL_J1018.4+0528_weekly_bin835.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) = 6891.40624737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19596E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .23849       1.0000          .0000       .10000E+07
     3 'Prefactor '    .89865E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .85722E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7546       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.6298       1.0000          .0000       .10000E+07
     7 'Prefactor '    .77909E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .14292E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16652E-01   1.0000          .0000       .10000E+07
    10 'norm      '    1.9591       1.0000          .0000       .10000E+07
    11 'Prefactor '    5.2921       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.1996       1.0000          .0000       .10000E+07
    13 'Prefactor '    11.159       1.0000          .0000       .10000E+07
    14 'Prefactor '    .26090E-08   1.0000          .0000       .10000E+07
    15 'norm      '    .68988       1.0000          .0000       .10000E+07
    16 'Prefactor '    .38354E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    .99348       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.2916       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=   6891.304     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1083 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27756E-09    174.91       -.76452E-06** at limit **
   2  norm          .23672        .80383       -.15540E-07** at limit **
   3  Prefactor      .0000        25.392        .22651E-06** at limit **
   4  Prefactor      .0000        17.141       -.17115E-06** at limit **
   5  Prefactor     1.6739        1.1432       -.17149E-07    .61943E-02
   6  Prefactor     5.5368        8.8557        .39265E-07   -.13009E-03
   7  Prefactor      .0000        24.451        .73385E-07** at limit **
   8  Prefactor      .0000        35.256       -.15468E-06** at limit **
   9  Prefactor      .0000        11.132        .11541E-08** at limit **
  10  norm          1.9594        1.4363        .11941E-07   -.13856E-03
  11  Prefactor     5.2791        7.1467        .11319E-06   -.15651E-03
  12  Prefactor     1.1966        3.5841        .63709E-07    .27910E-03
  13  Prefactor     11.055        8.8838        .37589E-07    .95273E-04
  14  Prefactor      .0000        6.0794       -.17296E-07** at limit **
  15  norm          .68942        .40181        .97159E-08    .18295E-03
  16  Prefactor     .16653E-09    115.35       -.22435E-06** at limit **
  17  Normalizat    .99448        .25202       -.49645E-05   -.35582E-04
  18  Prefactor     1.2915        .20076        .66393E-06   -.39581E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.77556e-10
  norm       = 0.236718
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.67394
  Prefactor  = 5.53683
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.95938
  Prefactor  = 5.27906
  Prefactor  = 1.1966
  Prefactor  = 11.0547
  Prefactor  = 0
  norm       = 0.689416
  Prefactor  = 1.66533e-10
  Normalizat = 0.994481
  Prefactor  = 1.2915
 **********
 **   18 **HESSE 
 **********

 FCN=   6891.304     FROM HESSE     STATUS=OK           292 CALLS     1375 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27756E-09    1.2441        .78359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .23672        .61627        .27713E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        25.303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        17.188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6739        57.650        .79103E-03   -1.5682    
   6  Prefactor     5.5368        8.8934        .42314E-03   -1.5661    
   7  Prefactor      .0000        24.489        .14565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        35.529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        11.090        .17268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9594        1.4486        .74088E-03   -1.5680    
  11  Prefactor     5.2791        7.1783        .43667E-03   -1.5662    
  12  Prefactor     1.1966        3.6353        .10363E-02   -1.5686    
  13  Prefactor     11.055        8.9046        .29966E-03   -1.5641    
  14  Prefactor      .0000        6.0682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68942        .40514        .61533E-03   -1.5691    
  16  Prefactor     .16653E-09    114.97        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .99448        .21423        .70066E-01   -.93216    
  18  Prefactor     1.2915        .16576        .51363E-01   -.83560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51108e-08
Minuit parameter uncertainties:
  1  3.75063e-05
  2  0.616273
  3  2.80637e-05
  4  1.20287e-05
  5  19.6473
  6  8.89342
  7  1.11821e-05
  8  2.85584e-05
  9  8.68421e-06
  10  1.44857
  11  7.17833
  12  3.6353
  13  8.90466
  14  7.22781e-07
  15  0.405144
  16  0.00027484
  17  0.214419
  18  0.165827
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  0.000e+00  2.856e-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.291e+00  1.658e-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:  9.945e-01  2.144e-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: 7.67117828752e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00588033649145 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/53079378/likelihoodResults_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.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) = 6891.31754602
delta logL = -0.0135200761488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6891.30402596
delta logL = -1.21226548799e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42655E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.0377       1.0000          .0000       10.000    
     3 'Normalizat'    .99448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2915       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=   6891.304     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      205 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        42.508       -.16564E-05** at limit **
   2  Index         1.9528        5.1746        .32437E-04     .0000    
   3  Normalizat    .99448        .23990       -.32711E-04    .44617E-04
   4  Prefactor     1.2915        .19810        .20714E-04    .43671E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.95278
  Normalizat = 0.994482
  Prefactor  = 1.2915
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6891.304     FROM HESSE     STATUS=FAILED        11 CALLS      216 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        42.347        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .40535        1.7962        .32437E-04   -.65536    
   3  Normalizat    .99448        1.3245       -.32711E-04   -.93216    
   4  Prefactor     1.2915        1.0791        .20714E-04   -.83560    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.98945e-12
Minuit parameter uncertainties:
  1  4.17411e-05
  2  1.61302
  3  1.37258
  4  1.09864
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) = 6891.30402595
delta logL = 0.0

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  0.000e+00  4.174e-05  0.000e+00  1.000e+06 ( 1.000e-14)
217        Index:  1.953e+00  1.613e+00  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.291e+00  1.099e+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:  9.945e-01  1.373e+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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /lscratch/kocevski/53079378/cmap_HighResolution_743990401_744595201_4FGL_J1018.4+0528_weekly_bin835.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-03', job_status='DONE', photon_flux_upper_limit='7.67e-08', time_completed='2024-08-06 09:01:33.913820', job_id='53079378', GAL2='1.29', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1722960093.91', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='835' AND source_name='4FGL J1018.4+0528' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  6 09:01:33 PDT 2024

