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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin508
RA = 226.674, Dec = 8.2256
tmin = 371001601, tmax = 371260801
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='55957', job_status='RUN', time_executed='2021-09-11 00:23:49.714603', time_epoch_executed='1631345029.71' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55957

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55957/ft1_4FGL_J1506.6+0813_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55957/ft2_4FGL_J1506.6+0813_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55957/ft1_4FGL_J1506.6+0813_daily_bin508.fits outfile=/scratch/kocevski/55957/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin508.fits ra=226.674 dec=8.2256 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.39
user 6.12
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55957/ft2_4FGL_J1506.6+0813_daily_bin508.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/55957/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/55957/ft1_filtered_4FGL_J1506.6+0813_daily_bin508.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/55957/ft1_filtered_4FGL_J1506.6+0813_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/55957/ft2_4FGL_J1506.6+0813_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/55957/ltcube_371001601_371260801_4FGL_J1506.6+0813_daily_bin508.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/55957/ft2_4FGL_J1506.6+0813_daily_bin508.fits
.....................!
real 11.78
user 11.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55957/ft1_filtered_4FGL_J1506.6+0813_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/55957/ft2_4FGL_J1506.6+0813_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/55957/ltcube_371001601_371260801_4FGL_J1506.6+0813_daily_bin508.fits outfile=/scratch/kocevski/55957/expmap_371001601_371260801_4FGL_J1506.6+0813_daily_bin508.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/55957/ltcube_371001601_371260801_4FGL_J1506.6+0813_daily_bin508.fits
.....................!
real 193.43
user 187.60
sys 5.46

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/55957/ft1_filtered_4FGL_J1506.6+0813_daily_bin508.fits scfile=/scratch/kocevski/55957/ft2_4FGL_J1506.6+0813_daily_bin508.fits outfile=/scratch/kocevski/55957/cmap_371001601_371260801_4FGL_J1506.6+0813_daily_bin508.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3051       1.0000         .10000E-03   10000.    
     2 'norm      '    5.0873       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21720E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.547       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.957       1.0000         .10000E-03   10000.    
    11 'norm      '    .11393       1.0000         .10000E-03   10000.    
    12 'norm      '    .95001       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5943       1.0000         .10000E-03   10000.    
    16 'Prefactor '    45.421       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16503E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5584       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3770       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78701       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=   7019.325     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2754 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2662        125.34        .66038E-05   -.61223E-04
   2  norm          5.0871        12.545        .28599E-06   -.47166E-04
   3  Prefactor     .10000E-03    42.717       -.27866E-04** at limit **
   4  Prefactor     .10001E-03    151.95       -.82334E-04** at limit **
   5  norm          .10000E-03    71.532        .30801E-04** at limit **
   6  Prefactor     .10000E-03    14.588       -.42544E-06** at limit **
   7  Prefactor     .10000E-03    7.7758        .45020E-08** at limit **
   8  Prefactor     .10000E-03    17.323       -.15315E-05** at limit **
   9  Prefactor     31.552        37.472        .85237E-05    .84045E-04
  10  Prefactor     13.935        60.044       -.38487E-04    .72454E-05
  11  norm          .11394        .14448        .58952E-09   -.88829E-03
  12  norm          .94982        1.8800       -.50620E-06   -.11759E-02
  13  norm          .10000E-03    2.4387       -.54840E-07** at limit **
  14  norm          .10000E-03    14.600        .13517E-05** at limit **
  15  norm          3.5949        4.1311       -.16407E-06   -.44532E-03
  16  Prefactor     45.421        60.768       -.15614E-06    .50462E-04
  17  Prefactor     .10000E-03    71.210        .17107E-04** at limit **
  18  Prefactor     .10000E-03    47.807       -.58539E-04** at limit **
  19  Prefactor     .10000E-03    1.6089       -.16680E-06** at limit **
  20  Prefactor     .10002E-03    86.115        .66736E-04** at limit **
  21  norm          2.5533        4.3670       -.13897E-05   -.16096E-02
  22  Prefactor     .10000E-03    37.763        .43668E-04** at limit **
  23  Normalizat    1.3773        .21104        .10523E-05    .25386E-03
  24  Prefactor     .78679        .11194        .23588E-06    .10528E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.26624
  norm       = 5.0871
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.5515
  Prefactor  = 13.9348
  norm       = 0.113941
  norm       = 0.949823
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.59487
  Prefactor  = 45.4213
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 2.5533
  Prefactor  = 0.0001
  Normalizat = 1.37729
  Prefactor  = 0.786791
 **********
 **   18 **HESSE 
 **********

 FCN=   7019.325     FROM HESSE     STATUS=OK           395 CALLS     3149 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2662        128.84        .38641E-03   -1.5483    
   2  norm          5.0871        12.524        .17826E-03   -1.5257    
   3  Prefactor     .10000E-03    42.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    158.03        .36525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    74.503        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.552        37.349        .71339E-04   -1.4584    
  10  Prefactor     13.935        59.641        .10721E-03   -1.4961    
  11  norm          .11394        .13113        .33978E-03   -1.5640    
  12  norm          .94982        1.8013        .14927E-03   -1.5513    
  13  norm          .10000E-03    2.4422        .12777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5949        4.0908        .17130E-03   -1.5329    
  16  Prefactor     45.421        60.760        .59491E-04   -1.4359    
  17  Prefactor     .10000E-03    71.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    48.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.4710        .20497E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    88.748        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.5533        4.3748        .21948E-03   -1.5388    
  22  Prefactor     .10000E-03    37.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3773        .25190        .27887E-03   -.81288    
  24  Prefactor     .78679        .13479        .19391E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38027e-09
Minuit parameter uncertainties:
  1  25.6011
  2  12.5303
  3  6.45643e-06
  4  0.00180191
  5  0.000787528
  6  4.97558e-05
  7  3.60531e-07
  8  8.89524e-05
  9  37.377
  10  57.7549
  11  0.131133
  12  1.80139
  13  5.44895e-07
  14  5.83576e-06
  15  4.09114
  16  60.8431
  17  0.00017262
  18  0.000325554
  19  2.30688e-05
  20  0.00256251
  21  4.37533
  22  3.42724e-05
  23  0.252122
  24  0.13485
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  5.449e-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:  7.868e-01  1.349e-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.377e+00  2.521e-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.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55957/likelihoodResults_371001601_371260801_4FGL_J1506.6+0813_daily_bin508.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): 0
logL (Free Index) = 7019.32681963
delta logL = -0.0019238226314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7019.3248959
delta logL = -9.5570612757e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5971       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3772       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78683       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=   7019.325     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      188 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    62.302        .90712E-02** at limit **
   2  alpha         1.5970        3.0505        .45197        .13045E-06
   3  Normalizat    1.3773        .27191E-01    .63048E-01    .16676E-04
   4  Prefactor     .78679        .14825E-01    .43546E-01    .14974E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.59703
  Normalizat = 1.37729
  Prefactor  = 0.786792
 **********
 **   18 **HESSE 
 **********

 FCN=   7019.325     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      219 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    592.64        .12777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5970        3.2982        .18079       -.36954    
   3  Normalizat    1.3773        .22280        .27887E-03   -.81288    
   4  Prefactor     .78679        .12157        .19390E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.29508e-08
Minuit parameter uncertainties:
  1  6.16785e-06
  2  3064.09
  3  0.22296
  4  0.121608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55957': 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): 102
logL (Free Index) = 7019.3248958
delta logL = 1.027729013e-10

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  6.168e-06  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.597e+00  3.064e+03  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:  7.868e-01  1.216e-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.377e+00  2.230e-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/55957/cmap_HighResolution_371001601_371260801_4FGL_J1506.6+0813_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-05', job_status='DONE', photon_flux_upper_limit='2.62e-08', time_completed='2021-09-11 00:35:01.009659', job_id='55957', GAL2='0.79', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1631345701.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.03e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='508' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:35:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 55957: <4FGL_J1506.6+0813_daily_bin508> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin508 226.674 8.2256 371001601 371260801 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 :                                   667.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            800 sec.

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

