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


Performing analysis on: 4FGL_J1018.4+0528_weekly_bin776
RA = 154.617, Dec = 5.4702
tmin = 708307201, tmax = 708912001
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='18517167', job_status='RUN', time_executed='2023-06-20 00:45:42.966644', time_epoch_executed='1687247142.97' WHERE source_name='4FGL J1018.4+0528' and cadence='weekly' and bin_id='776'

Database successfully updated.
Done.

Creating custom output directory:
/lscratch/kocevski/18517167

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/lscratch/kocevski/18517167/ft1_4FGL_J1018.4+0528_weekly_bin776.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/lscratch/kocevski/18517167/ft2_4FGL_J1018.4+0528_weekly_bin776.fits


Selecting the photons:
time -p gtselect infile=/lscratch/kocevski/18517167/ft1_4FGL_J1018.4+0528_weekly_bin776.fits outfile=/lscratch/kocevski/18517167/ft1_filteredMKT_4FGL_J1018.4+0528_weekly_bin776.fits ra=154.617 dec=5.4702 rad=12.0 tmin=708307201.0 tmax=708912001.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.45
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/lscratch/kocevski/18517167/ft2_4FGL_J1018.4+0528_weekly_bin776.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/18517167/ft1_filteredMKT_4FGL_J1018.4+0528_weekly_bin776.fits evtable="EVENTS" outfile="/lscratch/kocevski/18517167/ft1_filtered_4FGL_J1018.4+0528_weekly_bin776.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.36
user 0.21
sys 0.13

Number of photons that the gtmktime cut: 1550

Generating the livetime cube:
time -p gtltcube evfile="/lscratch/kocevski/18517167/ft1_filtered_4FGL_J1018.4+0528_weekly_bin776.fits" evtable="EVENTS" scfile=/lscratch/kocevski/18517167/ft2_4FGL_J1018.4+0528_weekly_bin776.fits sctable="SC_DATA" outfile=/lscratch/kocevski/18517167/ltcube_708307201_708912001_4FGL_J1018.4+0528_weekly_bin776.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/18517167/ft2_4FGL_J1018.4+0528_weekly_bin776.fits
.....................!
real 19.40
user 19.00
sys 0.23

Generating the exposure map:
time -p gtexpmap evfile=/lscratch/kocevski/18517167/ft1_filtered_4FGL_J1018.4+0528_weekly_bin776.fits evtable="EVENTS" scfile=/lscratch/kocevski/18517167/ft2_4FGL_J1018.4+0528_weekly_bin776.fits sctable="SC_DATA" expcube=/lscratch/kocevski/18517167/ltcube_708307201_708912001_4FGL_J1018.4+0528_weekly_bin776.fits outfile=/lscratch/kocevski/18517167/expmap_708307201_708912001_4FGL_J1018.4+0528_weekly_bin776.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/18517167/ltcube_708307201_708912001_4FGL_J1018.4+0528_weekly_bin776.fits
.....................!
real 62.85
user 59.13
sys 3.28

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/18517167/ft1_filtered_4FGL_J1018.4+0528_weekly_bin776.fits scfile=/lscratch/kocevski/18517167/ft2_4FGL_J1018.4+0528_weekly_bin776.fits outfile=/lscratch/kocevski/18517167/cmap_708307201_708912001_4FGL_J1018.4+0528_weekly_bin776.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.37
user 0.22
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/lscratch/kocevski/18517167/ft1_filtered_4FGL_J1018.4+0528_weekly_bin776.fits scfile=/lscratch/kocevski/18517167/ft2_4FGL_J1018.4+0528_weekly_bin776.fits outfile=/lscratch/kocevski/18517167/cmap_HighResolution_708307201_708912001_4FGL_J1018.4+0528_weekly_bin776.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.38
user 0.24
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2802       1.0000          .0000       .10000E+07
     2 'norm      '    .13097       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.0035       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.0675       1.0000          .0000       .10000E+07
     5 'Prefactor '    .78597E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .76739E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .45558       1.0000          .0000       .10000E+07
     8 'Prefactor '    .35620E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .41888E-05   1.0000          .0000       .10000E+07
    10 'norm      '    4.8282       1.0000          .0000       .10000E+07
    11 'Prefactor '    .93588E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .83998       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.3791       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.0701       1.0000          .0000       .10000E+07
    15 'norm      '    .82572       1.0000          .0000       .10000E+07
    16 'Prefactor '    .77248E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    .85964       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1116       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=   17147.21     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     1107 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2805        .67840        .66821E-07   -.17836E-02
   2  norm          .13153        .28274        .14497E-07** at limit **
   3  Prefactor     3.0291        4.4255        .70024E-09   -.20458E-03
   4  Prefactor     8.1206        16.168       -.68520E-06    .32630E-03
   5  Prefactor      .0000        10.617       -.47864E-07** at limit **
   6  Prefactor      .0000        1.5891        .24926E-07** at limit **
   7  Prefactor     .26082        390.28        .19608E-05   -.14785E-03
   8  Prefactor      .0000        7.2719        .14102E-06** at limit **
   9  Prefactor      .0000        2.0019        .42460E-07** at limit **
  10  norm          4.8280        1.0777        .37007E-08    .81947E-03
  11  Prefactor      .0000        4.7082        .33456E-07** at limit **
  12  Prefactor     .83909        1.4620       -.72771E-07    .22466E-03
  13  Prefactor     3.4283        4.1149        .21170E-07   -.13587E-03
  14  Prefactor     3.0835        4.1647       -.49008E-07    .30336E-03
  15  norm          .82614        .28554       -.26683E-07    .38612E-02
  16  Prefactor      .0000        2.8426        .72559E-07** at limit **
  17  Normalizat    .85960        .12801       -.51579E-06   -.26867E-04
  18  Prefactor     1.1116        .10833        .47125E-07   -.26757E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.28049
  norm       = 0.131532
  Prefactor  = 3.02914
  Prefactor  = 8.12065
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0.260825
  Prefactor  = 0
  Prefactor  = 0
  norm       = 4.828
  Prefactor  = 0
  Prefactor  = 0.839089
  Prefactor  = 3.42826
  Prefactor  = 3.08349
  norm       = 0.826138
  Prefactor  = 0
  Normalizat = 0.859604
  Prefactor  = 1.11156
 **********
 **   18 **HESSE 
 **********

 FCN=   17147.21     FROM HESSE     STATUS=OK           290 CALLS     1397 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2805        .69134        .98072E-03   -1.5685    
   2  norm          .13153        .22981        .20058E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0291        4.4473        .58543E-03   -1.5673    
   4  Prefactor     8.1206        16.198        .35275E-03   -1.5651    
   5  Prefactor      .0000        10.583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.5865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .26082        14.921        .13117E-01   -1.5698    
   8  Prefactor      .0000        7.2773        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        2.0023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8280        1.0785        .45759E-03   -1.5664    
  11  Prefactor      .0000        4.6262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .83909        1.4812        .50001E-03   -1.5690    
  13  Prefactor     3.4283        4.1224        .55019E-03   -1.5671    
  14  Prefactor     3.0835        4.2072        .57866E-03   -1.5673    
  15  norm          .82614        .28743        .51037E-03   -1.5690    
  16  Prefactor      .0000        2.8381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .85960        .11269        .44384E-01   -.97894    
  18  Prefactor     1.1116        .93856E-01    .37162E-01   -.89098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88762e-07
Minuit parameter uncertainties:
  1  0.691343
  2  0.229807
  3  4.44726
  4  16.1977
  5  1.69283e-06
  6  4.65705e-07
  7  3.9455
  8  8.4671e-06
  9  2.64097e-07
  10  1.07853
  11  3.74628e-06
  12  1.48118
  13  4.12243
  14  4.2072
  15  0.28743
  16  3.01255e-06
  17  0.112724
  18  0.0938699
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  0.000e+00  8.467e-06  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.112e+00  9.387e-02  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:  8.596e-01  1.127e-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: 2.35537599775e-08 ph cm-2 s-1
Energy Flux Upper Limit: 0.00180551186682 MeV cm-2 s-1

Saving results to:
/lscratch/kocevski/18517167/likelihoodResults_708307201_708912001_4FGL_J1018.4+0528_weekly_bin776.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) = 17147.2728266
delta logL = -0.0658875987792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 17147.2069395
delta logL = -5.12554834131e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26945E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .45986       1.0000          .0000       10.000    
     3 'Normalizat'    .85971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1115       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=   17147.21     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      214 TOTAL
                     EDM=   .11E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.7582        .42118E-03** at limit **
   2  Index         2.5067        1.6520        .16957E-04     .0000    
   3  Normalizat    .85960        1.1967       -.22408E-05    .41535E-04
   4  Prefactor     1.1116        1.1415        .23932E-05    .22445E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.50674
  Normalizat = 0.859604
  Prefactor  = 1.11156
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.7582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .70825        1.9867        .16957E-04   -.52204    
   3  Normalizat    .85960        1.1967       -.22408E-05   -.97894    
   4  Prefactor     1.1116        1.1415        .23932E-05   -.89098    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.08084e-12
Minuit parameter uncertainties:
  1  6.19027e-06
  2  1.69491
  3  1.23687
  4  1.16825
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) = 17147.206939
delta logL = 0.0

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  0.000e+00  6.190e-06  0.000e+00  1.000e+06 ( 1.000e-14)
217        Index:  2.507e+00  1.695e+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.112e+00  1.168e+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:  8.596e-01  1.237e+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/18517167/cmap_HighResolution_708307201_708912001_4FGL_J1018.4+0528_weekly_bin776.png

Cleaning up...

** Nuclear option initiated! **

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-03', job_status='DONE', photon_flux_upper_limit='2.36e-08', time_completed='2023-06-20 00:51:19.861147', job_id='18517167', GAL2='1.11', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1687247479.86', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='776' AND source_name='4FGL J1018.4+0528' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 20 00:51:19 PDT 2023

