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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin31
RA = 226.535, Dec = 37.5183
tmin = 247363201, tmax = 247622401
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='38194', job_status='RUN', time_executed='2021-09-10 23:24:46.805732', time_epoch_executed='1631341486.81' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38194

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38194/ft1_4FGL_J1506.1+3731_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38194/ft2_4FGL_J1506.1+3731_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38194/ft1_4FGL_J1506.1+3731_daily_bin31.fits outfile=/scratch/kocevski/38194/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin31.fits ra=226.535 dec=37.5183 rad=12.0 tmin=247363201.0 tmax=247622401.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 1.49
user 1.27
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38194/ft2_4FGL_J1506.1+3731_daily_bin31.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/38194/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin31.fits evtable="EVENTS" outfile="/scratch/kocevski/38194/ft1_filtered_4FGL_J1506.1+3731_daily_bin31.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/38194/ft1_filtered_4FGL_J1506.1+3731_daily_bin31.fits" evtable="EVENTS" scfile=/scratch/kocevski/38194/ft2_4FGL_J1506.1+3731_daily_bin31.fits sctable="SC_DATA" outfile=/scratch/kocevski/38194/ltcube_247363201_247622401_4FGL_J1506.1+3731_daily_bin31.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/38194/ft2_4FGL_J1506.1+3731_daily_bin31.fits
.....................!
real 12.92
user 12.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38194/ft1_filtered_4FGL_J1506.1+3731_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/38194/ft2_4FGL_J1506.1+3731_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/38194/ltcube_247363201_247622401_4FGL_J1506.1+3731_daily_bin31.fits outfile=/scratch/kocevski/38194/expmap_247363201_247622401_4FGL_J1506.1+3731_daily_bin31.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/38194/ltcube_247363201_247622401_4FGL_J1506.1+3731_daily_bin31.fits
.....................!
real 191.19
user 186.10
sys 4.62

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/38194/ft1_filtered_4FGL_J1506.1+3731_daily_bin31.fits scfile=/scratch/kocevski/38194/ft2_4FGL_J1506.1+3731_daily_bin31.fits outfile=/scratch/kocevski/38194/cmap_247363201_247622401_4FGL_J1506.1+3731_daily_bin31.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38194/ft1_filtered_4FGL_J1506.1+3731_daily_bin31.fits scfile=/scratch/kocevski/38194/ft2_4FGL_J1506.1+3731_daily_bin31.fits outfile=/scratch/kocevski/38194/cmap_HighResolution_247363201_247622401_4FGL_J1506.1+3731_daily_bin31.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.53
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/38194/ft1_filtered_4FGL_J1506.1+3731_daily_bin31.fits', '/scratch/kocevski/38194/ft2_4FGL_J1506.1+3731_daily_bin31.fits', expMap='/scratch/kocevski/38194/expmap_247363201_247622401_4FGL_J1506.1+3731_daily_bin31.fits', expCube='/scratch/kocevski/38194/ltcube_247363201_247622401_4FGL_J1506.1+3731_daily_bin31.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/38194/Model_4FGL_J1506.1+3731_daily_bin31.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/38194/ft1_filtered_4FGL_J1506.1+3731_daily_bin31.fits
Spacecraft file(s): /scratch/kocevski/38194/ft2_4FGL_J1506.1+3731_daily_bin31.fits
Exposure map: /scratch/kocevski/38194/expmap_247363201_247622401_4FGL_J1506.1+3731_daily_bin31.fits
Exposure cube: /scratch/kocevski/38194/ltcube_247363201_247622401_4FGL_J1506.1+3731_daily_bin31.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/38194/Model_4FGL_J1506.1+3731_daily_bin31.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) = 7552.89452454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.3769       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.947       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13832E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.736       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7179       1.0000         .10000E-03   10000.    
    15 'norm      '    4.3600       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0474       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9237       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.368       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.285       1.0000         .10000E-03   10000.    
    22 'norm      '    8.8018       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.6280       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.528       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0944       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81070       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.

 FCN=   7552.820     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3145 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.4582       -.26017E-06** at limit **
   2  norm          6.3777        4.5430        .50292E-06    .31874E-04
   3  Prefactor     .10000E-03    7.8065        .48015E-06** at limit **
   4  Prefactor     18.948        14.193        .13468E-07    .80769E-05
   5  Prefactor     .10000E-03    1.5162        .15523E-07** at limit **
   6  norm          .10000E-03    6.7369       -.21966E-06** at limit **
   7  Prefactor     .10000E-03    10.491       -.10932E-05** at limit **
   8  norm          .10000E-03    3.4605       -.27730E-06** at limit **
   9  Prefactor     13.740        25.797       -.39249E-06    .90898E-05
  10  Prefactor     .10000E-03    13.305        .42038E-06** at limit **
  11  norm          .10000E-03    5.3480        .26442E-06** at limit **
  12  Prefactor     .10000E-03    33.019       -.30772E-05** at limit **
  13  Prefactor     .10000E-03    2.3128        .12580E-07** at limit **
  14  Prefactor     5.7188        6.3284        .90525E-06    .61362E-05
  15  norm          4.3605        1.7266        .59207E-07    .17333E-03
  16  norm          1.0494        1.7552        .16296E-06    .48019E-03
  17  Prefactor     .10000E-03    2.7979        .11431E-07** at limit **
  18  Prefactor     .10000E-03    19.960       -.30850E-06** at limit **
  19  Prefactor     8.9222        7.2561        .32749E-06    .79331E-05
  20  Prefactor     36.374        26.602       -.50203E-06   -.20770E-04
  21  Prefactor     10.282        14.149        .32209E-06   -.22383E-04
  22  norm          8.8022        2.0546        .22539E-07    .24836E-04
  23  Prefactor     9.6279        11.914       -.18668E-06   -.36049E-05
  24  Prefactor     16.513        28.028        .17225E-05   -.14630E-05
  25  Prefactor     .10000E-03    43.518        .29665E-05** at limit **
  26  norm          .10000E-03    8.2815       -.58510E-07** at limit **
  27  Prefactor     .10000E-03    16.524        .10597E-05** at limit **
  28  Normalizat    1.0940        .17539       -.46258E-06    .39468E-04
  29  Prefactor     .81113        .16697       -.39498E-07    .14337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.3777
  Prefactor  = 0.0001
  Prefactor  = 18.9481
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.7398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.71877
  norm       = 4.36054
  norm       = 1.04942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.92216
  Prefactor  = 36.3744
  Prefactor  = 10.2816
  norm       = 8.80218
  Prefactor  = 9.62793
  Prefactor  = 16.5134
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09397
  Prefactor  = 0.811128
 **********
 **   18 **HESSE 
 **********

 FCN=   7552.820     FROM HESSE     STATUS=OK           555 CALLS     3700 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.3777        4.5465        .74265E-03   -1.5203    
   3  Prefactor     .10000E-03    7.8263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.948        14.226        .46007E-03   -1.4837    
   5  Prefactor     .10000E-03    1.5462        .10444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.7510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    8.0679        .30687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.740        25.735        .10807E-03   -1.4966    
  10  Prefactor     .10000E-03    13.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.4149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.241        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3169        .12902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7188        6.3167        .83988E-03   -1.5230    
  15  norm          4.3605        1.7291        .68374E-04   -1.5290    
  16  norm          1.0494        1.3735        .14550E-02   -1.5503    
  17  Prefactor     .10000E-03    2.8002        .14177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.9222        7.2696        .67087E-03   -1.5110    
  20  Prefactor     36.374        26.540        .66456E-04   -1.4501    
  21  Prefactor     10.282        13.983        .12494E-03   -1.5067    
  22  norm          8.8022        2.0694        .47944E-04   -1.5115    
  23  Prefactor     9.6279        11.979        .12915E-03   -1.5087    
  24  Prefactor     16.513        28.044        .98517E-04   -1.4895    
  25  Prefactor     .10000E-03    43.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    8.3258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    16.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0940        .20309        .24077E-03   -.89946    
  29  Prefactor     .81113        .19439        .27422E-03   -.99319    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.53142e-11
Minuit parameter uncertainties:
  1  4.92803e-07
  2  4.54677
  3  1.46804e-07
  4  14.2283
  5  2.6489e-07
  6  6.53992e-07
  7  6.22761e-06
  8  9.45067e-05
  9  25.7557
  10  1.41031e-06
  11  9.92945e-07
  12  0.000105796
  13  7.76949e-07
  14  6.31742
  15  1.72915
  16  1.3735
  17  1.26012e-08
  18  1.38814e-06
  19  7.27032
  20  26.5484
  21  13.9871
  22  2.0694
  23  11.9824
  24  28.0659
  25  6.85769e-05
  26  4.81553e-06
  27  2.80474e-06
  28  0.203239
  29  0.194552
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  4.361e+00  1.729e+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

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.111e-01  1.946e-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:  1.094e+00  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.31
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 9.35e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 1.08e-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) = 7552.80501628
delta logL = 0.0149708334411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7552.80417651
delta logL = 0.0158106013005

Fit tolerance = 1e-08

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

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

 FCN=   7552.804     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      199 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3423        30.799        .48326E-02    .11225E-02
   2  alpha         2.4892        3.3423        .37162        .25703E-04
   3  Normalizat    1.0848        .17248        .38655E-01    .36136E-05
   4  Prefactor     .81753        .15350        .43945E-01   -.34824E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.34225
  alpha      = 2.48917
  Normalizat = 1.0848
  Prefactor  = 0.817533
 **********
 **   18 **HESSE 
 **********

 FCN=   7552.804     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3423        1.7136        .67072E-04   -1.5291    
   2  alpha         2.4892        .51174        .14292E-01   -.43311E-02
   3  Normalizat    1.0848        .19830        .24162E-03   -.90241    
   4  Prefactor     .81753        .19298        .27326E-03   -.99085    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38649e-11
Minuit parameter uncertainties:
  1  1.7136
  2  0.515382
  3  0.198431
  4  0.193141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38194': 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) = 7552.80417651
delta logL = 0.0158106015733

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  4.342e+00  1.714e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.489e+00  5.154e-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:  8.175e-01  1.931e-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:  1.085e+00  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.27
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.49 +/- 0.52
Photon Flux (Free Index): 9.97e-08 +/- 5.13e-08
Energy Flux (Free Index): 2.71e-05 +/- 1.07e-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/38194/cmap_HighResolution_247363201_247622401_4FGL_J1506.1+3731_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.35e-08', energy_flux2='2.71e-05', photon_flux_error='3.71e-08', dlogl='1.58e-02', energy_flux='2.73e-05', photon_flux2='9.97e-08', job_status='DONE', time_completed='2021-09-10 23:37:26.835745', photon_index_error2='0.52', photon_index2='2.49', ts='15.31', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.07e-05', EG='1.09', time_epoch_completed='1631342246.84', return_code='0', job_id='38194', GAL2='0.82', EG2='1.08', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='5.13e-08', ts2='15.27', photon_index='2.40' WHERE bin_id='31' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:37:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 38194: <4FGL_J1506.1+3731_daily_bin31> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin31> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 23:21:21 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:21:23 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:23 2021
Terminated at Fri Sep 10 23:37:27 2021
Results reported at Fri Sep 10 23:37:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin31 226.535 37.5183 247363201 247622401 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 :                                   757.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

