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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin163
RA = 154.473, Dec = 7.2638
tmin = 281577601, tmax = 281836801
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='779142', job_status='RUN', time_executed='2021-09-01 16:16:12.087044', time_epoch_executed='1630538172.09' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779142

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779142/ft1_4FGL_J1017.8+0715_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779142/ft2_4FGL_J1017.8+0715_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779142/ft1_4FGL_J1017.8+0715_daily_bin163.fits outfile=/scratch/kocevski/779142/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin163.fits ra=154.473 dec=7.2638 rad=12.0 tmin=281577601.0 tmax=281836801.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.62
user 3.37
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/779142/ft2_4FGL_J1017.8+0715_daily_bin163.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/779142/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin163.fits evtable="EVENTS" outfile="/scratch/kocevski/779142/ft1_filtered_4FGL_J1017.8+0715_daily_bin163.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.54
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/779142/ft1_filtered_4FGL_J1017.8+0715_daily_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/779142/ft2_4FGL_J1017.8+0715_daily_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/779142/ltcube_281577601_281836801_4FGL_J1017.8+0715_daily_bin163.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/779142/ft2_4FGL_J1017.8+0715_daily_bin163.fits
.....................!
real 14.74
user 14.34
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779142/ft1_filtered_4FGL_J1017.8+0715_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/779142/ft2_4FGL_J1017.8+0715_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/779142/ltcube_281577601_281836801_4FGL_J1017.8+0715_daily_bin163.fits outfile=/scratch/kocevski/779142/expmap_281577601_281836801_4FGL_J1017.8+0715_daily_bin163.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/779142/ltcube_281577601_281836801_4FGL_J1017.8+0715_daily_bin163.fits
.....................!
real 190.94
user 186.37
sys 4.08

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/779142/ft1_filtered_4FGL_J1017.8+0715_daily_bin163.fits scfile=/scratch/kocevski/779142/ft2_4FGL_J1017.8+0715_daily_bin163.fits outfile=/scratch/kocevski/779142/cmap_281577601_281836801_4FGL_J1017.8+0715_daily_bin163.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.473 yref=7.2638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779142/ft1_filtered_4FGL_J1017.8+0715_daily_bin163.fits scfile=/scratch/kocevski/779142/ft2_4FGL_J1017.8+0715_daily_bin163.fits outfile=/scratch/kocevski/779142/cmap_HighResolution_281577601_281836801_4FGL_J1017.8+0715_daily_bin163.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.58
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5231       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8311       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.883       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .95901       1.0000         .10000E-03   10000.    
     8 'Prefactor '    105.33       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20854E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.5730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9421       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .44274E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .91620       1.0000         .10000E-03   10000.    
    17 'norm      '    .92484       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0844       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .87702       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=   5183.199     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2197 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5231        1.2656       -.21187E-07    .44663E-04
   2  norm          1.2273        .73204       -.80014E-07   -.16532E-03
   3  Prefactor     6.8279        15.418        .12205E-05    .16492E-03
   4  Prefactor     .10000E-03    18.709       -.46474E-06** at limit **
   5  Prefactor     27.889        44.651        .17483E-07    .26637E-04
   6  norm          .10000E-03    6.6635       -.12229E-06** at limit **
   7  Prefactor     .95993        20.168       -.30846E-05    .37699E-03
   8  Prefactor     105.27        75.560       -.22629E-06    .63631E-04
   9  Prefactor     .10000E-03    18.483       -.43125E-06** at limit **
  10  Prefactor     .10001E-03    115.31        .15741E-05** at limit **
  11  Prefactor     .10000E-03    10.555        .23456E-06** at limit **
  12  norm          1.5726        1.7136       -.24161E-06   -.15279E-03
  13  Prefactor     .10000E-03    2.5122       -.22152E-06** at limit **
  14  Prefactor     7.9429        4.5128        .38494E-06    .76957E-03
  15  Prefactor     .10001E-03    33.628        .57764E-05** at limit **
  16  Prefactor     .91536        5.5017       -.24180E-06    .13722E-04
  17  norm          .92488        .56510        .24920E-07    .77865E-03
  18  Prefactor     .10000E-03    2.9793       -.29571E-07** at limit **
  19  Prefactor     .10000E-03    15.402       -.37802E-07** at limit **
  20  Normalizat    1.0844        .22185       -.33471E-05    .44933E-03
  21  Prefactor     .87708        .18245        .48022E-05    .57546E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.52313
  norm       = 1.22731
  Prefactor  = 6.8279
  Prefactor  = 0.0001
  Prefactor  = 27.8891
  norm       = 0.0001
  Prefactor  = 0.959933
  Prefactor  = 105.274
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 1.57264
  Prefactor  = 0.0001
  Prefactor  = 7.94291
  Prefactor  = 0.000100009
  Prefactor  = 0.915363
  norm       = 0.924884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08436
  Prefactor  = 0.877081
 **********
 **   18 **HESSE 
 **********

 FCN=   5183.199     FROM HESSE     STATUS=OK           319 CALLS     2516 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5231        1.2652        .55085E-04   -1.5390    
   2  norm          1.2273        .71952        .45563E-04   -1.5486    
   3  Prefactor     6.8279        15.229        .15351E-03   -1.5185    
   4  Prefactor     .10000E-03    18.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.889        44.623        .75870E-04   -1.4651    
   6  norm          .10000E-03    6.6728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .95993        33.654        .43934E-02   -1.5512    
   8  Prefactor     105.27        76.833        .19591E-03   -1.3652    
   9  Prefactor     .10000E-03    18.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    116.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5726        1.7007        .93350E-04   -1.5457    
  13  Prefactor     .10000E-03    2.5220        .11150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.9429        4.4961        .10499E-03   -1.5144    
  15  Prefactor     .10001E-03    34.773        .26704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .91536        18.864        .30107E-02   -1.5517    
  17  norm          .92488        .55866        .40757E-04   -1.5516    
  18  Prefactor     .10000E-03    2.9816        .12134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.0844        .23597        .24782E-03   -.90256    
  21  Prefactor     .87708        .19483        .23690E-03   -.96947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17826e-09
Minuit parameter uncertainties:
  1  1.26518
  2  0.719525
  3  15.2379
  4  7.03891e-05
  5  44.6768
  6  7.85843e-06
  7  11.3739
  8  76.9059
  9  5.16765e-05
  10  0.00198257
  11  9.13155e-05
  12  1.70079
  13  1.33209e-05
  14  4.49629
  15  0.00109877
  16  8.31345
  17  0.558662
  18  2.89555e-06
  19  3.1064e-05
  20  0.236202
  21  0.194985
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.053e+02  7.691e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.733e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
207        Scale:  6.199e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  8.771e-01  1.950e-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.084e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.29
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 8.90e-08 +/- 6.49e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.53e-05

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

Saving results to:
/scratch/kocevski/779142/likelihoodResults_281577601_281836801_4FGL_J1017.8+0715_daily_bin163.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): 0
logL (Free Index) = 5180.85235259
delta logL = 2.34663945552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5180.72243001
delta logL = 2.47656202973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8395       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4495       1.0000          .0000       10.000    
     3 'Normalizat'    .95617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96391       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5180.722     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      276 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8283        25.496        .51491E-02   -.18868E-03
   2  Index         5.4518        2.8489        .80771E-01    .59739E-04
   3  Normalizat    .95662        .83367E-01    .45615E-01   -.22515E-04
   4  Prefactor     .96353        .72596E-01    .45814E-01   -.57947E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.82834
  Index      = 5.45184
  Normalizat = 0.956619
  Prefactor  = 0.963534
 **********
 **   18 **HESSE 
 **********

 FCN=   5180.722     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8283        34.292        .56843E-04   -1.5317    
   2  Index         5.4518        3.3451        .34236E-02    .90491E-01
   3  Normalizat    .95662        .21552        .26067E-03   -.94498    
   4  Prefactor     .96353        .18357        .22735E-03   -.93955    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.80516e-10
Minuit parameter uncertainties:
  1  22.933
  2  3.66784
  3  0.215714
  4  0.18369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779142': 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) = 5180.72242336
delta logL = 2.47656868491

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.828e+00  2.293e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  5.452e+00  3.668e+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:  9.635e-01  1.837e-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.566e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.99
Ra Dec: 154.473 7.264
Photon Index (Free Index): 5.45 +/- 3.67
Photon Flux (Free Index): 1.81e-07 +/- 8.00e-08
Energy Flux (Free Index): 2.33e-05 +/- 1.28e-05

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/779142/cmap_HighResolution_281577601_281836801_4FGL_J1017.8+0715_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-02', comment='SUCCESS', photon_flux='8.90e-08', energy_flux2='2.33e-05', photon_flux_error='6.49e-08', dlogl='2.48e+00', energy_flux='2.09e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-09-01 16:25:21.816550', photon_index_error2='3.67', photon_index2='5.45', ts='3.29', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='2.02e-07', energy_flux_error2='1.28e-05', EG='1.08', time_epoch_completed='1630538721.82', return_code='0', job_id='779142', GAL2='0.96', EG2='0.96', return_code2='102', energy_flux_error='1.53e-05', photon_flux_error2='8.00e-08', ts2='8.99', photon_index='2.73' WHERE bin_id='163' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:25:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 779142: <4FGL_J1017.8+0715_daily_bin163> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin163> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 16:10:51 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:13:36 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:13:36 2021
Terminated at Wed Sep  1 16:25:22 2021
Results reported at Wed Sep  1 16:25:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin163 154.473 7.2638 281577601 281836801 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 :                                   549.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            871 sec.

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

