/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 235 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 = 7664
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1506.6+0813_daily_bin393
RA = 226.674, Dec = 8.2256
tmin = 341193601, tmax = 341452801
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='55756', job_status='RUN', time_executed='2021-09-11 00:25:31.431446', time_epoch_executed='1631345131.43' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55756

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55756/ft1_4FGL_J1506.6+0813_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55756/ft2_4FGL_J1506.6+0813_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55756/ft1_4FGL_J1506.6+0813_daily_bin393.fits outfile=/scratch/kocevski/55756/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin393.fits ra=226.674 dec=8.2256 rad=12.0 tmin=341193601.0 tmax=341452801.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.43
user 3.20
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55756/ft1_filtered_4FGL_J1506.6+0813_daily_bin393.fits" evtable="EVENTS" scfile=/scratch/kocevski/55756/ft2_4FGL_J1506.6+0813_daily_bin393.fits sctable="SC_DATA" outfile=/scratch/kocevski/55756/ltcube_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.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/55756/ft2_4FGL_J1506.6+0813_daily_bin393.fits
.....................!
real 11.97
user 11.61
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55756/ft1_filtered_4FGL_J1506.6+0813_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/55756/ft2_4FGL_J1506.6+0813_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/55756/ltcube_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.fits outfile=/scratch/kocevski/55756/expmap_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.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/55756/ltcube_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.fits
.....................!
real 190.48
user 185.08
sys 5.04

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/55756/ft1_filtered_4FGL_J1506.6+0813_daily_bin393.fits scfile=/scratch/kocevski/55756/ft2_4FGL_J1506.6+0813_daily_bin393.fits outfile=/scratch/kocevski/55756/cmap_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55756/ft1_filtered_4FGL_J1506.6+0813_daily_bin393.fits scfile=/scratch/kocevski/55756/ft2_4FGL_J1506.6+0813_daily_bin393.fits outfile=/scratch/kocevski/55756/cmap_HighResolution_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.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.54
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/55756/ft1_filtered_4FGL_J1506.6+0813_daily_bin393.fits', '/scratch/kocevski/55756/ft2_4FGL_J1506.6+0813_daily_bin393.fits', expMap='/scratch/kocevski/55756/expmap_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.fits', expCube='/scratch/kocevski/55756/ltcube_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/55756/Model_4FGL_J1506.6+0813_daily_bin393.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/55756/ft1_filtered_4FGL_J1506.6+0813_daily_bin393.fits
Spacecraft file(s): /scratch/kocevski/55756/ft2_4FGL_J1506.6+0813_daily_bin393.fits
Exposure map: /scratch/kocevski/55756/expmap_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.fits
Exposure cube: /scratch/kocevski/55756/ltcube_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/55756/Model_4FGL_J1506.6+0813_daily_bin393.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) = 6584.93388083

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.098       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .45975       1.0000         .10000E-03   10000.    
    12 'norm      '    1.5507       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      '    3.0576       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.783       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1480       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0511       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=   6584.925     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2635 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    73.318       -.39069E-04** at limit **
   2  norm          .10000E-03    9.3526       -.12636E-04** at limit **
   3  Prefactor     .10000E-03    25.003        .57290E-05** at limit **
   4  Prefactor     .10000E-03    16.455        .46931E-06** at limit **
   5  norm          .10000E-03    12.542        .57331E-05** at limit **
   6  Prefactor     .10000E-03    8.5154        .88573E-05** at limit **
   7  Prefactor     .10000E-03    7.2553       -.10932E-05** at limit **
   8  Prefactor     .10000E-03    16.776       -.20518E-05** at limit **
   9  Prefactor     34.097        23.529       -.91763E-06   -.65611E-05
  10  Prefactor     .10000E-03    18.481       -.94865E-05** at limit **
  11  norm          .45972        .19932       -.37373E-07   -.36174E-03
  12  norm          1.5518        2.9945        .36902E-06   -.75820E-03
  13  norm          .10000E-03    2.0188       -.14749E-08** at limit **
  14  norm          .10000E-03    22.862       -.69862E-05** at limit **
  15  norm          3.0580        3.6247        .87356E-06   -.97751E-04
  16  Prefactor     .10000E-03    12.408        .41269E-05** at limit **
  17  Prefactor     42.748        58.983       -.43825E-04   -.23772E-07
  18  Prefactor     .10000E-03    64.415        .29923E-04** at limit **
  19  Prefactor     .10000E-03    2.7609        .16860E-06** at limit **
  20  Prefactor     .10000E-03    11.967        .16003E-06** at limit **
  21  norm          .10000E-03    1.9307       -.23741E-07** at limit **
  22  Prefactor     .10000E-03    25.301        .79389E-05** at limit **
  23  Normalizat    1.1483        .22633        .26905E-05   -.48815E-04
  24  Prefactor     1.0509        .12655        .12734E-05   -.11129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.0967
  Prefactor  = 0.0001
  norm       = 0.45972
  norm       = 1.55179
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.05798
  Prefactor  = 0.0001
  Prefactor  = 42.748
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14827
  Prefactor  = 1.05091
 **********
 **   18 **HESSE 
 **********

 FCN=   6584.925     FROM HESSE     STATUS=OK           385 CALLS     3020 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    74.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.3618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    12.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.5220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.2631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.097        23.551        .68625E-04   -1.4539    
  10  Prefactor     .10000E-03    18.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .45972        .19770        .22728E-04   -1.5572    
  12  norm          1.5518        2.9674        .17749E-03   -1.5459    
  13  norm          .10000E-03    2.0192        .11260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    22.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0580        3.6067        .16070E-03   -1.5358    
  16  Prefactor     .10000E-03    12.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     42.748        58.896        .61289E-04   -1.4399    
  18  Prefactor     .10000E-03    65.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.8155        .13162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9658        .11010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    25.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1483        .26589        .31677E-03   -.88217    
  24  Prefactor     1.0509        .14926        .18904E-03   -.91051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14234e-10
Minuit parameter uncertainties:
  1  0.000393461
  2  1.15041e-06
  3  2.23017e-05
  4  3.73858e-05
  5  4.77469e-05
  6  1.11266e-05
  7  9.21647e-06
  8  5.45001e-05
  9  23.5571
  10  1.14642e-05
  11  0.197695
  12  2.96769
  13  4.05009e-07
  14  7.2978e-06
  15  3.60699
  16  1.06424e-05
  17  58.9758
  18  0.000912101
  19  3.42783e-05
  20  8.31153e-07
  21  3.72951e-06
  22  1.60992e-05
  23  0.266206
  24  0.149314
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  4.050e-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.051e+00  1.493e-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.148e+00  2.662e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55756/likelihoodResults_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.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) = 6584.92527689
delta logL = -4.28860039392e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6584.92527267
delta logL = -7.03112164047e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5867       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0509       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=   6584.925     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      236 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    9.8335        .11277E-02** at limit **
   2  alpha         1.4222        3.1786        .18124       -.47044E-07
   3  Normalizat    1.1483        .25620        .31677E-03    .78598E-05
   4  Prefactor     1.0509        .14801        .18904E-03    .14313E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.42222
  Normalizat = 1.14827
  Prefactor  = 1.05091
 **********
 **   18 **HESSE 
 **********

 FCN=   6584.925     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0569        .22555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4222        4.1024        .72498E-02   -.44572    
   3  Normalizat    1.1483        .25644        .12671E-04   -.88217    
   4  Prefactor     1.0509        .14815        .75615E-05   -.91051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74701e-11
Minuit parameter uncertainties:
  1  8.17579e-06
  2  178.456
  3  0.256722
  4  0.148209
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55756': 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) = 6584.92527215
delta logL = 4.53498614661e-07

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  8.176e-06  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.422e+00  1.785e+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.051e+00  1.482e-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.148e+00  2.567e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/55756/cmap_HighResolution_341193601_341452801_4FGL_J1506.6+0813_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-05', job_status='DONE', photon_flux_upper_limit='2.39e-08', time_completed='2021-09-11 00:35:56.894938', job_id='55756', GAL2='1.05', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631345756.9', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='393' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:35:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 55756: <4FGL_J1506.6+0813_daily_bin393> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin393> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:21:26 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:21:28 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:21:28 2021
Terminated at Sat Sep 11 00:35:57 2021
Results reported at Sat Sep 11 00:35:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin393 226.674 8.2256 341193601 341452801 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 :                                   623.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             247.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

