/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin406
RA = 154.473, Dec = 7.2638
tmin = 344563201, tmax = 344822401
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='780490', job_status='RUN', time_executed='2021-09-01 16:16:51.870257', time_epoch_executed='1630538211.87' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780490/ft1_4FGL_J1017.8+0715_daily_bin406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780490/ft2_4FGL_J1017.8+0715_daily_bin406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780490/ft1_4FGL_J1017.8+0715_daily_bin406.fits outfile=/scratch/kocevski/780490/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin406.fits ra=154.473 dec=7.2638 rad=12.0 tmin=344563201.0 tmax=344822401.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.39
user 3.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/780490/ft2_4FGL_J1017.8+0715_daily_bin406.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/780490/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin406.fits evtable="EVENTS" outfile="/scratch/kocevski/780490/ft1_filtered_4FGL_J1017.8+0715_daily_bin406.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.50
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780490/ft1_filtered_4FGL_J1017.8+0715_daily_bin406.fits" evtable="EVENTS" scfile=/scratch/kocevski/780490/ft2_4FGL_J1017.8+0715_daily_bin406.fits sctable="SC_DATA" outfile=/scratch/kocevski/780490/ltcube_344563201_344822401_4FGL_J1017.8+0715_daily_bin406.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/780490/ft2_4FGL_J1017.8+0715_daily_bin406.fits
.....................!
real 16.06
user 15.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780490/ft1_filtered_4FGL_J1017.8+0715_daily_bin406.fits evtable="EVENTS" scfile=/scratch/kocevski/780490/ft2_4FGL_J1017.8+0715_daily_bin406.fits sctable="SC_DATA" expcube=/scratch/kocevski/780490/ltcube_344563201_344822401_4FGL_J1017.8+0715_daily_bin406.fits outfile=/scratch/kocevski/780490/expmap_344563201_344822401_4FGL_J1017.8+0715_daily_bin406.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/780490/ltcube_344563201_344822401_4FGL_J1017.8+0715_daily_bin406.fits
.....................!
real 191.63
user 186.68
sys 4.54

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/780490/ft1_filtered_4FGL_J1017.8+0715_daily_bin406.fits scfile=/scratch/kocevski/780490/ft2_4FGL_J1017.8+0715_daily_bin406.fits outfile=/scratch/kocevski/780490/cmap_344563201_344822401_4FGL_J1017.8+0715_daily_bin406.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780490/ft1_filtered_4FGL_J1017.8+0715_daily_bin406.fits scfile=/scratch/kocevski/780490/ft2_4FGL_J1017.8+0715_daily_bin406.fits outfile=/scratch/kocevski/780490/cmap_HighResolution_344563201_344822401_4FGL_J1017.8+0715_daily_bin406.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/780490/ft1_filtered_4FGL_J1017.8+0715_daily_bin406.fits evtable="EVENTS" scfile=/scratch/kocevski/780490/ft2_4FGL_J1017.8+0715_daily_bin406.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/780490/Model_4FGL_J1017.8+0715_daily_bin406.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/780490/ft1_filtered_4FGL_J1017.8+0715_daily_bin406.fits.....................!
real 72.63
user 71.17
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0710       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.411       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.804       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.650       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .72803       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35726E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.6367       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.1539       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.338       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9407       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4759       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .67384       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2560       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=   7592.962     FROM MIGRAD    STATUS=CONVERGED    458 CALLS     1952 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .39104        .19116E-06** at limit **
   2  norm          2.0710        .62804        .12106E-07   -.34100E-03
   3  Prefactor     17.410        11.733       -.58377E-07   -.35611E-04
   4  Prefactor     .10000E-03    13.231        .42245E-06** at limit **
   5  Prefactor     13.814        30.027        .18270E-06   -.12526E-04
   6  norm          .10000E-03    4.9477       -.28424E-06** at limit **
   7  Prefactor     .10000E-03    3.7994       -.81392E-06** at limit **
   8  Prefactor     10.603        44.604       -.13918E-05   -.74042E-04
   9  Prefactor     .10000E-03    13.779        .76573E-08** at limit **
  10  Prefactor     .10000E-03    19.647       -.10673E-05** at limit **
  11  Prefactor     .10000E-03    5.1976       -.45323E-06** at limit **
  12  norm          .72842        1.0126        .31614E-06    .30560E-03
  13  Prefactor     .10025E-03    3.0245        .10429E-05** at limit **
  14  Prefactor     6.6361        3.5291       -.83865E-08   -.11982E-03
  15  Prefactor     1.1539        4.5139        .29669E-05    .19123E-03
  16  Prefactor     25.336        9.6083       -.17885E-07   -.10108E-03
  17  norm          1.9407        .66874       -.19757E-08   -.37782E-03
  18  Prefactor     .10000E-03    19.178        .14062E-06** at limit **
  19  Prefactor     5.4755        12.833        .29668E-06   -.28791E-05
  20  Normalizat    .67402        .18388        .21164E-05   -.39136E-03
  21  Prefactor     1.2558        .15684       -.23223E-05   -.36180E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.07097
  Prefactor  = 17.4101
  Prefactor  = 0.0001
  Prefactor  = 13.8142
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.728422
  Prefactor  = 0.000100253
  Prefactor  = 6.63606
  Prefactor  = 1.15392
  Prefactor  = 25.3365
  norm       = 1.94069
  Prefactor  = 0.0001
  Prefactor  = 5.47549
  Normalizat = 0.674024
  Prefactor  = 1.25584
 **********
 **   18 **HESSE 
 **********

 FCN=   7592.962     FROM HESSE     STATUS=OK           323 CALLS     2275 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .64880        .10460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0710        .62606        .36358E-04   -1.5420    
   3  Prefactor     17.410        11.711        .95985E-04   -1.4873    
   4  Prefactor     .10000E-03    13.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.814        29.974        .10781E-03   -1.4964    
   6  norm          .10000E-03    4.9473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8081        .16564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.603        44.906        .12277E-03   -1.5057    
   9  Prefactor     .10000E-03    13.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .72842        .92804        .99853E-03   -1.5537    
  13  Prefactor     .10025E-03    30.520        .26231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6361        3.5258        .10997E-03   -1.5193    
  15  Prefactor     1.1539        4.5905        .35974E-03   -1.5493    
  16  Prefactor     25.336        9.5927        .79582E-04   -1.4701    
  17  norm          1.9407        .66424        .39946E-04   -1.5429    
  18  Prefactor     .10000E-03    19.672        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4755        12.819        .17171E-03   -1.5240    
  20  Normalizat    .67402        .20149        .31373E-03   -1.0493    
  21  Prefactor     1.2558        .17195        .21149E-03   -.84630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38888e-09
Minuit parameter uncertainties:
  1  3.30443e-06
  2  0.626061
  3  11.7124
  4  2.93072e-05
  5  30.0068
  6  4.59129e-06
  7  1.85781e-05
  8  43.6972
  9  1.04339e-05
  10  6.46559e-05
  11  1.24211e-05
  12  0.928056
  13  0.00555805
  14  3.5259
  15  4.59191
  16  9.59323
  17  0.664241
  18  3.0707e-05
  19  12.8258
  20  0.201712
  21  0.172032
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.060e+01  4.370e+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.256e+00  1.720e-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.740e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/780490/likelihoodResults_344563201_344822401_4FGL_J1017.8+0715_daily_bin406.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) = 7590.79526654
delta logL = 2.16641467018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7590.71728298
delta logL = 2.24439823105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24302       1.0000         .10000E-03   10000.    
     2 'Index     '    6.8094       1.0000          .0000       10.000    
     3 'Normalizat'    .53619       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3403       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=   7590.717     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      301 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24058        1.7896        .50336E-02   -.14661E-03
   2  Index         6.8162        2.6969        .13028        .92735E-04
   3  Normalizat    .53655        .47413E-01    .78703E-01    .24288E-04
   4  Prefactor     1.3402        .42512E-01    .46508E-01   -.11578E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.240579
  Index      = 6.81625
  Normalizat = 0.536546
  Prefactor  = 1.34016
 **********
 **   18 **HESSE 
 **********

 FCN=   7590.717     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      332 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24058        3.5925        .22735E-04   -1.5610    
   2  Index         6.8162        3.8748        .52450E-02    .37175    
   3  Normalizat    .53655        .17190        .34853E-03   -1.1075    
   4  Prefactor     1.3402        .15075        .20558E-03   -.82121    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.8287e-10
Minuit parameter uncertainties:
  1  1.85908
  2  4.57601
  3  0.172073
  4  0.1508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780490': 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) = 7590.71727227
delta logL = 2.24440893623

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.406e-01  1.859e+00  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  6.816e+00  4.576e+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.340e+00  1.508e-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.365e-01  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.12
Ra Dec: 154.473 7.264
Photon Index (Free Index): 6.82 +/- 4.58
Photon Flux (Free Index): 1.06e-07 +/- 5.90e-08
Energy Flux (Free Index): 1.27e-05 +/- 7.91e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/780490/cmap_HighResolution_344563201_344822401_4FGL_J1017.8+0715_daily_bin406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.39e-03', comment='SUCCESS', energy_flux2='1.27e-05', dlogl='2.24e+00', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-01 16:27:40.537225', photon_index_error2='4.58', photon_index2='6.82', ts='0.07', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='9.38e-08', energy_flux_error2='7.91e-06', EG='0.67', time_epoch_completed='1630538860.54', return_code='0', job_id='780490', GAL2='1.34', EG2='0.54', return_code2='102', photon_flux_error2='5.90e-08', ts2='5.12', photon_index='2.73' WHERE bin_id='406' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:27:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 780490: <4FGL_J1017.8+0715_daily_bin406> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin406 154.473 7.2638 344563201 344822401 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             392.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            739 sec.

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

