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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin735
RA = 154.473, Dec = 7.2638
tmin = 429840001, tmax = 430099201
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='782133', job_status='RUN', time_executed='2021-09-01 16:23:33.459989', time_epoch_executed='1630538613.46' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782133

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782133/ft1_4FGL_J1017.8+0715_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782133/ft2_4FGL_J1017.8+0715_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782133/ft1_4FGL_J1017.8+0715_daily_bin735.fits outfile=/scratch/kocevski/782133/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin735.fits ra=154.473 dec=7.2638 rad=12.0 tmin=429840001.0 tmax=430099201.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 5.95
user 5.67
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782133/ft1_filtered_4FGL_J1017.8+0715_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/782133/ft2_4FGL_J1017.8+0715_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/782133/ltcube_429840001_430099201_4FGL_J1017.8+0715_daily_bin735.fits outfile=/scratch/kocevski/782133/expmap_429840001_430099201_4FGL_J1017.8+0715_daily_bin735.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/782133/ltcube_429840001_430099201_4FGL_J1017.8+0715_daily_bin735.fits
.....................!
real 191.12
user 186.36
sys 4.12

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/782133/ft1_filtered_4FGL_J1017.8+0715_daily_bin735.fits scfile=/scratch/kocevski/782133/ft2_4FGL_J1017.8+0715_daily_bin735.fits outfile=/scratch/kocevski/782133/cmap_429840001_430099201_4FGL_J1017.8+0715_daily_bin735.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.58
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782133/ft1_filtered_4FGL_J1017.8+0715_daily_bin735.fits scfile=/scratch/kocevski/782133/ft2_4FGL_J1017.8+0715_daily_bin735.fits outfile=/scratch/kocevski/782133/cmap_HighResolution_429840001_430099201_4FGL_J1017.8+0715_daily_bin735.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3225       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11367E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.532       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .29392E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10868E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.1978       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.533       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7786       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.7272       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.390       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0169       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4012       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=   3856.502     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2236 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3224        2.1261       -.19768E-06    .96078E-05
   2  norm          .10000E-03    .35884       -.11977E-06** at limit **
   3  Prefactor     .10000E-03    6.2633       -.17924E-07** at limit **
   4  Prefactor     .10000E-03    30.557        .22307E-04** at limit **
   5  Prefactor     .10000E-03    30.029       -.19727E-04** at limit **
   6  norm          15.528        15.906       -.29124E-05    .14259E-04
   7  Prefactor     .10000E-03    5.9842       -.10778E-07** at limit **
   8  Prefactor     .10000E-03    67.031       -.27736E-06** at limit **
   9  Prefactor     .11806E-03    61.609       -.73769E-05** at limit **
  10  Prefactor     .10000E-03    36.405       -.33161E-05** at limit **
  11  Prefactor     .10000E-03    13.515       -.20057E-07** at limit **
  12  norm          5.1977        2.7267       -.53302E-06   -.25187E-02
  13  Prefactor     11.522        12.297        .38515E-06   -.45034E-04
  14  Prefactor     3.7796        4.5357        .77075E-07   -.20328E-03
  15  Prefactor     .10000E-03    5.4989       -.14926E-07** at limit **
  16  Prefactor     .10000E-03    3.3240        .11877E-06** at limit **
  17  norm          .10000E-03    .47331       -.69050E-07** at limit **
  18  Prefactor     9.7241        13.075        .11868E-05    .19031E-04
  19  Prefactor     35.411        36.872       -.37606E-04    .69321E-05
  20  Normalizat    1.0169        .26339        .49311E-05    .56946E-04
  21  Prefactor     1.4012        .23333        .74036E-07    .22819E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.32235
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.5276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000118058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.19768
  Prefactor  = 11.522
  Prefactor  = 3.77957
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.72411
  Prefactor  = 35.4108
  Normalizat = 1.01693
  Prefactor  = 1.4012
 **********
 **   18 **HESSE 
 **********

 FCN=   3856.502     FROM HESSE     STATUS=OK           325 CALLS     2561 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3224        2.1270        .60385E-04   -1.5292    
   2  norm          .10000E-03    .58513        .72113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.2718        .15179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.528        15.905        .10163E-03   -1.4920    
   7  Prefactor     .10000E-03    5.9924        .14836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    67.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11806E-03    60.815        .15969       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    36.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.1977        2.7362        .35314E-03   -1.5252    
  13  Prefactor     11.522        12.288        .11796E-03   -1.5029    
  14  Prefactor     3.7796        4.5308        .13856E-03   -1.5319    
  15  Prefactor     .10000E-03    5.5272        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.3272        .11057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .59238        .79381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.7241        12.467        .12849E-03   -1.5084    
  19  Prefactor     35.411        36.840        .67365E-04   -1.4517    
  20  Normalizat    1.0169        .30952        .30406E-03   -.92465    
  21  Prefactor     1.4012        .27541        .23767E-03   -.80346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47706e-09
Minuit parameter uncertainties:
  1  2.12702
  2  9.5839e-06
  3  1.77403e-06
  4  4.41801e-05
  5  2.28893e-05
  6  15.9095
  7  4.12235e-06
  8  5.80236e-05
  9  0.0663462
  10  1.92791e-05
  11  1.08113e-05
  12  2.73625
  13  12.291
  14  4.53124
  15  1.91085e-07
  16  1.26566e-05
  17  3.48164e-06
  18  12.4702
  19  36.8634
  20  0.310074
  21  0.275699
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  5.802e-05  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.401e+00  2.757e-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.017e+00  3.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782133/likelihoodResults_429840001_430099201_4FGL_J1017.8+0715_daily_bin735.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) = 3856.50207102
delta logL = -7.08543720975e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3856.5020008
delta logL = -6.3507741288e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11116E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5919       1.0000          .0000       10.000    
     3 'Normalizat'    1.0169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4012       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=   3856.502     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      282 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11128E-03    30.531        .18142E-01** at limit **
   2  Index         3.2579        6.3916        .50000        .33128E-05
   3  Normalizat    1.0169        .52814E-02    .30406E-03    .99644E-05
   4  Prefactor     1.4012        .47698E-02    .23767E-03    .60031E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000111278
  Index      = 3.25793
  Normalizat = 1.01694
  Prefactor  = 1.4012
 **********
 **   18 **HESSE 
 **********

 FCN=   3856.502     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11128E-03    580.08        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2579        8.1263        .50000       -.35588    
   3  Normalizat    1.0169        .23289E-01    .12162E-04   -.92465    
   4  Prefactor     1.4012        .21034E-01    .95069E-05   -.80346    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.29847e-09
Minuit parameter uncertainties:
  1  0.163376
  2  2344.67
  3  0.0232897
  4  0.0210339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782133': 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) = 3856.50200052
delta logL = -3.56621512765e-07

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.113e-04  1.634e-01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.258e+00  2.345e+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:  1.401e+00  2.103e-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.017e+00  2.329e-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/782133/cmap_HighResolution_429840001_430099201_4FGL_J1017.8+0715_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-01 16:32:01.422094', job_id='782133', GAL2='1.40', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630539121.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='-3.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='735' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:32:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 782133: <4FGL_J1017.8+0715_daily_bin735> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin735> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 16:20:38 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:21:13 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:21:13 2021
Terminated at Wed Sep  1 16:32:01 2021
Results reported at Wed Sep  1 16:32:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin735 154.473 7.2638 429840001 430099201 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 :                                   506.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             240.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            683 sec.

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

