/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin271
RA = 154.473, Dec = 7.2638
tmin = 309571201, tmax = 309830401
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='779268', job_status='RUN', time_executed='2021-09-01 16:16:35.779044', time_epoch_executed='1630538195.78' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779268/ft1_4FGL_J1017.8+0715_daily_bin271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779268/ft2_4FGL_J1017.8+0715_daily_bin271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779268/ft1_4FGL_J1017.8+0715_daily_bin271.fits outfile=/scratch/kocevski/779268/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin271.fits ra=154.473 dec=7.2638 rad=12.0 tmin=309571201.0 tmax=309830401.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 6.40
user 6.05
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779268/ft1_filtered_4FGL_J1017.8+0715_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/779268/ft2_4FGL_J1017.8+0715_daily_bin271.fits sctable="SC_DATA" expcube=/scratch/kocevski/779268/ltcube_309571201_309830401_4FGL_J1017.8+0715_daily_bin271.fits outfile=/scratch/kocevski/779268/expmap_309571201_309830401_4FGL_J1017.8+0715_daily_bin271.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/779268/ltcube_309571201_309830401_4FGL_J1017.8+0715_daily_bin271.fits
.....................!
real 192.08
user 187.63
sys 3.95

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/779268/ft1_filtered_4FGL_J1017.8+0715_daily_bin271.fits scfile=/scratch/kocevski/779268/ft2_4FGL_J1017.8+0715_daily_bin271.fits outfile=/scratch/kocevski/779268/cmap_309571201_309830401_4FGL_J1017.8+0715_daily_bin271.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779268/ft1_filtered_4FGL_J1017.8+0715_daily_bin271.fits scfile=/scratch/kocevski/779268/ft2_4FGL_J1017.8+0715_daily_bin271.fits outfile=/scratch/kocevski/779268/cmap_HighResolution_309571201_309830401_4FGL_J1017.8+0715_daily_bin271.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.59
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74766E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7219       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.420       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10545E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18676E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10899E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.802       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.707       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14923E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.186       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4350       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.360       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.731       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3117       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0074       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=   5247.157     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2196 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12176E-02    .58001       -.19546E-06** at limit **
   2  norm          1.7216        .81728       -.14027E-07   -.12930E-03
   3  Prefactor     25.419        15.154        .28407E-07   -.18587E-04
   4  Prefactor     .10000E-03    23.956       -.87262E-05** at limit **
   5  Prefactor     .10000E-03    19.119        .85044E-05** at limit **
   6  norm          .10000E-03    11.676        .22630E-05** at limit **
   7  Prefactor     .10000E-03    10.605       -.30262E-06** at limit **
   8  Prefactor     .10000E-03    27.416        .13414E-05** at limit **
   9  Prefactor     37.791        48.418       -.13714E-04   -.11649E-03
  10  Prefactor     48.703        57.195       -.51945E-05   -.12931E-04
  11  Prefactor     .10000E-03    14.072       -.38072E-05** at limit **
  12  norm          .10000E-03    .78477        .18299E-07** at limit **
  13  Prefactor     11.182        10.697        .65670E-07   -.26944E-04
  14  Prefactor     1.8711        3.6356       -.69212E-06   -.71687E-03
  15  Prefactor     .10000E-03    3.8129       -.62815E-09** at limit **
  16  Prefactor     .10000E-03    3.0307       -.10332E-06** at limit **
  17  norm          1.4373        1.0797       -.15060E-05    .21818E-02
  18  Prefactor     12.322        16.211        .13288E-04   -.19709E-04
  19  Prefactor     19.728        23.846       -.17865E-05   -.21209E-04
  20  Normalizat    1.3121        .21828        .36638E-06    .71123E-04
  21  Prefactor     1.0072        .18603        .16585E-06    .65155E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00121761
  norm       = 1.72161
  Prefactor  = 25.4186
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.7908
  Prefactor  = 48.7028
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.182
  Prefactor  = 1.87114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.43735
  Prefactor  = 12.3219
  Prefactor  = 19.7284
  Normalizat = 1.3121
  Prefactor  = 1.00717
 **********
 **   18 **HESSE 
 **********

 FCN=   5247.157     FROM HESSE     STATUS=OK           325 CALLS     2521 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12176E-02    1.8709        .18927E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7216        .81390        .43300E-04   -1.5446    
   3  Prefactor     25.419        15.167        .79453E-04   -1.4699    
   4  Prefactor     .10000E-03    24.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.707        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.791        48.747        .65187E-04   -1.4478    
  10  Prefactor     48.703        56.995        .57458E-04   -1.4311    
  11  Prefactor     .10000E-03    14.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .80266        .12509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.182        10.693        .11979E-03   -1.5039    
  14  Prefactor     1.8711        3.6343        .18276E-03   -1.5434    
  15  Prefactor     .10000E-03    3.8419        .13810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0380        .12313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4373        1.0882        .50833E-04   -1.5468    
  18  Prefactor     12.322        16.323        .11394E-03   -1.5006    
  19  Prefactor     19.728        23.857        .90168E-04   -1.4819    
  20  Normalizat    1.3121        .25523        .25857E-03   -.83206    
  21  Prefactor     1.0072        .21611        .25478E-03   -.92491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51499e-09
Minuit parameter uncertainties:
  1  0.0914559
  2  0.813903
  3  15.1694
  4  0.000228933
  5  0.000196874
  6  6.25046e-05
  7  0.000108217
  8  8.07441e-05
  9  48.7986
  10  57.0591
  11  4.93763e-06
  12  7.90138e-09
  13  10.6952
  14  3.63474
  15  5.52489e-07
  16  1.3548e-05
  17  1.08821
  18  16.3292
  19  23.8681
  20  0.255476
  21  0.216294
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  8.074e-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.007e+00  2.163e-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.312e+00  2.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/779268/likelihoodResults_309571201_309830401_4FGL_J1017.8+0715_daily_bin271.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) = 5247.15691348
delta logL = -0.000173522962541

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5247.15674214
delta logL = -2.17998058361e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3653       1.0000          .0000       10.000    
     3 'Normalizat'    1.3121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0072       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=   5247.157     FROM MIGRAD    STATUS=CONVERGED    114 CALLS      297 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    143.23        .18142E-01** at limit **
   2  Index         2.1679        5.1037        .50000       -.55479E-08
   3  Normalizat    1.3121        .10969E-01    .25857E-03    .70347E-04
   4  Prefactor     1.0072        .96745E-02    .25478E-03    .75409E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1679
  Normalizat = 1.3121
  Prefactor  = 1.00717
 **********
 **   18 **HESSE 
 **********

 FCN=   5247.157     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      326 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    712.05        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1679        5.0312        .50000       -.60216    
   3  Normalizat    1.3121        .25096E-01    .10343E-04   -.83206    
   4  Prefactor     1.0072        .22134E-01    .10191E-04   -.92491    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.0764e-12
Minuit parameter uncertainties:
  1  1.77649e-05
  2  1398.02
  3  0.0250966
  4  0.0221341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779268': 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) = 5247.15673951
delta logL = 4.46744707006e-07

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  1.776e-05  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  2.168e+00  1.398e+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.007e+00  2.213e-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.312e+00  2.510e-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/779268/cmap_HighResolution_309571201_309830401_4FGL_J1017.8+0715_daily_bin271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.97e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-01 16:26:07.640258', job_id='779268', GAL2='1.01', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630538767.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='4.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='271' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:26:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 779268: <4FGL_J1017.8+0715_daily_bin271> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin271> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 16:11:01 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:14:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 16:14:45 2021
Terminated at Wed Sep  1 16:26:08 2021
Results reported at Wed Sep  1 16:26:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin271 154.473 7.2638 309571201 309830401 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 :                                   571.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            907 sec.

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

