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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin554
RA = 154.473, Dec = 7.2638
tmin = 382924801, tmax = 383184001
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='780703', job_status='RUN', time_executed='2021-09-01 16:20:16.220895', time_epoch_executed='1630538416.22' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780703

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780703/ft1_4FGL_J1017.8+0715_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780703/ft2_4FGL_J1017.8+0715_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780703/ft1_4FGL_J1017.8+0715_daily_bin554.fits outfile=/scratch/kocevski/780703/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin554.fits ra=154.473 dec=7.2638 rad=12.0 tmin=382924801.0 tmax=383184001.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.50
user 4.24
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/780703/ft2_4FGL_J1017.8+0715_daily_bin554.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/780703/ft2_4FGL_J1017.8+0715_daily_bin554.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/780703/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin554.fits evtable="EVENTS" outfile="/scratch/kocevski/780703/ft1_filtered_4FGL_J1017.8+0715_daily_bin554.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780703/ft1_filtered_4FGL_J1017.8+0715_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/780703/ft2_4FGL_J1017.8+0715_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/780703/ltcube_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.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/780703/ft2_4FGL_J1017.8+0715_daily_bin554.fits
.....................!
real 16.69
user 16.23
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780703/ft1_filtered_4FGL_J1017.8+0715_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/780703/ft2_4FGL_J1017.8+0715_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/780703/ltcube_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.fits outfile=/scratch/kocevski/780703/expmap_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.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/780703/ltcube_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.fits
.....................!
real 193.12
user 187.54
sys 4.10

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

Setting source of interest to:
4FGL J1017.8+0715 @ 154.473 7.2638

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/780703/ft1_filtered_4FGL_J1017.8+0715_daily_bin554.fits scfile=/scratch/kocevski/780703/ft2_4FGL_J1017.8+0715_daily_bin554.fits outfile=/scratch/kocevski/780703/cmap_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.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.473 yref=7.2638 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.61
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780703/ft1_filtered_4FGL_J1017.8+0715_daily_bin554.fits scfile=/scratch/kocevski/780703/ft2_4FGL_J1017.8+0715_daily_bin554.fits outfile=/scratch/kocevski/780703/cmap_HighResolution_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.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.473 yref=7.2638 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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/780703/ft1_filtered_4FGL_J1017.8+0715_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/780703/ft2_4FGL_J1017.8+0715_daily_bin554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/780703/Model_4FGL_J1017.8+0715_daily_bin554.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/780703/ft1_filtered_4FGL_J1017.8+0715_daily_bin554.fits.....................!
real 54.55
user 52.73
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/780703/ft1_filtered_4FGL_J1017.8+0715_daily_bin554.fits', '/scratch/kocevski/780703/ft2_4FGL_J1017.8+0715_daily_bin554.fits', expMap='/scratch/kocevski/780703/expmap_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.fits', expCube='/scratch/kocevski/780703/ltcube_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/780703/Model_4FGL_J1017.8+0715_daily_bin554.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1017.8+0715'

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.924e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/780703/ft1_filtered_4FGL_J1017.8+0715_daily_bin554.fits
Spacecraft file(s): /scratch/kocevski/780703/ft2_4FGL_J1017.8+0715_daily_bin554.fits
Exposure map: /scratch/kocevski/780703/expmap_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.fits
Exposure cube: /scratch/kocevski/780703/ltcube_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/780703/Model_4FGL_J1017.8+0715_daily_bin554.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) = 5511.51136771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1659       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2961       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2146       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7049       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    60.594       1.0000         .10000E-03   10000.    
     9 'Prefactor '    99.048       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.946       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2908       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1794       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7094       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .22011       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.839       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .77962       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2866       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=   5511.501     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2195 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1659        1.4932       -.44037E-08   -.20934E-03
   2  norm          1.2962        .76165        .11248E-07   -.18950E-03
   3  Prefactor     4.2123        12.609       -.20050E-05   -.12354E-03
   4  Prefactor     .10000E-03    18.974        .40927E-07** at limit **
   5  Prefactor     .10000E-03    34.430        .66603E-07** at limit **
   6  norm          1.7126        23.497        .11093E-04   -.26529E-03
   7  Prefactor     .10000E-03    3.1545       -.83462E-06** at limit **
   8  Prefactor     60.571        60.643       -.30140E-06    .40646E-04
   9  Prefactor     99.049        58.036       -.19914E-06   -.21914E-04
  10  Prefactor     .10000E-03    21.212       -.15139E-05** at limit **
  11  Prefactor     11.946        12.064       -.23983E-06   -.51100E-04
  12  norm          1.6072        1.2324       -.79704E-07   -.32242E-03
  13  Prefactor     4.2908        7.8758        .24819E-05    .90415E-06
  14  Prefactor     6.1797        3.3518       -.29295E-07   -.19844E-03
  15  Prefactor     2.7094        7.1550        .19006E-06    .82368E-05
  16  Prefactor     .10000E-03    2.7288        .68298E-07** at limit **
  17  norm          .22015        .50208        .23748E-06    .11837E-02
  18  Prefactor     .10000E-03    3.4991        .10860E-07** at limit **
  19  Prefactor     13.839        15.402       -.92527E-08   -.20494E-04
  20  Normalizat    .77958        .21414        .35674E-05    .11042E-03
  21  Prefactor     1.2866        .18500       -.32746E-05   -.30541E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.16592
  norm       = 1.29617
  Prefactor  = 4.21228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71259
  Prefactor  = 0.000100001
  Prefactor  = 60.5711
  Prefactor  = 99.049
  Prefactor  = 0.000100004
  Prefactor  = 11.9463
  norm       = 1.60715
  Prefactor  = 4.29081
  Prefactor  = 6.17972
  Prefactor  = 2.70943
  Prefactor  = 0.0001
  norm       = 0.220153
  Prefactor  = 0.0001
  Prefactor  = 13.8385
  Normalizat = 0.779578
  Prefactor  = 1.28664
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.501     FROM HESSE     STATUS=OK           321 CALLS     2516 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1659        1.4941        .52173E-04   -1.5300    
   2  norm          1.2962        .74886        .47517E-04   -1.5480    
   3  Prefactor     4.2123        12.576        .19629E-03   -1.5297    
   4  Prefactor     .10000E-03    18.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7126        24.557        .16103E-02   -1.5446    
   7  Prefactor     .10000E-03    3.2172        .12997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     60.571        60.808        .51544E-04   -1.4150    
   9  Prefactor     99.049        58.110        .20196E-03   -1.3714    
  10  Prefactor     .10000E-03    21.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.946        12.064        .11590E-03   -1.5017    
  12  norm          1.6072        1.2271        .69504E-04   -1.5454    
  13  Prefactor     4.2908        7.8943        .97246E-03   -1.5294    
  14  Prefactor     6.1797        3.3528        .96293E-04   -1.5211    
  15  Prefactor     2.7094        7.1813        .24745E-03   -1.5379    
  16  Prefactor     .10000E-03    2.7407        .11975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22015        .45574        .77161E-03   -1.5614    
  18  Prefactor     .10000E-03    3.5045        .13553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.839        15.402        .10767E-03   -1.4964    
  20  Normalizat    .77958        .25414        .30721E-03   -1.0083    
  21  Prefactor     1.2866        .21985        .22152E-03   -.83705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21952e-09
Minuit parameter uncertainties:
  1  1.4941
  2  0.748866
  3  12.5836
  4  1.62346e-05
  5  3.71495e-05
  6  12.9762
  7  0.000116964
  8  60.8709
  9  58.1435
  10  0.000554522
  11  12.0666
  12  1.22708
  13  7.89617
  14  3.35289
  15  7.18358
  16  8.65145e-06
  17  0.455745
  18  7.7413e-07
  19  15.4068
  20  0.254524
  21  0.220005
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  6.057e+01  6.087e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.287e+00  2.200e-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:  7.796e-01  2.545e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.48
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 5.14e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.21e-05

TS (Fixed Index): 1.48
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 1.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780703/likelihoodResults_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.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) = 5511.48992589
delta logL = 0.0113994279955

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5511.47741011
delta logL = 0.0239152061322

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.169       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5123       1.0000          .0000       10.000    
     3 'Normalizat'    .78795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2800       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=   5511.477     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      268 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.069        88.591        .23468E-03    .83130E-04
   2  Index         2.5132        .99667        .88135E-02    .81471E-05
   3  Normalizat    .78780        .24447        .30572E-03   -.31868E-04
   4  Prefactor     1.2802        .21854        .22197E-03    .13232E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.0686
  Index      = 2.51318
  Normalizat = 0.787799
  Prefactor  = 1.28017
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.477     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.069        84.406        .93871E-05   -1.3996    
   2  Index         2.5132        .94942        .35254E-03   -.52056    
   3  Normalizat    .78780        .24450        .12229E-04   -1.0052    
   4  Prefactor     1.2802        .21851        .44394E-04   -.83899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90443e-10
Minuit parameter uncertainties:
  1  84.545
  2  0.957166
  3  0.244842
  4  0.218661
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780703': 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) = 5511.47740898
delta logL = 0.0239163310625

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  7.307e+01  8.454e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.513e+00  9.572e-01  0.000e+00  1.000e+01 (-1.000e+00)
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.280e+00  2.187e-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:  7.878e-01  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 154.473 7.264
Photon Index (Free Index): 2.51 +/- 0.96
Photon Flux (Free Index): 4.74e-08 +/- 5.00e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.51e-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/780703/cmap_HighResolution_382924801_383184001_4FGL_J1017.8+0715_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='1.36e-05', photon_flux_error='5.14e-08', dlogl='2.39e-02', energy_flux='1.20e-05', photon_flux2='4.74e-08', job_status='DONE', time_completed='2021-09-01 16:29:51.837632', photon_index_error2='0.96', photon_index2='2.51', ts='1.48', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='1.54e-07', energy_flux_error2='1.51e-05', EG='0.78', time_epoch_completed='1630538991.84', return_code='0', job_id='780703', GAL2='1.28', EG2='0.79', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.00e-08', ts2='1.51', photon_index='2.73' WHERE bin_id='554' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:29:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 780703: <4FGL_J1017.8+0715_daily_bin554> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin554> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 16:15:36 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:17:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:17:11 2021
Terminated at Wed Sep  1 16:29:52 2021
Results reported at Wed Sep  1 16:29:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin554 154.473 7.2638 382924801 383184001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1017.8+0715 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   571.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            856 sec.

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

