/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 142 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 = 7412
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1017.8+0715_daily_bin297
RA = 154.473, Dec = 7.2638
tmin = 316310401, tmax = 316569601
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='779304', job_status='RUN', time_executed='2021-09-01 16:17:30.089221', time_epoch_executed='1630538250.09' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779304

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779304/ft1_4FGL_J1017.8+0715_daily_bin297.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779304/ft2_4FGL_J1017.8+0715_daily_bin297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779304/ft1_4FGL_J1017.8+0715_daily_bin297.fits outfile=/scratch/kocevski/779304/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin297.fits ra=154.473 dec=7.2638 rad=12.0 tmin=316310401.0 tmax=316569601.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.30
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779304/ft1_filtered_4FGL_J1017.8+0715_daily_bin297.fits evtable="EVENTS" scfile=/scratch/kocevski/779304/ft2_4FGL_J1017.8+0715_daily_bin297.fits sctable="SC_DATA" expcube=/scratch/kocevski/779304/ltcube_316310401_316569601_4FGL_J1017.8+0715_daily_bin297.fits outfile=/scratch/kocevski/779304/expmap_316310401_316569601_4FGL_J1017.8+0715_daily_bin297.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/779304/ltcube_316310401_316569601_4FGL_J1017.8+0715_daily_bin297.fits
.....................!
real 193.68
user 186.83
sys 5.19

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/779304/ft1_filtered_4FGL_J1017.8+0715_daily_bin297.fits scfile=/scratch/kocevski/779304/ft2_4FGL_J1017.8+0715_daily_bin297.fits outfile=/scratch/kocevski/779304/cmap_316310401_316569601_4FGL_J1017.8+0715_daily_bin297.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779304/ft1_filtered_4FGL_J1017.8+0715_daily_bin297.fits scfile=/scratch/kocevski/779304/ft2_4FGL_J1017.8+0715_daily_bin297.fits outfile=/scratch/kocevski/779304/cmap_HighResolution_316310401_316569601_4FGL_J1017.8+0715_daily_bin297.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.473 yref=7.2638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5242       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8201       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .60139E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3457       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1514       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1071       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4315       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.325       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1375       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93216       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=   6618.013     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     1899 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5244        1.0364       -.37167E-07   -.15070E-03
   2  norm          1.8199        .73562        .17587E-07    .13458E-02
   3  Prefactor     .10000E-03    6.9046       -.63439E-06** at limit **
   4  Prefactor     .10003E-03    135.20       -.13545E-03** at limit **
   5  Prefactor     .10000E-03    36.099        .85477E-05** at limit **
   6  norm          .10000E-03    4.2867       -.12988E-05** at limit **
   7  Prefactor     .10000E-03    4.4854        .12839E-05** at limit **
   8  Prefactor     .10000E-03    20.161       -.16924E-04** at limit **
   9  Prefactor     .10000E-03    38.544       -.41776E-05** at limit **
  10  Prefactor     .10000E-03    26.731        .16352E-04** at limit **
  11  Prefactor     9.3436        9.5376       -.14698E-06   -.29748E-04
  12  norm          .10000E-03    .50254        .27043E-07** at limit **
  13  Prefactor     2.1491        3.6779       -.30805E-06   -.10535E-03
  14  Prefactor     3.1076        2.7642       -.18358E-06   -.28279E-03
  15  Prefactor     .10000E-03    3.7412        .17794E-06** at limit **
  16  Prefactor     .10000E-03    2.0651       -.17277E-07** at limit **
  17  norm          1.4314        .58631       -.43794E-07   -.12645E-02
  18  Prefactor     .10000E-03    13.108        .40503E-05** at limit **
  19  Prefactor     31.329        24.857        .30637E-05   -.10294E-04
  20  Normalizat    1.1375        .17566        .47921E-06    .71710E-03
  21  Prefactor     .93210        .14757       -.18711E-08    .65319E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52436
  norm       = 1.81986
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.34359
  norm       = 0.0001
  Prefactor  = 2.14909
  Prefactor  = 3.10758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43144
  Prefactor  = 0.0001
  Prefactor  = 31.3291
  Normalizat = 1.13747
  Prefactor  = 0.932102
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.013     FROM HESSE     STATUS=OK           311 CALLS     2210 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5244        1.0370        .65855E-04   -1.5461    
   2  norm          1.8199        .73306        .41989E-04   -1.5438    
   3  Prefactor     .10000E-03    6.9355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    135.31        .42126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.2895        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5141        .16820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.3436        9.5376        .13109E-03   -1.5097    
  12  norm          .10000E-03    .52592        .11247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1491        3.6562        .19727E-03   -1.5415    
  14  Prefactor     3.1076        2.7617        .12211E-03   -1.5355    
  15  Prefactor     .10000E-03    3.7797        .15364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0726        .11414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4314        .58083        .38479E-04   -1.5469    
  18  Prefactor     .10000E-03    13.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.329        24.858        .71590E-04   -1.4588    
  20  Normalizat    1.1375        .20630        .25193E-03   -.88558    
  21  Prefactor     .93210        .17323        .23484E-03   -.95028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02405e-09
Minuit parameter uncertainties:
  1  1.03703
  2  0.733062
  3  4.97983e-07
  4  0.00432382
  5  0.000192406
  6  3.43454e-07
  7  1.50007e-06
  8  2.67734e-07
  9  5.36506e-06
  10  3.19074e-06
  11  9.53918
  12  2.90132e-06
  13  3.6566
  14  2.76184
  15  4.07673e-06
  16  2.87047e-06
  17  0.580834
  18  6.41485e-05
  19  24.8667
  20  0.20645
  21  0.173328
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  2.677e-07  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.321e-01  1.733e-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.137e+00  2.064e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779304/likelihoodResults_316310401_316569601_4FGL_J1017.8+0715_daily_bin297.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) = 6618.0134447
delta logL = -0.000235692628848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6618.01321093
delta logL = -1.92147126654e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3570       1.0000          .0000       10.000    
     3 'Normalizat'    1.1375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93210       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=   6618.013     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      289 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    78.334        .18142E-01** at limit **
   2  Index         2.2960        8.1446        .50000        .15123E-06
   3  Normalizat    1.1375        .82226E-02    .25193E-03    .16382E-02
   4  Prefactor     .93211        .70516E-02    .23484E-03    .17655E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100023
  Index      = 2.296
  Normalizat = 1.13747
  Prefactor  = 0.932105
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.013     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      318 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    406.04        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2960        8.8361        .50000       -.57139    
   3  Normalizat    1.1375        .19087E-01    .50387E-04   -.88558    
   4  Prefactor     .93211        .16369E-01    .46968E-04   -.95028    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.03009e-09
Minuit parameter uncertainties:
  1  0.00614749
  2  1180.62
  3  0.019087
  4  0.0163688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779304': 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) = 6618.01320866
delta logL = 3.39548932971e-07

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  6.147e-03  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.296e+00  1.181e+03  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.321e-01  1.637e-02  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.137e+00  1.909e-02  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/779304/cmap_HighResolution_316310401_316569601_4FGL_J1017.8+0715_daily_bin297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-01 16:27:26.431025', job_id='779304', GAL2='0.93', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630538846.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='3.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='297' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:27:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 779304: <4FGL_J1017.8+0715_daily_bin297> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin297> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 16:11:04 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:14:56 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:14:56 2021
Terminated at Wed Sep  1 16:27:27 2021
Results reported at Wed Sep  1 16:27:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin297 154.473 7.2638 316310401 316569601 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 :                                   591.42 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            983 sec.

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

