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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin618
RA = 154.473, Dec = 7.2638
tmin = 399513601, tmax = 399772801
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='780799', job_status='RUN', time_executed='2021-09-01 16:21:34.537027', time_epoch_executed='1630538494.54' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780799

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780799/ft1_4FGL_J1017.8+0715_daily_bin618.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780799/ft2_4FGL_J1017.8+0715_daily_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780799/ft1_4FGL_J1017.8+0715_daily_bin618.fits outfile=/scratch/kocevski/780799/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin618.fits ra=154.473 dec=7.2638 rad=12.0 tmin=399513601.0 tmax=399772801.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 4.52
user 4.19
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780799/ft1_filtered_4FGL_J1017.8+0715_daily_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/780799/ft2_4FGL_J1017.8+0715_daily_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/780799/ltcube_399513601_399772801_4FGL_J1017.8+0715_daily_bin618.fits outfile=/scratch/kocevski/780799/expmap_399513601_399772801_4FGL_J1017.8+0715_daily_bin618.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/780799/ltcube_399513601_399772801_4FGL_J1017.8+0715_daily_bin618.fits
.....................!
real 154.99
user 151.22
sys 3.31

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/780799/ft1_filtered_4FGL_J1017.8+0715_daily_bin618.fits scfile=/scratch/kocevski/780799/ft2_4FGL_J1017.8+0715_daily_bin618.fits outfile=/scratch/kocevski/780799/cmap_399513601_399772801_4FGL_J1017.8+0715_daily_bin618.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.51
user 0.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780799/ft1_filtered_4FGL_J1017.8+0715_daily_bin618.fits scfile=/scratch/kocevski/780799/ft2_4FGL_J1017.8+0715_daily_bin618.fits outfile=/scratch/kocevski/780799/cmap_HighResolution_399513601_399772801_4FGL_J1017.8+0715_daily_bin618.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.50
user 0.34
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41614       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.381       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.4857       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.165       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9864       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5019       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7260       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.242       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.305       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1025       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3130       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=   7632.434     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2199 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41602        .93889       -.44170E-06   -.20544E-02
   2  norm          .10000E-03    .14277       -.46405E-09** at limit **
   3  Prefactor     10.381        10.005        .38769E-06    .22438E-04
   4  Prefactor     .10000E-03    36.223        .14408E-04** at limit **
   5  Prefactor     .10000E-03    46.107       -.15699E-04** at limit **
   6  norm          7.4851        11.168       -.10531E-05   -.79736E-03
   7  Prefactor     .10000E-03    4.5972        .25536E-07** at limit **
   8  Prefactor     64.161        60.433       -.36710E-05    .47438E-04
   9  Prefactor     .10000E-03    31.623        .79160E-05** at limit **
  10  Prefactor     .10000E-03    23.663       -.15586E-04** at limit **
  11  Prefactor     .10000E-03    7.5748       -.39793E-08** at limit **
  12  norm          1.9866        1.2094       -.35067E-07   -.22416E-03
  13  Prefactor     .10000E-03    5.7364        .39754E-08** at limit **
  14  Prefactor     6.5024        4.7214       -.24812E-06   -.39972E-03
  15  Prefactor     3.7267        7.0900       -.74362E-06   -.29387E-03
  16  Prefactor     16.243        9.3577       -.15795E-06   -.64758E-04
  17  norm          .10000E-03    .23273        .99561E-08** at limit **
  18  Prefactor     17.305        9.9313       -.15264E-06   -.46011E-04
  19  Prefactor     .10000E-03    19.772        .68970E-05** at limit **
  20  Normalizat    1.1022        .19965        .11664E-05    .26706E-04
  21  Prefactor     1.3132        .16465       -.10068E-06    .92013E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.416017
  norm       = 0.0001
  Prefactor  = 10.3812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.48513
  Prefactor  = 0.0001
  Prefactor  = 64.1613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.98658
  Prefactor  = 0.0001
  Prefactor  = 6.5024
  Prefactor  = 3.72674
  Prefactor  = 16.2432
  norm       = 0.0001
  Prefactor  = 17.3048
  Prefactor  = 0.0001
  Normalizat = 1.10223
  Prefactor  = 1.31318
 **********
 **   18 **HESSE 
 **********

 FCN=   7632.434     FROM HESSE     STATUS=OK           317 CALLS     2516 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41602        .89717        .12193E-02   -1.5579    
   2  norm          .10000E-03    .14837        .64352E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.381        10.012        .12436E-03   -1.5063    
   4  Prefactor     .10000E-03    35.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.4851        11.371        .73292E-03   -1.5161    
   7  Prefactor     .10000E-03    4.6348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     64.161        60.377        .50098E-04   -1.4104    
   9  Prefactor     .10000E-03    31.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9866        1.2058        .72206E-04   -1.5426    
  13  Prefactor     .10000E-03    5.9985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5024        4.7237        .14741E-03   -1.5198    
  15  Prefactor     3.7267        7.1219        .20919E-03   -1.5322    
  16  Prefactor     16.243        9.3476        .99379E-04   -1.4902    
  17  norm          .10000E-03    .28669        .78763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.305        9.5483        .96278E-04   -1.4876    
  19  Prefactor     .10000E-03    19.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1022        .23965        .29633E-03   -.89680    
  21  Prefactor     1.3132        .19926        .23931E-03   -.82916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0292e-09
Minuit parameter uncertainties:
  1  0.897204
  2  4.06262e-07
  3  10.0138
  4  6.33767e-05
  5  1.25898e-05
  6  11.3747
  7  1.84367e-05
  8  60.4344
  9  1.28422e-05
  10  4.43733e-05
  11  1.53267e-05
  12  1.20584
  13  7.50179e-06
  14  4.72395
  15  7.12353
  16  9.34846
  17  5.92815e-07
  18  9.54918
  19  1.62886e-05
  20  0.239884
  21  0.199371
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  6.416e+01  6.043e+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:  1.313e+00  1.994e-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.102e+00  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 154.473 7.264
Photon Index (Fixed Index): 2.73 +/- 0.00
Photon Flux (Fixed Index): 5.42e-08 +/- 5.10e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.20e-05

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

Saving results to:
/scratch/kocevski/780799/likelihoodResults_399513601_399772801_4FGL_J1017.8+0715_daily_bin618.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) = 7632.43364441
delta logL = 0.000108750426989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7632.3178416
delta logL = 0.115911562685

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4596       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1309       1.0000          .0000       10.000    
     3 'Normalizat'    1.0631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3486       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=   7632.318     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      298 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4327        44.600        .65195E-02    .62547E-03
   2  Index         5.1380        3.7963        .14464        .16725E-03
   3  Normalizat    1.0629        .57978E-01    .68056E-01   -.15888E-04
   4  Prefactor     1.3487        .50527E-01    .53563E-01   -.71905E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.43274
  Index      = 5.13802
  Normalizat = 1.06286
  Prefactor  = 1.34872
 **********
 **   18 **HESSE 
 **********

 FCN=   7632.318     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      329 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4327        88.856        .11133E-03   -1.5396    
   2  Index         5.1380        7.5444        .71807E-02    .27608E-01
   3  Normalizat    1.0629        .18948        .30109E-03   -.90953    
   4  Prefactor     1.3487        .16152        .23682E-03   -.81870    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.30177e-09
Minuit parameter uncertainties:
  1  29.4517
  2  7.28699
  3  0.1896
  4  0.161575
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780799': 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) = 7632.31783915
delta logL = 0.115914016717

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  2.433e+00  2.945e+01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  5.138e+00  7.287e+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:  1.349e+00  1.616e-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.063e+00  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 154.473 7.264
Photon Index (Free Index): 5.14 +/- 7.29
Photon Flux (Free Index): 6.97e-08 +/- 6.92e-08
Energy Flux (Free Index): 9.17e-06 +/- 1.27e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/780799/cmap_HighResolution_399513601_399772801_4FGL_J1017.8+0715_daily_bin618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', photon_flux='5.42e-08', energy_flux2='9.17e-06', photon_flux_error='5.10e-08', dlogl='1.16e-01', energy_flux='1.27e-05', photon_flux2='6.97e-08', job_status='DONE', time_completed='2021-09-01 16:30:48.649970', photon_index_error2='7.29', photon_index2='5.14', ts='1.55', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.27e-05', EG='1.10', time_epoch_completed='1630539048.65', return_code='0', job_id='780799', GAL2='1.35', EG2='1.06', return_code2='102', energy_flux_error='1.20e-05', photon_flux_error2='6.92e-08', ts2='1.89', photon_index='2.73' WHERE bin_id='618' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:30:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 780799: <4FGL_J1017.8+0715_daily_bin618> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin618> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  1 16:15:43 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:17:46 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:17:46 2021
Terminated at Wed Sep  1 16:30:48 2021
Results reported at Wed Sep  1 16:30:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin618 154.473 7.2638 399513601 399772801 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 :                                   552.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             249.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            905 sec.

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

