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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin698
RA = 226.674, Dec = 8.2256
tmin = 420249601, tmax = 420508801
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='58408', job_status='RUN', time_executed='2021-09-11 00:34:52.834656', time_epoch_executed='1631345692.83' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='698'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58408/ft1_4FGL_J1506.6+0813_daily_bin698.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58408/ft2_4FGL_J1506.6+0813_daily_bin698.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58408/ft1_4FGL_J1506.6+0813_daily_bin698.fits outfile=/scratch/kocevski/58408/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin698.fits ra=226.674 dec=8.2256 rad=12.0 tmin=420249601.0 tmax=420508801.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.36
user 3.12
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58408/ft2_4FGL_J1506.6+0813_daily_bin698.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/58408/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin698.fits evtable="EVENTS" outfile="/scratch/kocevski/58408/ft1_filtered_4FGL_J1506.6+0813_daily_bin698.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/58408/ft1_filtered_4FGL_J1506.6+0813_daily_bin698.fits" evtable="EVENTS" scfile=/scratch/kocevski/58408/ft2_4FGL_J1506.6+0813_daily_bin698.fits sctable="SC_DATA" outfile=/scratch/kocevski/58408/ltcube_420249601_420508801_4FGL_J1506.6+0813_daily_bin698.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/58408/ft2_4FGL_J1506.6+0813_daily_bin698.fits
.....................!
real 12.16
user 11.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58408/ft1_filtered_4FGL_J1506.6+0813_daily_bin698.fits evtable="EVENTS" scfile=/scratch/kocevski/58408/ft2_4FGL_J1506.6+0813_daily_bin698.fits sctable="SC_DATA" expcube=/scratch/kocevski/58408/ltcube_420249601_420508801_4FGL_J1506.6+0813_daily_bin698.fits outfile=/scratch/kocevski/58408/expmap_420249601_420508801_4FGL_J1506.6+0813_daily_bin698.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/58408/ltcube_420249601_420508801_4FGL_J1506.6+0813_daily_bin698.fits
.....................!
real 190.88
user 185.48
sys 5.03

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/58408/ft1_filtered_4FGL_J1506.6+0813_daily_bin698.fits scfile=/scratch/kocevski/58408/ft2_4FGL_J1506.6+0813_daily_bin698.fits outfile=/scratch/kocevski/58408/cmap_420249601_420508801_4FGL_J1506.6+0813_daily_bin698.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58408/ft1_filtered_4FGL_J1506.6+0813_daily_bin698.fits scfile=/scratch/kocevski/58408/ft2_4FGL_J1506.6+0813_daily_bin698.fits outfile=/scratch/kocevski/58408/cmap_HighResolution_420249601_420508801_4FGL_J1506.6+0813_daily_bin698.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.828       1.0000         .10000E-03   10000.    
     2 'norm      '    .12966E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.411       1.0000         .10000E-03   10000.    
     5 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .21001       1.0000         .10000E-03   10000.    
    12 'norm      '    4.5462       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8780       1.0000         .10000E-03   10000.    
    14 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12097E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0596       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.8816       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75197       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1792       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=   6838.628     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2736 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.837        33.118       -.89580E-06    .89453E-04
   2  norm          .10002E-03    74.403       -.84270E-05** at limit **
   3  Prefactor     .10000E-03    27.864       -.11287E-07** at limit **
   4  Prefactor     19.422        38.284       -.16387E-05   -.47991E-05
   5  norm          .10000E-03    19.451       -.13050E-05** at limit **
   6  Prefactor     .10002E-03    119.93       -.28789E-04** at limit **
   7  Prefactor     .10000E-03    17.835        .28744E-06** at limit **
   8  Prefactor     .10000E-03    27.405       -.54994E-06** at limit **
   9  Prefactor     .10000E-03    17.203        .75898E-06** at limit **
  10  Prefactor     .10000E-03    12.040        .90891E-06** at limit **
  11  norm          .21006        .15475       -.21166E-07    .23139E-03
  12  norm          4.5454        2.7960       -.15967E-07    .36060E-03
  13  norm          3.8782        3.8825        .30251E-07   -.82258E-04
  14  norm          .10000E-03    18.978       -.94578E-06** at limit **
  15  norm          .10000E-03    2.4983       -.15589E-06** at limit **
  16  Prefactor     .10001E-03    48.665        .40596E-05** at limit **
  17  Prefactor     .10000E-03    17.097        .11467E-05** at limit **
  18  Prefactor     .10000E-03    12.559       -.15042E-05** at limit **
  19  Prefactor     1.0598        4.3328       -.97121E-06    .50171E-03
  20  Prefactor     .10000E-03    8.2437        .61652E-07** at limit **
  21  norm          4.8825        4.3609       -.93253E-08    .24471E-03
  22  Prefactor     .10000E-03    57.408       -.12961E-05** at limit **
  23  Normalizat    .75179        .22539        .88126E-06    .40461E-03
  24  Prefactor     1.1792        .12543        .12107E-06    .75627E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8366
  norm       = 0.000100019
  Prefactor  = 0.0001
  Prefactor  = 19.422
  norm       = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.210056
  norm       = 4.54541
  norm       = 3.87819
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 1.05978
  Prefactor  = 0.0001
  norm       = 4.88249
  Prefactor  = 0.000100001
  Normalizat = 0.751793
  Prefactor  = 1.17924
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.628     FROM HESSE     STATUS=OK           395 CALLS     3131 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.837        32.997        .92305E-04   -1.4840    
   2  norm          .10002E-03    77.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    27.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.422        38.220        .90908E-04   -1.4826    
   5  norm          .10000E-03    19.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    118.62        .65998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .21006        .15409        .26578E-04   -1.5616    
  12  norm          4.5454        2.7647        .10147E-03   -1.5282    
  13  norm          3.8782        3.8898        .15913E-03   -1.5314    
  14  norm          .10000E-03    19.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.8919        .25122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    49.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.0598        4.6043        .33380E-03   -1.5502    
  20  Prefactor     .10000E-03    8.2453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.8825        4.3574        .15779E-03   -1.5266    
  22  Prefactor     .10000E-03    57.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .75179        .25371        .37702E-03   -1.0188    
  24  Prefactor     1.1792        .14277        .17434E-03   -.86973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53506e-09
Minuit parameter uncertainties:
  1  33.0292
  2  0.00239925
  3  1.56535e-05
  4  38.2687
  5  7.11887e-05
  6  0.00286061
  7  6.85574e-05
  8  0.000153288
  9  0.000140381
  10  0.000145018
  11  0.154088
  12  2.76479
  13  3.89004
  14  0.000194062
  15  3.75111e-05
  16  0.00126959
  17  0.000221887
  18  0.000259976
  19  4.41832
  20  9.42779e-06
  21  4.35764
  22  0.000476484
  23  0.254113
  24  0.142817
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  3.878e+00  3.890e+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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.179e+00  1.428e-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:  7.518e-01  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.66
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 7.82e-09 +/- 7.84e-09
Energy Flux (Fixed Index): 1.79e-05 +/- 1.80e-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) = 6838.17528227
delta logL = 0.453051693576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6838.13382925
delta logL = 0.494504715181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7486       1.0000         .10000E-03   10000.    
     2 'alpha     '    .78611       1.0000          .0000       5.0000    
     3 'Normalizat'    .75495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1792       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.

 FCN=   6838.134     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7370        2.7968        .61387E-02   -.45022E-03
   2  alpha         .78597        .63441        .50000       -.14386E-04
   3  Normalizat    .75482        .21717        .84975E-01    .18005E-03
   4  Prefactor     1.1793        .12375        .35142E-01    .32861E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.73702
  alpha      = 0.785966
  Normalizat = 0.754825
  Prefactor  = 1.17927
 **********
 **   18 **HESSE 
 **********

 FCN=   6838.134     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7370        3.4344        .13414E-03   -1.5377    
   2  alpha         .78597        .72097        .28240E-01   -.75545    
   3  Normalizat    .75482        .24630        .37633E-03   -1.0177    
   4  Prefactor     1.1793        .14077        .17434E-03   -.86972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06054e-09
Minuit parameter uncertainties:
  1  3.43461
  2  0.741299
  3  0.246666
  4  0.140814
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58408': 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) = 6838.13382088
delta logL = 0.494513082635

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  2.737e+00  3.435e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  7.860e-01  7.413e-01  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.179e+00  1.408e-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:  7.548e-01  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.65
Ra Dec: 226.674 8.226
Photon Index (Free Index): 0.79 +/- 0.74
Photon Flux (Free Index): 3.88e-09 +/- 4.05e-09
Energy Flux (Free Index): 5.78e-05 +/- 8.43e-05

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/58408/cmap_HighResolution_420249601_420508801_4FGL_J1506.6+0813_daily_bin698.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.82e-09', energy_flux2='5.78e-05', photon_flux_error='7.84e-09', dlogl='4.95e-01', energy_flux='1.79e-05', photon_flux2='3.88e-09', job_status='DONE', time_completed='2021-09-11 00:44:35.766291', photon_index_error2='0.74', photon_index2='0.79', ts='6.66', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', energy_flux_error2='8.43e-05', EG='0.75', time_epoch_completed='1631346275.77', return_code='0', job_id='58408', GAL2='1.18', EG2='0.75', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='4.05e-09', ts2='7.65', photon_index='1.60' WHERE bin_id='698' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:44:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 58408: <4FGL_J1506.6+0813_daily_bin698> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin698> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:31:02 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:31:04 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:04 2021
Terminated at Sat Sep 11 00:44:36 2021
Results reported at Sat Sep 11 00:44:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin698 226.674 8.2256 420249601 420508801 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 :                                   583.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

