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


Performing analysis on: 4FGL_J1517.7-2422_daily_bin424
RA = 229.425, Dec = -24.373
tmin = 349228801, tmax = 349488001
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='469708', job_status='RUN', time_executed='2021-09-12 00:11:11.869598', time_epoch_executed='1631430671.87' WHERE source_name='4FGL J1517.7-2422' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469708

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469708/ft1_4FGL_J1517.7-2422_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469708/ft2_4FGL_J1517.7-2422_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469708/ft1_4FGL_J1517.7-2422_daily_bin424.fits outfile=/scratch/kocevski/469708/ft1_filteredMKT_4FGL_J1517.7-2422_daily_bin424.fits ra=229.425 dec=-24.373 rad=12.0 tmin=349228801.0 tmax=349488001.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.45
user 3.19
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469708/ft2_4FGL_J1517.7-2422_daily_bin424.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/469708/ft1_filteredMKT_4FGL_J1517.7-2422_daily_bin424.fits evtable="EVENTS" outfile="/scratch/kocevski/469708/ft1_filtered_4FGL_J1517.7-2422_daily_bin424.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469708/ft1_filtered_4FGL_J1517.7-2422_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/469708/ft2_4FGL_J1517.7-2422_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/469708/ltcube_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.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/469708/ft2_4FGL_J1517.7-2422_daily_bin424.fits
.....................!
real 11.91
user 11.55
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469708/ft1_filtered_4FGL_J1517.7-2422_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/469708/ft2_4FGL_J1517.7-2422_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/469708/ltcube_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.fits outfile=/scratch/kocevski/469708/expmap_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.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/469708/ltcube_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.fits
.....................!
real 191.60
user 186.21
sys 4.84

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/469708/ft1_filtered_4FGL_J1517.7-2422_daily_bin424.fits scfile=/scratch/kocevski/469708/ft2_4FGL_J1517.7-2422_daily_bin424.fits outfile=/scratch/kocevski/469708/cmap_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469708/ft1_filtered_4FGL_J1517.7-2422_daily_bin424.fits scfile=/scratch/kocevski/469708/ft2_4FGL_J1517.7-2422_daily_bin424.fits outfile=/scratch/kocevski/469708/cmap_HighResolution_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469708/ft1_filtered_4FGL_J1517.7-2422_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/469708/ft2_4FGL_J1517.7-2422_daily_bin424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469708/Model_4FGL_J1517.7-2422_daily_bin424.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/469708/ft1_filtered_4FGL_J1517.7-2422_daily_bin424.fits.....................!
real 109.88
user 108.47
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/469708/ft1_filtered_4FGL_J1517.7-2422_daily_bin424.fits', '/scratch/kocevski/469708/ft2_4FGL_J1517.7-2422_daily_bin424.fits', expMap='/scratch/kocevski/469708/expmap_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.fits', expCube='/scratch/kocevski/469708/ltcube_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/469708/Model_4FGL_J1517.7-2422_daily_bin424.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/469708/ft1_filtered_4FGL_J1517.7-2422_daily_bin424.fits
Spacecraft file(s): /scratch/kocevski/469708/ft2_4FGL_J1517.7-2422_daily_bin424.fits
Exposure map: /scratch/kocevski/469708/expmap_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.fits
Exposure cube: /scratch/kocevski/469708/ltcube_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/469708/Model_4FGL_J1517.7-2422_daily_bin424.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) = 11175.0015423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.006       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.880       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    107.89       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .79428       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8122       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0791       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.2709       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6316       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11012E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .67012       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0632       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=   11175.00     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     2101 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.007        27.831       -.14028E-06    .48659E-05
   2  Prefactor     22.885        40.032        .42573E-05    .28019E-04
   3  Prefactor     29.393        45.109        .67030E-07   -.10436E-05
   4  Prefactor     107.89        102.44        .35670E-05    .17868E-04
   5  Prefactor     .10000E-03    3.6845       -.36103E-08** at limit **
   6  Prefactor     .10000E-03    2.9491        .19837E-08** at limit **
   7  Prefactor     .10000E-03    5.3284        .97490E-08** at limit **
   8  norm          .10000E-03    2.5982        .51429E-08** at limit **
   9  norm          .10000E-03    17.972       -.42583E-09** at limit **
  10  norm          .79425        .59559        .14066E-07   -.12472E-03
  11  Prefactor     9.8125        5.3389       -.31118E-08    .27410E-03
  12  norm          2.0794        2.4672        .20757E-07   -.16494E-03
  13  norm          .10000E-03    2.6304        .41343E-08** at limit **
  14  Prefactor     .10000E-03    21.379        .88390E-08** at limit **
  15  Prefactor     .10000E-03    43.810       -.29589E-07** at limit **
  16  norm          4.2709        4.4165        .26308E-06   -.63043E-03
  17  Prefactor     1.6306        2.4019        .60597E-07   -.26126E-03
  18  Prefactor     .10000E-03    88.462        .11567E-06** at limit **
  19  Normalizat    .67011        .27919       -.10462E-05   -.21237E-04
  20  Prefactor     1.0632        .75995E-01    .52444E-07   -.15416E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.0067
  Prefactor  = 22.8851
  Prefactor  = 29.3935
  Prefactor  = 107.895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.794253
  Prefactor  = 9.8125
  norm       = 2.0794
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.27093
  Prefactor  = 1.6306
  Prefactor  = 0.0001
  Normalizat = 0.670106
  Prefactor  = 1.06317
 **********
 **   18 **HESSE 
 **********

 FCN=   11175.00     FROM HESSE     STATUS=OK           293 CALLS     2394 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.007        27.778        .68718E-04   -1.4541    
   2  Prefactor     22.885        40.126        .83740E-04   -1.4751    
   3  Prefactor     29.393        45.035        .73899E-04   -1.4623    
   4  Prefactor     107.89        102.56        .38720E-04   -1.3627    
   5  Prefactor     .10000E-03    3.6921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9544        .17728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.6495        .16637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    17.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .79425        .56632        .67529E-03   -1.5530    
  11  Prefactor     9.8125        5.4124        .63963E-03   -1.5081    
  12  norm          2.0794        2.4701        .17443E-03   -1.5420    
  13  norm          .10000E-03    2.6403        .16743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    44.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.2709        8.5822        .97478E-03   -1.5295    
  17  Prefactor     1.6306        2.4225        .19191E-03   -1.5453    
  18  Prefactor     .10000E-03    88.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .67011        .29430        .60486E-03   -1.0509    
  20  Prefactor     1.0632        .82057E-01    .13831E-03   -.90652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36789e-09
Minuit parameter uncertainties:
  1  27.7887
  2  40.1738
  3  45.0868
  4  102.729
  5  1.11468e-06
  6  3.5235e-07
  7  1.25224e-06
  8  6.36157e-07
  9  1.10548e-06
  10  0.566327
  11  5.41272
  12  2.47024
  13  7.54746e-07
  14  2.7011e-06
  15  8.69427e-06
  16  8.58469
  17  2.42265
  18  2.05516e-05
  19  0.294999
  20  0.0820664
Done.

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

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  7.943e-01  5.663e-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.063e+00  8.207e-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:  6.701e-01  2.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.35
Ra Dec: 229.425 -24.373
Photon Index (Fixed Index): 2.08 +/- 0.00
Photon Flux (Fixed Index): 5.37e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 2.06e-05

TS (Fixed Index): 3.35
Ra Dec: 229.425 -24.373
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/469708/likelihoodResults_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.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) = 11174.7619452
delta logL = 0.237060832575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11174.7469571
delta logL = 0.252048868191

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73529       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4943       1.0000          .0000       5.0000    
     3 'Normalizat'    .63607       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0676       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.

 FCN=   11174.75     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      211 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73541        5.8938        .12196E-01    .13625E-02
   2  alpha         2.4941        3.6935        .41152        .56782E-04
   3  Normalizat    .63611        .67059E-01    .13963        .73321E-04
   4  Prefactor     1.0676        .17882E-01    .38973E-01   -.16743E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.735409
  alpha      = 2.49409
  Normalizat = 0.636109
  Prefactor  = 1.06761
 **********
 **   18 **HESSE 
 **********

 FCN=   11174.75     FROM HESSE     STATUS=OK            35 CALLS      246 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73541        .57906        .57302E-03   -1.5536    
   2  alpha         2.4941        .63502        .15024E-01   -.23627E-02
   3  Normalizat    .63611        .28936        .61964E-03   -1.0647    
   4  Prefactor     1.0676        .81286E-01    .13803E-03   -.90509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25862e-09
Minuit parameter uncertainties:
  1  0.579065
  2  0.642051
  3  0.290058
  4  0.0812957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469708': 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) = 11174.746957
delta logL = 0.252048955062

Extracting fit parameters...

4FGL J1517.7-2422
   Spectrum: LogParabola
315         norm:  7.354e-01  5.791e-01  1.000e-04  1.000e+04 ( 1.000e-11)
316        alpha:  2.494e+00  6.421e-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.068e+00  8.130e-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:  6.361e-01  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.88
Ra Dec: 229.425 -24.373
Photon Index (Free Index): 2.49 +/- 0.64
Photon Flux (Free Index): 8.50e-08 +/- 6.55e-08
Energy Flux (Free Index): 2.49e-05 +/- 1.68e-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/469708/cmap_HighResolution_349228801_349488001_4FGL_J1517.7-2422_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-05', comment='SUCCESS', photon_flux='5.37e-08', energy_flux2='2.49e-05', photon_flux_error='3.83e-08', dlogl='2.52e-01', energy_flux='2.88e-05', photon_flux2='8.50e-08', job_status='DONE', time_completed='2021-09-12 00:26:31.853381', photon_index_error2='0.64', photon_index2='2.49', ts='3.35', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.68e-05', EG='0.67', time_epoch_completed='1631431591.85', return_code='0', job_id='469708', GAL2='1.07', EG2='0.64', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='6.55e-08', ts2='3.88', photon_index='2.08' WHERE bin_id='424' AND source_name='4FGL J1517.7-2422' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:26:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 469708: <4FGL_J1517.7-2422_daily_bin424> in cluster <slac> Done

Job <4FGL_J1517.7-2422_daily_bin424> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 12 00:10:53 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 12 00:10:55 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:10:55 2021
Terminated at Sun Sep 12 00:26:32 2021
Results reported at Sun Sep 12 00:26:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7-2422_daily_bin424 229.425 -24.373 349228801 349488001 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 :                                   916.34 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             345.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

