aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 42 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 = 17512
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2015.5+3710_weekly_bin718
RA = 303.892, Dec = 37.176
tmin = 673228801, tmax = 673833601
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='281886', job_status='RUN', time_executed='2022-05-10 01:26:45.510581', time_epoch_executed='1652171205.51' WHERE source_name='4FGL J2015.5+3710' and cadence='weekly' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/281886

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/281886/ft1_4FGL_J2015.5+3710_weekly_bin718.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/281886/ft2_4FGL_J2015.5+3710_weekly_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/281886/ft1_4FGL_J2015.5+3710_weekly_bin718.fits outfile=/scratch/kocevski/281886/ft1_filteredMKT_4FGL_J2015.5+3710_weekly_bin718.fits ra=303.892 dec=37.176 rad=12.0 tmin=673228801.0 tmax=673833601.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.56
user 5.20
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/281886/ft2_4FGL_J2015.5+3710_weekly_bin718.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/281886/ft2_4FGL_J2015.5+3710_weekly_bin718.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/281886/ft1_filteredMKT_4FGL_J2015.5+3710_weekly_bin718.fits evtable="EVENTS" outfile="/scratch/kocevski/281886/ft1_filtered_4FGL_J2015.5+3710_weekly_bin718.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.58
user 0.40
sys 0.17

Number of photons that the gtmktime cut: 22628

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/281886/ft1_filtered_4FGL_J2015.5+3710_weekly_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/281886/ft2_4FGL_J2015.5+3710_weekly_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/281886/ltcube_673228801_673833601_4FGL_J2015.5+3710_weekly_bin718.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/281886/ft2_4FGL_J2015.5+3710_weekly_bin718.fits
.....................!
real 35.32
user 34.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/281886/ft1_filtered_4FGL_J2015.5+3710_weekly_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/281886/ft2_4FGL_J2015.5+3710_weekly_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/281886/ltcube_673228801_673833601_4FGL_J2015.5+3710_weekly_bin718.fits outfile=/scratch/kocevski/281886/expmap_673228801_673833601_4FGL_J2015.5+3710_weekly_bin718.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/281886/ltcube_673228801_673833601_4FGL_J2015.5+3710_weekly_bin718.fits
.....................!
real 195.41
user 187.90
sys 5.29

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
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 212 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2015.5+3710 @ 303.892 37.176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/281886/ft1_filtered_4FGL_J2015.5+3710_weekly_bin718.fits scfile=/scratch/kocevski/281886/ft2_4FGL_J2015.5+3710_weekly_bin718.fits outfile=/scratch/kocevski/281886/cmap_673228801_673833601_4FGL_J2015.5+3710_weekly_bin718.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=303.892 yref=37.176 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.65
user 0.47
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/281886/ft1_filtered_4FGL_J2015.5+3710_weekly_bin718.fits scfile=/scratch/kocevski/281886/ft2_4FGL_J2015.5+3710_weekly_bin718.fits outfile=/scratch/kocevski/281886/cmap_HighResolution_673228801_673833601_4FGL_J2015.5+3710_weekly_bin718.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=303.892 yref=37.176 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.63
user 0.45
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/281886/ft1_filtered_4FGL_J2015.5+3710_weekly_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/281886/ft2_4FGL_J2015.5+3710_weekly_bin718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/281886/Model_4FGL_J2015.5+3710_weekly_bin718.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 Cygnus Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/281886/ft1_filtered_4FGL_J2015.5+3710_weekly_bin718.fits.....................!
real 4768.16
user 4711.06
sys 3.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/281886/ft1_filtered_4FGL_J2015.5+3710_weekly_bin718.fits', '/scratch/kocevski/281886/ft2_4FGL_J2015.5+3710_weekly_bin718.fits', expMap='/scratch/kocevski/281886/expmap_673228801_673833601_4FGL_J2015.5+3710_weekly_bin718.fits', expCube='/scratch/kocevski/281886/ltcube_673228801_673833601_4FGL_J2015.5+3710_weekly_bin718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/281886/Model_4FGL_J2015.5+3710_weekly_bin718.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2015.5+3710'

4FGL J2015.5+3710
   Spectrum: LogParabola
375         norm:  7.199e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        alpha:  2.705e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  3.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/281886/ft1_filtered_4FGL_J2015.5+3710_weekly_bin718.fits
Spacecraft file(s): /scratch/kocevski/281886/ft2_4FGL_J2015.5+3710_weekly_bin718.fits
Exposure map: /scratch/kocevski/281886/expmap_673228801_673833601_4FGL_J2015.5+3710_weekly_bin718.fits
Exposure cube: /scratch/kocevski/281886/ltcube_673228801_673833601_4FGL_J2015.5+3710_weekly_bin718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/281886/Model_4FGL_J2015.5+3710_weekly_bin718.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) = 195392.326292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28845       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.5247       1.0000         .10000E-03   10000.    
     5 'norm      '    .10730E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.543       1.0000         .10000E-03   10000.    
     7 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3687       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7075       1.0000         .10000E-03   10000.    
    10 'norm      '    4.5401       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4377       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11767E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9613       1.0000         .10000E-03   10000.    
    15 'norm      '    6.0983       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13138E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26581E-02   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2224       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   195392.2     FROM MIGRAD    STATUS=CONVERGED    465 CALLS     1943 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31426        1.5321         .0000        .72736E-02
   2  Prefactor     .10000E-03    48.051         .0000    ** at limit **
   3  Prefactor     .10000E-03    1.2410         .0000    ** at limit **
   4  norm          3.5246        7.1251         .0000        .86876E-02
   5  norm          .10000E-03    .33284         .0000    ** at limit **
   6  Prefactor     11.544        7.0376         .0000        .85141E-03
   7  norm          .10000E-03    .84367         .0000    ** at limit **
   8  Prefactor     5.3682        8.8064         .0000        .34791E-02
   9  norm          3.7075        .92929         .0000        .10699    
  10  norm          4.5403        2.1663         .0000        .24584E-02
  11  Prefactor     2.4377        .11781         .0000        .54849E-02
  12  Prefactor     .10000E-03    6.4401         .0000    ** at limit **
  13  norm          .10000E-03    .15296         .0000    ** at limit **
  14  norm          3.9614        2.2747         .0000        .35290E-01
  15  norm          6.0983        2.4385         .0000        .27839E-02
  16  Prefactor     .10195E-03    .34953         .0000    ** at limit **
  17  norm          .10000E-03    2.9739         .0000    ** at limit **
  18  Prefactor     .10074E-03    2.9200         .0000    ** at limit **
  19  Normalizat    1.2224        .15341         .0000        .10488E-02
  20  Prefactor     1.0254        .13154E-01     .0000        .13131E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.314263
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 3.52462
  norm       = 0.0001
  Prefactor  = 11.5443
  norm       = 0.0001
  Prefactor  = 5.36819
  norm       = 3.70753
  norm       = 4.54028
  Prefactor  = 2.43768
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.96137
  norm       = 6.09832
  Prefactor  = 0.000101949
  norm       = 0.0001
  Prefactor  = 0.000100736
  Normalizat = 1.22239
  Prefactor  = 1.02543
 **********
 **   18 **HESSE 
 **********

 FCN=   195392.2     FROM HESSE     STATUS=OK           335 CALLS     2278 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31426        1.5296        .21744       -1.5596    
   2  Prefactor     .10000E-03    48.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.2590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.5246        7.1272        .10766E-02   -1.5332    
   5  norm          .10000E-03    2.0216        .49220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.544        7.0009        .11791E-03   -1.5028    
   7  norm          .10000E-03    .85102        .16121       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.3682        8.7956        .86721E-03   -1.5245    
   9  norm          3.7075        .92845        .10372E-02   -1.5323    
  10  norm          4.5403        2.1623        .18894E-03   -1.5282    
  11  Prefactor     2.4377        .11748        .31272E-04   -1.5396    
  12  Prefactor     .10000E-03    6.4876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4766        .33115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9614        2.2718        .10133E-02   -1.5310    
  15  norm          6.0983        2.4368        .16258E-03   -1.5214    
  16  Prefactor     .10195E-03    .37197        .95741E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10074E-03    2.7311        .23436       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2224        .14498        .13627E-02   -.85914    
  20  Prefactor     1.0254        .12873E-01    .12604E-03   -.91886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30235e-08
Minuit parameter uncertainties:
  1  1.3865
  2  0.000750663
  3  2.07913e-06
  4  7.12888
  5  2.24259e-06
  6  7.00142
  7  1.81161e-05
  8  8.79774
  9  0.928458
  10  2.16234
  11  0.11748
  12  1.57025e-05
  13  1.80658e-06
  14  2.27186
  15  2.43683
  16  0.00170303
  17  2.20542e-06
  18  0.00283475
  19  0.145031
  20  0.0128728
Done.

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

Extracting fit parameters...

4FGL J2015.5+3710
   Spectrum: LogParabola
375         norm:  4.540e+00  2.162e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        alpha:  2.705e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
377         beta:  1.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  3.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
771    Prefactor:  1.025e+00  1.287e-02  0.000e+00  1.000e+01 ( 1.000e+00)
772        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
773        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
770   Normalization:  1.222e+00  1.450e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.29
Ra Dec: 303.892 37.176
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 7.34e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 2.96e-05 +/- 1.41e-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) = 195392.116637
delta logL = 0.0971416469838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 195392.115752
delta logL = 0.0980269715074

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6421       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5312       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0258       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   195392.1     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      290 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6421        4.4237        .84559E-03   -.13883E-02
   2  alpha         2.5312        .48668        .22826E-01    .11966E-03
   3  Normalizat    1.2242        .13931        .13621E-02    .30449E-04
   4  Prefactor     1.0258        .12310E-01    .12603E-03   -.23092E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.64212
  alpha      = 2.53122
  Normalizat = 1.22419
  Prefactor  = 1.02578
 **********
 **   18 **HESSE 
 **********

 FCN=   195392.1     FROM HESSE     STATUS=OK            27 CALLS      317 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6421        3.5905        .33824E-04   -1.5233    
   2  alpha         2.5312        .39629        .91303E-03    .12488E-01
   3  Normalizat    1.2242        .13924        .27241E-03   -.85859    
   4  Prefactor     1.0258        .12305E-01    .50414E-05   -.91875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.77827e-10
Minuit parameter uncertainties:
  1  3.59067
  2  0.397965
  3  0.139282
  4  0.0123048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/281886': 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) = 195392.115752
delta logL = 0.0980269810534

Extracting fit parameters...

4FGL J2015.5+3710
   Spectrum: LogParabola
375         norm:  5.642e+00  3.591e+00  1.000e-04  1.000e+04 ( 1.000e-13)
376        alpha:  2.531e+00  3.980e-01  0.000e+00  5.000e+00 ( 1.000e+00)
377         beta:  1.777e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
378           Eb:  3.095e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
771    Prefactor:  1.026e+00  1.230e-02  0.000e+00  1.000e+01 ( 1.000e+00)
772        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
773        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
770   Normalization:  1.224e+00  1.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.50
Ra Dec: 303.892 37.176
Photon Index (Free Index): 2.53 +/- 0.40
Photon Flux (Free Index): 5.98e-08 +/- 4.28e-08
Energy Flux (Free Index): 2.95e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/281886/cmap_HighResolution_673228801_673833601_4FGL_J2015.5+3710_weekly_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.34e-08', energy_flux2='2.95e-05', photon_flux_error='3.49e-08', dlogl='9.80e-02', energy_flux='2.96e-05', photon_flux2='5.98e-08', job_status='DONE', time_completed='2022-05-10 05:41:23.269208', photon_index_error2='0.40', photon_index2='2.53', ts='6.29', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.22', time_epoch_completed='1652186483.27', return_code='0', job_id='281886', GAL2='1.03', EG2='1.22', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='4.28e-08', ts2='6.50', photon_index='2.71' WHERE bin_id='718' AND source_name='4FGL J2015.5+3710' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 10 05:41:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 281886: <4FGL_J2015.5+3710_weekly_bin718> in cluster <slac> Done

Job <4FGL_J2015.5+3710_weekly_bin718> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 10 01:25:24 2022
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 10 01:25:54 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 10 01:25:54 2022
Terminated at Tue May 10 05:41:25 2022
Results reported at Tue May 10 05:41:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2015.5+3710_weekly_bin718 303.892 37.176 673228801 673833601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2015.5+3710 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   15120.00 sec.
    Max Memory :                                 728 MB
    Average Memory :                             682.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15330 sec.
    Turnaround time :                            15361 sec.

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

