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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin954
RA = 154.473, Dec = 7.2638
tmin = 486604801, tmax = 486864001
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='782433', job_status='RUN', time_executed='2021-09-01 16:26:40.130539', time_epoch_executed='1630538800.13' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='954'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/782433

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/782433/ft1_4FGL_J1017.8+0715_daily_bin954.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/782433/ft2_4FGL_J1017.8+0715_daily_bin954.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/782433/ft1_4FGL_J1017.8+0715_daily_bin954.fits outfile=/scratch/kocevski/782433/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin954.fits ra=154.473 dec=7.2638 rad=12.0 tmin=486604801.0 tmax=486864001.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.69
user 3.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/782433/ft2_4FGL_J1017.8+0715_daily_bin954.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/782433/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin954.fits evtable="EVENTS" outfile="/scratch/kocevski/782433/ft1_filtered_4FGL_J1017.8+0715_daily_bin954.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.53
user 0.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/782433/ft1_filtered_4FGL_J1017.8+0715_daily_bin954.fits" evtable="EVENTS" scfile=/scratch/kocevski/782433/ft2_4FGL_J1017.8+0715_daily_bin954.fits sctable="SC_DATA" outfile=/scratch/kocevski/782433/ltcube_486604801_486864001_4FGL_J1017.8+0715_daily_bin954.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/782433/ft2_4FGL_J1017.8+0715_daily_bin954.fits
.....................!
real 17.04
user 16.70
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/782433/ft1_filtered_4FGL_J1017.8+0715_daily_bin954.fits evtable="EVENTS" scfile=/scratch/kocevski/782433/ft2_4FGL_J1017.8+0715_daily_bin954.fits sctable="SC_DATA" expcube=/scratch/kocevski/782433/ltcube_486604801_486864001_4FGL_J1017.8+0715_daily_bin954.fits outfile=/scratch/kocevski/782433/expmap_486604801_486864001_4FGL_J1017.8+0715_daily_bin954.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/782433/ltcube_486604801_486864001_4FGL_J1017.8+0715_daily_bin954.fits
.....................!
real 191.60
user 187.16
sys 3.94

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/782433/ft1_filtered_4FGL_J1017.8+0715_daily_bin954.fits scfile=/scratch/kocevski/782433/ft2_4FGL_J1017.8+0715_daily_bin954.fits outfile=/scratch/kocevski/782433/cmap_486604801_486864001_4FGL_J1017.8+0715_daily_bin954.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.59
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .74276       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .14095E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.038       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.445       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.157       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.914       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1050       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.467       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .30807E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .96988       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .99422       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93498       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=   6638.808     FROM MIGRAD    STATUS=CONVERGED    451 CALLS     1942 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .38783        .76818E-07** at limit **
   2  norm          .74265        .64828        .73092E-07   -.27822E-03
   3  Prefactor     .10000E-03    7.8395       -.12431E-07** at limit **
   4  Prefactor     .10000E-03    14.956       -.64494E-07** at limit **
   5  Prefactor     .10000E-03    16.674        .39301E-06** at limit **
   6  norm          .10000E-03    16.944       -.69795E-06** at limit **
   7  Prefactor     .10000E-03    3.9174       -.10107E-06** at limit **
   8  Prefactor     19.024        46.146       -.33086E-05   -.12393E-03
   9  Prefactor     28.430        31.422       -.20683E-05   -.29146E-03
  10  Prefactor     .10000E-03    36.789        .27006E-06** at limit **
  11  Prefactor     11.149        15.756        .44159E-06    .45246E-04
  12  norm          4.5147        1.6111       -.10225E-07    .62222E-04
  13  Prefactor     19.915        7.6107        .72500E-07    .16242E-03
  14  Prefactor     7.1047        3.5861        .99732E-06   -.26764E-03
  15  Prefactor     14.461        7.8245       -.12313E-06   -.11725E-03
  16  Prefactor     .10010E-03    7.5781       -.22485E-05** at limit **
  17  norm          .96983        .54373        .10110E-07    .13110E-02
  18  Prefactor     .10000E-03    5.6972        .17592E-06** at limit **
  19  Prefactor     .10000E-03    64.809        .65612E-06** at limit **
  20  Normalizat    .99432        .18367        .44787E-06    .23168E-03
  21  Prefactor     .93492        .15096       -.64874E-06    .29474E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.742651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.0238
  Prefactor  = 28.43
  Prefactor  = 0.0001
  Prefactor  = 11.1488
  norm       = 4.51466
  Prefactor  = 19.9147
  Prefactor  = 7.10473
  Prefactor  = 14.461
  Prefactor  = 0.000100104
  norm       = 0.969827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.994325
  Prefactor  = 0.934923
 **********
 **   18 **HESSE 
 **********

 FCN=   6638.808     FROM HESSE     STATUS=OK           315 CALLS     2257 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .60154        .98214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .74265        .62913        .57075E-04   -1.5536    
   3  Prefactor     .10000E-03    7.9145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9240        .15735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.024        47.697        .91795E-04   -1.4835    
   9  Prefactor     28.430        32.945        .37559E-03   -1.4641    
  10  Prefactor     .10000E-03    36.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.149        15.747        .11994E-03   -1.5040    
  12  norm          4.5147        1.6103        .58621E-04   -1.5283    
  13  Prefactor     19.915        7.6090        .89753E-04   -1.4815    
  14  Prefactor     7.1047        3.7874        .54515E-03   -1.5175    
  15  Prefactor     14.461        7.8492        .10530E-03   -1.4947    
  16  Prefactor     .10010E-03    34.878        .38431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .96983        .53667        .43159E-04   -1.5511    
  18  Prefactor     .10000E-03    5.7425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    66.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .99432        .21243        .26462E-03   -.93221    
  21  Prefactor     .93492        .17423        .23260E-03   -.94931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.63716e-09
Minuit parameter uncertainties:
  1  2.17874e-06
  2  0.629135
  3  2.60164e-05
  4  2.31922e-05
  5  7.55504e-05
  6  5.69386e-05
  7  2.36464e-06
  8  47.7925
  9  32.966
  10  0.000166569
  11  15.7525
  12  1.61029
  13  7.60936
  14  3.7875
  15  7.84972
  16  0.00381688
  17  0.53667
  18  2.41715e-05
  19  0.000214143
  20  0.212607
  21  0.174334
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.902e+01  4.779e+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:  9.349e-01  1.743e-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.943e-01  2.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 154.473 7.264
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/782433/likelihoodResults_486604801_486864001_4FGL_J1017.8+0715_daily_bin954.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) = 6638.01560521
delta logL = 0.792577021498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6637.86802424
delta logL = 0.940157992542

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20822E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    9.2985       1.0000          .0000       10.000    
     3 'Normalizat'    .93070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97735       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=   6637.868     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      405 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19960E-02    .34397E-01    .75355E-03** at limit **
   2  Index         9.3227        9.2741        .33916        .40509E-04
   3  Normalizat    .93082        .45870E-01    .45293E-01    .12061E-03
   4  Prefactor     .97731        .39425E-01    .45983E-01    .15215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00199599
  Index      = 9.32268
  Normalizat = 0.930824
  Prefactor  = 0.977306
 **********
 **   18 **HESSE 
 **********

 FCN=   6637.868     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      438 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19960E-02    .75581E-01    .31863E-04   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.3227        9.6344        .17620E-01    1.0442    
   3  Normalizat    .93082        .15091        .27228E-03   -.95385    
   4  Prefactor     .97731        .12819        .22818E-03   -.93490    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58185e-10
Minuit parameter uncertainties:
  1  0.0239418
  2  6.94065
  3  0.15098
  4  0.12823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/782433': 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) = 6637.86801187
delta logL = 0.940170361891

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.996e-03  2.394e-02  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  9.323e+00  6.941e+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.773e-01  1.282e-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.308e-01  1.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.20
Ra Dec: 154.473 7.264
Photon Index (Free Index): 9.32 +/- 6.94
Photon Flux (Free Index): 6.01e-08 +/- 4.66e-08
Energy Flux (Free Index): 6.78e-06 +/- 5.48e-06

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/782433/cmap_HighResolution_486604801_486864001_4FGL_J1017.8+0715_daily_bin954.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-03', comment='SUCCESS', energy_flux2='6.78e-06', dlogl='9.40e-01', photon_flux2='6.01e-08', job_status='DONE', time_completed='2021-09-01 16:36:42.383882', photon_index_error2='6.94', photon_index2='9.32', ts='0.20', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='5.48e-06', EG='0.99', time_epoch_completed='1630539402.38', return_code='0', job_id='782433', GAL2='0.98', EG2='0.93', return_code2='102', photon_flux_error2='4.66e-08', ts2='2.20', photon_index='2.73' WHERE bin_id='954' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:36:42 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin954 154.473 7.2638 486604801 486864001 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 :                                   602.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            938 sec.

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

