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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin61
RA = 229.436, Dec = 65.424
tmin = 255139201, tmax = 255398401
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='458534', job_status='RUN', time_executed='2021-09-11 23:37:51.696040', time_epoch_executed='1631428671.7' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458534

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458534/ft1_4FGL_J1517.7+6525_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458534/ft2_4FGL_J1517.7+6525_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458534/ft1_4FGL_J1517.7+6525_daily_bin61.fits outfile=/scratch/kocevski/458534/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin61.fits ra=229.436 dec=65.424 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.44
user 7.17
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/458534/ft1_filtered_4FGL_J1517.7+6525_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/458534/ft2_4FGL_J1517.7+6525_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/458534/ltcube_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.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/458534/ft2_4FGL_J1517.7+6525_daily_bin61.fits
.....................!
real 11.62
user 11.31
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458534/ft1_filtered_4FGL_J1517.7+6525_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/458534/ft2_4FGL_J1517.7+6525_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/458534/ltcube_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.fits outfile=/scratch/kocevski/458534/expmap_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.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/458534/ltcube_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.fits
.....................!
real 189.55
user 184.78
sys 4.46

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/458534/ft1_filtered_4FGL_J1517.7+6525_daily_bin61.fits scfile=/scratch/kocevski/458534/ft2_4FGL_J1517.7+6525_daily_bin61.fits outfile=/scratch/kocevski/458534/cmap_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/458534/ft1_filtered_4FGL_J1517.7+6525_daily_bin61.fits scfile=/scratch/kocevski/458534/ft2_4FGL_J1517.7+6525_daily_bin61.fits outfile=/scratch/kocevski/458534/cmap_HighResolution_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/458534/ft1_filtered_4FGL_J1517.7+6525_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/458534/ft2_4FGL_J1517.7+6525_daily_bin61.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/458534/Model_4FGL_J1517.7+6525_daily_bin61.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/458534/ft1_filtered_4FGL_J1517.7+6525_daily_bin61.fits....................!
real 43.00
user 41.70
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/458534/ft1_filtered_4FGL_J1517.7+6525_daily_bin61.fits', '/scratch/kocevski/458534/ft2_4FGL_J1517.7+6525_daily_bin61.fits', expMap='/scratch/kocevski/458534/expmap_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.fits', expCube='/scratch/kocevski/458534/ltcube_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/458534/Model_4FGL_J1517.7+6525_daily_bin61.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/458534/ft1_filtered_4FGL_J1517.7+6525_daily_bin61.fits
Spacecraft file(s): /scratch/kocevski/458534/ft2_4FGL_J1517.7+6525_daily_bin61.fits
Exposure map: /scratch/kocevski/458534/expmap_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.fits
Exposure cube: /scratch/kocevski/458534/ltcube_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/458534/Model_4FGL_J1517.7+6525_daily_bin61.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) = 4402.17957092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    31.224       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1861       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.723       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.936       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3031       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.948       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29777E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    112.41       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.254       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1359       1.0000         .10000E-03   10000.    
    20 'Prefactor '    91.935       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.341       1.0000         .10000E-03   10000.    
    22 'norm      '    9.9826       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.3210       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.9932       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .85307       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .74019       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=   4402.172     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     4105 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.577        .49578E-05** at limit **
   2  Prefactor     31.230        29.966        .46294E-07   -.32133E-04
   3  Prefactor     2.1872        6.8339        .27538E-06   -.10623E-03
   4  Prefactor     .10000E-03    13.133        .12964E-05** at limit **
   5  Prefactor     18.722        16.978       -.18897E-06   -.12884E-03
   6  Prefactor     11.937        10.814        .83352E-07   -.36974E-04
   7  Prefactor     .10000E-03    24.390        .29138E-05** at limit **
   8  Prefactor     .10000E-03    270.84        .53236E-05** at limit **
   9  Prefactor     2.5209        39.256        .70242E-05   -.28262E-04
  10  Prefactor     .10000E-03    29.324       -.52382E-05** at limit **
  11  Prefactor     .10000E-03    14.832       -.96297E-06** at limit **
  12  Prefactor     2.3038        16.687        .64501E-05   -.82582E-04
  13  Prefactor     26.948        34.113        .43883E-06    .17154E-05
  14  Prefactor     .10006E-03    10.983        .13004E-05** at limit **
  15  Prefactor     112.41        83.584        .34090E-06    .34731E-05
  16  Prefactor     18.254        11.418        .28533E-06   -.38171E-04
  17  Prefactor     15.059        15.399        .10117E-06   -.30840E-05
  18  Prefactor     .10000E-03    14.082       -.21083E-06** at limit **
  19  norm          3.1360        2.2713       -.10111E-07   -.17288E-04
  20  Prefactor     91.929        101.63        .13139E-05    .13888E-04
  21  Prefactor     20.341        13.086       -.21360E-06   -.53078E-05
  22  norm          9.9830        10.838        .76881E-06   -.56226E-04
  23  Prefactor     .10000E-03    10.510        .58778E-07** at limit **
  24  Prefactor     .10000E-03    68.954       -.31284E-05** at limit **
  25  Prefactor     .10000E-03    12.036       -.66743E-06** at limit **
  26  norm          5.3150        9.7085        .31814E-06   -.36106E-05
  27  norm          .10000E-03    .16932        .28557E-07** at limit **
  28  Prefactor     .10000E-03    8.3677        .40641E-08** at limit **
  29  Prefactor     2.9902        12.048        .38921E-05   -.79308E-04
  30  Normalizat    .85318        .18873       -.91854E-06   -.41930E-04
  31  Prefactor     .74003        .17398       -.41824E-06   -.55428E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 31.2299
  Prefactor  = 2.18719
  Prefactor  = 0.0001
  Prefactor  = 18.7221
  Prefactor  = 11.937
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 2.52094
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 2.30377
  Prefactor  = 26.9482
  Prefactor  = 0.000100062
  Prefactor  = 112.408
  Prefactor  = 18.2538
  Prefactor  = 15.0591
  Prefactor  = 0.0001
  norm       = 3.136
  Prefactor  = 91.929
  Prefactor  = 20.3413
  norm       = 9.983
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.31504
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99016
  Normalizat = 0.853183
  Prefactor  = 0.740028
 **********
 **   18 **HESSE 
 **********

 FCN=   4402.172     FROM HESSE     STATUS=OK           624 CALLS     4729 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     31.230        29.960        .71706E-04   -1.4590    
   3  Prefactor     2.1872        6.5758        .21764E-03   -1.5412    
   4  Prefactor     .10000E-03    13.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.722        16.415        .92561E-04   -1.4842    
   6  Prefactor     11.937        10.822        .11595E-03   -1.5017    
   7  Prefactor     .10000E-03    24.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    271.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5209        39.578        .12864E-02   -1.5390    
  10  Prefactor     .10000E-03    29.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3038        16.794        .13520E-02   -1.5404    
  13  Prefactor     26.948        34.172        .77171E-04   -1.4669    
  14  Prefactor     .10006E-03    79.395        .38952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     112.41        83.616        .37942E-04   -1.3584    
  16  Prefactor     18.254        10.844        .93743E-04   -1.4853    
  17  Prefactor     15.059        15.423        .10321E-03   -1.4932    
  18  Prefactor     .10000E-03    14.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1360        2.2729        .82170E-04   -1.5354    
  20  Prefactor     91.929        101.93        .41911E-04   -1.3787    
  21  Prefactor     20.341        13.080        .88807E-04   -1.4806    
  22  norm          9.9830        10.839        .63412E-03   -1.5076    
  23  Prefactor     .10000E-03    10.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    69.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.3150        9.7018        .17423E-03   -1.5247    
  27  norm          .10000E-03    .17033        .26626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.5128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.9902        12.078        .11732E-02   -1.5362    
  30  Normalizat    .85318        .22156        .22530E-03   -.98125    
  31  Prefactor     .74003        .20276        .23880E-03   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09365e-09
Minuit parameter uncertainties:
  1  0.000676067
  2  29.9747
  3  6.57797
  4  8.86734e-05
  5  16.4191
  6  10.8233
  7  0.000304683
  8  0.0018683
  9  19.9927
  10  0.000602441
  11  7.93107e-05
  12  12.445
  13  34.1971
  14  0.0044339
  15  83.7043
  16  10.8448
  17  15.4272
  18  1.79779e-05
  19  2.273
  20  102.128
  21  13.082
  22  10.8408
  23  3.39002e-06
  24  0.000549122
  25  4.88635e-05
  26  9.70467
  27  3.02259e-07
  28  7.55567e-07
  29  12.0232
  30  0.221792
  31  0.202959
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.798e-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:  7.400e-01  2.030e-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.532e-01  2.218e-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: 3.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/458534/likelihoodResults_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.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) = 4402.1721693
delta logL = -0.000337492516337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4402.17183195
delta logL = -1.40068550536e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7997       1.0000          .0000       10.000    
     3 'Normalizat'    .85323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73998       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4402.172     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      228 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    379.78        .18142E-01** at limit **
   2  Index         1.4716        5.7184        .10835        .75234E-07
   3  Normalizat    .85318        .21811E-01    .22530E-03    .17106E-04
   4  Prefactor     .74003        .21792E-01    .23880E-03    .15853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.47163
  Normalizat = 0.853183
  Prefactor  = 0.740028
 **********
 **   18 **HESSE 
 **********

 FCN=   4402.172     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.174        .25781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4716        9.2572        .43338E-02   -.78337    
   3  Normalizat    .85318        .19946        .90120E-05   -.98125    
   4  Prefactor     .74003        .19927        .95521E-05   -1.0198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79727e-11
Minuit parameter uncertainties:
  1  4.80686e-05
  2  392.063
  3  0.199631
  4  0.199463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458534': 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) = 4402.17183142
delta logL = 3.90962668462e-07

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  4.807e-05  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.472e+00  3.921e+02  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:  7.400e-01  1.995e-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.532e-01  1.996e-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/458534/cmap_HighResolution_255139201_255398401_4FGL_J1517.7+6525_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-03', job_status='DONE', photon_flux_upper_limit='3.98e-08', time_completed='2021-09-11 23:51:23.463188', job_id='458534', GAL2='0.74', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631429483.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.91e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='61' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 23:51:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 458534: <4FGL_J1517.7+6525_daily_bin61> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin61> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 23:36:16 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:36:17 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:17 2021
Terminated at Sat Sep 11 23:51:23 2021
Results reported at Sat Sep 11 23:51:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin61 229.436 65.424 255139201 255398401 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 :                                   808.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             311.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            907 sec.

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

