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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin281
RA = 154.473, Dec = 7.2638
tmin = 312163201, tmax = 312422401
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='779281', job_status='RUN', time_executed='2021-09-01 16:16:07.439699', time_epoch_executed='1630538167.44' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779281

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779281/ft1_4FGL_J1017.8+0715_daily_bin281.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779281/ft2_4FGL_J1017.8+0715_daily_bin281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779281/ft1_4FGL_J1017.8+0715_daily_bin281.fits outfile=/scratch/kocevski/779281/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin281.fits ra=154.473 dec=7.2638 rad=12.0 tmin=312163201.0 tmax=312422401.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.71
user 3.26
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779281/ft2_4FGL_J1017.8+0715_daily_bin281.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/779281/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin281.fits evtable="EVENTS" outfile="/scratch/kocevski/779281/ft1_filtered_4FGL_J1017.8+0715_daily_bin281.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.76
user 0.37
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779281/ft1_filtered_4FGL_J1017.8+0715_daily_bin281.fits evtable="EVENTS" scfile=/scratch/kocevski/779281/ft2_4FGL_J1017.8+0715_daily_bin281.fits sctable="SC_DATA" expcube=/scratch/kocevski/779281/ltcube_312163201_312422401_4FGL_J1017.8+0715_daily_bin281.fits outfile=/scratch/kocevski/779281/expmap_312163201_312422401_4FGL_J1017.8+0715_daily_bin281.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/779281/ltcube_312163201_312422401_4FGL_J1017.8+0715_daily_bin281.fits
.....................!
real 191.77
user 187.12
sys 3.90

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/779281/ft1_filtered_4FGL_J1017.8+0715_daily_bin281.fits scfile=/scratch/kocevski/779281/ft2_4FGL_J1017.8+0715_daily_bin281.fits outfile=/scratch/kocevski/779281/cmap_312163201_312422401_4FGL_J1017.8+0715_daily_bin281.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779281/ft1_filtered_4FGL_J1017.8+0715_daily_bin281.fits scfile=/scratch/kocevski/779281/ft2_4FGL_J1017.8+0715_daily_bin281.fits outfile=/scratch/kocevski/779281/cmap_HighResolution_312163201_312422401_4FGL_J1017.8+0715_daily_bin281.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.57
user 0.42
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.435       1.0000         .10000E-03   10000.    
     4 'Prefactor '    68.670       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .64654       1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21874E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.059       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .92774       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7188       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.479       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0966       1.0000         .10000E-03   10000.    
    17 'norm      '    .83616       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2034       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.121       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0000       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1110       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=   6947.705     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2038 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .60481        .51937E-07** at limit **
   2  norm          .10000E-03    .23217        .29644E-07** at limit **
   3  Prefactor     35.429        15.468       -.16400E-05   -.84278E-03
   4  Prefactor     68.658        38.606       -.92179E-06   -.14576E-03
   5  Prefactor     .63523        26.230        .11808E-06    .61879E-04
   6  norm          .10000E-03    6.9761        .13946E-06** at limit **
   7  Prefactor     .10298E-03    7.9694        .35124E-05** at limit **
   8  Prefactor     .10000E-03    67.375       -.46174E-05** at limit **
   9  Prefactor     .10000E-03    41.893       -.18820E-06** at limit **
  10  Prefactor     10.096        30.395       -.18250E-05   -.24792E-03
  11  Prefactor     .10000E-03    6.8510        .10342E-05** at limit **
  12  norm          .92774        1.2548        .14803E-06   -.97709E-04
  13  Prefactor     .10000E-03    2.6461       -.14670E-07** at limit **
  14  Prefactor     4.7185        2.9791       -.82051E-07   -.19972E-03
  15  Prefactor     12.476        8.6334        .51530E-06    .69113E-04
  16  Prefactor     9.0970        7.5001        .12592E-05    .26910E-03
  17  norm          .83609        .62531       -.14101E-07   -.14898E-03
  18  Prefactor     6.2035        9.4368        .27678E-06    .71170E-05
  19  Prefactor     22.133        23.538        .27143E-06    .53645E-05
  20  Normalizat    .99989        .19017       -.19562E-05   -.42757E-03
  21  Prefactor     1.1111        .15720        .35710E-06   -.50223E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 35.4293
  Prefactor  = 68.6581
  Prefactor  = 0.635226
  norm       = 0.0001
  Prefactor  = 0.00010298
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.0961
  Prefactor  = 0.0001
  norm       = 0.927745
  Prefactor  = 0.0001
  Prefactor  = 4.71852
  Prefactor  = 12.4762
  Prefactor  = 9.09702
  norm       = 0.836089
  Prefactor  = 6.20352
  Prefactor  = 22.1334
  Normalizat = 0.999887
  Prefactor  = 1.11111
 **********
 **   18 **HESSE 
 **********

 FCN=   6947.705     FROM HESSE     STATUS=OK           335 CALLS     2373 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0395        .12534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .45131        .77863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.429        15.671        .67322E-04   -1.4517    
   4  Prefactor     68.658        38.795        .48438E-04   -1.4049    
   5  Prefactor     .63523        30.628        .13410       -1.5549    
   6  norm          .10000E-03    6.9882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10298E-03    12.623        .63839E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    67.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.096        37.654        .12634E-03   -1.5072    
  11  Prefactor     .10000E-03    6.8641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .92774        1.1685        .10283E-02   -1.5515    
  13  Prefactor     .10000E-03    2.6875        .13236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7185        2.9749        .10908E-03   -1.5273    
  15  Prefactor     12.476        8.6373        .11340E-03   -1.5001    
  16  Prefactor     9.0970        7.4884        .13289E-03   -1.5105    
  17  norm          .83609        .62850        .48907E-04   -1.5525    
  18  Prefactor     6.2035        9.5960        .16118E-03   -1.5210    
  19  Prefactor     22.133        23.531        .85164E-04   -1.4767    
  20  Normalizat    .99989        .21386        .27916E-03   -.93034    
  21  Prefactor     1.1111        .17880        .22968E-03   -.89112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54017e-09
Minuit parameter uncertainties:
  1  1.78111e-05
  2  6.72037e-06
  3  15.6732
  4  38.8092
  5  8.82588
  6  1.23887e-05
  7  0.0122694
  8  0.000579226
  9  6.85192e-06
  10  37.7429
  11  3.06379e-06
  12  1.16849
  13  4.58871e-06
  14  2.97503
  15  8.63821
  16  7.48921
  17  0.628506
  18  9.59833
  19  23.5408
  20  0.214046
  21  0.178897
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  5.792e-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.111e+00  1.789e-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:  9.999e-01  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/779281/likelihoodResults_312163201_312422401_4FGL_J1017.8+0715_daily_bin281.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) = 6947.70458638
delta logL = -7.08079969627e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6947.70451571
delta logL = -1.38201357913e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6790       1.0000          .0000       10.000    
     3 'Normalizat'    .99989       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1111       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=   6947.705     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      274 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9557.0        .18142E-02** at limit **
   2  Index         2.7474        6.1881        .50000       -.11981E-04
   3  Normalizat    .99989        .14525        .27916E-03   -.10588E-05
   4  Prefactor     1.1111        .12577        .22968E-03   -.57417E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Index      = 2.74739
  Normalizat = 0.999888
  Prefactor  = 1.11111
 **********
 **   18 **HESSE 
 **********

 FCN=   6947.705     FROM HESSE     STATUS=OK            29 CALLS      303 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    72.835        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7474        6.3666        .50000       -.46735    
   3  Normalizat    .99989        .20507        .11166E-04   -.93034    
   4  Prefactor     1.1111        .17780        .91874E-05   -.89112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33877e-10
Minuit parameter uncertainties:
  1  0.00175623
  2  4.58935
  3  0.205231
  4  0.177894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779281': 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) = 6947.70451554
delta logL = 3.85216480936e-08

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  1.756e-03  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.747e+00  4.589e+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.111e+00  1.779e-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:  9.999e-01  2.052e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/779281/cmap_HighResolution_312163201_312422401_4FGL_J1017.8+0715_daily_bin281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='8.93e-08', time_completed='2021-09-01 16:26:27.225680', job_id='779281', GAL2='1.11', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630538787.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='3.85e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='281' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:26:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 779281: <4FGL_J1017.8+0715_daily_bin281> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin281 154.473 7.2638 312163201 312422401 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 :                                   617.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            926 sec.

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

