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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin596
RA = 154.473, Dec = 7.2638
tmin = 393811201, tmax = 394070401
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='780768', job_status='RUN', time_executed='2021-09-01 16:19:38.222671', time_epoch_executed='1630538378.22' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780768/ft1_4FGL_J1017.8+0715_daily_bin596.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780768/ft2_4FGL_J1017.8+0715_daily_bin596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780768/ft1_4FGL_J1017.8+0715_daily_bin596.fits outfile=/scratch/kocevski/780768/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin596.fits ra=154.473 dec=7.2638 rad=12.0 tmin=393811201.0 tmax=394070401.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.50
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780768/ft1_filtered_4FGL_J1017.8+0715_daily_bin596.fits" evtable="EVENTS" scfile=/scratch/kocevski/780768/ft2_4FGL_J1017.8+0715_daily_bin596.fits sctable="SC_DATA" outfile=/scratch/kocevski/780768/ltcube_393811201_394070401_4FGL_J1017.8+0715_daily_bin596.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/780768/ft2_4FGL_J1017.8+0715_daily_bin596.fits
.....................!
real 16.74
user 16.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780768/ft1_filtered_4FGL_J1017.8+0715_daily_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/780768/ft2_4FGL_J1017.8+0715_daily_bin596.fits sctable="SC_DATA" expcube=/scratch/kocevski/780768/ltcube_393811201_394070401_4FGL_J1017.8+0715_daily_bin596.fits outfile=/scratch/kocevski/780768/expmap_393811201_394070401_4FGL_J1017.8+0715_daily_bin596.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/780768/ltcube_393811201_394070401_4FGL_J1017.8+0715_daily_bin596.fits
.....................!
real 192.03
user 187.38
sys 4.12

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/780768/ft1_filtered_4FGL_J1017.8+0715_daily_bin596.fits scfile=/scratch/kocevski/780768/ft2_4FGL_J1017.8+0715_daily_bin596.fits outfile=/scratch/kocevski/780768/cmap_393811201_394070401_4FGL_J1017.8+0715_daily_bin596.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.80
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780768/ft1_filtered_4FGL_J1017.8+0715_daily_bin596.fits scfile=/scratch/kocevski/780768/ft2_4FGL_J1017.8+0715_daily_bin596.fits outfile=/scratch/kocevski/780768/cmap_HighResolution_393811201_394070401_4FGL_J1017.8+0715_daily_bin596.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.84
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1752       1.0000         .10000E-03   10000.    
     2 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.943       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.412       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .11337E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .61169       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13101E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9424       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20641E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5209       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3544       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93087       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=   6600.464     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     1951 TOTAL
                     EDM=   .85E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1752        1.4392       -.45829E-07   -.36527E-03
   2  norm          .10000E-03    .40330        .10017E-06** at limit **
   3  Prefactor     10.948        10.474        .79723E-06    .21954E-05
   4  Prefactor     13.343        34.451       -.22203E-04   -.10412E-04
   5  Prefactor     .10000E-03    12.709        .21581E-06** at limit **
   6  norm          .10000E-03    17.476       -.73248E-06** at limit **
   7  Prefactor     .10000E-03    4.5636       -.10008E-06** at limit **
   8  Prefactor     .10000E-03    55.210       -.20610E-05** at limit **
   9  Prefactor     .10000E-03    190.04        .68946E-05** at limit **
  10  Prefactor     .10000E-03    20.851        .16663E-06** at limit **
  11  Prefactor     .10000E-03    5.6783       -.30443E-07** at limit **
  12  norm          .61141        .71513        .12741E-06    .56721E-03
  13  Prefactor     .10000E-03    1.8172        .58033E-07** at limit **
  14  Prefactor     .10000E-03    1.5949       -.24942E-06** at limit **
  15  Prefactor     5.9402        8.1569       -.77955E-06   -.18635E-03
  16  Prefactor     .10001E-03    4.9353       -.38322E-06** at limit **
  17  norm          .10000E-03    .21341       -.47812E-07** at limit **
  18  Prefactor     .10000E-03    2.9481       -.57261E-07** at limit **
  19  Prefactor     9.4905        22.542        .15403E-04   -.38148E-06
  20  Normalizat    1.3547        .19080        .14858E-06    .83845E-04
  21  Prefactor     .93058        .15519        .13335E-06    .69184E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.17519
  norm       = 0.0001
  Prefactor  = 10.9481
  Prefactor  = 13.3426
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.611411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.94022
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.49053
  Normalizat = 1.3547
  Prefactor  = 0.93058
 **********
 **   18 **HESSE 
 **********

 FCN=   6600.464     FROM HESSE     STATUS=OK           317 CALLS     2268 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1752        1.4331        .75431E-04   -1.5413    
   2  norm          .10000E-03    1.0549        .99273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.948        10.448        .12111E-03   -1.5046    
   4  Prefactor     13.343        34.546        .10937E-03   -1.4977    
   5  Prefactor     .10000E-03    12.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5815        .16946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    194.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .61141        .69646        .72092E-04   -1.5552    
  13  Prefactor     .10000E-03    1.8248        .10695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.186        .19320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.9402        8.1980        .16473E-03   -1.5220    
  16  Prefactor     .10001E-03    25.090        .34418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .29326        .72842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9568        .13619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4905        22.479        .12988E-03   -1.5092    
  20  Normalizat    1.3547        .22426        .24649E-03   -.81948    
  21  Prefactor     .93058        .18338        .24477E-03   -.95081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44778e-10
Minuit parameter uncertainties:
  1  1.43312
  2  8.82831e-06
  3  10.4498
  4  34.5975
  5  3.98034e-05
  6  5.56503e-05
  7  7.52982e-07
  8  1.52615e-05
  9  0.000278007
  10  7.4667e-07
  11  4.27057e-08
  12  0.696472
  13  7.29107e-06
  14  3.21735e-05
  15  8.1995
  16  0.000723073
  17  2.0715e-06
  18  5.21607e-06
  19  22.4992
  20  0.224419
  21  0.183506
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  1.526e-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:  9.306e-01  1.835e-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.355e+00  2.244e-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: 9.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.10e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780768/likelihoodResults_393811201_394070401_4FGL_J1017.8+0715_daily_bin596.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) = 6600.46379217
delta logL = -8.58686134961e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6600.46370641
delta logL = -1.13797796075e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2378       1.0000          .0000       10.000    
     3 'Normalizat'    1.3547       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93058       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=   6600.464     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      274 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10140E-03    500.27        .18142E-02** at limit **
   2  Index         3.1746        7.9522        .50000        .27111E-05
   3  Normalizat    1.3547        .15038E-01    .24649E-03    .27028E-04
   4  Prefactor     .93058        .12725E-01    .24477E-03    .16999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101402
  Index      = 3.17464
  Normalizat = 1.3547
  Prefactor  = 0.93058
 **********
 **   18 **HESSE 
 **********

 FCN=   6600.464     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10140E-03    2016.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1746        7.4946        .50000       -.37371    
   3  Normalizat    1.3547        .32213E-01    .98596E-05   -.81948    
   4  Prefactor     .93058        .27257E-01    .97910E-05   -.95081    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.62317e-09
Minuit parameter uncertainties:
  1  0.110289
  2  1858.67
  3  0.0322131
  4  0.0272574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780768': 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) = 6600.46370639
delta logL = -8.64047251525e-08

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.014e-04  1.103e-01  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.175e+00  1.859e+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:  9.306e-01  2.726e-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.355e+00  3.221e-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/780768/cmap_HighResolution_393811201_394070401_4FGL_J1017.8+0715_daily_bin596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.10e-03', job_status='DONE', photon_flux_upper_limit='9.01e-08', time_completed='2021-09-01 16:29:34.219815', job_id='780768', GAL2='0.93', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630538974.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-8.64e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='596' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:29:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 780768: <4FGL_J1017.8+0715_daily_bin596> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin596 154.473 7.2638 393811201 394070401 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 :                                   593.07 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             309.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            834 sec.

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

