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


Performing analysis on: 4FGL_J1508.4+7717_daily_bin498
RA = 227.102, Dec = 77.2929
tmin = 368409601, tmax = 368668801
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='75756', job_status='RUN', time_executed='2021-09-11 01:16:33.683181', time_epoch_executed='1631348193.68' WHERE source_name='4FGL J1508.4+7717' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75756

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75756/ft1_4FGL_J1508.4+7717_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75756/ft2_4FGL_J1508.4+7717_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75756/ft1_4FGL_J1508.4+7717_daily_bin498.fits outfile=/scratch/kocevski/75756/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin498.fits ra=227.102 dec=77.2929 rad=12.0 tmin=368409601.0 tmax=368668801.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.32
user 3.11
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/75756/ft2_4FGL_J1508.4+7717_daily_bin498.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75756/ft2_4FGL_J1508.4+7717_daily_bin498.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/75756/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin498.fits evtable="EVENTS" outfile="/scratch/kocevski/75756/ft1_filtered_4FGL_J1508.4+7717_daily_bin498.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75756/ft1_filtered_4FGL_J1508.4+7717_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/75756/ft2_4FGL_J1508.4+7717_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/75756/ltcube_368409601_368668801_4FGL_J1508.4+7717_daily_bin498.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/75756/ft2_4FGL_J1508.4+7717_daily_bin498.fits
.....................!
real 11.85
user 11.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75756/ft1_filtered_4FGL_J1508.4+7717_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/75756/ft2_4FGL_J1508.4+7717_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/75756/ltcube_368409601_368668801_4FGL_J1508.4+7717_daily_bin498.fits outfile=/scratch/kocevski/75756/expmap_368409601_368668801_4FGL_J1508.4+7717_daily_bin498.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/75756/ltcube_368409601_368668801_4FGL_J1508.4+7717_daily_bin498.fits
.....................!
real 190.64
user 185.78
sys 4.53

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1508.4+7717 @ 227.102 77.2929

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/75756/ft1_filtered_4FGL_J1508.4+7717_daily_bin498.fits scfile=/scratch/kocevski/75756/ft2_4FGL_J1508.4+7717_daily_bin498.fits outfile=/scratch/kocevski/75756/cmap_368409601_368668801_4FGL_J1508.4+7717_daily_bin498.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=227.102 yref=77.2929 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75756/ft1_filtered_4FGL_J1508.4+7717_daily_bin498.fits scfile=/scratch/kocevski/75756/ft2_4FGL_J1508.4+7717_daily_bin498.fits outfile=/scratch/kocevski/75756/cmap_HighResolution_368409601_368668801_4FGL_J1508.4+7717_daily_bin498.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=227.102 yref=77.2929 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/75756/ft1_filtered_4FGL_J1508.4+7717_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/75756/ft2_4FGL_J1508.4+7717_daily_bin498.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75756/Model_4FGL_J1508.4+7717_daily_bin498.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/75756/ft1_filtered_4FGL_J1508.4+7717_daily_bin498.fits.....................!
real 85.11
user 83.76
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75756/ft1_filtered_4FGL_J1508.4+7717_daily_bin498.fits', '/scratch/kocevski/75756/ft2_4FGL_J1508.4+7717_daily_bin498.fits', expMap='/scratch/kocevski/75756/expmap_368409601_368668801_4FGL_J1508.4+7717_daily_bin498.fits', expCube='/scratch/kocevski/75756/ltcube_368409601_368668801_4FGL_J1508.4+7717_daily_bin498.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75756/Model_4FGL_J1508.4+7717_daily_bin498.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1508.4+7717'

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  4.602e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/75756/ft1_filtered_4FGL_J1508.4+7717_daily_bin498.fits
Spacecraft file(s): /scratch/kocevski/75756/ft2_4FGL_J1508.4+7717_daily_bin498.fits
Exposure map: /scratch/kocevski/75756/expmap_368409601_368668801_4FGL_J1508.4+7717_daily_bin498.fits
Exposure cube: /scratch/kocevski/75756/ltcube_368409601_368668801_4FGL_J1508.4+7717_daily_bin498.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75756/Model_4FGL_J1508.4+7717_daily_bin498.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) = 7833.19567688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1487       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3788       1.0000         .10000E-03   10000.    
     3 'Prefactor '    94.233       1.0000         .10000E-03   10000.    
     4 'norm      '    8.5504       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18487       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23549       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.920       1.0000         .10000E-03   10000.    
    13 'Prefactor '    69.401       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.293       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.3016       1.0000         .10000E-03   10000.    
    16 'Prefactor '    52.894       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .69208E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5792       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.014       1.0000         .10000E-03   10000.    
    24 'norm      '    .33466       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76317       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0059       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7833.182     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3136 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1484        8.0477        .20336E-05    .34407E-03
   2  Prefactor     4.3802        10.350       -.33701E-06   -.10066E-03
   3  Prefactor     94.173        70.219       -.41017E-06   -.95012E-04
   4  norm          8.5513        3.9730       -.19941E-07   -.32624E-03
   5  Prefactor     .10000E-03    17.519       -.93823E-07** at limit **
   6  Prefactor     .57576E-01    9.8515        .16846E-05   -.31326E-03
   7  Prefactor     .10000E-03    12.601        .50066E-07** at limit **
   8  Prefactor     .49657E-01    12.223       -.20699E-05    .42534E-03
   9  Prefactor     .10000E-03    3.1943        .96551E-07** at limit **
  10  Prefactor     .10000E-03    4.9373       -.19696E-07** at limit **
  11  Prefactor     .10000E-03    14.307       -.20659E-07** at limit **
  12  Prefactor     13.901        26.163       -.31013E-06   -.34584E-04
  13  Prefactor     69.373        42.651       -.18436E-06   -.96275E-04
  14  Prefactor     22.289        26.452       -.54598E-07   -.27099E-04
  15  Prefactor     7.2927        16.352        .18411E-06    .10217E-04
  16  Prefactor     52.884        48.215       -.66190E-07   -.90691E-05
  17  norm          .10000E-03    6.2817        .60899E-07** at limit **
  18  Prefactor     .10001E-03    266.63        .27915E-05** at limit **
  19  Prefactor     .10000E-03    36.346        .30149E-06** at limit **
  20  norm          1.5787        .94790        .46164E-07   -.24035E-04
  21  Prefactor     .10000E-03    1.3859        .45412E-06** at limit **
  22  Prefactor     .10000E-03    23.280        .47683E-06** at limit **
  23  Prefactor     27.005        35.433        .29662E-06   -.41968E-04
  24  norm          .33436        .44495        .26697E-06    .11071E-02
  25  Normalizat    .76358        .15475        .10989E-05   -.32273E-03
  26  Prefactor     1.0060        .11284       -.16359E-05   -.46731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.14845
  Prefactor  = 4.38017
  Prefactor  = 94.1729
  norm       = 8.5513
  Prefactor  = 0.0001
  Prefactor  = 0.0575762
  Prefactor  = 0.0001
  Prefactor  = 0.0496575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9011
  Prefactor  = 69.3728
  Prefactor  = 22.2888
  Prefactor  = 7.29274
  Prefactor  = 52.8844
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.57869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.0054
  norm       = 0.334357
  Normalizat = 0.76358
  Prefactor  = 1.00596
 **********
 **   18 **HESSE 
 **********

 FCN=   7833.182     FROM HESSE     STATUS=OK           476 CALLS     3612 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1484        8.0418        .75015E-03   -1.5173    
   2  Prefactor     4.3802        10.248        .19247E-03   -1.5289    
   3  Prefactor     94.173        70.405        .20701E-03   -1.3764    
   4  norm          8.5513        3.9497        .10559E-03   -1.5123    
   5  Prefactor     .10000E-03    17.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .57576E-01    14.611        .73280E-01   -1.5660    
   7  Prefactor     .10000E-03    12.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .49657E-01    15.097        .82494E-01   -1.5663    
   9  Prefactor     .10000E-03    3.2173        .15445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.901        26.280        .10735E-03   -1.4962    
  13  Prefactor     69.373        42.723        .24092E-03   -1.4040    
  14  Prefactor     22.289        26.452        .84834E-04   -1.4763    
  15  Prefactor     7.2927        16.352        .14843E-03   -1.5168    
  16  Prefactor     52.884        48.133        .55148E-04   -1.4252    
  17  norm          .10000E-03    6.2873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    268.54        .20986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    36.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5787        .94234        .64650E-04   -1.5457    
  21  Prefactor     .10000E-03    3.0367        .19679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.005        35.514        .77077E-04   -1.4668    
  24  norm          .33436        .42260        .66715E-03   -1.5592    
  25  Normalizat    .76358        .17265        .28193E-03   -1.0143    
  26  Prefactor     1.0060        .12451        .18717E-03   -.92531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61693e-09
Minuit parameter uncertainties:
  1  8.043
  2  10.2525
  3  70.4679
  4  3.94985
  5  8.85463e-06
  6  1.83325
  7  1.69841e-05
  8  1.73037
  9  6.81869e-06
  10  8.33989e-07
  11  2.83865e-06
  12  26.3023
  13  42.7421
  14  26.466
  15  16.3617
  16  48.1688
  17  3.05345e-06
  18  0.00242365
  19  3.80328e-05
  20  0.942351
  21  6.59483e-05
  22  1.22956e-05
  23  35.542
  24  0.422606
  25  0.172769
  26  0.124549
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  6.937e+01  4.274e+01  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.179e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.006e+00  1.245e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  7.636e-01  1.728e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.42
Ra Dec: 227.102 77.293
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 3.99e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.15e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7833.17410744
delta logL = 0.00804685014009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7833.1620038
delta logL = 0.0201504864117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    59.809       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3006       1.0000          .0000       10.000    
     3 'Normalizat'    .75660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0090       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6850E+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=   7833.162     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      279 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     59.810        70.923        .51880E-04    .45580E-05
   2  Index         2.3008        .71936        .58311E-02    .34891E-04
   3  Normalizat    .75659        .16524        .28311E-03    .49874E-04
   4  Prefactor     1.0090        .12180        .18693E-03    .11346E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 59.81
  Index      = 2.30075
  Normalizat = 0.756587
  Prefactor  = 1.00896
 **********
 **   18 **HESSE 
 **********

 FCN=   7833.162     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     59.810        61.080        .10376E-04   -1.4160    
   2  Index         2.3008        .61918        .23325E-03   -.57026    
   3  Normalizat    .75659        .16404        .11325E-04   -1.0170    
   4  Prefactor     1.0090        .12147        .37385E-04   -.92431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.7822e-12
Minuit parameter uncertainties:
  1  61.1444
  2  0.621441
  3  0.164152
  4  0.121499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75756': 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) = 7833.16200364
delta logL = 0.0201506441399

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  5.981e+01  6.114e+01  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  2.301e+00  6.214e-01  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.992e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
682    Prefactor:  1.009e+00  1.215e-01  0.000e+00  1.000e+01 ( 1.000e+00)
683        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
684        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
681   Normalization:  7.566e-01  1.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.46
Ra Dec: 227.102 77.293
Photon Index (Free Index): 2.30 +/- 0.62
Photon Flux (Free Index): 4.49e-08 +/- 3.64e-08
Energy Flux (Free Index): 1.70e-05 +/- 1.24e-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/75756/cmap_HighResolution_368409601_368668801_4FGL_J1508.4+7717_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.99e-08', energy_flux2='1.70e-05', photon_flux_error='2.45e-08', dlogl='2.02e-02', energy_flux='1.86e-05', photon_flux2='4.49e-08', job_status='DONE', time_completed='2021-09-11 01:31:05.899505', photon_index_error2='0.62', photon_index2='2.30', ts='5.42', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='0.76', time_epoch_completed='1631349065.9', return_code='0', job_id='75756', GAL2='1.01', EG2='0.76', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='3.64e-08', ts2='5.46', photon_index='2.18' WHERE bin_id='498' AND source_name='4FGL J1508.4+7717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:31:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0121>
Subject: Job 75756: <4FGL_J1508.4+7717_daily_bin498> in cluster <slac> Done

Job <4FGL_J1508.4+7717_daily_bin498> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 01:16:19 2021
Job was executed on host(s) <bullet0121>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:16:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 01:16:21 2021
Terminated at Sat Sep 11 01:31:07 2021
Results reported at Sat Sep 11 01:31:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1508.4+7717_daily_bin498 227.102 77.2929 368409601 368668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1508.4+7717 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   868.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            888 sec.

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

