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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin536
RA = 154.473, Dec = 7.2638
tmin = 378259201, tmax = 378518401
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='780677', job_status='RUN', time_executed='2021-09-01 16:21:03.746549', time_epoch_executed='1630538463.75' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='536'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780677

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780677/ft1_4FGL_J1017.8+0715_daily_bin536.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780677/ft2_4FGL_J1017.8+0715_daily_bin536.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780677/ft1_4FGL_J1017.8+0715_daily_bin536.fits outfile=/scratch/kocevski/780677/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin536.fits ra=154.473 dec=7.2638 rad=12.0 tmin=378259201.0 tmax=378518401.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.55
user 4.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780677/ft1_filtered_4FGL_J1017.8+0715_daily_bin536.fits" evtable="EVENTS" scfile=/scratch/kocevski/780677/ft2_4FGL_J1017.8+0715_daily_bin536.fits sctable="SC_DATA" outfile=/scratch/kocevski/780677/ltcube_378259201_378518401_4FGL_J1017.8+0715_daily_bin536.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/780677/ft2_4FGL_J1017.8+0715_daily_bin536.fits
.....................!
real 14.50
user 14.00
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780677/ft1_filtered_4FGL_J1017.8+0715_daily_bin536.fits evtable="EVENTS" scfile=/scratch/kocevski/780677/ft2_4FGL_J1017.8+0715_daily_bin536.fits sctable="SC_DATA" expcube=/scratch/kocevski/780677/ltcube_378259201_378518401_4FGL_J1017.8+0715_daily_bin536.fits outfile=/scratch/kocevski/780677/expmap_378259201_378518401_4FGL_J1017.8+0715_daily_bin536.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/780677/ltcube_378259201_378518401_4FGL_J1017.8+0715_daily_bin536.fits
.....................!
real 192.90
user 186.16
sys 4.28

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/780677/ft1_filtered_4FGL_J1017.8+0715_daily_bin536.fits scfile=/scratch/kocevski/780677/ft2_4FGL_J1017.8+0715_daily_bin536.fits outfile=/scratch/kocevski/780677/cmap_378259201_378518401_4FGL_J1017.8+0715_daily_bin536.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780677/ft1_filtered_4FGL_J1017.8+0715_daily_bin536.fits scfile=/scratch/kocevski/780677/ft2_4FGL_J1017.8+0715_daily_bin536.fits outfile=/scratch/kocevski/780677/cmap_HighResolution_378259201_378518401_4FGL_J1017.8+0715_daily_bin536.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2789       1.0000         .10000E-03   10000.    
     2 'norm      '    8.3508       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.7766       1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.761       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.290       1.0000         .10000E-03   10000.    
     6 'norm      '    7.0822       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.831       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.697       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .80317       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.146       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20446E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4985       1.0000         .10000E-03   10000.    
    17 'norm      '    .44687       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7341       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.785       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .64648       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1179       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=   5413.878     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2206 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2787        1.4078        .19475E-06   -.48601E-04
   2  norm          8.3506        1.3369        .12549E-07   -.12515E-03
   3  Prefactor     7.7759        14.375        .33720E-06   -.11098E-04
   4  Prefactor     55.775        48.152        .23437E-05    .11068E-03
   5  Prefactor     15.279        37.773       -.24833E-05   -.62849E-04
   6  norm          7.0832        16.780        .24288E-06   -.39884E-05
   7  Prefactor     .10000E-03    5.9311        .66073E-06** at limit **
   8  Prefactor     15.760        74.484       -.19416E-04   -.13042E-03
   9  Prefactor     .10000E-03    47.372        .39021E-06** at limit **
  10  Prefactor     24.761        61.022        .14025E-04    .16404E-03
  11  Prefactor     .10000E-03    12.169        .14707E-05** at limit **
  12  norm          .80307        .89579        .43819E-07   -.16441E-03
  13  Prefactor     .10000E-03    1.9330        .61340E-07** at limit **
  14  Prefactor     10.146        4.0348       -.44188E-06   -.12666E-03
  15  Prefactor     .10000E-03    4.9345        .35369E-06** at limit **
  16  Prefactor     4.4977        8.1539        .76073E-05   -.64051E-03
  17  norm          .44687        .68777       -.14996E-06   -.15295E-02
  18  Prefactor     6.7340        10.171       -.96374E-06   -.12493E-03
  19  Prefactor     12.787        13.854       -.40906E-06   -.22282E-04
  20  Normalizat    .64672        .20572        .21937E-05   -.18150E-03
  21  Prefactor     1.1178        .17446       -.28767E-05    .69839E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2787
  norm       = 8.3506
  Prefactor  = 7.77591
  Prefactor  = 55.7747
  Prefactor  = 15.2794
  norm       = 7.08321
  Prefactor  = 0.0001
  Prefactor  = 15.7601
  Prefactor  = 0.0001
  Prefactor  = 24.7611
  Prefactor  = 0.0001
  norm       = 0.803071
  Prefactor  = 0.0001
  Prefactor  = 10.1455
  Prefactor  = 0.0001
  Prefactor  = 4.49769
  norm       = 0.446865
  Prefactor  = 6.73402
  Prefactor  = 12.7865
  Normalizat = 0.646717
  Prefactor  = 1.11777
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.878     FROM HESSE     STATUS=OK           321 CALLS     2527 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2787        1.3822        .85884E-04   -1.5482    
   2  norm          8.3506        1.3367        .32498E-04   -1.5130    
   3  Prefactor     7.7759        14.319        .14379E-03   -1.5150    
   4  Prefactor     55.775        48.215        .53719E-04   -1.4213    
   5  Prefactor     15.279        37.849        .10243E-03   -1.4926    
   6  norm          7.0832        16.701        .15074E-03   -1.5176    
   7  Prefactor     .10000E-03    5.9324        .17467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.760        81.752        .10066E-03   -1.4914    
   9  Prefactor     .10000E-03    47.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.761        63.450        .80605E-04   -1.4712    
  11  Prefactor     .10000E-03    12.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .80307        .87401        .71211E-04   -1.5529    
  13  Prefactor     .10000E-03    1.9369        .99894E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.146        4.0378        .87701E-04   -1.5071    
  15  Prefactor     .10000E-03    13.441        .31176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.4977        8.4464        .94914E-03   -1.5284    
  17  norm          .44687        .66750        .60846E-03   -1.5574    
  18  Prefactor     6.7340        10.475        .15462E-03   -1.5189    
  19  Prefactor     12.787        13.853        .11203E-03   -1.4993    
  20  Normalizat    .64672        .23004        .31234E-03   -1.0604    
  21  Prefactor     1.1178        .19791        .21842E-03   -.88901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.494e-09
Minuit parameter uncertainties:
  1  1.38225
  2  1.33669
  3  14.3255
  4  48.249
  5  37.9089
  6  16.7119
  7  3.72185e-05
  8  71.9444
  9  4.55624e-05
  10  63.6238
  11  0.000110965
  12  0.874021
  13  1.33962e-06
  14  4.03788
  15  0.000158423
  16  8.44859
  17  0.667507
  18  10.4774
  19  13.8568
  20  0.230382
  21  0.198035
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.576e+01  7.194e+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.118e+00  1.980e-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:  6.467e-01  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/780677/likelihoodResults_378259201_378518401_4FGL_J1017.8+0715_daily_bin536.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) = 5413.30841926
delta logL = 0.569623084325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5413.28043903
delta logL = 0.597603318085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7858       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9396       1.0000          .0000       10.000    
     3 'Normalizat'    .58510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1544       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=   5413.280     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      316 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7796        68.300        .60947E-02    .43988E-03
   2  Index         4.9411        7.1168        .14258        .11323E-03
   3  Normalizat    .58532        .58411E-01    .73834E-01    .27035E-04
   4  Prefactor     1.1541        .52495E-01    .35811E-01   -.19094E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77958
  Index      = 4.9411
  Normalizat = 0.585324
  Prefactor  = 1.1541
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.280     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      349 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7796        131.86        .11394E-03   -1.5375    
   2  Index         4.9411        7.4482        .70226E-02   -.11780E-01
   3  Normalizat    .58532        .19333        .32689E-03   -1.0861    
   4  Prefactor     1.1541        .17096        .21530E-03   -.87756    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.94213e-07
Minuit parameter uncertainties:
  1  38.3778
  2  8.46355
  3  0.193553
  4  0.17104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780677': 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): 102
logL (Free Index) = 5413.28043771
delta logL = 0.597604640701

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.780e+00  3.838e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  4.941e+00  8.464e+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.154e+00  1.710e-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.853e-01  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.38
Ra Dec: 154.473 7.264
Photon Index (Free Index): 4.94 +/- 8.46
Photon Flux (Free Index): 5.84e-08 +/- 6.26e-08
Energy Flux (Free Index): 7.80e-06 +/- 1.20e-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/780677/cmap_HighResolution_378259201_378518401_4FGL_J1017.8+0715_daily_bin536.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.60e-03', comment='SUCCESS', energy_flux2='7.80e-06', dlogl='5.98e-01', photon_flux2='5.84e-08', job_status='DONE', time_completed='2021-09-01 16:30:36.652268', photon_index_error2='8.46', photon_index2='4.94', ts='0.08', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='1.20e-05', EG='0.65', time_epoch_completed='1630539036.65', return_code='0', job_id='780677', GAL2='1.15', EG2='0.59', return_code2='102', photon_flux_error2='6.26e-08', ts2='1.38', photon_index='2.73' WHERE bin_id='536' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:30:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 780677: <4FGL_J1017.8+0715_daily_bin536> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin536 154.473 7.2638 378259201 378518401 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 :                                   567.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             222.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            903 sec.

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

