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


Performing analysis on: 4FGL_J1517.7+6525_daily_bin717
RA = 229.436, Dec = 65.424
tmin = 425174401, tmax = 425433601
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='461468', job_status='RUN', time_executed='2021-09-11 23:48:12.168226', time_epoch_executed='1631429292.17' WHERE source_name='4FGL J1517.7+6525' and cadence='daily' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461468

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461468/ft1_4FGL_J1517.7+6525_daily_bin717.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461468/ft2_4FGL_J1517.7+6525_daily_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461468/ft1_4FGL_J1517.7+6525_daily_bin717.fits outfile=/scratch/kocevski/461468/ft1_filteredMKT_4FGL_J1517.7+6525_daily_bin717.fits ra=229.436 dec=65.424 rad=12.0 tmin=425174401.0 tmax=425433601.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 5.37
user 5.09
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461468/ft1_filtered_4FGL_J1517.7+6525_daily_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/461468/ft2_4FGL_J1517.7+6525_daily_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/461468/ltcube_425174401_425433601_4FGL_J1517.7+6525_daily_bin717.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/461468/ft2_4FGL_J1517.7+6525_daily_bin717.fits
.....................!
real 11.75
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461468/ft1_filtered_4FGL_J1517.7+6525_daily_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/461468/ft2_4FGL_J1517.7+6525_daily_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/461468/ltcube_425174401_425433601_4FGL_J1517.7+6525_daily_bin717.fits outfile=/scratch/kocevski/461468/expmap_425174401_425433601_4FGL_J1517.7+6525_daily_bin717.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/461468/ltcube_425174401_425433601_4FGL_J1517.7+6525_daily_bin717.fits
.....................!
real 191.65
user 186.51
sys 4.56

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/461468/ft1_filtered_4FGL_J1517.7+6525_daily_bin717.fits scfile=/scratch/kocevski/461468/ft2_4FGL_J1517.7+6525_daily_bin717.fits outfile=/scratch/kocevski/461468/cmap_425174401_425433601_4FGL_J1517.7+6525_daily_bin717.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461468/ft1_filtered_4FGL_J1517.7+6525_daily_bin717.fits scfile=/scratch/kocevski/461468/ft2_4FGL_J1517.7+6525_daily_bin717.fits outfile=/scratch/kocevski/461468/cmap_HighResolution_425174401_425433601_4FGL_J1517.7+6525_daily_bin717.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461468/ft1_filtered_4FGL_J1517.7+6525_daily_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/461468/ft2_4FGL_J1517.7+6525_daily_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461468/Model_4FGL_J1517.7+6525_daily_bin717.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/461468/ft1_filtered_4FGL_J1517.7+6525_daily_bin717.fits.....................!
real 50.27
user 48.93
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.354       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1373       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18999E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6145       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11256E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6173       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    59.325       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.052       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .88628E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4604       1.0000         .10000E-03   10000.    
    22 'norm      '    5.5686       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .87934       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.4985       1.0000         .10000E-03   10000.    
    29 'Prefactor '    79.421       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1071       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .89833       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5283.624     FROM MIGRAD    STATUS=CONVERGED    102 CALLS     3411 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.359        1.7455        .13868E-05   -.25572E-02
   2  Prefactor     7.1374        1.0031       -.52014E-07    .20310E-05
   3  Prefactor     .10000E-03    8.7801        .10215E-05** at limit **
   4  Prefactor     .10000E-03    10.500       -.64427E-05** at limit **
   5  Prefactor     3.6306        1.7801       -.58227E-05   -.20691E-02
   6  Prefactor     .10001E-03    8.1419       -.96020E-05** at limit **
   7  Prefactor     28.531        1.0684       -.57973E-06   -.51682E-04
   8  Prefactor     .12192E-03    141.28       -.17601E-03** at limit **
   9  Prefactor     .10158E-03    16.117        .40839E-04** at limit **
  10  Prefactor     .10168E-03    14.895       -.22468E-04** at limit **
  11  Prefactor     .10001E-03    6.4197        .26764E-05** at limit **
  12  Prefactor     3.6174        1.0113        .25266E-06    .59638E-04
  13  Prefactor     .10230E-03    25.213        .21779E-04** at limit **
  14  Prefactor     .10000E-03    6.7524        .43938E-06** at limit **
  15  Prefactor     59.327        1.0871        .50537E-06   -.47323E-03
  16  Prefactor     .10000E-03    3.0247       -.39825E-06** at limit **
  17  Prefactor     30.049        1.0324        .33837E-06    .17113E-03
  18  Prefactor     .10002E-03    8.1590       -.10205E-04** at limit **
  19  norm          .10154E-03    4.4324       -.34012E-04** at limit **
  20  Prefactor     .10153E-03    50.300        .81606E-04** at limit **
  21  Prefactor     6.4604        4.3134       -.48117E-05   -.10752E-02
  22  norm          5.5685        3.7109       -.44981E-05   -.90069E-03
  23  Prefactor     .10004E-03    6.6997        .91071E-05** at limit **
  24  Prefactor     .10529E-03    44.674        .23942E-04** at limit **
  25  Prefactor     .10005E-03    25.900       -.38637E-04** at limit **
  26  norm          .10000E-03    3.3842        .40865E-06** at limit **
  27  norm          .87963        .88249       -.20688E-07   -.22272E-03
  28  Prefactor     2.4958        1.0381       -.46983E-06   -.19212E-03
  29  Prefactor     79.422        1.0169        .17844E-06   -.16825E-03
  30  Normalizat    1.1071        .20048        .17584E-06    .14467E-03
  31  Prefactor     .89836        .20407        .17366E-05   -.38974E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.3594
  Prefactor  = 7.13736
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.63059
  Prefactor  = 0.00010001
  Prefactor  = 28.5308
  Prefactor  = 0.000121923
  Prefactor  = 0.000101578
  Prefactor  = 0.00010168
  Prefactor  = 0.000100008
  Prefactor  = 3.61741
  Prefactor  = 0.0001023
  Prefactor  = 0.0001
  Prefactor  = 59.3267
  Prefactor  = 0.0001
  Prefactor  = 30.0488
  Prefactor  = 0.000100017
  norm       = 0.000101541
  Prefactor  = 0.000101531
  Prefactor  = 6.46037
  norm       = 5.56852
  Prefactor  = 0.000100041
  Prefactor  = 0.000105291
  Prefactor  = 0.000100051
  norm       = 0.0001
  norm       = 0.879628
  Prefactor  = 2.49579
  Prefactor  = 79.4224
  Normalizat = 1.10711
  Prefactor  = 0.898355
 **********
 **   18 **HESSE 
 **********

 FCN=   5283.624     FROM HESSE     STATUS=OK           690 CALLS     4101 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.359        102.40        .10511E-02   -1.3793    
   2  Prefactor     7.1374        33.747        .37537E-02   -1.5174    
   3  Prefactor     .10000E-03    3.1742        .61697E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.6306        10.682        .53130E-02   -1.5327    
   6  Prefactor     .10001E-03    15.863        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.531        33.562        .18751E-02   -1.4639    
   8  Prefactor     .12192E-03    197.37        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10158E-03    24.295        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10168E-03    26.745        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    12.935        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6174        15.237        .53109E-02   -1.5328    
  13  Prefactor     .10230E-03    50.700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.6974        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     59.327        60.367        .13022E-02   -1.4166    
  16  Prefactor     .10000E-03    3.0147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     30.049        21.647        .18272E-02   -1.4611    
  18  Prefactor     .10002E-03    16.191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10154E-03    1.6269        .62367E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10153E-03    97.735        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.4604        6.1618        .39475E-02   -1.5200    
  22  norm          5.5685        6.3793        .42562E-02   -1.5236    
  23  Prefactor     .10004E-03    12.806        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10529E-03    114.00        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10005E-03    45.547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.3735        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .87963        1.1177        .12732E-01   -1.5520    
  28  Prefactor     2.4958        8.2382        .64638E-02   -1.5392    
  29  Prefactor     79.422        39.706        .11266E-02   -1.3923    
  30  Normalizat    1.1071        .18105        .37719E-01   -.89524    
  31  Prefactor     .89836        .18031        .44984E-01   -.96199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43376e-07
Minuit parameter uncertainties:
  1  102.594
  2  31.0682
  3  5.52908e-05
  4  0.00022195
  5  10.688
  6  0.000808416
  7  33.584
  8  0.131996
  9  0.0123877
  10  0.0134119
  11  0.000647182
  12  14.8546
  13  0.0216153
  14  8.37754e-05
  15  60.4297
  16  1.42202e-05
  17  21.6528
  18  0.00103933
  19  0.00316697
  20  0.0245061
  21  6.16242
  22  6.38007
  23  0.00144762
  24  0.0492099
  25  0.00304146
  26  1.51483e-06
  27  1.11774
  28  8.24194
  29  39.7195
  30  0.181155
  31  0.180431
Done.

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

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.039e-03  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:  8.984e-01  1.804e-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:  1.107e+00  1.812e-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: 4.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461468/likelihoodResults_425174401_425433601_4FGL_J1517.7+6525_daily_bin717.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) = 5283.62430919
delta logL = -0.000293887264888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5283.62401537
delta logL = -7.29351086193e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9119       1.0000          .0000       10.000    
     3 'Normalizat'    1.1071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89836       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=   5283.624     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      225 TOTAL
                     EDM=   .51E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1663.8        .90712E-02** at limit **
   2  Index         1.9116        9.0151        .50000        .11185E-06
   3  Normalizat    1.1071        .54216E-01    .37719E-01    .61315E-05
   4  Prefactor     .89836        .55106E-01    .44984E-01    .10835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91158
  Normalizat = 1.10711
  Prefactor  = 0.898358
 **********
 **   18 **HESSE 
 **********

 FCN=   5283.624     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1570.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9116        9.0088        .50000       -.66579    
   3  Normalizat    1.1071        .51992E-01    .22613E-03   -.89524    
   4  Prefactor     .89836        .52836E-01    .25114E-03   -.96199    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.63447e-12
Minuit parameter uncertainties:
  1  1.57598e-05
  2  39.9552
  3  0.0519941
  4  0.0528393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461468': 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) = 5283.6240153
delta logL = -3.5379343899e-09

Extracting fit parameters...

4FGL J1517.7+6525
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.576e-05  1.000e-04  1.000e+04 ( 1.000e-14)
341        Index:  1.912e+00  3.996e+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:  8.984e-01  5.284e-02  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:  1.107e+00  5.199e-02  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/461468/cmap_HighResolution_425174401_425433601_4FGL_J1517.7+6525_daily_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-09-12 00:02:29.333333', job_id='461468', GAL2='0.90', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631430149.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-3.54e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.82' WHERE bin_id='717' AND source_name='4FGL J1517.7+6525' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 12 00:02:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 461468: <4FGL_J1517.7+6525_daily_bin717> in cluster <slac> Done

Job <4FGL_J1517.7+6525_daily_bin717> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 23:45:57 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 23:45:58 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:45:58 2021
Terminated at Sun Sep 12 00:02:30 2021
Results reported at Sun Sep 12 00:02:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1517.7+6525_daily_bin717 229.436 65.424 425174401 425433601 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 :                                   854.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

