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


Performing analysis on: 4FGL_J1508.4+7717_daily_bin767
RA = 227.102, Dec = 77.2929
tmin = 438134401, tmax = 438393601
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='77381', job_status='RUN', time_executed='2021-09-11 01:21:24.868134', time_epoch_executed='1631348484.87' WHERE source_name='4FGL J1508.4+7717' and cadence='daily' and bin_id='767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77381

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77381/ft1_4FGL_J1508.4+7717_daily_bin767.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77381/ft2_4FGL_J1508.4+7717_daily_bin767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77381/ft1_4FGL_J1508.4+7717_daily_bin767.fits outfile=/scratch/kocevski/77381/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin767.fits ra=227.102 dec=77.2929 rad=12.0 tmin=438134401.0 tmax=438393601.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 6.31
user 6.02
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77381/ft2_4FGL_J1508.4+7717_daily_bin767.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/77381/ft1_filteredMKT_4FGL_J1508.4+7717_daily_bin767.fits evtable="EVENTS" outfile="/scratch/kocevski/77381/ft1_filtered_4FGL_J1508.4+7717_daily_bin767.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/77381/ft1_filtered_4FGL_J1508.4+7717_daily_bin767.fits" evtable="EVENTS" scfile=/scratch/kocevski/77381/ft2_4FGL_J1508.4+7717_daily_bin767.fits sctable="SC_DATA" outfile=/scratch/kocevski/77381/ltcube_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.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/77381/ft2_4FGL_J1508.4+7717_daily_bin767.fits
.....................!
real 12.20
user 11.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77381/ft1_filtered_4FGL_J1508.4+7717_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/77381/ft2_4FGL_J1508.4+7717_daily_bin767.fits sctable="SC_DATA" expcube=/scratch/kocevski/77381/ltcube_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.fits outfile=/scratch/kocevski/77381/expmap_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.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/77381/ltcube_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.fits
.....................!
real 192.26
user 186.75
sys 5.16

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/77381/ft1_filtered_4FGL_J1508.4+7717_daily_bin767.fits scfile=/scratch/kocevski/77381/ft2_4FGL_J1508.4+7717_daily_bin767.fits outfile=/scratch/kocevski/77381/cmap_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77381/ft1_filtered_4FGL_J1508.4+7717_daily_bin767.fits scfile=/scratch/kocevski/77381/ft2_4FGL_J1508.4+7717_daily_bin767.fits outfile=/scratch/kocevski/77381/cmap_HighResolution_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77381/ft1_filtered_4FGL_J1508.4+7717_daily_bin767.fits evtable="EVENTS" scfile=/scratch/kocevski/77381/ft2_4FGL_J1508.4+7717_daily_bin767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77381/Model_4FGL_J1508.4+7717_daily_bin767.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/77381/ft1_filtered_4FGL_J1508.4+7717_daily_bin767.fits.....................!
real 54.37
user 53.05
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77381/ft1_filtered_4FGL_J1508.4+7717_daily_bin767.fits', '/scratch/kocevski/77381/ft2_4FGL_J1508.4+7717_daily_bin767.fits', expMap='/scratch/kocevski/77381/expmap_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.fits', expCube='/scratch/kocevski/77381/ltcube_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77381/Model_4FGL_J1508.4+7717_daily_bin767.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/77381/ft1_filtered_4FGL_J1508.4+7717_daily_bin767.fits
Spacecraft file(s): /scratch/kocevski/77381/ft2_4FGL_J1508.4+7717_daily_bin767.fits
Exposure map: /scratch/kocevski/77381/expmap_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.fits
Exposure cube: /scratch/kocevski/77381/ltcube_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77381/Model_4FGL_J1508.4+7717_daily_bin767.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) = 4234.7283196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3880       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.685       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.890       1.0000         .10000E-03   10000.    
     4 'norm      '    2.6726       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.499       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.755       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.838       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.775       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    110.72       1.0000         .10000E-03   10000.    
    17 'norm      '    20.957       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    110.01       1.0000         .10000E-03   10000.    
    20 'norm      '    .20396       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3921       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.836       1.0000         .10000E-03   10000.    
    24 'norm      '    4.2555       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1270       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99081       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=   4234.714     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     3062 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3890        15.543       -.48519E-06   -.40013E-04
   2  Prefactor     23.688        15.725        .36921E-06    .20313E-04
   3  Prefactor     16.900        86.775        .18292E-04    .57945E-06
   4  norm          2.6722        3.8996       -.66247E-07   -.26435E-03
   5  Prefactor     27.488        82.044       -.15883E-04    .49367E-05
   6  Prefactor     11.754        16.607       -.94480E-06    .29980E-04
   7  Prefactor     .10000E-03    87.245       -.27768E-04** at limit **
   8  Prefactor     21.844        39.440        .35658E-05    .88104E-04
   9  Prefactor     .10000E-03    11.803       -.18841E-06** at limit **
  10  Prefactor     .10000E-03    32.213        .52124E-05** at limit **
  11  Prefactor     .10000E-03    158.94        .98448E-04** at limit **
  12  Prefactor     .10000E-03    33.003        .67300E-05** at limit **
  13  Prefactor     14.770        110.70       -.68844E-05    .66861E-04
  14  Prefactor     .10000E-03    257.30       -.22399E-03** at limit **
  15  Prefactor     .10000E-03    31.419       -.95476E-05** at limit **
  16  Prefactor     110.76        89.665        .26890E-04    .22868E-04
  17  norm          20.958        20.945        .26986E-06    .55452E-04
  18  Prefactor     .10000E-03    106.37        .92205E-04** at limit **
  19  Prefactor     110.00        82.204       -.65212E-05    .11674E-04
  20  norm          .20393        1.2624       -.36169E-06   -.15887E-02
  21  Prefactor     1.3922        4.3724       -.20557E-06   -.11331E-03
  22  Prefactor     .10000E-03    84.973       -.44668E-04** at limit **
  23  Prefactor     38.843        50.409        .49633E-05    .69109E-05
  24  norm          4.2555        1.4093        .25963E-07    .93481E-03
  25  Normalizat    1.1268        .25508        .93742E-06    .32859E-03
  26  Prefactor     .99095        .17273       -.36897E-06    .40983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.38904
  Prefactor  = 23.6884
  Prefactor  = 16.9003
  norm       = 2.67222
  Prefactor  = 27.4881
  Prefactor  = 11.7536
  Prefactor  = 0.0001
  Prefactor  = 21.8442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7705
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 110.758
  norm       = 20.9576
  Prefactor  = 0.0001
  Prefactor  = 109.996
  norm       = 0.203928
  Prefactor  = 1.39224
  Prefactor  = 0.000100001
  Prefactor  = 38.8429
  norm       = 4.25554
  Normalizat = 1.12679
  Prefactor  = 0.99095
 **********
 **   18 **HESSE 
 **********

 FCN=   4234.714     FROM HESSE     STATUS=OK           450 CALLS     3512 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3890        15.506        .13842E-03   -1.5129    
   2  Prefactor     23.688        15.665        .82306E-04   -1.4734    
   3  Prefactor     16.900        86.776        .97455E-04   -1.4886    
   4  norm          2.6722        3.8780        .14483E-03   -1.5381    
   5  Prefactor     27.488        82.415        .76396E-04   -1.4659    
   6  Prefactor     11.754        16.615        .11684E-03   -1.5022    
   7  Prefactor     .10000E-03    87.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.844        39.722        .85712E-04   -1.4773    
   9  Prefactor     .10000E-03    11.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    159.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.770        111.95        .10420E-03   -1.4939    
  14  Prefactor     .10000E-03    257.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     110.76        89.683        .19113E-03   -1.3599    
  17  norm          20.958        20.920        .87492E-04   -1.4792    
  18  Prefactor     .10000E-03    106.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     110.00        81.393        .38349E-04   -1.3607    
  20  norm          .20393        1.1917        .13806E-03   -1.5618    
  21  Prefactor     1.3922        4.3364        .22449E-03   -1.5472    
  22  Prefactor     .10000E-03    85.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     38.843        50.432        .64317E-04   -1.4461    
  24  norm          4.2555        1.4086        .42356E-04   -1.5295    
  25  Normalizat    1.1268        .29324        .29368E-03   -.88896    
  26  Prefactor     .99095        .19792        .21998E-03   -.93032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89349e-09
Minuit parameter uncertainties:
  1  15.5131
  2  15.6676
  3  76.7671
  4  3.87838
  5  82.759
  6  16.6217
  7  0.000321481
  8  39.7704
  9  1.14695e-05
  10  0.000168866
  11  0.000182139
  12  2.63017e-05
  13  81.54
  14  0.00213412
  15  0.000416896
  16  89.793
  17  20.9273
  18  9.84799e-06
  19  81.4758
  20  0.985746
  21  4.33741
  22  0.00059964
  23  50.4873
  24  1.40862
  25  0.293665
  26  0.198069
Done.

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

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  1.477e+01  8.154e+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:  9.910e-01  1.981e-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:  1.127e+00  2.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 227.102 77.293
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77381/likelihoodResults_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.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) = 4233.40725396
delta logL = 1.3064396606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4233.16018841
delta logL = 1.55350520676

Fit tolerance = 1e-08

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

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

 FCN=   4233.160     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      408 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38798E-03    .75107E-02    .25139E-03** at limit **
   2  Index         7.0353        2.2143        .77513E-01    .11884E-03
   3  Normalizat    1.0104        .75221E-01    .69501E-01    .37301E-05
   4  Prefactor     1.0453        .53580E-01    .40201E-01    .13143E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000387984
  Index      = 7.03535
  Normalizat = 1.01038
  Prefactor  = 1.04534
 **********
 **   18 **HESSE 
 **********

 FCN=   4233.160     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      443 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .38798E-03    .14704E-01    .10920E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.0353        3.2968        .31892E-02    .41924    
   3  Normalizat    1.0104        .22851        .30746E-03   -.92684    
   4  Prefactor     1.0453        .16094        .21486E-03   -.91233    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.035e-08
Minuit parameter uncertainties:
  1  0.00411563
  2  3.68332
  3  0.228731
  4  0.161015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77381': 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) = 4233.16018172
delta logL = 1.55351189304

Extracting fit parameters...

4FGL J1508.4+7717
   Spectrum: PowerLaw
355    Prefactor:  3.880e-04  4.116e-03  1.000e-04  1.000e+04 ( 1.000e-14)
356        Index:  7.035e+00  3.683e+00  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.045e+00  1.610e-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:  1.010e+00  2.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.32
Ra Dec: 227.102 77.293
Photon Index (Free Index): 7.04 +/- 3.68
Photon Flux (Free Index): 9.01e-08 +/- 6.41e-08
Energy Flux (Free Index): 1.08e-05 +/- 8.10e-06

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/77381/cmap_HighResolution_438134401_438393601_4FGL_J1508.4+7717_daily_bin767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.47e-03', comment='SUCCESS', energy_flux2='1.08e-05', dlogl='1.55e+00', photon_flux2='9.01e-08', job_status='DONE', time_completed='2021-09-11 01:33:21.205911', photon_index_error2='3.68', photon_index2='7.04', ts='0.04', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='8.10e-06', EG='1.13', time_epoch_completed='1631349201.21', return_code='0', job_id='77381', GAL2='1.05', EG2='1.01', return_code2='102', photon_flux_error2='6.41e-08', ts2='3.32', photon_index='2.18' WHERE bin_id='767' AND source_name='4FGL J1508.4+7717' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:33:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 77381: <4FGL_J1508.4+7717_daily_bin767> in cluster <slac> Done

Job <4FGL_J1508.4+7717_daily_bin767> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 11 01:21:08 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:21:10 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:21:10 2021
Terminated at Sat Sep 11 01:33:24 2021
Results reported at Sat Sep 11 01:33:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1508.4+7717_daily_bin767 227.102 77.2929 438134401 438393601 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 :                                   713.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            736 sec.

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

