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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin875
RA = 226.674, Dec = 8.2256
tmin = 466128001, tmax = 466387201
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='58642', job_status='RUN', time_executed='2021-09-11 00:31:29.991140', time_epoch_executed='1631345489.99' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='875'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58642

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58642/ft1_4FGL_J1506.6+0813_daily_bin875.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58642/ft2_4FGL_J1506.6+0813_daily_bin875.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58642/ft1_4FGL_J1506.6+0813_daily_bin875.fits outfile=/scratch/kocevski/58642/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin875.fits ra=226.674 dec=8.2256 rad=12.0 tmin=466128001.0 tmax=466387201.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.56
user 3.29
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/58642/ft2_4FGL_J1506.6+0813_daily_bin875.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58642/ft2_4FGL_J1506.6+0813_daily_bin875.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/58642/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin875.fits evtable="EVENTS" outfile="/scratch/kocevski/58642/ft1_filtered_4FGL_J1506.6+0813_daily_bin875.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58642/ft1_filtered_4FGL_J1506.6+0813_daily_bin875.fits" evtable="EVENTS" scfile=/scratch/kocevski/58642/ft2_4FGL_J1506.6+0813_daily_bin875.fits sctable="SC_DATA" outfile=/scratch/kocevski/58642/ltcube_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.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/58642/ft2_4FGL_J1506.6+0813_daily_bin875.fits
.....................!
real 11.78
user 11.39
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58642/ft1_filtered_4FGL_J1506.6+0813_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/58642/ft2_4FGL_J1506.6+0813_daily_bin875.fits sctable="SC_DATA" expcube=/scratch/kocevski/58642/ltcube_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.fits outfile=/scratch/kocevski/58642/expmap_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.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/58642/ltcube_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.fits
.....................!
real 190.52
user 185.38
sys 4.71

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

Setting source of interest to:
4FGL J1506.6+0813 @ 226.674 8.2256

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/58642/ft1_filtered_4FGL_J1506.6+0813_daily_bin875.fits scfile=/scratch/kocevski/58642/ft2_4FGL_J1506.6+0813_daily_bin875.fits outfile=/scratch/kocevski/58642/cmap_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.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=226.674 yref=8.2256 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58642/ft1_filtered_4FGL_J1506.6+0813_daily_bin875.fits scfile=/scratch/kocevski/58642/ft2_4FGL_J1506.6+0813_daily_bin875.fits outfile=/scratch/kocevski/58642/cmap_HighResolution_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.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=226.674 yref=8.2256 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/58642/ft1_filtered_4FGL_J1506.6+0813_daily_bin875.fits evtable="EVENTS" scfile=/scratch/kocevski/58642/ft2_4FGL_J1506.6+0813_daily_bin875.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/58642/Model_4FGL_J1506.6+0813_daily_bin875.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/58642/ft1_filtered_4FGL_J1506.6+0813_daily_bin875.fits.....................!
real 63.29
user 61.93
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/58642/ft1_filtered_4FGL_J1506.6+0813_daily_bin875.fits', '/scratch/kocevski/58642/ft2_4FGL_J1506.6+0813_daily_bin875.fits', expMap='/scratch/kocevski/58642/expmap_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.fits', expCube='/scratch/kocevski/58642/ltcube_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/58642/Model_4FGL_J1506.6+0813_daily_bin875.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1506.6+0813'

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.295e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.597e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/58642/ft1_filtered_4FGL_J1506.6+0813_daily_bin875.fits
Spacecraft file(s): /scratch/kocevski/58642/ft2_4FGL_J1506.6+0813_daily_bin875.fits
Exposure map: /scratch/kocevski/58642/expmap_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.fits
Exposure cube: /scratch/kocevski/58642/ltcube_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/58642/Model_4FGL_J1506.6+0813_daily_bin875.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) = 8270.08144962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    18.598       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11728E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.559       1.0000         .10000E-03   10000.    
     5 'norm      '    .10946E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .41458E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5037       1.0000         .10000E-03   10000.    
    12 'norm      '    7.0185       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.373       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.261       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7224       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2589       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8270.072     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2663 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.636        .14266E-05** at limit **
   2  norm          18.602        27.868        .56852E-06    .61079E-05
   3  Prefactor     .10000E-03    139.86       -.14672E-04** at limit **
   4  Prefactor     39.571        43.018        .10393E-04    .26652E-03
   5  norm          .10001E-03    37.054       -.22506E-04** at limit **
   6  Prefactor     .10000E-03    50.546        .32869E-04** at limit **
   7  Prefactor     .10000E-03    7.6623        .65943E-07** at limit **
   8  Prefactor     .10000E-03    10.648       -.40499E-06** at limit **
   9  Prefactor     .10000E-03    23.575        .79267E-05** at limit **
  10  Prefactor     .10000E-03    184.13        .64690E-06** at limit **
  11  norm          2.5037        .33704       -.59812E-09   -.44561E-03
  12  norm          7.0198        3.0274        .13686E-06   -.14667E-03
  13  norm          .10000E-03    1.7051        .34306E-08** at limit **
  14  norm          .10000E-03    24.903        .11695E-04** at limit **
  15  norm          .10000E-03    1.5254        .22805E-07** at limit **
  16  Prefactor     48.373        47.243        .80879E-07   -.18880E-04
  17  Prefactor     .10000E-03    41.441       -.13257E-04** at limit **
  18  Prefactor     35.279        39.684        .10781E-04   -.19841E-04
  19  Prefactor     1.7255        5.4246       -.11236E-05   -.10366E-02
  20  Prefactor     .10000E-03    12.738        .57470E-06** at limit **
  21  norm          .10000E-03    3.1204       -.34072E-07** at limit **
  22  Prefactor     .10000E-03    21.453       -.13221E-04** at limit **
  23  Normalizat    1.2584        .24280       -.34948E-05    .72705E-04
  24  Prefactor     1.0066        .12462        .47505E-06   -.11161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 18.6021
  Prefactor  = 0.0001
  Prefactor  = 39.5713
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.50373
  norm       = 7.01977
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 48.3734
  Prefactor  = 0.0001
  Prefactor  = 35.2788
  Prefactor  = 1.7255
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25838
  Prefactor  = 1.00659
 **********
 **   18 **HESSE 
 **********

 FCN=   8270.072     FROM HESSE     STATUS=OK           385 CALLS     3048 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          18.602        27.871        .92872E-04   -1.4845    
   3  Prefactor     .10000E-03    140.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.571        43.441        .63728E-04   -1.4449    
   5  norm          .10001E-03    37.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    50.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    186.88        .21247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5037        .33818        .18482E-04   -1.5391    
  12  norm          7.0198        3.0275        .98490E-04   -1.5178    
  13  norm          .10000E-03    1.7054        .11597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    24.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5480        .10964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     48.373        47.261        .57655E-04   -1.4316    
  17  Prefactor     .10000E-03    41.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.279        39.578        .67487E-04   -1.4519    
  19  Prefactor     1.7255        5.4690        .32005E-03   -1.5445    
  20  Prefactor     .10000E-03    12.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.2593        .31362E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    21.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2584        .28732        .35793E-03   -.84818    
  24  Prefactor     1.0066        .14759        .21126E-03   -.92510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36244e-09
Minuit parameter uncertainties:
  1  1.09333e-05
  2  27.8906
  3  5.5464e-06
  4  43.4758
  5  0.000915932
  6  0.000257948
  7  3.90204e-06
  8  3.65852e-06
  9  1.34941e-05
  10  1.25755e-05
  11  0.338182
  12  3.0276
  13  1.85373e-07
  14  5.84604e-08
  15  1.94081e-06
  16  47.2972
  17  9.78967e-05
  18  39.6079
  19  5.47054
  20  1.01354e-05
  21  8.8099e-06
  22  6.75465e-06
  23  0.287687
  24  0.147645
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.854e-07  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.597e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.007e+00  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.258e+00  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.674 8.226
Photon Flux Upper Limit: 2.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58642/likelihoodResults_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.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) = 8270.07231294
delta logL = -6.70588633511e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8270.07231963
delta logL = -6.75525916449e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10377E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5722       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   8270.072     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      243 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    69.094        .11698E-01** at limit **
   2  alpha         1.3157        3.0785        .18190       -.15000E-08
   3  Normalizat    1.2584        .38055E-01    .35793E-03   -.26362E-04
   4  Prefactor     1.0066        .20488E-01    .21126E-03   -.46710E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.31566
  Normalizat = 1.25837
  Prefactor  = 1.00659
 **********
 **   18 **HESSE 
 **********

 FCN=   8270.072     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8370        .12023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3157        2.6883        .72759E-02   -.49353    
   3  Normalizat    1.2584        .27189        .14317E-04   -.84818    
   4  Prefactor     1.0066        .14648        .84504E-05   -.92510    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87869e-12
Minuit parameter uncertainties:
  1  2.70334e-06
  2  138.733
  3  0.272196
  4  0.146542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58642': 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) = 8270.07231084
delta logL = 2.04024763661e-06

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  2.703e-06  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.316e+00  1.387e+02  0.000e+00  5.000e+00 ( 1.000e+00)
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.007e+00  1.465e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.258e+00  2.722e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.674 8.226

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/58642/cmap_HighResolution_466128001_466387201_4FGL_J1506.6+0813_daily_bin875.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-05', job_status='DONE', photon_flux_upper_limit='2.03e-08', time_completed='2021-09-11 00:43:19.675192', job_id='58642', GAL2='1.01', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631346199.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='875' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:43:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 58642: <4FGL_J1506.6+0813_daily_bin875> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin875> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:31:19 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:31:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:31:20 2021
Terminated at Sat Sep 11 00:43:20 2021
Results reported at Sat Sep 11 00:43:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin875 226.674 8.2256 466128001 466387201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1506.6+0813 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   699.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

