/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 172 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1506.1+3731_daily_bin93
RA = 226.535, Dec = 37.5183
tmin = 263433601, tmax = 263692801
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='38282', job_status='RUN', time_executed='2021-09-10 23:24:29.775538', time_epoch_executed='1631341469.78' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38282

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38282/ft1_4FGL_J1506.1+3731_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38282/ft2_4FGL_J1506.1+3731_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38282/ft1_4FGL_J1506.1+3731_daily_bin93.fits outfile=/scratch/kocevski/38282/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin93.fits ra=226.535 dec=37.5183 rad=12.0 tmin=263433601.0 tmax=263692801.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 2.68
user 2.47
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/38282/ft2_4FGL_J1506.1+3731_daily_bin93.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38282/ft2_4FGL_J1506.1+3731_daily_bin93.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/38282/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/38282/ft1_filtered_4FGL_J1506.1+3731_daily_bin93.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.41
user 0.26
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38282/ft1_filtered_4FGL_J1506.1+3731_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/38282/ft2_4FGL_J1506.1+3731_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/38282/ltcube_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.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/38282/ft2_4FGL_J1506.1+3731_daily_bin93.fits
.....................!
real 9.63
user 9.32
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38282/ft1_filtered_4FGL_J1506.1+3731_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/38282/ft2_4FGL_J1506.1+3731_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/38282/ltcube_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.fits outfile=/scratch/kocevski/38282/expmap_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.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/38282/ltcube_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.fits
.....................!
real 144.66
user 140.67
sys 3.75

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 188 point sources and 0 extended sources

Setting source of interest to:
4FGL J1506.1+3731 @ 226.535 37.5183

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/38282/ft1_filtered_4FGL_J1506.1+3731_daily_bin93.fits scfile=/scratch/kocevski/38282/ft2_4FGL_J1506.1+3731_daily_bin93.fits outfile=/scratch/kocevski/38282/cmap_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.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.535 yref=37.5183 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.43
user 0.28
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38282/ft1_filtered_4FGL_J1506.1+3731_daily_bin93.fits scfile=/scratch/kocevski/38282/ft2_4FGL_J1506.1+3731_daily_bin93.fits outfile=/scratch/kocevski/38282/cmap_HighResolution_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.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.535 yref=37.5183 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.45
user 0.29
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/38282/ft1_filtered_4FGL_J1506.1+3731_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/38282/ft2_4FGL_J1506.1+3731_daily_bin93.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38282/Model_4FGL_J1506.1+3731_daily_bin93.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/38282/ft1_filtered_4FGL_J1506.1+3731_daily_bin93.fits.....................!
real 37.96
user 36.86
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/38282/ft1_filtered_4FGL_J1506.1+3731_daily_bin93.fits', '/scratch/kocevski/38282/ft2_4FGL_J1506.1+3731_daily_bin93.fits', expMap='/scratch/kocevski/38282/expmap_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.fits', expCube='/scratch/kocevski/38282/ltcube_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/38282/Model_4FGL_J1506.1+3731_daily_bin93.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1506.1+3731'

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.445e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/38282/ft1_filtered_4FGL_J1506.1+3731_daily_bin93.fits
Spacecraft file(s): /scratch/kocevski/38282/ft2_4FGL_J1506.1+3731_daily_bin93.fits
Exposure map: /scratch/kocevski/38282/expmap_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.fits
Exposure cube: /scratch/kocevski/38282/ltcube_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/38282/Model_4FGL_J1506.1+3731_daily_bin93.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) = 6157.69687163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24609E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .33815E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.678       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10920E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    16.764       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.815       1.0000         .10000E-03   10000.    
    11 'norm      '    9.1876       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3167       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7021       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.671       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7561       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.649       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9609       1.0000         .10000E-03   10000.    
    22 'norm      '    14.623       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80832       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0971       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6157.653     FROM MIGRAD    STATUS=CONVERGED   1313 CALLS     4310 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10559E-03    16.374        .92654E-01** at limit **
   2  norm          .10001E-03    32.129        .21832E-02** at limit **
   3  Prefactor     .10000E-03    9.6201        .18142E-02** at limit **
   4  Prefactor     14.663        18.634        .10455E-03   -.30687E-03
   5  Prefactor     .10000E-03    1.2939        .86724E-03** at limit **
   6  norm          .10000E-03    5.4025        .17809E-02** at limit **
   7  Prefactor     .10004E-03    180.03        .69551E-02** at limit **
   8  norm          16.762        8.1653        .97821E-04   -.25313E-03
   9  Prefactor     .10000E-03    52.290        .18142E-02** at limit **
  10  Prefactor     17.819        22.215        .94890E-04    .90935E-04
  11  norm          9.1885        9.0820        .13222E-03    .63626E-04
  12  Prefactor     .10000E-03    6.3379        .18142E-02** at limit **
  13  Prefactor     .10000E-03    6.7078        .36285E-03** at limit **
  14  Prefactor     9.3174        6.2903        .13130E-03    .85720E-05
  15  norm          .10000E-03    .34261        .44714E-03** at limit **
  16  norm          1.7023        2.6546        .15311E-03   -.66677E-04
  17  Prefactor     .10000E-03    8.1224        .18142E-02** at limit **
  18  Prefactor     12.653        43.085        .11253E-03    .54959E-04
  19  Prefactor     2.7593        9.0973        .24519E-03   -.15904E-04
  20  Prefactor     22.651        27.020        .84165E-04   -.13400E-03
  21  Prefactor     8.9740        16.021        .13389E-03   -.65889E-04
  22  norm          14.624        2.1648        .42135E-04   -.12654E-03
  23  Prefactor     .10000E-03    7.7596        .18142E-02** at limit **
  24  Prefactor     .10000E-03    12.125        .18142E-02** at limit **
  25  Prefactor     .10000E-03    4.9874        .17112E-02** at limit **
  26  norm          .10000E-03    4.5516        .16326E-02** at limit **
  27  Prefactor     .10000E-03    10.381        .18142E-02** at limit **
  28  Normalizat    .80830        .22585        .27098E-03   -.45302E-03
  29  Prefactor     1.0970        .22241        .24383E-03    .81127E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105592
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 14.663
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010004
  norm       = 16.7624
  Prefactor  = 0.000100002
  Prefactor  = 17.8189
  norm       = 9.18852
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.31738
  norm       = 0.0001
  norm       = 1.70228
  Prefactor  = 0.0001
  Prefactor  = 12.6528
  Prefactor  = 2.75927
  Prefactor  = 22.6506
  Prefactor  = 8.97396
  norm       = 14.6235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.808297
  Prefactor  = 1.09698
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.653     FROM HESSE     STATUS=OK           533 CALLS     4843 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10559E-03    15.340        .98012E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    33.017        .87328E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.6205        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.663        18.632        .41818E-05   -1.4942    
   5  Prefactor     .10000E-03    1.2940        .17345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.4026        .35618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    185.72        .27821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          16.762        8.1651        .39128E-05   -1.4889    
   9  Prefactor     .10000E-03    52.296        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.819        22.213        .37956E-05   -1.4863    
  11  norm          9.1885        9.0818        .52889E-05   -1.5102    
  12  Prefactor     .10000E-03    6.3385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.7081        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.3174        6.2901        .52520E-05   -1.5097    
  15  norm          .10000E-03    .34261        .89429E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7023        2.6542        .61245E-05   -1.5447    
  17  Prefactor     .10000E-03    8.1248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.653        43.071        .45012E-05   -1.4996    
  19  Prefactor     2.7593        9.0962        .98077E-05   -1.5376    
  20  Prefactor     22.651        27.009        .33666E-05   -1.4756    
  21  Prefactor     8.9740        16.013        .53557E-05   -1.5109    
  22  norm          14.624        2.1645        .16854E-05   -1.4943    
  23  Prefactor     .10000E-03    7.7618        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.9874        .34225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.5520        .32653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.381        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .80830        .22594        .54195E-04   -.99762    
  29  Prefactor     1.0970        .22262        .97534E-05   -.89563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25696e-09
Minuit parameter uncertainties:
  1  0.0185281
  2  0.00111946
  3  3.15203e-06
  4  18.6398
  5  3.41843e-06
  6  1.13521e-05
  7  0.00549886
  8  8.16568
  9  0.000675059
  10  22.2237
  11  9.08312
  12  8.70682e-05
  13  7.46617e-05
  14  6.29055
  15  1.07457e-06
  16  2.6544
  17  7.3444e-06
  18  43.1774
  19  9.10074
  20  27.0238
  21  16.0202
  22  2.16454
  23  6.39004e-05
  24  1.04727e-05
  25  7.0516e-06
  26  7.48229e-06
  27  0.000108784
  28  0.226205
  29  0.222811
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  1.075e-06  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.097e+00  2.228e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.083e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.535 37.518
Photon Flux Upper Limit: 4.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38282/likelihoodResults_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.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) = 6157.65291454
delta logL = -8.09687135188e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6157.65283393
delta logL = -3.58902980224e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3923       1.0000          .0000       5.0000    
     3 'Normalizat'    .80841       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0970       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6157.653     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      233 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .37754        .44741E-03** at limit **
   2  alpha         2.2522        3.8479        .16480        .29732E-07
   3  Normalizat    .80830        .20552        .27098E-03   -.37423E-04
   4  Prefactor     1.0970        .21338        .24383E-03   -.43827E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.25224
  Normalizat = 0.808304
  Prefactor  = 1.09698
 **********
 **   18 **HESSE 
 **********

 FCN=   6157.653     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .34583        .89482E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2522        3.4798        .65920E-02   -.99268E-01
   3  Normalizat    .80830        .20575        .10839E-04   -.99761    
   4  Prefactor     1.0970        .21362        .97534E-05   -.89563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.61519e-12
Minuit parameter uncertainties:
  1  3.19744e-07
  2  87.5978
  3  0.205951
  4  0.213789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38282': 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) = 6157.65283221
delta logL = 1.35770824272e-06

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  3.197e-07  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.252e+00  8.760e+01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.097e+00  2.138e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.083e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.535 37.518

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/38282/cmap_HighResolution_263433601_263692801_4FGL_J1506.1+3731_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-05', job_status='DONE', photon_flux_upper_limit='4.06e-08', time_completed='2021-09-10 23:35:38.739230', job_id='38282', GAL2='1.10', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1631342138.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='93' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 38282: <4FGL_J1506.1+3731_daily_bin93> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin93> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 23:21:27 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:21:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 23:21:28 2021
Terminated at Fri Sep 10 23:35:39 2021
Results reported at Fri Sep 10 23:35:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin93 226.535 37.5183 263433601 263692801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1506.1+3731 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   666.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

