/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 12 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 = 7475
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1517.7+6525_daily_bin51
RA = 229.436, Dec = 65.424
tmin = 252547201, tmax = 252806401
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='458517', job_status='RUN', time_executed='2021-09-11 23:36:36.733008', time_epoch_executed='1631428596.73' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458517

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458517/ft1_4FGL_J1517.7+6525_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458517/ft2_4FGL_J1517.7+6525_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458517/ft1_4FGL_J1517.7+6525_daily_bin51.fits outfile=/scratch/kocevski/458517/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin51.fits ra=229.436 dec=65.424 rad=12.0 tmin=252547201.0 tmax=252806401.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 1.40
user 1.23
sys 0.14

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/458517/ft2_4FGL_J1517.7+6525_daily_bin51.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/458517/ft2_4FGL_J1517.7+6525_daily_bin51.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/458517/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin51.fits evtable="EVENTS" outfile="/scratch/kocevski/458517/ft1_filtered_4FGL_J1517.7+6525_daily_bin51.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458517/ft1_filtered_4FGL_J1517.7+6525_daily_bin51.fits" evtable="EVENTS" scfile=/scratch/kocevski/458517/ft2_4FGL_J1517.7+6525_daily_bin51.fits sctable="SC_DATA" outfile=/scratch/kocevski/458517/ltcube_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.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/458517/ft2_4FGL_J1517.7+6525_daily_bin51.fits
.....................!
real 12.43
user 12.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458517/ft1_filtered_4FGL_J1517.7+6525_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/458517/ft2_4FGL_J1517.7+6525_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/458517/ltcube_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.fits outfile=/scratch/kocevski/458517/expmap_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.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/458517/ltcube_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.fits
.....................!
real 192.18
user 188.01
sys 3.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
Added 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1517.7+6525 @ 229.436 65.424

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/458517/ft1_filtered_4FGL_J1517.7+6525_daily_bin51.fits scfile=/scratch/kocevski/458517/ft2_4FGL_J1517.7+6525_daily_bin51.fits outfile=/scratch/kocevski/458517/cmap_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.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.436 yref=65.424 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458517/ft1_filtered_4FGL_J1517.7+6525_daily_bin51.fits scfile=/scratch/kocevski/458517/ft2_4FGL_J1517.7+6525_daily_bin51.fits outfile=/scratch/kocevski/458517/cmap_HighResolution_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.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.436 yref=65.424 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/458517/ft1_filtered_4FGL_J1517.7+6525_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/458517/ft2_4FGL_J1517.7+6525_daily_bin51.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/458517/Model_4FGL_J1517.7+6525_daily_bin51.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/458517/ft1_filtered_4FGL_J1517.7+6525_daily_bin51.fits.....................!
real 53.39
user 52.14
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/458517/ft1_filtered_4FGL_J1517.7+6525_daily_bin51.fits', '/scratch/kocevski/458517/ft2_4FGL_J1517.7+6525_daily_bin51.fits', expMap='/scratch/kocevski/458517/expmap_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.fits', expCube='/scratch/kocevski/458517/ltcube_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/458517/Model_4FGL_J1517.7+6525_daily_bin51.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1517.7+6525'

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  8.633e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.816e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/458517/ft1_filtered_4FGL_J1517.7+6525_daily_bin51.fits
Spacecraft file(s): /scratch/kocevski/458517/ft2_4FGL_J1517.7+6525_daily_bin51.fits
Exposure map: /scratch/kocevski/458517/expmap_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.fits
Exposure cube: /scratch/kocevski/458517/ltcube_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/458517/Model_4FGL_J1517.7+6525_daily_bin51.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) = 5888.24541712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26194E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0890       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4749       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32408E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12637E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.389       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.8007       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.908       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8418       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.655       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.2371       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.0213       1.0000         .10000E-03   10000.    
    20 'Prefactor '    64.359       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4435       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.500       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    59.360       1.0000         .10000E-03   10000.    
    26 'norm      '    .12388E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.426       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.0917       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .82239       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .99202       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5888.232     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     4184 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    477.70        .46891E-04** at limit **
   2  Prefactor     .10000E-03    12.311       -.46068E-06** at limit **
   3  Prefactor     3.0753        6.7372        .69676E-05   -.16033E-03
   4  Prefactor     .10000E-03    11.039        .46080E-06** at limit **
   5  Prefactor     2.4991        22.547       -.12626E-04   -.19499E-03
   6  Prefactor     .10000E-03    9.3351       -.12922E-05** at limit **
   7  Prefactor     .10000E-03    43.428        .16229E-05** at limit **
   8  Prefactor     .10000E-03    272.28       -.66129E-06** at limit **
   9  Prefactor     .10000E-03    7.5110       -.41049E-07** at limit **
  10  Prefactor     .10000E-03    195.54       -.41868E-05** at limit **
  11  Prefactor     31.386        29.218        .11505E-06   -.58829E-05
  12  Prefactor     7.8107        21.675        .15332E-05    .63609E-08
  13  Prefactor     12.905        26.205        .41842E-06   -.60446E-05
  14  Prefactor     1.8428        13.746        .95519E-06    .12116E-04
  15  Prefactor     .10000E-03    42.422        .36513E-05** at limit **
  16  Prefactor     11.657        11.411        .40421E-06   -.46085E-04
  17  Prefactor     6.2378        13.743        .25808E-05    .36241E-04
  18  Prefactor     .10000E-03    9.0961        .10364E-05** at limit **
  19  norm          4.0214        2.4468        .68614E-07   -.31309E-04
  20  Prefactor     64.372        66.787       -.11123E-05   -.30284E-04
  21  Prefactor     2.4441        5.3266        .56334E-08   -.17091E-04
  22  norm          .10000E-03    1.8592        .83661E-07** at limit **
  23  Prefactor     12.508        19.550        .83153E-06    .59111E-05
  24  Prefactor     .10000E-03    47.933       -.55188E-05** at limit **
  25  Prefactor     59.359        45.090        .40303E-06    .10269E-04
  26  norm          .10019E-03    8.5947        .40274E-05** at limit **
  27  norm          .10000E-03    .43656       -.10683E-06** at limit **
  28  Prefactor     21.430        11.864        .50896E-06   -.23010E-03
  29  Prefactor     8.0899        16.112        .21820E-06    .23437E-04
  30  Normalizat    .82236        .17248       -.30766E-05   -.33931E-03
  31  Prefactor     .99194        .16727        .12031E-05   -.46868E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 3.07527
  Prefactor  = 0.0001
  Prefactor  = 2.49914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.3863
  Prefactor  = 7.81073
  Prefactor  = 12.9055
  Prefactor  = 1.84277
  Prefactor  = 0.0001
  Prefactor  = 11.6571
  Prefactor  = 6.23783
  Prefactor  = 0.0001
  norm       = 4.02143
  Prefactor  = 64.3716
  Prefactor  = 2.44408
  norm       = 0.0001
  Prefactor  = 12.5078
  Prefactor  = 0.0001
  Prefactor  = 59.3589
  norm       = 0.00010019
  norm       = 0.0001
  Prefactor  = 21.4298
  Prefactor  = 8.0899
  Normalizat = 0.822364
  Prefactor  = 0.991938
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.232     FROM HESSE     STATUS=OK           620 CALLS     4804 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    478.77        .19971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0753        6.8455        .92174E-03   -1.5357    
   4  Prefactor     .10000E-03    11.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4991        22.905        .25990E-03   -1.5392    
   6  Prefactor     .10000E-03    9.4725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    43.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    272.32        .21357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.5213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    196.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.386        29.213        .71518E-04   -1.4587    
  12  Prefactor     7.8107        21.679        .14357E-03   -1.5149    
  13  Prefactor     12.905        26.220        .11149E-03   -1.4989    
  14  Prefactor     1.8428        13.038        .30735E-03   -1.5436    
  15  Prefactor     .10000E-03    42.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.657        11.277        .11734E-03   -1.5025    
  17  Prefactor     6.2378        13.693        .80369E-03   -1.5208    
  18  Prefactor     .10000E-03    9.0965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.0214        2.4465        .90192E-04   -1.5307    
  20  Prefactor     64.372        66.819        .50023E-04   -1.4102    
  21  Prefactor     2.4441        5.3001        .25310E-03   -1.5395    
  22  norm          .10000E-03    1.8621        .10216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.508        19.549        .11330E-03   -1.5000    
  24  Prefactor     .10000E-03    47.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     59.359        44.564        .52074E-04   -1.4166    
  26  norm          .10019E-03    37.935        .39743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .89137        .94483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     21.430        11.618        .86531E-04   -1.4782    
  29  Prefactor     8.0899        15.833        .14095E-03   -1.5139    
  30  Normalizat    .82236        .20330        .23937E-03   -.99244    
  31  Prefactor     .99194        .19726        .22717E-03   -.92999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28027e-09
Minuit parameter uncertainties:
  1  0.00245468
  2  1.85156e-05
  3  6.84722
  4  2.03433e-05
  5  15.1392
  6  1.17125e-05
  7  6.2542e-06
  8  4.50452e-05
  9  2.5487e-06
  10  3.05307e-05
  11  29.2258
  12  21.701
  13  26.2429
  14  9.8062
  15  0.00017833
  16  11.2791
  17  13.7
  18  1.38881e-05
  19  2.44656
  20  66.8969
  21  5.30109
  22  3.61243e-06
  23  19.5585
  24  0.000251043
  25  44.5893
  26  0.00537955
  27  3.5567e-06
  28  11.619
  29  15.8409
  30  0.203492
  31  0.1974
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.389e-05  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.816e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.919e-01  1.974e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  8.224e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 229.436 65.424
Photon Flux Upper Limit: 2.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/458517/likelihoodResults_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.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) = 5888.23209569
delta logL = -0.000518369158272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5888.2315774
delta logL = -7.48696038499e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7943       1.0000          .0000       10.000    
     3 'Normalizat'    .82234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99196       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5888.232     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      197 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    661.28        .90712E-02** at limit **
   2  Index         1.7727        6.0109        .50000        .16677E-04
   3  Normalizat    .82236        .36042E-01    .43901E-01   -.11564E-04
   4  Prefactor     .99194        .37449E-01    .46166E-01    .77690E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.77266
  Normalizat = 0.822363
  Prefactor  = 0.99194
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.232     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      230 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2103.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7727        7.8708        .50000       -.70164    
   3  Normalizat    .82236        .14482        .23937E-03   -.99244    
   4  Prefactor     .99194        .15049        .22717E-03   -.92999    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.01642e-07
Minuit parameter uncertainties:
  1  0.00359261
  2  59.3204
  3  0.144887
  4  0.15055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458517': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5888.23157712
delta logL = 2.00820977625e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  3.593e-03  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.773e+00  5.932e+01  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  3.014e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  9.919e-01  1.506e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  8.224e-01  1.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 229.436 65.424

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/458517/cmap_HighResolution_252547201_252806401_4FGL_J1517.7+6525_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-03', job_status='DONE', photon_flux_upper_limit='2.99e-08', time_completed='2021-09-11 23:52:28.243641', job_id='458517', GAL2='0.99', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1631429548.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='51' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:52:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 458517: <4FGL_J1517.7+6525_daily_bin51> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin51> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 23:36:15 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:36:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 23:36:16 2021
Terminated at Sat Sep 11 23:52:28 2021
Results reported at Sat Sep 11 23:52:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin51 229.436 65.424 252547201 252806401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1517.7+6525 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   947.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             304.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            973 sec.

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

