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


Performing analysis on: 4FGL_J1517.7-2422_daily_bin552
RA = 229.425, Dec = -24.373
tmin = 382406401, tmax = 382665601
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='469876', job_status='RUN', time_executed='2021-09-12 00:14:18.199180', time_epoch_executed='1631430858.2' WHERE source_name='4FGL J1517.7-2422' and cadence='daily' and bin_id='552'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469876

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469876/ft1_4FGL_J1517.7-2422_daily_bin552.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469876/ft2_4FGL_J1517.7-2422_daily_bin552.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469876/ft1_4FGL_J1517.7-2422_daily_bin552.fits outfile=/scratch/kocevski/469876/ft1_filteredMKT_4FGL_J1517.7-2422_daily_bin552.fits ra=229.425 dec=-24.373 rad=12.0 tmin=382406401.0 tmax=382665601.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.70
user 4.45
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/469876/ft2_4FGL_J1517.7-2422_daily_bin552.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469876/ft2_4FGL_J1517.7-2422_daily_bin552.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/469876/ft1_filteredMKT_4FGL_J1517.7-2422_daily_bin552.fits evtable="EVENTS" outfile="/scratch/kocevski/469876/ft1_filtered_4FGL_J1517.7-2422_daily_bin552.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469876/ft1_filtered_4FGL_J1517.7-2422_daily_bin552.fits" evtable="EVENTS" scfile=/scratch/kocevski/469876/ft2_4FGL_J1517.7-2422_daily_bin552.fits sctable="SC_DATA" outfile=/scratch/kocevski/469876/ltcube_382406401_382665601_4FGL_J1517.7-2422_daily_bin552.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/469876/ft2_4FGL_J1517.7-2422_daily_bin552.fits
.....................!
real 11.52
user 11.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469876/ft1_filtered_4FGL_J1517.7-2422_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/469876/ft2_4FGL_J1517.7-2422_daily_bin552.fits sctable="SC_DATA" expcube=/scratch/kocevski/469876/ltcube_382406401_382665601_4FGL_J1517.7-2422_daily_bin552.fits outfile=/scratch/kocevski/469876/expmap_382406401_382665601_4FGL_J1517.7-2422_daily_bin552.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/469876/ltcube_382406401_382665601_4FGL_J1517.7-2422_daily_bin552.fits
.....................!
real 189.82
user 185.40
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
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 193 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1517.7-2422 @ 229.425 -24.373

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/469876/ft1_filtered_4FGL_J1517.7-2422_daily_bin552.fits scfile=/scratch/kocevski/469876/ft2_4FGL_J1517.7-2422_daily_bin552.fits outfile=/scratch/kocevski/469876/cmap_382406401_382665601_4FGL_J1517.7-2422_daily_bin552.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=229.425 yref=-24.373 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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469876/ft1_filtered_4FGL_J1517.7-2422_daily_bin552.fits scfile=/scratch/kocevski/469876/ft2_4FGL_J1517.7-2422_daily_bin552.fits outfile=/scratch/kocevski/469876/cmap_HighResolution_382406401_382665601_4FGL_J1517.7-2422_daily_bin552.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=229.425 yref=-24.373 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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469876/ft1_filtered_4FGL_J1517.7-2422_daily_bin552.fits evtable="EVENTS" scfile=/scratch/kocevski/469876/ft2_4FGL_J1517.7-2422_daily_bin552.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469876/Model_4FGL_J1517.7-2422_daily_bin552.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 FHES J1626.9-2431
adding source GAL_V02
Working on...
/scratch/kocevski/469876/ft1_filtered_4FGL_J1517.7-2422_daily_bin552.fits.....................!
real 98.15
user 96.83
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/469876/ft1_filtered_4FGL_J1517.7-2422_daily_bin552.fits', '/scratch/kocevski/469876/ft2_4FGL_J1517.7-2422_daily_bin552.fits', expMap='/scratch/kocevski/469876/expmap_382406401_382665601_4FGL_J1517.7-2422_daily_bin552.fits', expCube='/scratch/kocevski/469876/ltcube_382406401_382665601_4FGL_J1517.7-2422_daily_bin552.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/469876/Model_4FGL_J1517.7-2422_daily_bin552.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1517.7-2422'

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  1.141e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
316        alpha:  2.079e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
317         beta:  2.845e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  8.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/469876/ft1_filtered_4FGL_J1517.7-2422_daily_bin552.fits
Spacecraft file(s): /scratch/kocevski/469876/ft2_4FGL_J1517.7-2422_daily_bin552.fits
Exposure map: /scratch/kocevski/469876/expmap_382406401_382665601_4FGL_J1517.7-2422_daily_bin552.fits
Exposure cube: /scratch/kocevski/469876/ltcube_382406401_382665601_4FGL_J1517.7-2422_daily_bin552.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/469876/Model_4FGL_J1517.7-2422_daily_bin552.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) = 9179.97821422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.292       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3806       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.1385       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3385       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9585       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7797       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.090       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.6592       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0252       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13955E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0206       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0292       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9179.973     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     2063 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.307        34.903       -.37015E-05   -.12872E-04
   2  Prefactor     .10000E-03    21.030        .20760E-06** at limit **
   3  Prefactor     17.150        58.458        .24006E-05    .33391E-05
   4  Prefactor     1.8395        6826.1       -.25809E-03    .11823E-04
   5  Prefactor     .10000E-03    14.608        .89900E-06** at limit **
   6  Prefactor     .10000E-03    3.7670       -.36195E-07** at limit **
   7  Prefactor     .10000E-03    21.989       -.11472E-05** at limit **
   8  norm          5.1405        6.9395        .29455E-06    .13662E-04
   9  norm          .10000E-03    23.798        .48613E-07** at limit **
  10  norm          2.3385        .93269        .49512E-07   -.12614E-03
  11  Prefactor     5.9602        6.2893       -.24748E-06   -.44789E-04
  12  norm          2.7798        4.5508        .10934E-05    .16305E-03
  13  norm          .10000E-03    3.0720        .15326E-06** at limit **
  14  Prefactor     29.060        45.744        .65073E-06    .20662E-04
  15  Prefactor     .10000E-03    28.513       -.77274E-07** at limit **
  16  norm          1.6604        8.1123        .20482E-05    .78072E-04
  17  Prefactor     1.0269        2.9017        .26619E-05    .42256E-03
  18  Prefactor     .10000E-03    53.025        .25170E-06** at limit **
  19  Normalizat    1.0207        .31473       -.31030E-05   -.22889E-03
  20  Prefactor     1.0291        .83918E-01   -.60126E-06   -.81326E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.3066
  Prefactor  = 0.0001
  Prefactor  = 17.1499
  Prefactor  = 1.83946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.1405
  norm       = 0.0001
  norm       = 2.33849
  Prefactor  = 5.96021
  norm       = 2.77985
  norm       = 0.0001
  Prefactor  = 29.0598
  Prefactor  = 0.0001
  norm       = 1.66037
  Prefactor  = 1.02685
  Prefactor  = 0.0001
  Normalizat = 1.02073
  Prefactor  = 1.02912
 **********
 **   18 **HESSE 
 **********

 FCN=   9179.973     FROM HESSE     STATUS=OK           293 CALLS     2356 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.307        35.742        .58307E-04   -1.4331    
   2  Prefactor     .10000E-03    21.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.150        58.606        .97210E-04   -1.4879    
   4  Prefactor     1.8395        6953.6        .26550E-02   -1.5437    
   5  Prefactor     .10000E-03    14.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.7715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.1405        6.9325        .17735E-03   -1.5254    
   9  norm          .10000E-03    23.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3385        .92940        .55784E-04   -1.5402    
  11  Prefactor     5.9602        6.2637        .16450E-03   -1.5220    
  12  norm          2.7798        4.5344        .24124E-03   -1.5374    
  13  norm          .10000E-03    3.0781        .16401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.060        45.773        .74282E-04   -1.4629    
  15  Prefactor     .10000E-03    28.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.6604        8.0789        .32755E-03   -1.5450    
  17  Prefactor     1.0269        2.9368        .25983E-03   -1.5505    
  18  Prefactor     .10000E-03    53.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0207        .35559        .54248E-03   -.92339    
  20  Prefactor     1.0291        .96336E-01    .14689E-03   -.91765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94411e-10
Minuit parameter uncertainties:
  1  35.7582
  2  6.09198e-05
  3  58.8035
  4  186.868
  5  0.000108427
  6  9.13065e-06
  7  0.000182664
  8  6.93353
  9  1.11441e-06
  10  0.929408
  11  6.26434
  12  4.535
  13  7.70572e-06
  14  45.8279
  15  5.45079e-05
  16  7.32638
  17  2.93717
  18  1.84746e-05
  19  0.356425
  20  0.0963519
Done.

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

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  2.338e+00  9.294e-01  1.000e-04  1.000e+04 ( 1.000e-11)
316        alpha:  2.079e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
317         beta:  2.845e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  8.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.029e+00  9.635e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.021e+00  3.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.05
Ra Dec: 229.425 -24.373
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 1.58e-07 +/- 6.29e-08
Energy Flux (Fixed Index): 8.49e-05 +/- 3.38e-05

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) = 9179.97278517
delta logL = 0.000370357969587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9179.97275385
delta logL = 0.00040168230953

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3332       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0884       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0293       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6590E+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=   9179.973     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      232 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3334        .94752        .55636E-04    .12322E-02
   2  alpha         2.0883        .32159        .10373E-01    .65521E-04
   3  Normalizat    1.0195        .34546        .54274E-03    .23662E-03
   4  Prefactor     1.0293        .94107E-01    .14687E-03    .96795E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33335
  alpha      = 2.08834
  Normalizat = 1.01955
  Prefactor  = 1.02927
 **********
 **   18 **HESSE 
 **********

 FCN=   9179.973     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3334        .94148        .22254E-05   -1.5402    
   2  alpha         2.0883        .31944        .41490E-03   -.16542    
   3  Normalizat    1.0195        .34556        .21709E-04   -.92378    
   4  Prefactor     1.0293        .94137E-01    .29375E-04   -.91760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78311e-10
Minuit parameter uncertainties:
  1  0.941484
  2  0.320338
  3  0.346322
  4  0.0941518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469876': 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) = 9179.97275377
delta logL = 0.000401760329623

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  2.333e+00  9.415e-01  1.000e-04  1.000e+04 ( 1.000e-11)
316        alpha:  2.088e+00  3.203e-01  0.000e+00  5.000e+00 ( 1.000e+00)
317         beta:  2.845e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
318           Eb:  8.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
656    Prefactor:  1.029e+00  9.415e-02  0.000e+00  1.000e+01 ( 1.000e+00)
657        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
658        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
651   Normalization:  1.020e+00  3.463e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.05
Ra Dec: 229.425 -24.373
Photon Index (Free Index): 2.09 +/- 0.32
Photon Flux (Free Index): 1.60e-07 +/- 7.82e-08
Energy Flux (Free Index): 8.41e-05 +/- 4.32e-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/469876/cmap_HighResolution_382406401_382665601_4FGL_J1517.7-2422_daily_bin552.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-07', energy_flux2='8.41e-05', photon_flux_error='6.29e-08', dlogl='4.02e-04', energy_flux='8.49e-05', photon_flux2='1.60e-07', job_status='DONE', time_completed='2021-09-12 00:26:19.540333', photon_index_error2='0.32', photon_index2='2.09', ts='16.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='4.32e-05', EG='1.02', time_epoch_completed='1631431579.54', return_code='0', job_id='469876', GAL2='1.03', EG2='1.02', return_code2='0', energy_flux_error='3.38e-05', photon_flux_error2='7.82e-08', ts2='16.05', photon_index='2.08' WHERE bin_id='552' AND source_name='4FGL J1517.7-2422' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:26:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 469876: <4FGL_J1517.7-2422_daily_bin552> in cluster <slac> Done

Job <4FGL_J1517.7-2422_daily_bin552> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 12 00:11:08 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 00:11:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 12 00:11:09 2021
Terminated at Sun Sep 12 00:26:20 2021
Results reported at Sun Sep 12 00:26:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7-2422_daily_bin552 229.425 -24.373 382406401 382665601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1517.7-2422 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   719.37 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             283.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

