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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin930
RA = 154.473, Dec = 7.2638
tmin = 480384001, tmax = 480643201
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='782396', job_status='RUN', time_executed='2021-09-01 16:26:19.520203', time_epoch_executed='1630538779.52' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='930'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782396

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782396/ft1_4FGL_J1017.8+0715_daily_bin930.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782396/ft2_4FGL_J1017.8+0715_daily_bin930.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782396/ft1_4FGL_J1017.8+0715_daily_bin930.fits outfile=/scratch/kocevski/782396/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin930.fits ra=154.473 dec=7.2638 rad=12.0 tmin=480384001.0 tmax=480643201.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 2.89
user 2.67
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/782396/ft2_4FGL_J1017.8+0715_daily_bin930.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/782396/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin930.fits evtable="EVENTS" outfile="/scratch/kocevski/782396/ft1_filtered_4FGL_J1017.8+0715_daily_bin930.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782396/ft1_filtered_4FGL_J1017.8+0715_daily_bin930.fits" evtable="EVENTS" scfile=/scratch/kocevski/782396/ft2_4FGL_J1017.8+0715_daily_bin930.fits sctable="SC_DATA" outfile=/scratch/kocevski/782396/ltcube_480384001_480643201_4FGL_J1017.8+0715_daily_bin930.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/782396/ft2_4FGL_J1017.8+0715_daily_bin930.fits
.....................!
real 12.41
user 12.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782396/ft1_filtered_4FGL_J1017.8+0715_daily_bin930.fits evtable="EVENTS" scfile=/scratch/kocevski/782396/ft2_4FGL_J1017.8+0715_daily_bin930.fits sctable="SC_DATA" expcube=/scratch/kocevski/782396/ltcube_480384001_480643201_4FGL_J1017.8+0715_daily_bin930.fits outfile=/scratch/kocevski/782396/expmap_480384001_480643201_4FGL_J1017.8+0715_daily_bin930.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/782396/ltcube_480384001_480643201_4FGL_J1017.8+0715_daily_bin930.fits
.....................!
real 157.04
user 152.21
sys 4.42

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/782396/ft1_filtered_4FGL_J1017.8+0715_daily_bin930.fits scfile=/scratch/kocevski/782396/ft2_4FGL_J1017.8+0715_daily_bin930.fits outfile=/scratch/kocevski/782396/cmap_480384001_480643201_4FGL_J1017.8+0715_daily_bin930.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.47
user 0.33
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782396/ft1_filtered_4FGL_J1017.8+0715_daily_bin930.fits scfile=/scratch/kocevski/782396/ft2_4FGL_J1017.8+0715_daily_bin930.fits outfile=/scratch/kocevski/782396/cmap_HighResolution_480384001_480643201_4FGL_J1017.8+0715_daily_bin930.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.48
user 0.34
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5412       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.040       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.459       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .60321E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7361       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28763E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9929       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.573       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14756E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5707       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9639       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1105       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0767       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=   5517.553     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     1923 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .75052       -.10989E-06** at limit **
   2  norm          .10000E-03    .22423       -.53408E-07** at limit **
   3  Prefactor     6.5562        14.706       -.61651E-06   -.16173E-03
   4  Prefactor     13.051        23.232        .10234E-07   -.29372E-04
   5  Prefactor     .10000E-03    13.011       -.61000E-07** at limit **
   6  norm          .10000E-03    11.297        .20975E-06** at limit **
   7  Prefactor     .10000E-03    4.0235        .14208E-05** at limit **
   8  Prefactor     .10000E-03    33.255       -.56332E-06** at limit **
   9  Prefactor     .10000E-03    27.743        .92068E-06** at limit **
  10  Prefactor     18.582        40.495        .41043E-05   -.13905E-04
  11  Prefactor     .10000E-03    45.395        .31199E-04** at limit **
  12  norm          2.7368        1.9631        .55259E-07   -.74653E-03
  13  Prefactor     .10361E-03    6.6583        .20575E-05** at limit **
  14  Prefactor     3.9923        3.4311        .67553E-07   -.14765E-03
  15  Prefactor     10.577        9.0705        .13936E-06   -.60257E-04
  16  Prefactor     .10000E-03    10.970       -.19012E-06** at limit **
  17  norm          2.5705        .87537        .11468E-07   -.15580E-03
  18  Prefactor     .10000E-03    7.2541       -.38029E-07** at limit **
  19  Prefactor     2.9667        40.589        .85361E-06   -.26507E-05
  20  Normalizat    1.1105        .21062       -.18249E-05   -.31128E-03
  21  Prefactor     1.0766        .18017        .93470E-06   -.45942E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.55622
  Prefactor  = 13.0511
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.5818
  Prefactor  = 0.000100001
  norm       = 2.73676
  Prefactor  = 0.000103611
  Prefactor  = 3.99233
  Prefactor  = 10.5768
  Prefactor  = 0.0001
  norm       = 2.5705
  Prefactor  = 0.0001
  Prefactor  = 2.96668
  Normalizat = 1.11054
  Prefactor  = 1.07663
 **********
 **   18 **HESSE 
 **********

 FCN=   5517.553     FROM HESSE     STATUS=OK           323 CALLS     2246 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .78356        .12536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .26138        .68349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5562        14.739        .15691E-03   -1.5196    
   4  Prefactor     13.051        23.231        .11092E-03   -1.4985    
   5  Prefactor     .10000E-03    13.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0245        .14544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    33.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     18.582        40.482        .93223E-04   -1.4846    
  11  Prefactor     .10000E-03    45.519        .42122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7368        1.9555        .82971E-04   -1.5377    
  13  Prefactor     .10361E-03    8.0192        .54706E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9923        3.4293        .12196E-03   -1.5308    
  15  Prefactor     10.577        9.1080        .12322E-03   -1.5057    
  16  Prefactor     .10000E-03    11.337        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5705        .87414        .39292E-04   -1.5387    
  18  Prefactor     .10000E-03    7.2970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9667        40.619        .23586E-03   -1.5363    
  20  Normalizat    1.1105        .24940        .26513E-03   -.89414    
  21  Prefactor     1.0766        .21354        .23457E-03   -.90217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74034e-09
Minuit parameter uncertainties:
  1  1.65528e-06
  2  9.72719e-07
  3  14.7468
  4  23.2471
  5  7.94831e-06
  6  6.14664e-06
  7  7.00384e-06
  8  0.000278157
  9  0.000181358
  10  40.5419
  11  0.000503928
  12  1.95552
  13  0.0107638
  14  3.42947
  15  9.10919
  16  9.52951e-07
  17  0.874143
  18  2.05036e-07
  19  21.9726
  20  0.249664
  21  0.213707
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  2.782e-04  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.077e+00  2.137e-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.111e+00  2.497e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782396/likelihoodResults_480384001_480643201_4FGL_J1017.8+0715_daily_bin930.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) = 5517.55341978
delta logL = -0.00014300033672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5517.55327669
delta logL = 8.16598912934e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2245       1.0000          .0000       10.000    
     3 'Normalizat'    1.1105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0766       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=   5517.553     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      286 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6849.2        .18142E-01** at limit **
   2  Index         1.6594        5.7778        .50000       -.43724E-07
   3  Normalizat    1.1105        .56747E-01    .26514E-03   -.33874E-04
   4  Prefactor     1.0766        .49810E-01    .23457E-03   -.64944E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.65942
  Normalizat = 1.11054
  Prefactor  = 1.07664
 **********
 **   18 **HESSE 
 **********

 FCN=   5517.553     FROM HESSE     STATUS=OK            29 CALLS      315 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.455        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6594        6.2683        .50000       -.73167    
   3  Normalizat    1.1105        .23909        .10605E-04   -.89414    
   4  Prefactor     1.0766        .20982        .93828E-05   -.90217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.40529e-11
Minuit parameter uncertainties:
  1  0.000600944
  2  301.757
  3  0.239328
  4  0.209983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782396': 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) = 5517.55327638
delta logL = 3.93060872739e-07

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  6.009e-04  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  1.659e+00  3.018e+02  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.077e+00  2.100e-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.111e+00  2.393e-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/782396/cmap_HighResolution_480384001_480643201_4FGL_J1017.8+0715_daily_bin930.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-01 16:33:57.627967', job_id='782396', GAL2='1.08', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630539237.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='3.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='930' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:33:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 782396: <4FGL_J1017.8+0715_daily_bin930> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin930> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 16:21:03 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:23:54 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:23:54 2021
Terminated at Wed Sep  1 16:33:58 2021
Results reported at Wed Sep  1 16:33:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin930 154.473 7.2638 480384001 480643201 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 :                                   453.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             284.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            775 sec.

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

