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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin563
RA = 154.473, Dec = 7.2638
tmin = 385257601, tmax = 385516801
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='780717', job_status='RUN', time_executed='2021-09-01 16:20:27.606073', time_epoch_executed='1630538427.61' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780717/ft1_4FGL_J1017.8+0715_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780717/ft2_4FGL_J1017.8+0715_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780717/ft1_4FGL_J1017.8+0715_daily_bin563.fits outfile=/scratch/kocevski/780717/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin563.fits ra=154.473 dec=7.2638 rad=12.0 tmin=385257601.0 tmax=385516801.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.55
user 3.34
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/780717/ft2_4FGL_J1017.8+0715_daily_bin563.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/780717/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin563.fits evtable="EVENTS" outfile="/scratch/kocevski/780717/ft1_filtered_4FGL_J1017.8+0715_daily_bin563.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.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780717/ft1_filtered_4FGL_J1017.8+0715_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/780717/ft2_4FGL_J1017.8+0715_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/780717/ltcube_385257601_385516801_4FGL_J1017.8+0715_daily_bin563.fits outfile=/scratch/kocevski/780717/expmap_385257601_385516801_4FGL_J1017.8+0715_daily_bin563.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/780717/ltcube_385257601_385516801_4FGL_J1017.8+0715_daily_bin563.fits
.....................!
real 195.01
user 189.78
sys 4.61

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/780717/ft1_filtered_4FGL_J1017.8+0715_daily_bin563.fits scfile=/scratch/kocevski/780717/ft2_4FGL_J1017.8+0715_daily_bin563.fits outfile=/scratch/kocevski/780717/cmap_385257601_385516801_4FGL_J1017.8+0715_daily_bin563.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.56
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780717/ft1_filtered_4FGL_J1017.8+0715_daily_bin563.fits scfile=/scratch/kocevski/780717/ft2_4FGL_J1017.8+0715_daily_bin563.fits outfile=/scratch/kocevski/780717/cmap_HighResolution_385257601_385516801_4FGL_J1017.8+0715_daily_bin563.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9716       1.0000         .10000E-03   10000.    
     2 'norm      '    3.6896       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.479       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.136       1.0000         .10000E-03   10000.    
     6 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13352E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.022       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11907E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.310       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9996       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7276       1.0000         .10000E-03   10000.    
    17 'norm      '    .81763       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.661       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .54197       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0797       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=   6280.089     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2192 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9717        1.5536        .33484E-07   -.91470E-05
   2  norm          3.6896        .78400        .11287E-07   -.28105E-04
   3  Prefactor     23.475        13.878       -.12908E-06    .13791E-04
   4  Prefactor     .10000E-03    12.725       -.15388E-06** at limit **
   5  Prefactor     15.133        22.763        .37750E-06   -.12045E-05
   6  norm          .10000E-03    6.6042       -.15385E-06** at limit **
   7  Prefactor     .10000E-03    6.0422       -.57208E-06** at limit **
   8  Prefactor     .10000E-03    41.099       -.10331E-05** at limit **
   9  Prefactor     .10000E-03    20.612        .32078E-06** at limit **
  10  Prefactor     55.999        43.685        .24430E-05    .75868E-05
  11  Prefactor     .10000E-03    8.9179       -.49948E-06** at limit **
  12  norm          .10000E-03    .60099        .35041E-07** at limit **
  13  Prefactor     .10000E-03    1.7422        .20645E-07** at limit **
  14  Prefactor     13.310        4.4435       -.16624E-06   -.72389E-05
  15  Prefactor     9.0001        7.5894        .85508E-07   -.47885E-05
  16  Prefactor     4.7300        8.5118        .17942E-05   -.41754E-04
  17  norm          .81762        .45910       -.17441E-07   -.69180E-04
  18  Prefactor     .10000E-03    2.8787        .56049E-07** at limit **
  19  Prefactor     16.635        23.125        .19817E-05   -.10867E-04
  20  Normalizat    .54183        .18481       -.50064E-06    .32401E-05
  21  Prefactor     1.0798        .15188       -.29552E-06   -.33746E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.9717
  norm       = 3.68959
  Prefactor  = 23.4747
  Prefactor  = 0.0001
  Prefactor  = 15.133
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.9987
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3096
  Prefactor  = 9.00015
  Prefactor  = 4.72998
  norm       = 0.817625
  Prefactor  = 0.0001
  Prefactor  = 16.6354
  Normalizat = 0.541833
  Prefactor  = 1.07979
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.089     FROM HESSE     STATUS=OK           319 CALLS     2511 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9717        1.5545        .58236E-04   -1.5309    
   2  norm          3.6896        .78414        .30997E-04   -1.5324    
   3  Prefactor     23.475        13.873        .82667E-04   -1.4739    
   4  Prefactor     .10000E-03    12.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.133        22.758        .10295E-03   -1.4930    
   6  norm          .10000E-03    6.6143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.1157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    41.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     55.999        43.836        .53594E-04   -1.4210    
  11  Prefactor     .10000E-03    8.9650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4378        .11868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7519        .10213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.310        4.4459        .87535E-04   -1.4978    
  15  Prefactor     9.0001        7.5945        .13360E-03   -1.5108    
  16  Prefactor     4.7300        8.5334        .92531E-03   -1.5273    
  17  norm          .81762        .45626        .38739E-04   -1.5527    
  18  Prefactor     .10000E-03    2.8850        .13127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.635        23.037        .98124E-04   -1.4892    
  20  Normalizat    .54183        .20732        .32601E-03   -1.1051    
  21  Prefactor     1.0798        .17159        .20643E-03   -.90115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92429e-11
Minuit parameter uncertainties:
  1  1.55455
  2  0.784142
  3  13.8749
  4  2.11532e-06
  5  22.7709
  6  7.43633e-06
  7  4.75118e-05
  8  8.52563e-05
  9  2.0381e-06
  10  43.861
  11  5.6723e-05
  12  1.07175e-06
  13  8.02315e-07
  14  4.44606
  15  7.59528
  16  8.53556
  17  0.456258
  18  1.65986e-06
  19  23.0492
  20  0.207617
  21  0.171676
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  8.526e-05  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.080e+00  1.717e-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:  5.418e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 8.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780717/likelihoodResults_385257601_385516801_4FGL_J1017.8+0715_daily_bin563.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): 102
logL (Free Index) = 6280.08874499
delta logL = -0.000115366759928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6280.08862971
delta logL = -8.8696651801e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6648       1.0000          .0000       10.000    
     3 'Normalizat'    .54184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0798       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=   6280.089     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6769.5        .90712E-02** at limit **
   2  Index         2.6873        8.5612        .50000       -.55508E-05
   3  Normalizat    .54183        .49901E-01    .73632E-01    .47667E-04
   4  Prefactor     1.0798        .43680E-01    .38410E-01    .13530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.68726
  Normalizat = 0.541833
  Prefactor  = 1.07979
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.089     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    115.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6873        5.8523        .50000       -.48087    
   3  Normalizat    .54183        .19316        .32600E-03   -1.1051    
   4  Prefactor     1.0798        .16985        .20643E-03   -.90115    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56468e-11
Minuit parameter uncertainties:
  1  0.000448741
  2  7.65856
  3  0.193396
  4  0.169933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780717': 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) = 6280.08862968
delta logL = -5.8712430473e-08

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  4.487e-04  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.687e+00  7.659e+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:  1.080e+00  1.699e-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:  5.418e-01  1.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.473 7.264

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/780717/cmap_HighResolution_385257601_385516801_4FGL_J1017.8+0715_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-03', job_status='DONE', photon_flux_upper_limit='8.71e-08', time_completed='2021-09-01 16:30:28.046978', job_id='780717', GAL2='1.08', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1630539028.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-5.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='563' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:30:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 780717: <4FGL_J1017.8+0715_daily_bin563> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin563 154.473 7.2638 385257601 385516801 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 :                                   596.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            892 sec.

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

