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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin941
RA = 154.473, Dec = 7.2638
tmin = 483235201, tmax = 483494401
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='782413', job_status='RUN', time_executed='2021-09-01 16:26:13.551633', time_epoch_executed='1630538773.55' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782413

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782413/ft1_4FGL_J1017.8+0715_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782413/ft2_4FGL_J1017.8+0715_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782413/ft1_4FGL_J1017.8+0715_daily_bin941.fits outfile=/scratch/kocevski/782413/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin941.fits ra=154.473 dec=7.2638 rad=12.0 tmin=483235201.0 tmax=483494401.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.60
user 3.23
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782413/ft1_filtered_4FGL_J1017.8+0715_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/782413/ft2_4FGL_J1017.8+0715_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/782413/ltcube_483235201_483494401_4FGL_J1017.8+0715_daily_bin941.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/782413/ft2_4FGL_J1017.8+0715_daily_bin941.fits
.....................!
real 15.54
user 15.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782413/ft1_filtered_4FGL_J1017.8+0715_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/782413/ft2_4FGL_J1017.8+0715_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/782413/ltcube_483235201_483494401_4FGL_J1017.8+0715_daily_bin941.fits outfile=/scratch/kocevski/782413/expmap_483235201_483494401_4FGL_J1017.8+0715_daily_bin941.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/782413/ltcube_483235201_483494401_4FGL_J1017.8+0715_daily_bin941.fits
.....................!
real 191.88
user 186.15
sys 4.84

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/782413/ft1_filtered_4FGL_J1017.8+0715_daily_bin941.fits scfile=/scratch/kocevski/782413/ft2_4FGL_J1017.8+0715_daily_bin941.fits outfile=/scratch/kocevski/782413/cmap_483235201_483494401_4FGL_J1017.8+0715_daily_bin941.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.64
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/782413/ft1_filtered_4FGL_J1017.8+0715_daily_bin941.fits scfile=/scratch/kocevski/782413/ft2_4FGL_J1017.8+0715_daily_bin941.fits outfile=/scratch/kocevski/782413/cmap_HighResolution_483235201_483494401_4FGL_J1017.8+0715_daily_bin941.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.72
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1163       1.0000         .10000E-03   10000.    
     2 'norm      '    .30790E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69668E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.968       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3156       1.0000         .10000E-03   10000.    
     6 'norm      '    .10411E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12276E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11254E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .67854       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22898E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4775       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .86752       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5043       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .88917       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4182       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=   5828.030     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2290 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1159        1.7723        .16921E-07    .26552E-05
   2  norm          .10048E-03    .33419        .11562E-06** at limit **
   3  Prefactor     .10010E-03    8.5308       -.28331E-06** at limit **
   4  Prefactor     46.911        57.061        .35000E-05    .85945E-05
   5  Prefactor     9.2926        61.072        .73421E-06   -.19708E-05
   6  norm          .10000E-03    20.334        .31520E-06** at limit **
   7  Prefactor     .10000E-03    6.6841       -.44531E-08** at limit **
   8  Prefactor     .10000E-03    96.302       -.50388E-05** at limit **
   9  Prefactor     .10000E-03    13.407       -.29216E-08** at limit **
  10  Prefactor     .10000E-03    81.205        .37633E-05** at limit **
  11  Prefactor     .10000E-03    14.293        .47176E-07** at limit **
  12  norm          .68009        1.5164       -.14068E-06   -.18992E-03
  13  Prefactor     .10000E-03    2.1164       -.53450E-07** at limit **
  14  Prefactor     .10007E-03    1.7534        .55678E-06** at limit **
  15  Prefactor     5.4755        8.4515       -.31610E-08   -.70062E-05
  16  Prefactor     .10000E-03    2.3883        .37347E-07** at limit **
  17  norm          .86742        .69285       -.19659E-06   -.11451E-03
  18  Prefactor     3.5048        8.2562        .24148E-05    .13135E-03
  19  Prefactor     .10000E-03    36.828        .36708E-06** at limit **
  20  Normalizat    .88927        .20985       -.22016E-06   -.58244E-04
  21  Prefactor     1.4183        .18142       -.10608E-06   -.67001E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.11592
  norm       = 0.000100478
  Prefactor  = 0.000100097
  Prefactor  = 46.9112
  Prefactor  = 9.29257
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.680093
  Prefactor  = 0.0001
  Prefactor  = 0.000100073
  Prefactor  = 5.47551
  Prefactor  = 0.0001
  norm       = 0.867421
  Prefactor  = 3.50477
  Prefactor  = 0.0001
  Normalizat = 0.889266
  Prefactor  = 1.41828
 **********
 **   18 **HESSE 
 **********

 FCN=   5828.030     FROM HESSE     STATUS=OK           335 CALLS     2625 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1159        1.7701        .63412E-04   -1.5302    
   2  norm          .10048E-03    .95390        .14191E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10010E-03    11.141        .74091E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     46.911        57.103        .58507E-04   -1.4337    
   5  Prefactor     9.2926        60.940        .13131E-03   -1.5098    
   6  norm          .10000E-03    20.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.7107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    96.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    81.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .68009        1.4855        .13275E-03   -1.5543    
  13  Prefactor     .10000E-03    2.1197        .10846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10007E-03    22.568        .18170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.4755        8.4740        .17168E-03   -1.5240    
  16  Prefactor     .10000E-03    2.3940        .11521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .86742        .68843        .50728E-04   -1.5522    
  18  Prefactor     3.5048        8.2856        .10799E-02   -1.5334    
  19  Prefactor     .10000E-03    37.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .88927        .24567        .30752E-03   -.96838    
  21  Prefactor     1.4183        .21572        .22262E-03   -.79855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37188e-09
Minuit parameter uncertainties:
  1  1.77014
  2  0.00135041
  3  0.0020773
  4  57.1697
  5  47.664
  6  1.38893e-05
  7  3.11789e-07
  8  5.07661e-05
  9  7.71752e-07
  10  5.68199e-05
  11  6.81682e-07
  12  1.48557
  13  3.07846e-06
  14  0.00257304
  15  8.4759
  16  3.45068e-07
  17  0.688438
  18  8.28832
  19  1.495e-05
  20  0.245983
  21  0.215855
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  5.077e-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.418e+00  2.159e-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:  8.893e-01  2.460e-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.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782413/likelihoodResults_483235201_483494401_4FGL_J1017.8+0715_daily_bin941.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) = 5828.03032049
delta logL = -4.93041934533e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5828.0302713
delta logL = -1.16747287393e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0546       1.0000          .0000       10.000    
     3 'Normalizat'    .88926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4183       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=   5828.030     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      282 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10208E-03    56.612        .18142E-01** at limit **
   2  Index         2.9828        6.9740        .50000        .27397E-05
   3  Normalizat    .88927        .42827E-02    .30752E-03   -.30795E-04
   4  Prefactor     1.4183        .38270E-02    .22262E-03   -.23450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102083
  Index      = 2.98281
  Normalizat = 0.889266
  Prefactor  = 1.41828
 **********
 **   18 **HESSE 
 **********

 FCN=   5828.030     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10208E-03    316.00        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9828        7.9361        .50000       -.41527    
   3  Normalizat    .88927        .10070E-01    .12301E-04   -.96838    
   4  Prefactor     1.4183        .89986E-02    .44524E-04   -.79855    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.91394e-10
Minuit parameter uncertainties:
  1  0.0515865
  2  505.179
  3  0.01007
  4  0.00899861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782413': 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) = 5828.03027126
delta logL = -7.57472662372e-08

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.021e-04  5.159e-02  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.983e+00  5.052e+02  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.418e+00  8.999e-03  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:  8.893e-01  1.007e-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/782413/cmap_HighResolution_483235201_483494401_4FGL_J1017.8+0715_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-01 16:35:55.078817', job_id='782413', GAL2='1.42', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630539355.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='-7.57e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='941' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:35:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 782413: <4FGL_J1017.8+0715_daily_bin941> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin941> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  1 16:21:04 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:24:03 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:24:03 2021
Terminated at Wed Sep  1 16:35:56 2021
Results reported at Wed Sep  1 16:35:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin941 154.473 7.2638 483235201 483494401 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 :                                   579.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            892 sec.

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

