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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin612
RA = 154.473, Dec = 7.2638
tmin = 397958401, tmax = 398217601
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='780791', job_status='RUN', time_executed='2021-09-01 16:17:56.976754', time_epoch_executed='1630538276.98' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780791

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780791/ft1_4FGL_J1017.8+0715_daily_bin612.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780791/ft2_4FGL_J1017.8+0715_daily_bin612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780791/ft1_4FGL_J1017.8+0715_daily_bin612.fits outfile=/scratch/kocevski/780791/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin612.fits ra=154.473 dec=7.2638 rad=12.0 tmin=397958401.0 tmax=398217601.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.60
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780791/ft1_filtered_4FGL_J1017.8+0715_daily_bin612.fits" evtable="EVENTS" scfile=/scratch/kocevski/780791/ft2_4FGL_J1017.8+0715_daily_bin612.fits sctable="SC_DATA" outfile=/scratch/kocevski/780791/ltcube_397958401_398217601_4FGL_J1017.8+0715_daily_bin612.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/780791/ft2_4FGL_J1017.8+0715_daily_bin612.fits
.....................!
real 15.74
user 15.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780791/ft1_filtered_4FGL_J1017.8+0715_daily_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/780791/ft2_4FGL_J1017.8+0715_daily_bin612.fits sctable="SC_DATA" expcube=/scratch/kocevski/780791/ltcube_397958401_398217601_4FGL_J1017.8+0715_daily_bin612.fits outfile=/scratch/kocevski/780791/expmap_397958401_398217601_4FGL_J1017.8+0715_daily_bin612.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/780791/ltcube_397958401_398217601_4FGL_J1017.8+0715_daily_bin612.fits
.....................!
real 191.68
user 186.40
sys 4.85

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/780791/ft1_filtered_4FGL_J1017.8+0715_daily_bin612.fits scfile=/scratch/kocevski/780791/ft2_4FGL_J1017.8+0715_daily_bin612.fits outfile=/scratch/kocevski/780791/cmap_397958401_398217601_4FGL_J1017.8+0715_daily_bin612.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.55
user 0.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5268       1.0000         .10000E-03   10000.    
     2 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.496       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2385       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4885       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.729       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0188       1.0000         .10000E-03   10000.    
    17 'norm      '    .45360       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91345       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.4012       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=   6203.666     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     1892 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5268        1.8607       -.55164E-07   -.32874E-03
   2  norm          .10000E-03    .26529        .13627E-07** at limit **
   3  Prefactor     12.495        11.201       -.44069E-07   -.14206E-04
   4  Prefactor     .10000E-03    43.114       -.11649E-04** at limit **
   5  Prefactor     .10000E-03    35.280        .14371E-04** at limit **
   6  norm          .10000E-03    4.6683        .60559E-07** at limit **
   7  Prefactor     6.2374        7.3967       -.37357E-06   -.30846E-04
   8  Prefactor     .10000E-03    19.681       -.53522E-05** at limit **
   9  Prefactor     .10000E-03    13.413       -.19995E-05** at limit **
  10  Prefactor     .10000E-03    24.699       -.34617E-07** at limit **
  11  Prefactor     .10000E-03    6.5652        .10198E-06** at limit **
  12  norm          3.6248        1.9147       -.69989E-07   -.72046E-03
  13  Prefactor     .10004E-03    5.4430        .18113E-05** at limit **
  14  Prefactor     4.4896        4.1309       -.94075E-07   -.29570E-03
  15  Prefactor     17.730        9.5854       -.55693E-06   -.10143E-02
  16  Prefactor     1.0201        5.4658       -.45036E-06   -.21993E-03
  17  norm          .45374        .47534       -.54671E-08    .47256E-04
  18  Prefactor     .10000E-03    3.6086        .47877E-07** at limit **
  19  Prefactor     .10000E-03    23.709       -.23639E-05** at limit **
  20  Normalizat    .91336        .21365        .21680E-06   -.11342E-03
  21  Prefactor     1.4013        .18011        .75053E-07   -.12544E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.52676
  norm       = 0.0001
  Prefactor  = 12.4945
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.23743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.62483
  Prefactor  = 0.000100036
  Prefactor  = 4.48965
  Prefactor  = 17.7295
  Prefactor  = 1.02011
  norm       = 0.453738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.913363
  Prefactor  = 1.40129
 **********
 **   18 **HESSE 
 **********

 FCN=   6203.666     FROM HESSE     STATUS=OK           319 CALLS     2211 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5268        1.8610        .73115E-04   -1.5332    
   2  norm          .10000E-03    .38364        .78421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.495        11.199        .11332E-03   -1.5001    
   4  Prefactor     .10000E-03    42.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.6694        .16620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2374        7.3944        .16072E-03   -1.5208    
   8  Prefactor     .10000E-03    19.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.5716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6248        1.9065        .75381E-04   -1.5327    
  13  Prefactor     .10004E-03    15.467        .34389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4896        4.0877        .13923E-03   -1.5284    
  15  Prefactor     17.730        9.8725        .47560E-03   -1.4866    
  16  Prefactor     1.0201        18.253        .33002E-02   -1.5506    
  17  norm          .45374        .46377        .53618E-04   -1.5573    
  18  Prefactor     .10000E-03    3.6139        .14609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .91336        .24882        .31565E-03   -.95992    
  21  Prefactor     1.4013        .21251        .23175E-03   -.80343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07326e-09
Minuit parameter uncertainties:
  1  1.86106
  2  1.17683e-06
  3  11.2012
  4  1.50033e-05
  5  2.3567e-05
  6  7.86353e-07
  7  7.39552
  8  3.55397e-06
  9  3.877e-08
  10  1.09782e-05
  11  2.58443e-06
  12  1.90656
  13  0.0014928
  14  4.08795
  15  9.87342
  16  8.63292
  17  0.46377
  18  7.93038e-07
  19  1.01164e-05
  20  0.249131
  21  0.212644
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  3.554e-06  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.401e+00  2.126e-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.134e-01  2.491e-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: 7.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780791/likelihoodResults_397958401_398217601_4FGL_J1017.8+0715_daily_bin612.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) = 6203.66585568
delta logL = -0.000242718088884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 6203.63510452
delta logL = 0.0305084390957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25417E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.5724       1.0000          .0000       10.000    
     3 'Normalizat'    .89828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4104       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6203.635     FROM MIGRAD    STATUS=FAILED       114 CALLS      447 TOTAL
                     EDM=   .66E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34192E-03    .34497        .47879E-04** at limit **
   2  Index         9.4116        5.6963        .94364E-01    .33221E-03
   3  Normalizat    .89812        .98841E-01    .31810E-03   -.21265E-04
   4  Prefactor     1.4104        .87433E-01    .23114E-03   -.15750E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6203.635     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      544 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34192E-03    .34497        .10736E-04** at limit **
   2  Index         9.4116        5.6963        .10206E-01    .33221E-03
   3  Normalizat    .89812        .98841E-01    .18426E-03   -.21265E-04
   4  Prefactor     1.4104        .87433E-01    .55049E-04   -.15750E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6203.635     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      582 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34192E-03    .43476        .95758E-05** at limit **
   2  Index         9.4116        8.9533        .18873E-01    .20836E-05
   3  Normalizat    .89812        .17430        .12724E-04    .83810E-04
   4  Prefactor     1.4104        .15260        .46228E-04   -.98371E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000341916
  Index      = 9.41163
  Normalizat = 0.898116
  Prefactor  = 1.41043
 **********
 **   18 **HESSE 
 **********

 FCN=   6203.635     FROM HESSE     STATUS=OK            25 CALLS      607 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34192E-03    .19373        .38303E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.4116        9.1571        .75491E-03    1.0808    
   3  Normalizat    .89812        .24567        .25448E-05   -.96526    
   4  Prefactor     1.4104        .21484        .92455E-05   -.80080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06049e-11
Minuit parameter uncertainties:
  1  0.0136918
  2  22.6144
  3  0.24598
  4  0.214978
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780791': 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): 0
logL (Free Index) = 6203.63504797
delta logL = 0.0305649926549

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  3.419e-04  1.369e-02  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  9.412e+00  2.261e+01  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.410e+00  2.150e-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:  8.981e-01  2.460e-01  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/780791/cmap_HighResolution_397958401_398217601_4FGL_J1017.8+0715_daily_bin612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.56e-08', time_completed='2021-09-01 16:27:42.814450', job_id='780791', GAL2='1.41', fit_tolerance='1e-08', EG2='0.90', EG='0.91', time_epoch_completed='1630538862.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='3.06e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='612' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:27:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 780791: <4FGL_J1017.8+0715_daily_bin612> in cluster <slac> Done

Job <4FGL_J1017.8+0715_daily_bin612> 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) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 16:17:41 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:41 2021
Terminated at Wed Sep  1 16:27:43 2021
Results reported at Wed Sep  1 16:27:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin612 154.473 7.2638 397958401 398217601 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 :                                   584.39 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   602 sec.
    Turnaround time :                            720 sec.

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

