/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 70 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 = 7485
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1506.1+3731_daily_bin489
RA = 226.535, Dec = 37.5183
tmin = 366076801, tmax = 366336001
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='40864', job_status='RUN', time_executed='2021-09-10 23:32:32.024025', time_epoch_executed='1631341952.02' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='489'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40864

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40864/ft1_4FGL_J1506.1+3731_daily_bin489.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40864/ft2_4FGL_J1506.1+3731_daily_bin489.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40864/ft1_4FGL_J1506.1+3731_daily_bin489.fits outfile=/scratch/kocevski/40864/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin489.fits ra=226.535 dec=37.5183 rad=12.0 tmin=366076801.0 tmax=366336001.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 5.37
user 5.10
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/40864/ft1_filtered_4FGL_J1506.1+3731_daily_bin489.fits" evtable="EVENTS" scfile=/scratch/kocevski/40864/ft2_4FGL_J1506.1+3731_daily_bin489.fits sctable="SC_DATA" outfile=/scratch/kocevski/40864/ltcube_366076801_366336001_4FGL_J1506.1+3731_daily_bin489.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/40864/ft2_4FGL_J1506.1+3731_daily_bin489.fits
.....................!
real 12.27
user 11.94
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40864/ft1_filtered_4FGL_J1506.1+3731_daily_bin489.fits evtable="EVENTS" scfile=/scratch/kocevski/40864/ft2_4FGL_J1506.1+3731_daily_bin489.fits sctable="SC_DATA" expcube=/scratch/kocevski/40864/ltcube_366076801_366336001_4FGL_J1506.1+3731_daily_bin489.fits outfile=/scratch/kocevski/40864/expmap_366076801_366336001_4FGL_J1506.1+3731_daily_bin489.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/40864/ltcube_366076801_366336001_4FGL_J1506.1+3731_daily_bin489.fits
.....................!
real 190.46
user 185.61
sys 4.48

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/40864/ft1_filtered_4FGL_J1506.1+3731_daily_bin489.fits scfile=/scratch/kocevski/40864/ft2_4FGL_J1506.1+3731_daily_bin489.fits outfile=/scratch/kocevski/40864/cmap_366076801_366336001_4FGL_J1506.1+3731_daily_bin489.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/40864/ft1_filtered_4FGL_J1506.1+3731_daily_bin489.fits scfile=/scratch/kocevski/40864/ft2_4FGL_J1506.1+3731_daily_bin489.fits outfile=/scratch/kocevski/40864/cmap_HighResolution_366076801_366336001_4FGL_J1506.1+3731_daily_bin489.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.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    40.656       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51827E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3597       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33158       1.0000         .10000E-03   10000.    
     6 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    77.622       1.0000         .10000E-03   10000.    
     8 'norm      '    3.9115       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    64.652       1.0000         .10000E-03   10000.    
    11 'norm      '    5.0223       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11394E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1260       1.0000         .10000E-03   10000.    
    15 'norm      '    3.1942       1.0000         .10000E-03   10000.    
    16 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8473       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8221       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.279       1.0000         .10000E-03   10000.    
    22 'norm      '    3.5141       1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.594       1.0000         .10000E-03   10000.    
    24 'Prefactor '    47.579       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    50.659       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2958       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80323       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=   6653.085     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3764 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8686        .47344E-07** at limit **
   2  norm          40.651        8.9320       -.28699E-06   -.29314E-04
   3  Prefactor     .10032E-03    24.963       -.58193E-05** at limit **
   4  Prefactor     8.3083        19.383       -.35325E-05    .25162E-03
   5  Prefactor     .32143        2.2773       -.11742E-06   -.14460E-04
   6  norm          .10000E-03    14.486       -.51051E-06** at limit **
   7  Prefactor     77.607        38.505        .10079E-05    .26972E-03
   8  norm          3.9104        4.5172        .17470E-06    .20461E-03
   9  Prefactor     .10001E-03    37.602       -.52449E-05** at limit **
  10  Prefactor     64.645        40.447        .83553E-06    .66016E-04
  11  norm          5.0223        5.0408       -.43792E-06   -.25991E-04
  12  Prefactor     .10000E-03    5.9562       -.32701E-06** at limit **
  13  Prefactor     .10000E-03    4.3369       -.65766E-06** at limit **
  14  Prefactor     3.1259        3.5612       -.64531E-07   -.39196E-04
  15  norm          3.1935        1.9287       -.59092E-07   -.70117E-03
  16  norm          .10000E-03    2.1040        .50578E-07** at limit **
  17  Prefactor     1.8542        12.060        .84498E-05   -.19042E-03
  18  Prefactor     .10000E-03    60.331        .20310E-05** at limit **
  19  Prefactor     3.8244        11.183        .24938E-05    .11052E-04
  20  Prefactor     .10000E-03    26.924        .27451E-05** at limit **
  21  Prefactor     11.260        16.705       -.33189E-05   -.29435E-03
  22  norm          3.5138        1.8251        .77778E-09   -.19976E-03
  23  Prefactor     19.591        15.880        .10618E-06   -.57200E-04
  24  Prefactor     47.581        45.100        .98409E-08   -.34062E-04
  25  Prefactor     .10000E-03    5.7730        .37036E-06** at limit **
  26  norm          .10000E-03    4.6789        .11931E-08** at limit **
  27  Prefactor     50.651        39.127        .12959E-05    .10410E-04
  28  Normalizat    1.2965        .21201        .15218E-05    .21548E-04
  29  Prefactor     .80264        .18884       -.37666E-05   -.42775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 40.651
  Prefactor  = 0.000100319
  Prefactor  = 8.30831
  Prefactor  = 0.321433
  norm       = 0.0001
  Prefactor  = 77.6068
  norm       = 3.91039
  Prefactor  = 0.000100011
  Prefactor  = 64.6447
  norm       = 5.02227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.1259
  norm       = 3.19347
  norm       = 0.0001
  Prefactor  = 1.85419
  Prefactor  = 0.000100002
  Prefactor  = 3.82442
  Prefactor  = 0.000100002
  Prefactor  = 11.2604
  norm       = 3.51381
  Prefactor  = 19.5915
  Prefactor  = 47.5809
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 50.6506
  Normalizat = 1.29645
  Prefactor  = 0.802638
 **********
 **   18 **HESSE 
 **********

 FCN=   6653.085     FROM HESSE     STATUS=OK           557 CALLS     4321 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.8711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          40.651        8.9238        .62866E-04   -1.4432    
   3  Prefactor     .10032E-03    97.162        .55527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.3083        19.929        .13865E-03   -1.5131    
   5  Prefactor     .32143        9.4604        .23281E-02   -1.5595    
   6  norm          .10000E-03    14.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     77.607        38.789        .45580E-04   -1.3944    
   8  norm          3.9104        4.5163        .18059E-03   -1.5312    
   9  Prefactor     .10001E-03    37.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     64.645        40.469        .49910E-04   -1.4098    
  11  norm          5.0223        5.0450        .89544E-03   -1.5260    
  12  Prefactor     .10000E-03    5.9684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.566        .31943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1259        3.5608        .79953E-03   -1.5354    
  15  norm          3.1935        1.8862        .81886E-04   -1.5351    
  16  norm          .10000E-03    2.1289        .11541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8542        14.184        .15340E-02   -1.5436    
  18  Prefactor     .10000E-03    60.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8244        11.189        .10322E-02   -1.5317    
  20  Prefactor     .10000E-03    27.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.260        16.965        .11929E-03   -1.5037    
  22  norm          3.5138        1.8261        .66366E-04   -1.5333    
  23  Prefactor     19.591        15.930        .90484E-04   -1.4822    
  24  Prefactor     47.581        45.113        .58131E-04   -1.4327    
  25  Prefactor     .10000E-03    5.7772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    4.6834        .17231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     50.651        39.178        .56345E-04   -1.4283    
  28  Normalizat    1.2965        .25645        .26009E-03   -.83672    
  29  Prefactor     .80264        .22510        .30709E-03   -.99631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67776e-08
Minuit parameter uncertainties:
  1  8.70854e-06
  2  8.92411
  3  0.0111481
  4  19.9451
  5  3.48769
  6  3.2266e-05
  7  38.8015
  8  4.51672
  9  0.00128382
  10  40.486
  11  5.04545
  12  2.60542e-05
  13  5.92179e-05
  14  3.56107
  15  1.88623
  16  3.59149e-06
  17  10.2598
  18  0.000663106
  19  11.1951
  20  0.000447147
  21  16.9727
  22  1.8261
  23  15.9337
  24  45.1456
  25  3.76625e-05
  26  3.72384e-06
  27  39.198
  28  0.2567
  29  0.225362
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  3.193e+00  1.886e+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.026e-01  2.254e-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.296e+00  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.76
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.85e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.18e-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) = 6652.92839863
delta logL = 0.156184016482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6652.91782195
delta logL = 0.166760698024

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9334       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7841       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82097       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=   6652.918     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      217 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9331        36.862        .59291E-02    .13010E-02
   2  alpha         2.7841        3.2342        .41492        .14089E-04
   3  Normalizat    1.2711        .92158E-01    .59300E-01    .70424E-03
   4  Prefactor     .82097        .96399E-01    .68725E-01    .61873E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.93314
  alpha      = 2.78414
  Normalizat = 1.27111
  Prefactor  = 0.820971
 **********
 **   18 **HESSE 
 **********

 FCN=   6652.918     FROM HESSE     STATUS=OK            29 CALLS      246 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9331        1.9499        .74874E-04   -1.5365    
   2  alpha         2.7841        .71609        .17028E-01    .11390    
   3  Normalizat    1.2711        .23576        .26226E-03   -.84433    
   4  Prefactor     .82097        .22218        .30406E-03   -.98960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47629e-10
Minuit parameter uncertainties:
  1  1.94997
  2  0.726399
  3  0.235956
  4  0.222426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40864': 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) = 6652.91782193
delta logL = 0.166760709492

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.933e+00  1.950e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.784e+00  7.264e-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.210e-01  2.224e-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.271e+00  2.360e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.08
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.78 +/- 0.73
Photon Flux (Free Index): 8.60e-08 +/- 5.44e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/40864/cmap_HighResolution_366076801_366336001_4FGL_J1506.1+3731_daily_bin489.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.85e-08', energy_flux2='1.93e-05', photon_flux_error='4.04e-08', dlogl='1.67e-01', energy_flux='2.00e-05', photon_flux2='8.60e-08', job_status='DONE', time_completed='2021-09-10 23:45:23.105846', photon_index_error2='0.73', photon_index2='2.78', ts='4.76', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='1.30', time_epoch_completed='1631342723.11', return_code='0', job_id='40864', GAL2='0.82', EG2='1.27', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='5.44e-08', ts2='5.08', photon_index='2.40' WHERE bin_id='489' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:45:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 40864: <4FGL_J1506.1+3731_daily_bin489> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin489> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 23:31:03 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:31:05 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:31:05 2021
Terminated at Fri Sep 10 23:45:23 2021
Results reported at Fri Sep 10 23:45:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin489 226.535 37.5183 366076801 366336001 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 :                                   767.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

