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


Performing analysis on: 4FGL_J1017.8+0715_daily_bin241
RA = 154.473, Dec = 7.2638
tmin = 301795201, tmax = 302054401
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='779238', job_status='RUN', time_executed='2021-09-01 16:16:34.251439', time_epoch_executed='1630538194.25' WHERE source_name='4FGL J1017.8+0715' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/779238

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/779238/ft1_4FGL_J1017.8+0715_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/779238/ft2_4FGL_J1017.8+0715_daily_bin241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/779238/ft1_4FGL_J1017.8+0715_daily_bin241.fits outfile=/scratch/kocevski/779238/ft1_filteredMKT_4FGL_J1017.8+0715_daily_bin241.fits ra=154.473 dec=7.2638 rad=12.0 tmin=301795201.0 tmax=302054401.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.09
user 3.85
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/779238/ft1_filtered_4FGL_J1017.8+0715_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/779238/ft2_4FGL_J1017.8+0715_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/779238/ltcube_301795201_302054401_4FGL_J1017.8+0715_daily_bin241.fits outfile=/scratch/kocevski/779238/expmap_301795201_302054401_4FGL_J1017.8+0715_daily_bin241.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/779238/ltcube_301795201_302054401_4FGL_J1017.8+0715_daily_bin241.fits
.....................!
real 192.67
user 187.72
sys 4.36

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/779238/ft1_filtered_4FGL_J1017.8+0715_daily_bin241.fits scfile=/scratch/kocevski/779238/ft2_4FGL_J1017.8+0715_daily_bin241.fits outfile=/scratch/kocevski/779238/cmap_301795201_302054401_4FGL_J1017.8+0715_daily_bin241.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.473 yref=7.2638 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/779238/ft1_filtered_4FGL_J1017.8+0715_daily_bin241.fits scfile=/scratch/kocevski/779238/ft2_4FGL_J1017.8+0715_daily_bin241.fits outfile=/scratch/kocevski/779238/cmap_HighResolution_301795201_302054401_4FGL_J1017.8+0715_daily_bin241.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93732       1.0000         .10000E-03   10000.    
     2 'norm      '    3.5773       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    11.349       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.757       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.044       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12343E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9280       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .79456       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6444       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7086       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5616       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1509       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99777       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=   6040.093     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2199 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93743        1.3245       -.32257E-06   -.11134E-02
   2  norm          3.5773        .99519       -.20620E-07   -.86176E-04
   3  Prefactor     .10000E-03    5.4519        .68181E-07** at limit **
   4  Prefactor     .10000E-03    40.507       -.33270E-05** at limit **
   5  Prefactor     .10000E-03    15.319        .10861E-04** at limit **
   6  norm          11.353        15.632        .54493E-06   -.42242E-04
   7  Prefactor     17.756        11.897       -.23381E-06    .20470E-04
   8  Prefactor     .10000E-03    33.228        .12402E-04** at limit **
   9  Prefactor     46.044        62.135       -.36995E-06    .11777E-05
  10  Prefactor     .10000E-03    41.472       -.73471E-05** at limit **
  11  Prefactor     .10000E-03    7.7820       -.22741E-06** at limit **
  12  norm          .10000E-03    .76315        .82300E-07** at limit **
  13  Prefactor     7.9264        7.1994       -.76678E-06   -.10102E-03
  14  Prefactor     .79437        2.8916       -.10857E-05   -.12032E-02
  15  Prefactor     3.6449        6.5302        .99848E-06   -.34187E-03
  16  Prefactor     9.7091        8.3942       -.65017E-07    .45169E-04
  17  norm          .10000E-03    .23652        .79113E-07** at limit **
  18  Prefactor     3.5627        6.8065       -.12458E-05   -.24232E-03
  19  Prefactor     .10000E-03    16.072       -.12334E-04** at limit **
  20  Normalizat    1.1509        .20444        .24848E-06    .66310E-04
  21  Prefactor     .99781        .16855        .43699E-06    .37784E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.937425
  norm       = 3.57732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.3531
  Prefactor  = 17.7563
  Prefactor  = 0.000100001
  Prefactor  = 46.0436
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.9264
  Prefactor  = 0.79437
  Prefactor  = 3.64495
  Prefactor  = 9.70911
  norm       = 0.0001
  Prefactor  = 3.56268
  Prefactor  = 0.000100001
  Normalizat = 1.15085
  Prefactor  = 0.997809
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.093     FROM HESSE     STATUS=OK           323 CALLS     2522 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93743        1.2103        .10090E-02   -1.5514    
   2  norm          3.5773        .99501        .38917E-04   -1.5330    
   3  Prefactor     .10000E-03    5.4567        .17713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          11.353        15.607        .11892E-03   -1.5034    
   7  Prefactor     17.756        11.903        .95045E-04   -1.4865    
   8  Prefactor     .10000E-03    32.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.044        62.180        .59088E-04   -1.4350    
  10  Prefactor     .10000E-03    41.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.7896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.6110        .12921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9264        7.1696        .14240E-03   -1.5145    
  14  Prefactor     .79437        2.9383        .24319E-03   -1.5530    
  15  Prefactor     3.6449        6.4875        .21161E-03   -1.5326    
  16  Prefactor     9.7091        8.3479        .12861E-03   -1.5085    
  17  norm          .10000E-03    .27515        .71718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5627        6.6658        .21416E-03   -1.5330    
  19  Prefactor     .10000E-03    15.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1509        .24006        .27035E-03   -.88135    
  21  Prefactor     .99781        .19831        .24392E-03   -.92803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37258e-09
Minuit parameter uncertainties:
  1  1.21036
  2  0.995012
  3  5.11734e-06
  4  0.000116214
  5  0.000228059
  6  15.6126
  7  11.9043
  8  0.000391118
  9  62.2681
  10  0.000264531
  11  5.14787e-06
  12  2.2928e-05
  13  7.17036
  14  2.93879
  15  6.48874
  16  8.34892
  17  4.13026e-06
  18  6.66722
  19  0.000280665
  20  0.240287
  21  0.198452
Done.

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

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  3.911e-04  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.978e-01  1.985e-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.151e+00  2.403e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/779238/likelihoodResults_301795201_302054401_4FGL_J1017.8+0715_daily_bin241.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) = 6040.09289165
delta logL = -0.000144903221553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6040.0927473
delta logL = -5.53687641514e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.8343       1.0000          .0000       10.000    
     3 'Normalizat'    1.1508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99781       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=   6040.093     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6386.4        .90712E-02** at limit **
   2  Index         3.8254        7.6417        .50000        .37210E-05
   3  Normalizat    1.1509        .71346E-01    .61126E-01    .32367E-04
   4  Prefactor     .99781        .59410E-01    .46240E-01    .21399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.82539
  Normalizat = 1.15085
  Prefactor  = 0.997809
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.093     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.8254        6.7823        .50000       -.23714    
   3  Normalizat    1.1509        .23080        .27035E-03   -.88136    
   4  Prefactor     .99781        .19657        .24392E-03   -.92803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35084e-11
Minuit parameter uncertainties:
  1  0.000118539
  2  4.90485
  3  0.231003
  4  0.19671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/779238': 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) = 6040.09274728
delta logL = -5.31274054083e-07

Extracting fit parameters...

4FGL J1017.8+0715
   Spectrum: PowerLaw
205    Prefactor:  1.000e-04  1.185e-04  1.000e-04  1.000e+04 ( 1.000e-13)
206        Index:  3.825e+00  4.905e+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.978e-01  1.967e-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.151e+00  2.310e-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/779238/cmap_HighResolution_301795201_302054401_4FGL_J1017.8+0715_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', job_status='DONE', photon_flux_upper_limit='9.97e-08', time_completed='2021-09-01 16:26:24.294356', job_id='779238', GAL2='1.00', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1630538784.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='-5.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='241' AND source_name='4FGL J1017.8+0715' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 16:26:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 779238: <4FGL_J1017.8+0715_daily_bin241> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1017.8+0715_daily_bin241 154.473 7.2638 301795201 302054401 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 :                                   582.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            927 sec.

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

