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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin561
RA = 226.674, Dec = 8.2256
tmin = 384739201, tmax = 384998401
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='57123', job_status='RUN', time_executed='2021-09-11 00:29:29.734532', time_epoch_executed='1631345369.73' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57123/ft1_4FGL_J1506.6+0813_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57123/ft2_4FGL_J1506.6+0813_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57123/ft1_4FGL_J1506.6+0813_daily_bin561.fits outfile=/scratch/kocevski/57123/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin561.fits ra=226.674 dec=8.2256 rad=12.0 tmin=384739201.0 tmax=384998401.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 4.60
user 4.33
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/57123/ft2_4FGL_J1506.6+0813_daily_bin561.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/57123/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin561.fits evtable="EVENTS" outfile="/scratch/kocevski/57123/ft1_filtered_4FGL_J1506.6+0813_daily_bin561.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57123/ft1_filtered_4FGL_J1506.6+0813_daily_bin561.fits" evtable="EVENTS" scfile=/scratch/kocevski/57123/ft2_4FGL_J1506.6+0813_daily_bin561.fits sctable="SC_DATA" outfile=/scratch/kocevski/57123/ltcube_384739201_384998401_4FGL_J1506.6+0813_daily_bin561.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/57123/ft2_4FGL_J1506.6+0813_daily_bin561.fits
.....................!
real 11.74
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57123/ft1_filtered_4FGL_J1506.6+0813_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/57123/ft2_4FGL_J1506.6+0813_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/57123/ltcube_384739201_384998401_4FGL_J1506.6+0813_daily_bin561.fits outfile=/scratch/kocevski/57123/expmap_384739201_384998401_4FGL_J1506.6+0813_daily_bin561.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/57123/ltcube_384739201_384998401_4FGL_J1506.6+0813_daily_bin561.fits
.....................!
real 196.98
user 191.50
sys 5.05

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/57123/ft1_filtered_4FGL_J1506.6+0813_daily_bin561.fits scfile=/scratch/kocevski/57123/ft2_4FGL_J1506.6+0813_daily_bin561.fits outfile=/scratch/kocevski/57123/cmap_384739201_384998401_4FGL_J1506.6+0813_daily_bin561.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57123/ft1_filtered_4FGL_J1506.6+0813_daily_bin561.fits scfile=/scratch/kocevski/57123/ft2_4FGL_J1506.6+0813_daily_bin561.fits outfile=/scratch/kocevski/57123/cmap_HighResolution_384739201_384998401_4FGL_J1506.6+0813_daily_bin561.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10.578       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.4574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.700       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .91769E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .24839       1.0000         .10000E-03   10000.    
    12 'norm      '    .13138E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1124       1.0000         .10000E-03   10000.    
    14 'norm      '    20.529       1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.081       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.112       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .74525E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6174       1.0000         .10000E-03   10000.    
    21 'norm      '    .15772E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2769       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89957       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=   8086.280     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2815 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.858       -.30493E-05** at limit **
   2  norm          10.584        20.954       -.13517E-05   -.10632E-03
   3  Prefactor     .10000E-03    56.709        .25692E-06** at limit **
   4  Prefactor     .10000E-03    40.174        .19441E-05** at limit **
   5  norm          7.4652        13.318       -.69260E-07   -.96564E-04
   6  Prefactor     .10000E-03    11.586        .89309E-08** at limit **
   7  Prefactor     21.711        20.452       -.11842E-05   -.18979E-03
   8  Prefactor     .10018E-03    10.987       -.42298E-06** at limit **
   9  Prefactor     .10000E-03    6.6326       -.79417E-07** at limit **
  10  Prefactor     .10000E-03    9.3584        .13696E-06** at limit **
  11  norm          .24856        .17237        .32110E-07    .61622E-03
  12  norm          .10000E-03    .88018        .70344E-07** at limit **
  13  norm          4.1127        3.6617       -.13473E-05    .11261E-02
  14  norm          20.530        24.748       -.18675E-06   -.23782E-04
  15  norm          .10000E-03    1.3701        .18896E-07** at limit **
  16  Prefactor     .10000E-03    55.213       -.14249E-05** at limit **
  17  Prefactor     19.074        33.465       -.79249E-06   -.37481E-04
  18  Prefactor     20.105        38.877       -.17530E-05   -.61435E-04
  19  Prefactor     .13700        1.8274       -.26596E-06    .27273E-03
  20  Prefactor     8.5928        24.612        .30820E-05    .22508E-03
  21  norm          .16587E-01    1.7016       -.31169E-06    .23062E-03
  22  Prefactor     .10000E-03    11.779        .29717E-07** at limit **
  23  Normalizat    1.2767        .20669        .14454E-05    .15246E-03
  24  Prefactor     .89947        .10818       -.75287E-06    .48490E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 10.5842
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 7.46524
  Prefactor  = 0.0001
  Prefactor  = 21.7106
  Prefactor  = 0.000100178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.248561
  norm       = 0.0001
  norm       = 4.11266
  norm       = 20.5298
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.0735
  Prefactor  = 20.1048
  Prefactor  = 0.136996
  Prefactor  = 8.59281
  norm       = 0.0165867
  Prefactor  = 0.0001
  Normalizat = 1.27671
  Prefactor  = 0.899471
 **********
 **   18 **HESSE 
 **********

 FCN=   8086.280     FROM HESSE     STATUS=OK           421 CALLS     3236 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.584        21.108        .12319E-03   -1.5057    
   3  Prefactor     .10000E-03    56.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.4652        13.308        .14686E-03   -1.5161    
   6  Prefactor     .10000E-03    11.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.711        20.735        .85985E-04   -1.4776    
   8  Prefactor     .10018E-03    15.251        .85850E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.6367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.3612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .24856        .16644        .29246E-03   -1.5608    
  12  norm          .10000E-03    3.1128        .16057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1127        3.9319        .84896E-03   -1.5302    
  14  norm          20.530        24.757        .88401E-04   -1.4801    
  15  norm          .10000E-03    1.3852        .10275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    55.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.074        33.625        .91691E-04   -1.4834    
  18  Prefactor     20.105        39.351        .89311E-04   -1.4811    
  19  Prefactor     .13700        31.257        .22759E-02   -1.5634    
  20  Prefactor     8.5928        25.551        .13655E-03   -1.5122    
  21  norm          .16587E-01    3.0214        .40072E-01   -1.5682    
  22  Prefactor     .10000E-03    11.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2767        .24298        .29659E-03   -.84264    
  24  Prefactor     .89947        .12884        .18920E-03   -.96160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56847e-09
Minuit parameter uncertainties:
  1  0.000718948
  2  21.1226
  3  3.99575e-05
  4  0.000548021
  5  13.313
  6  4.27852e-06
  7  20.7414
  8  0.00329946
  9  8.89114e-06
  10  1.58061e-05
  11  0.166445
  12  4.20793e-05
  13  3.93217
  14  24.7693
  15  6.1049e-07
  16  0.000389693
  17  33.6583
  18  39.4016
  19  4.13933
  20  25.5837
  21  0.4464
  22  1.96343e-06
  23  0.2432
  24  0.128882
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  4.113e+00  3.932e+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:  8.995e-01  1.289e-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.277e+00  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.09
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 8.29e-09 +/- 7.93e-09
Energy Flux (Fixed Index): 1.90e-05 +/- 1.81e-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) = 8085.8004304
delta logL = 0.479721983346

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8085.710297
delta logL = 0.569855380385

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3228       1.0000         .10000E-03   10000.    
     2 'alpha     '    .71341       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90172       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=   8085.710     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3220        2.4415        .67281E-02   -.41483E-03
   2  alpha         .71316        .62130        .50000       -.20830E-04
   3  Normalizat    1.2768        .19011        .67044E-01    .12863E-04
   4  Prefactor     .90165        .10442        .45027E-01    .73114E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.32198
  alpha      = 0.713165
  Normalizat = 1.2768
  Prefactor  = 0.901651
 **********
 **   18 **HESSE 
 **********

 FCN=   8085.710     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3220        3.2984        .13290E-03   -1.5403    
   2  alpha         .71316        .75975        .30122E-01   -.79624    
   3  Normalizat    1.2768        .22652        .29660E-03   -.84262    
   4  Prefactor     .90165        .12453        .18902E-03   -.96083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41609e-09
Minuit parameter uncertainties:
  1  3.2987
  2  0.785949
  3  0.226696
  4  0.124571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57123': 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) = 8085.71029679
delta logL = 0.569855596389

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  2.322e+00  3.299e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  7.132e-01  7.859e-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:  9.017e-01  1.246e-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.277e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.22
Ra Dec: 226.674 8.226
Photon Index (Free Index): 0.71 +/- 0.79
Photon Flux (Free Index): 3.47e-09 +/- 3.68e-09
Energy Flux (Free Index): 5.87e-05 +/- 8.10e-05

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/57123/cmap_HighResolution_384739201_384998401_4FGL_J1506.6+0813_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.29e-09', energy_flux2='5.87e-05', photon_flux_error='7.93e-09', dlogl='5.70e-01', energy_flux='1.90e-05', photon_flux2='3.47e-09', job_status='DONE', time_completed='2021-09-11 00:40:40.097051', photon_index_error2='0.79', photon_index2='0.71', ts='11.09', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='8.10e-05', EG='1.28', time_epoch_completed='1631346040.1', return_code='0', job_id='57123', GAL2='0.90', EG2='1.28', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='3.68e-09', ts2='12.22', photon_index='1.60' WHERE bin_id='561' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:40:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 57123: <4FGL_J1506.6+0813_daily_bin561> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin561> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 00:26:00 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:26:02 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:26:02 2021
Terminated at Sat Sep 11 00:40:40 2021
Results reported at Sat Sep 11 00:40:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin561 226.674 8.2256 384739201 384998401 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             259.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

