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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin250
RA = 226.674, Dec = 8.2256
tmin = 304128001, tmax = 304387201
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='54400', job_status='RUN', time_executed='2021-09-11 00:20:27.531631', time_epoch_executed='1631344827.53' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54400

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54400/ft1_4FGL_J1506.6+0813_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54400/ft2_4FGL_J1506.6+0813_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54400/ft1_4FGL_J1506.6+0813_daily_bin250.fits outfile=/scratch/kocevski/54400/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin250.fits ra=226.674 dec=8.2256 rad=12.0 tmin=304128001.0 tmax=304387201.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.39
user 3.16
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54400/ft1_filtered_4FGL_J1506.6+0813_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/54400/ft2_4FGL_J1506.6+0813_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/54400/ltcube_304128001_304387201_4FGL_J1506.6+0813_daily_bin250.fits outfile=/scratch/kocevski/54400/expmap_304128001_304387201_4FGL_J1506.6+0813_daily_bin250.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/54400/ltcube_304128001_304387201_4FGL_J1506.6+0813_daily_bin250.fits
.....................!
real 191.51
user 185.23
sys 5.88

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/54400/ft1_filtered_4FGL_J1506.6+0813_daily_bin250.fits scfile=/scratch/kocevski/54400/ft2_4FGL_J1506.6+0813_daily_bin250.fits outfile=/scratch/kocevski/54400/cmap_304128001_304387201_4FGL_J1506.6+0813_daily_bin250.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.674 yref=8.2256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54400/ft1_filtered_4FGL_J1506.6+0813_daily_bin250.fits scfile=/scratch/kocevski/54400/ft2_4FGL_J1506.6+0813_daily_bin250.fits outfile=/scratch/kocevski/54400/cmap_HighResolution_304128001_304387201_4FGL_J1506.6+0813_daily_bin250.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    75.067       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2483       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.462       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2017       1.0000         .10000E-03   10000.    
    11 'norm      '    .56330       1.0000         .10000E-03   10000.    
    12 'norm      '    4.1194       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.649       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4113       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    23.846       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .71650       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .62045E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    11.515       1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.003       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .91693       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1564       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=   7268.996     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2737 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3323       -.81715E-08** at limit **
   2  norm          .10000E-03    6.9561        .51210E-08** at limit **
   3  Prefactor     75.069        66.409        .47613E-07   -.13048E-04
   4  Prefactor     .10000E-03    30.579       -.29633E-06** at limit **
   5  norm          .10000E-03    10.881        .52687E-06** at limit **
   6  Prefactor     2.2498        61.314        .11316E-05    .26305E-04
   7  Prefactor     16.463        17.536       -.37851E-07   -.23872E-04
   8  Prefactor     .10000E-03    10.048        .27318E-07** at limit **
   9  Prefactor     .10000E-03    10.769       -.70450E-06** at limit **
  10  Prefactor     1.1901        129.51        .29873E-04    .84901E-05
  11  norm          .56330        .19520        .86998E-09   -.19957E-04
  12  norm          4.1189        2.7560        .30797E-07   -.40121E-04
  13  norm          .10000E-03    2.4299       -.62463E-08** at limit **
  14  norm          16.646        30.080       -.40883E-07    .50146E-05
  15  norm          1.4120        3.9558        .34769E-06   -.25386E-04
  16  Prefactor     .10000E-03    38.744        .12129E-06** at limit **
  17  Prefactor     23.832        41.290        .39912E-06   -.33799E-04
  18  Prefactor     .10000E-03    90.041       -.47482E-07** at limit **
  19  Prefactor     .69743        2.5396        .16876E-06   -.12502E-03
  20  Prefactor     .10000E-03    256.57        .91664E-06** at limit **
  21  norm          11.510        5.7190       -.20532E-07   -.30686E-04
  22  Prefactor     30.002        35.480        .71364E-07   -.20323E-05
  23  Normalizat    .91687        .23264       -.45234E-06   -.18072E-04
  24  Prefactor     1.1564        .13159       -.23810E-06   -.43194E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 75.0693
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 2.24979
  Prefactor  = 16.4629
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.19011
  norm       = 0.563298
  norm       = 4.11892
  norm       = 0.0001
  norm       = 16.6463
  norm       = 1.412
  Prefactor  = 0.0001
  Prefactor  = 23.8317
  Prefactor  = 0.000100001
  Prefactor  = 0.697426
  Prefactor  = 0.0001
  norm       = 11.5101
  Prefactor  = 30.0017
  Normalizat = 0.916875
  Prefactor  = 1.15642
 **********
 **   18 **HESSE 
 **********

 FCN=   7268.996     FROM HESSE     STATUS=OK           397 CALLS     3134 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.9577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     75.069        66.487        .46343E-04   -1.3973    
   4  Prefactor     .10000E-03    30.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2498        61.630        .27405E-03   -1.5408    
   7  Prefactor     16.463        17.555        .98714E-04   -1.4896    
   8  Prefactor     .10000E-03    10.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1901        129.29        .20697E-02   -1.5490    
  11  norm          .56330        .19462        .21097E-04   -1.5558    
  12  norm          4.1189        2.7324        .10641E-03   -1.5302    
  13  norm          .10000E-03    2.4371        .12979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.646        30.081        .98157E-04   -1.4892    
  15  norm          1.4120        3.9120        .26565E-03   -1.5470    
  16  Prefactor     .10000E-03    38.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     23.832        41.304        .82029E-04   -1.4731    
  18  Prefactor     .10000E-03    92.435        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .69743        7.0373        .24457E-02   -1.5541    
  20  Prefactor     .10000E-03    266.99        .37315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          11.510        5.7092        .11806E-03   -1.5029    
  22  Prefactor     30.002        35.480        .73146E-04   -1.4612    
  23  Normalizat    .91687        .27007        .35431E-03   -.95870    
  24  Prefactor     1.1564        .15451        .18529E-03   -.87683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66052e-08
Minuit parameter uncertainties:
  1  8.02961e-07
  2  2.49171e-06
  3  66.553
  4  1.45411e-05
  5  0.00027381
  6  23.5767
  7  17.5601
  8  3.96278e-05
  9  0.000269285
  10  24.863
  11  0.194624
  12  2.73246
  13  3.28946e-07
  14  30.1087
  15  3.91268
  16  0.000116673
  17  41.3539
  18  0.000468045
  19  4.43117
  20  0.000164861
  21  5.70948
  22  35.5045
  23  0.270468
  24  0.154573
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  3.289e-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.156e+00  1.546e-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:  9.169e-01  2.705e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/54400/likelihoodResults_304128001_304387201_4FGL_J1506.6+0813_daily_bin250.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) = 7268.99811027
delta logL = -0.00189057974148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7268.99621969
delta logL = 1.4897523215e-09

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.5946       1.0000          .0000       5.0000    
     3 'Normalizat'    .91688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1564       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7268.996     FROM MIGRAD    STATUS=FAILED        82 CALLS      225 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    520.85        .12983E-02** at limit **
   2  alpha         1.5594        4.1937        .18090        .24027E-05
   3  Normalizat    .91687        .14385        .35431E-03    .64816E-05
   4  Prefactor     1.1564        .84023E-01    .18529E-03    .95104E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7268.996     FROM SIMPLEX   STATUS=UNCHANGED    156 CALLS      381 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    520.85        .23631E-03** at limit **
   2  alpha         1.5594        4.1937        .17338E-04    .24027E-05
   3  Normalizat    .91687        .14385        .11979E-05    .64816E-05
   4  Prefactor     1.1564        .84023E-01    .34654E-06    .95104E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7268.996     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      412 TOTAL
                     EDM=   .69E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4467        .25966E-03** at limit **
   2  alpha         1.5243        4.0416        .72359E-02   -.91127E-08
   3  Normalizat    .91687        .25768        .14172E-04   -.33692E-05
   4  Prefactor     1.1564        .15061        .74114E-05   -.67493E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.52432
  Normalizat = 0.916875
  Prefactor  = 1.15642
 **********
 **   18 **HESSE 
 **********

 FCN=   7268.996     FROM HESSE     STATUS=OK            23 CALLS      435 TOTAL
                     EDM=   .73E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.4465        .51931E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5243        4.0156        .14472E-02   -.40092    
   3  Normalizat    .91687        .25783        .28345E-05   -.95870    
   4  Prefactor     1.1564        .15069        .14823E-05   -.87683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26078e-13
Minuit parameter uncertainties:
  1  1.82381e-06
  2  182.078
  3  0.258177
  4  0.150748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54400': 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) = 7268.99621962
delta logL = 7.81546987128e-08

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.824e-06  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.524e+00  1.821e+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.156e+00  1.507e-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:  9.169e-01  2.582e-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/54400/cmap_HighResolution_304128001_304387201_4FGL_J1506.6+0813_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.76e-05', job_status='DONE', photon_flux_upper_limit='2.52e-08', time_completed='2021-09-11 00:32:05.654858', job_id='54400', GAL2='1.16', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631345525.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='7.82e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='250' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:32:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 54400: <4FGL_J1506.6+0813_daily_bin250> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin250 226.674 8.2256 304128001 304387201 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 :                                   695.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

