/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 70 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 = 7404
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1017.8+0715_daily_bin633
RA = 154.473, Dec = 7.2638
tmin = 403401601, tmax = 403660801
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='780820', job_status='RUN', time_executed='2021-09-01 16:19:30.886119', time_epoch_executed='1630538370.89' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='633'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780820

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780820/ft1_4FGL_J1017.8+0715_daily_bin633.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780820/ft2_4FGL_J1017.8+0715_daily_bin633.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780820/ft1_4FGL_J1017.8+0715_daily_bin633.fits outfile=/scratch/kocevski/780820/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin633.fits ra=154.473 dec=7.2638 rad=12.0 tmin=403401601.0 tmax=403660801.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.09
user 3.79
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780820/ft1_filtered_4FGL_J1017.8+0715_daily_bin633.fits" evtable="EVENTS" scfile=/scratch/kocevski/780820/ft2_4FGL_J1017.8+0715_daily_bin633.fits sctable="SC_DATA" outfile=/scratch/kocevski/780820/ltcube_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.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/780820/ft2_4FGL_J1017.8+0715_daily_bin633.fits
.....................!
real 16.21
user 15.80
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780820/ft1_filtered_4FGL_J1017.8+0715_daily_bin633.fits evtable="EVENTS" scfile=/scratch/kocevski/780820/ft2_4FGL_J1017.8+0715_daily_bin633.fits sctable="SC_DATA" expcube=/scratch/kocevski/780820/ltcube_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.fits outfile=/scratch/kocevski/780820/expmap_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.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/780820/ltcube_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.fits
.....................!
real 194.01
user 189.33
sys 4.06

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/780820/ft1_filtered_4FGL_J1017.8+0715_daily_bin633.fits scfile=/scratch/kocevski/780820/ft2_4FGL_J1017.8+0715_daily_bin633.fits outfile=/scratch/kocevski/780820/cmap_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780820/ft1_filtered_4FGL_J1017.8+0715_daily_bin633.fits scfile=/scratch/kocevski/780820/ft2_4FGL_J1017.8+0715_daily_bin633.fits outfile=/scratch/kocevski/780820/cmap_HighResolution_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.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.58
user 0.42
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/780820/ft1_filtered_4FGL_J1017.8+0715_daily_bin633.fits', '/scratch/kocevski/780820/ft2_4FGL_J1017.8+0715_daily_bin633.fits', expMap='/scratch/kocevski/780820/expmap_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.fits', expCube='/scratch/kocevski/780820/ltcube_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/780820/Model_4FGL_J1017.8+0715_daily_bin633.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/780820/ft1_filtered_4FGL_J1017.8+0715_daily_bin633.fits
Spacecraft file(s): /scratch/kocevski/780820/ft2_4FGL_J1017.8+0715_daily_bin633.fits
Exposure map: /scratch/kocevski/780820/expmap_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.fits
Exposure cube: /scratch/kocevski/780820/ltcube_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/780820/Model_4FGL_J1017.8+0715_daily_bin633.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) = 7345.81840288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7392       1.0000         .10000E-03   10000.    
     2 'norm      '    .52031       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.208       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.355       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .30819E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.501       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.383       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.024       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.770       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1648       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.837       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.628       1.0000         .10000E-03   10000.    
    17 'norm      '    .21081       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .94817       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95493       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=   7345.811     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2271 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7392        1.6047       -.11769E-06   -.49917E-04
   2  norm          .52027        .53069       -.23508E-06   -.19639E-02
   3  Prefactor     19.178        14.169        .10059E-05   -.10428E-02
   4  Prefactor     27.349        33.279       -.21260E-05    .71037E-05
   5  Prefactor     .10000E-03    9.9441       -.18414E-08** at limit **
   6  norm          .10101E-03    10.431        .41977E-05** at limit **
   7  Prefactor     11.497        10.011       -.41731E-07   -.48027E-03
   8  Prefactor     28.303        50.034       -.36703E-04   -.20248E-03
   9  Prefactor     14.932        40.090       -.98555E-05    .17649E-06
  10  Prefactor     .10000E-03    61.552       -.44657E-06** at limit **
  11  Prefactor     27.765        20.113        .34717E-05   -.25761E-03
  12  norm          5.7641        1.7197       -.35354E-07   -.51390E-04
  13  Prefactor     2.1272        5.0691       -.16773E-05   -.90753E-03
  14  Prefactor     6.1650        3.5367        .89095E-07   -.16596E-03
  15  Prefactor     18.837        10.343       -.19990E-05    .37146E-05
  16  Prefactor     14.628        8.3443       -.87911E-06   -.63616E-06
  17  norm          .21074        .37988       -.18308E-06   -.31452E-02
  18  Prefactor     .10000E-03    3.8018        .84336E-08** at limit **
  19  Prefactor     .10000E-03    4.4190       -.41213E-08** at limit **
  20  Normalizat    .94818        .19027        .48379E-05   -.35845E-03
  21  Prefactor     .95493        .15154       -.30472E-06   -.73585E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.73922
  norm       = 0.520272
  Prefactor  = 19.1778
  Prefactor  = 27.349
  Prefactor  = 0.0001
  norm       = 0.000101006
  Prefactor  = 11.4973
  Prefactor  = 28.3031
  Prefactor  = 14.9316
  Prefactor  = 0.0001
  Prefactor  = 27.7649
  norm       = 5.76406
  Prefactor  = 2.12723
  Prefactor  = 6.16503
  Prefactor  = 18.8372
  Prefactor  = 14.6279
  norm       = 0.210738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.948176
  Prefactor  = 0.954926
 **********
 **   18 **HESSE 
 **********

 FCN=   7345.811     FROM HESSE     STATUS=OK           333 CALLS     2604 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7392        1.6078        .54622E-04   -1.5229    
   2  norm          .52027        .50894        .59729E-03   -1.5564    
   3  Prefactor     19.178        14.409        .91387E-04   -1.4832    
   4  Prefactor     27.349        33.273        .76597E-04   -1.4662    
   5  Prefactor     .10000E-03    9.9463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10101E-03    20.032        .86168E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.497        10.009        .11813E-03   -1.5030    
   8  Prefactor     28.303        50.192        .75199E-04   -1.4643    
   9  Prefactor     14.932        40.080        .10333E-03   -1.4935    
  10  Prefactor     .10000E-03    61.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.765        20.026        .76023E-04   -1.4654    
  12  norm          5.7641        1.7177        .58263E-04   -1.5228    
  13  Prefactor     2.1272        5.1044        .28267E-03   -1.5416    
  14  Prefactor     6.1650        3.5386        .11383E-03   -1.5211    
  15  Prefactor     18.837        10.393        .92283E-04   -1.4840    
  16  Prefactor     14.628        8.3095        .10472E-03   -1.4943    
  17  norm          .21074        .31142        .68678E-03   -1.5616    
  18  Prefactor     .10000E-03    3.8299        .16300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.4194        .17596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .94818        .22313        .28879E-03   -.94787    
  21  Prefactor     .95493        .17815        .24350E-03   -.94247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90196e-09
Minuit parameter uncertainties:
  1  1.60784
  2  0.508943
  3  14.4119
  4  33.2954
  5  2.51448e-07
  6  0.00897968
  7  10.0101
  8  50.2666
  9  40.1522
  10  0.000165045
  11  20.0305
  12  1.71772
  13  5.10547
  14  3.53867
  15  10.3938
  16  8.31011
  17  0.311421
  18  2.46593e-06
  19  2.9777e-07
  20  0.223344
  21  0.178255
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.830e+01  5.027e+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:  9.549e-01  1.783e-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.482e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780820/likelihoodResults_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.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) = 7345.81046647
delta logL = 6.23970991001e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7345.81043163
delta logL = 9.723382027e-05

Fit tolerance = 1e-08

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

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

 FCN=   7345.810     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      226 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.934        1924.9        .18950E-02   -.15422E-03
   2  Index         2.7510        5.6778        .24482       -.44548E-04
   3  Normalizat    .94784        .58519E-01    .65300E-01   -.89152E-04
   4  Prefactor     .95515        .47721E-01    .45705E-01    .13997E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.9342
  Index      = 2.75104
  Normalizat = 0.947842
  Prefactor  = 0.95515
 **********
 **   18 **HESSE 
 **********

 FCN=   7345.810     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.934        58.196        .75800E-04   -1.4650    
   2  Index         2.7510        1.3816        .14896E-01   -.46653    
   3  Normalizat    .94784        .21101        .28883E-03   -.94799    
   4  Prefactor     .95515        .17729        .24348E-03   -.94240    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90427e-10
Minuit parameter uncertainties:
  1  58.315
  2  1.40464
  3  0.21119
  4  0.177396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780820': 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) = 7345.810431
delta logL = 9.78649422905e-05

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.793e+01  5.831e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.751e+00  1.405e+00  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:  9.551e-01  1.774e-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.478e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
Ra Dec: 154.473 7.264

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 /scratch/kocevski/780820/cmap_HighResolution_403401601_403660801_4FGL_J1017.8+0715_daily_bin633.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.41e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-01 16:30:34.846963', job_id='780820', GAL2='0.96', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630539034.85', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='9.79e-05', ts2='0.45', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='633' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:30:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 780820: <4FGL_J1017.8+0715_daily_bin633> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin633> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 16:15:45 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:17:52 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:52 2021
Terminated at Wed Sep  1 16:30:35 2021
Results reported at Wed Sep  1 16:30:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin633 154.473 7.2638 403401601 403660801 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 :                                   662.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            890 sec.

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

