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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin766
RA = 154.473, Dec = 7.2638
tmin = 437875201, tmax = 438134401
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='782182', job_status='RUN', time_executed='2021-09-01 16:25:01.326558', time_epoch_executed='1630538701.33' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782182

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782182/ft1_4FGL_J1017.8+0715_daily_bin766.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782182/ft2_4FGL_J1017.8+0715_daily_bin766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782182/ft1_4FGL_J1017.8+0715_daily_bin766.fits outfile=/scratch/kocevski/782182/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin766.fits ra=154.473 dec=7.2638 rad=12.0 tmin=437875201.0 tmax=438134401.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.92
user 5.58
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782182/ft1_filtered_4FGL_J1017.8+0715_daily_bin766.fits evtable="EVENTS" scfile=/scratch/kocevski/782182/ft2_4FGL_J1017.8+0715_daily_bin766.fits sctable="SC_DATA" expcube=/scratch/kocevski/782182/ltcube_437875201_438134401_4FGL_J1017.8+0715_daily_bin766.fits outfile=/scratch/kocevski/782182/expmap_437875201_438134401_4FGL_J1017.8+0715_daily_bin766.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/782182/ltcube_437875201_438134401_4FGL_J1017.8+0715_daily_bin766.fits
.....................!
real 192.47
user 187.87
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/782182/ft1_filtered_4FGL_J1017.8+0715_daily_bin766.fits scfile=/scratch/kocevski/782182/ft2_4FGL_J1017.8+0715_daily_bin766.fits outfile=/scratch/kocevski/782182/cmap_437875201_438134401_4FGL_J1017.8+0715_daily_bin766.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.473 yref=7.2638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.13

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

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6234       1.0000         .10000E-03   10000.    
     2 'norm      '    .43091       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.430       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25904E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .74476E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.0543       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13399E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55951       1.0000         .10000E-03   10000.    
    17 'norm      '    .95977       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .97774E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2743       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0382       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0292       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=   4297.278     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2566 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6231        1.2375        .89692E-07   -.59450E-04
   2  norm          .43047        .82536       -.51169E-06   -.18074E-02
   3  Prefactor     .10000E-03    4.5796        .13069E-07** at limit **
   4  Prefactor     48.412        55.430        .33496E-04    .57298E-04
   5  Prefactor     .10018E-03    279.44       -.18861E-04** at limit **
   6  norm          .10000E-03    7.2286        .27130E-08** at limit **
   7  Prefactor     .10000E-03    3.0356       -.34888E-08** at limit **
   8  Prefactor     .10000E-03    16.449        .28054E-07** at limit **
   9  Prefactor     .11390E-03    58.499        .20402E-06** at limit **
  10  Prefactor     .10000E-03    14.903        .26268E-07** at limit **
  11  Prefactor     .10000E-03    6.4516        .24135E-07** at limit **
  12  norm          4.0539        2.1146       -.36452E-06   -.21705E-03
  13  Prefactor     .10000E-03    4.8390       -.19115E-06** at limit **
  14  Prefactor     .10000E-03    2.5940        .28775E-06** at limit **
  15  Prefactor     .10000E-03    3.3291        .37791E-07** at limit **
  16  Prefactor     .54398        5.6522       -.88377E-07   -.10913E-03
  17  norm          .96002        .77811       -.10817E-07   -.46581E-03
  18  Prefactor     .10000E-03    12.185        .46871E-06** at limit **
  19  Prefactor     2.2818        42.984       -.16844E-05   -.62828E-04
  20  Normalizat    1.0382        .22292       -.28143E-05    .73211E-04
  21  Prefactor     1.0293        .19271        .26540E-06   -.49943E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.6231
  norm       = 0.430468
  Prefactor  = 0.0001
  Prefactor  = 48.4117
  Prefactor  = 0.000100175
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000113897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.05391
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.543976
  norm       = 0.960024
  Prefactor  = 0.000100001
  Prefactor  = 2.28177
  Normalizat = 1.03821
  Prefactor  = 1.02929
 **********
 **   18 **HESSE 
 **********

 FCN=   4297.278     FROM HESSE     STATUS=OK           329 CALLS     2895 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6231        1.2326        .61013E-04   -1.5453    
   2  norm          .43047        .81891        .76812E-04   -1.5577    
   3  Prefactor     .10000E-03    4.5834        .13701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.412        55.359        .57621E-04   -1.4315    
   5  Prefactor     .10018E-03    288.23        .21451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.2491        .17214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0372        .11154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11390E-03    57.833        .14592       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4571        .16263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.0539        2.1133        .65732E-04   -1.5305    
  13  Prefactor     .10000E-03    4.8755        .14081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.2869        .20067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3529        .11680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .54398        30.091        .28786E-02   -1.5560    
  17  norm          .96002        .72604        .46789E-04   -1.5512    
  18  Prefactor     .10000E-03    76.372        .40797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2818        43.149        .27230E-03   -1.5406    
  20  Normalizat    1.0382        .25569        .25240E-03   -.91761    
  21  Prefactor     1.0293        .22335        .22500E-03   -.91759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52007e-09
Minuit parameter uncertainties:
  1  1.23257
  2  0.818932
  3  2.4926e-06
  4  55.4175
  5  0.0142868
  6  4.10818e-06
  7  2.56065e-08
  8  6.20362e-06
  9  0.0567542
  10  1.23881e-06
  11  1.5404e-06
  12  2.11329
  13  4.06795e-05
  14  6.55223e-05
  15  7.61407e-06
  16  8.0952
  17  0.726048
  18  0.000442054
  19  19.8612
  20  0.255992
  21  0.223551
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  6.204e-06  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.029e+00  2.236e-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.038e+00  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/782182/likelihoodResults_437875201_438134401_4FGL_J1017.8+0715_daily_bin766.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) = 4297.27813385
delta logL = -0.000289025448183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4297.27784807
delta logL = -3.24647498928e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3023       1.0000          .0000       10.000    
     3 'Normalizat'    1.0382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0293       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=   4297.278     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      284 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    98.134        .18142E-01** at limit **
   2  Index         1.9849        5.9506        .50000        .41182E-06
   3  Normalizat    1.0382        .10062E-01    .25240E-03    .13564E-02
   4  Prefactor     1.0293        .89791E-02    .22499E-03    .15255E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.98487
  Normalizat = 1.03821
  Prefactor  = 1.0293
 **********
 **   18 **HESSE 
 **********

 FCN=   4297.278     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    506.29        .33864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9849        8.8986        .50000       -.64729    
   3  Normalizat    1.0382        .23360E-01    .50481E-04   -.91761    
   4  Prefactor     1.0293        .20847E-01    .44999E-04   -.91759    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.48332e-09
Minuit parameter uncertainties:
  1  0.00124184
  2  1095.03
  3  0.0233606
  4  0.0208467
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782182': 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) = 4297.27784358
delta logL = 1.25122278405e-06

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  1.242e-03  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  1.985e+00  1.095e+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.029e+00  2.085e-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.038e+00  2.336e-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/782182/cmap_HighResolution_437875201_438134401_4FGL_J1017.8+0715_daily_bin766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-01 16:34:03.548984', job_id='782182', GAL2='1.03', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1630539243.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.25e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='766' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:34:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 782182: <4FGL_J1017.8+0715_daily_bin766> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin766 154.473 7.2638 437875201 438134401 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 :                                   540.39 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            803 sec.

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

