/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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)


Waiting 168 seconds before starting...
Proceeding.

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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/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 = 7432
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1018.4+0528_daily_bin453
RA = 154.617, Dec = 5.4702
tmin = 356745601, tmax = 357004801
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='803918', job_status='RUN', time_executed='2021-09-01 17:30:53.952172', time_epoch_executed='1630542653.95' WHERE source_name='4FGL J1018.4+0528' and cadence='daily' and bin_id='453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/803918

Creating custom pfile directory:
/scratch/kocevski/803918/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=356745601.0 && nMetStart<357004801.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=356745601.0 && nMetStart<357004801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/803918/ft1_4FGL_J1018.4+0528_daily_bin453.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=356745601.0 && nMetStart<357004801.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/803918/ft2_4FGL_J1018.4+0528_daily_bin453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/803918/ft1_4FGL_J1018.4+0528_daily_bin453.fits outfile=/scratch/kocevski/803918/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin453.fits ra=154.617 dec=5.4702 rad=12.0 tmin=356745601.0 tmax=357004801.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.53
user 3.32
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/803918/ft2_4FGL_J1018.4+0528_daily_bin453.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/803918/ft2_4FGL_J1018.4+0528_daily_bin453.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/803918/ft1_filteredMKT_4FGL_J1018.4+0528_daily_bin453.fits evtable="EVENTS" outfile="/scratch/kocevski/803918/ft1_filtered_4FGL_J1018.4+0528_daily_bin453.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('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/803918/ft1_filtered_4FGL_J1018.4+0528_daily_bin453.fits" evtable="EVENTS" scfile=/scratch/kocevski/803918/ft2_4FGL_J1018.4+0528_daily_bin453.fits sctable="SC_DATA" outfile=/scratch/kocevski/803918/ltcube_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.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 /scratch/kocevski/803918/ft2_4FGL_J1018.4+0528_daily_bin453.fits
.....................!
real 17.95
user 17.52
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/803918/ft1_filtered_4FGL_J1018.4+0528_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/803918/ft2_4FGL_J1018.4+0528_daily_bin453.fits sctable="SC_DATA" expcube=/scratch/kocevski/803918/ltcube_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.fits outfile=/scratch/kocevski/803918/expmap_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.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 /scratch/kocevski/803918/ltcube_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.fits
.....................!
real 191.02
user 186.33
sys 4.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=/scratch/kocevski/803918/ft1_filtered_4FGL_J1018.4+0528_daily_bin453.fits scfile=/scratch/kocevski/803918/ft2_4FGL_J1018.4+0528_daily_bin453.fits outfile=/scratch/kocevski/803918/cmap_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.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.56
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/803918/ft1_filtered_4FGL_J1018.4+0528_daily_bin453.fits scfile=/scratch/kocevski/803918/ft2_4FGL_J1018.4+0528_daily_bin453.fits outfile=/scratch/kocevski/803918/cmap_HighResolution_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/803918/ft1_filtered_4FGL_J1018.4+0528_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/803918/ft2_4FGL_J1018.4+0528_daily_bin453.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/803918/Model_4FGL_J1018.4+0528_daily_bin453.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...
/scratch/kocevski/803918/ft1_filtered_4FGL_J1018.4+0528_daily_bin453.fits....................!
real 56.93
user 55.54
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/803918/ft1_filtered_4FGL_J1018.4+0528_daily_bin453.fits', '/scratch/kocevski/803918/ft2_4FGL_J1018.4+0528_daily_bin453.fits', expMap='/scratch/kocevski/803918/expmap_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.fits', expCube='/scratch/kocevski/803918/ltcube_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/803918/Model_4FGL_J1018.4+0528_daily_bin453.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  1.000e-04  1.000e+04 ( 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): /scratch/kocevski/803918/ft1_filtered_4FGL_J1018.4+0528_daily_bin453.fits
Spacecraft file(s): /scratch/kocevski/803918/ft2_4FGL_J1018.4+0528_daily_bin453.fits
Exposure map: /scratch/kocevski/803918/expmap_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.fits
Exposure cube: /scratch/kocevski/803918/ltcube_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/803918/Model_4FGL_J1018.4+0528_daily_bin453.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) = 5800.99055379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4476       1.0000         .10000E-03   10000.    
     2 'norm      '    4.4952       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17738E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18507       1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    104.69       1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.541       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .96580       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8158       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5270       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.036       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5863       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11444E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3173       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .70732       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5800.987     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2078 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4470        1.7504       -.11786E-06   -.70009E-04
   2  norm          4.4953        1.0679       -.35206E-07    .51313E-04
   3  Prefactor     .10000E-03    7.6498        .21986E-07** at limit **
   4  Prefactor     .10000E-03    27.009        .14121E-06** at limit **
   5  Prefactor     .10043E-03    41.389       -.12936E-06** at limit **
   6  norm          .10000E-03    8.6941        .15239E-08** at limit **
   7  Prefactor     .10000E-03    4.1727       -.34988E-08** at limit **
   8  Prefactor     104.70        67.361       -.21248E-05    .14758E-03
   9  Prefactor     43.626        46.961        .79392E-06   -.25597E-04
  10  Prefactor     .10000E-03    11.060        .16713E-06** at limit **
  11  norm          .96562        .92540        .17597E-07    .20991E-03
  12  Prefactor     1.1607        5.8416       -.33184E-05   -.79725E-03
  13  Prefactor     6.8127        3.7097       -.18848E-06   -.13560E-02
  14  Prefactor     3.5247        9.2335       -.33962E-05    .29113E-03
  15  Prefactor     17.035        10.539       -.16865E-05    .99488E-03
  16  norm          1.5856        .77617        .43655E-07   -.11123E-03
  17  Prefactor     .10000E-03    9.9046       -.65137E-07** at limit **
  18  Prefactor     .10000E-03    9.7144        .27070E-06** at limit **
  19  Normalizat    1.3175        .21482        .28583E-05   -.42208E-04
  20  Prefactor     .70734        .16781       -.12657E-05   -.17465E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.447
  norm       = 4.4953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100425
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.701
  Prefactor  = 43.6259
  Prefactor  = 0.0001
  norm       = 0.96562
  Prefactor  = 1.16066
  Prefactor  = 6.81275
  Prefactor  = 3.52472
  Prefactor  = 17.0349
  norm       = 1.58559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.31747
  Prefactor  = 0.707344
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.987     FROM HESSE     STATUS=OK           299 CALLS     2377 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4470        1.7609        .67947E-04   -1.5337    
   2  norm          4.4953        1.0693        .36424E-04   -1.5284    
   3  Prefactor     .10000E-03    7.7042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10043E-03    43.288        .13135       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.7309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1760        .15190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     104.70        67.169        .39300E-04   -1.3658    
   9  Prefactor     43.626        46.879        .60756E-04   -1.4386    
  10  Prefactor     .10000E-03    11.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .96562        .93513        .69398E-04   -1.5511    
  12  Prefactor     1.1607        8.8253        .42265E-03   -1.5493    
  13  Prefactor     6.8127        3.8101        .52728E-03   -1.5186    
  14  Prefactor     3.5247        9.1152        .21525E-03   -1.5332    
  15  Prefactor     17.035        10.039        .97035E-04   -1.4882    
  16  norm          1.5856        .76966        .44269E-04   -1.5456    
  17  Prefactor     .10000E-03    9.9734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.7207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3175        .26630        .26034E-03   -.83046    
  20  Prefactor     .70734        .20201        .13840E-02   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61974e-09
Minuit parameter uncertainties:
  1  1.7609
  2  1.06929
  3  4.60486e-06
  4  2.99753e-05
  5  0.00858711
  6  5.76045e-06
  7  9.18173e-07
  8  67.218
  9  46.919
  10  2.11435e-05
  11  0.935143
  12  6.40204
  13  3.81021
  14  9.11875
  15  10.0405
  16  0.769661
  17  2.56563e-05
  18  2.55008e-05
  19  0.266575
  20  0.202218
Done.

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

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  4.363e+01  4.692e+01  1.000e-04  1.000e+04 ( 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:  7.073e-01  2.022e-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.317e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.35
Ra Dec: 154.617 5.470
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.02e-08 +/- 3.24e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.26e-05

TS (Fixed Index): 2.35
Ra Dec: 154.617 5.470
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/803918/likelihoodResults_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.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) = 5800.93543407
delta logL = 0.0517796034728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5800.93135393
delta logL = 0.0558597435556

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.266       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0321       1.0000          .0000       10.000    
     3 'Normalizat'    1.3256       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70351       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5800.931     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      309 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.270        65.780        .26979E-03   -.69564E-04
   2  Index         2.0322        .76238        .77457E-02   -.68698E-04
   3  Normalizat    1.3255        .24891        .25970E-03    .15709E-03
   4  Prefactor     .70361        .20022        .27749E-03    .16048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.2698
  Index      = 2.03216
  Normalizat = 1.3255
  Prefactor  = 0.703613
 **********
 **   18 **HESSE 
 **********

 FCN=   5800.931     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.270        64.505        .53958E-04   -1.4220    
   2  Index         2.0322        .74759        .30983E-03   -.63548    
   3  Normalizat    1.3255        .24903        .51941E-04   -.82808    
   4  Prefactor     .70361        .20036        .11100E-04   -1.0339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20328e-10
Minuit parameter uncertainties:
  1  64.5867
  2  0.751961
  3  0.249255
  4  0.20057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/803918': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5800.93135377
delta logL = 0.0558599062224

Extracting fit parameters...

4FGL J1018.4+0528
   Spectrum: PowerLaw
216    Prefactor:  5.527e+01  6.459e+01  1.000e-04  1.000e+04 ( 1.000e-14)
217        Index:  2.032e+00  7.520e-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:  7.036e-01  2.006e-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.326e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.47
Ra Dec: 154.617 5.470
Photon Index (Free Index): 2.03 +/- 0.75
Photon Flux (Free Index): 2.25e-08 +/- 3.34e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.87e-05

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 /scratch/kocevski/803918/cmap_HighResolution_356745601_357004801_4FGL_J1018.4+0528_daily_bin453.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/803918

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.94e-03', comment='SUCCESS', photon_flux='3.02e-08', energy_flux2='1.44e-05', photon_flux_error='3.24e-08', dlogl='5.59e-02', energy_flux='1.17e-05', photon_flux2='2.25e-08', job_status='DONE', time_completed='2021-09-01 17:40:17.579619', photon_index_error2='0.75', photon_index2='2.03', ts='2.35', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.87e-05', EG='1.32', time_epoch_completed='1630543217.58', return_code='0', job_id='803918', GAL2='0.70', EG2='1.33', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.34e-08', ts2='2.47', photon_index='2.28' WHERE bin_id='453' AND source_name='4FGL J1018.4+0528' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 17:40:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 803918: <4FGL_J1018.4+0528_daily_bin453> in cluster <slac> Done

Job <4FGL_J1018.4+0528_daily_bin453> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Sep  1 17:25:58 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 17:27:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 17:27:57 2021
Terminated at Wed Sep  1 17:40:18 2021
Results reported at Wed Sep  1 17:40:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1018.4+0528_daily_bin453 154.617 5.4702 356745601 357004801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1018.4+0528 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   563.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            860 sec.

The output (if any) is above this job summary.

