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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin498
RA = 226.535, Dec = 37.5183
tmin = 368409601, tmax = 368668801
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='40875', job_status='RUN', time_executed='2021-09-10 23:32:30.666632', time_epoch_executed='1631341950.67' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/40875

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/40875/ft1_4FGL_J1506.1+3731_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/40875/ft2_4FGL_J1506.1+3731_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/40875/ft1_4FGL_J1506.1+3731_daily_bin498.fits outfile=/scratch/kocevski/40875/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin498.fits ra=226.535 dec=37.5183 rad=12.0 tmin=368409601.0 tmax=368668801.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.28
user 3.05
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/40875/ft1_filtered_4FGL_J1506.1+3731_daily_bin498.fits" evtable="EVENTS" scfile=/scratch/kocevski/40875/ft2_4FGL_J1506.1+3731_daily_bin498.fits sctable="SC_DATA" outfile=/scratch/kocevski/40875/ltcube_368409601_368668801_4FGL_J1506.1+3731_daily_bin498.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/40875/ft2_4FGL_J1506.1+3731_daily_bin498.fits
.....................!
real 11.83
user 11.47
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/40875/ft1_filtered_4FGL_J1506.1+3731_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/40875/ft2_4FGL_J1506.1+3731_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/40875/ltcube_368409601_368668801_4FGL_J1506.1+3731_daily_bin498.fits outfile=/scratch/kocevski/40875/expmap_368409601_368668801_4FGL_J1506.1+3731_daily_bin498.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/40875/ltcube_368409601_368668801_4FGL_J1506.1+3731_daily_bin498.fits
.....................!
real 189.92
user 184.85
sys 4.71

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/40875/ft1_filtered_4FGL_J1506.1+3731_daily_bin498.fits scfile=/scratch/kocevski/40875/ft2_4FGL_J1506.1+3731_daily_bin498.fits outfile=/scratch/kocevski/40875/cmap_368409601_368668801_4FGL_J1506.1+3731_daily_bin498.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/40875/ft1_filtered_4FGL_J1506.1+3731_daily_bin498.fits scfile=/scratch/kocevski/40875/ft2_4FGL_J1506.1+3731_daily_bin498.fits outfile=/scratch/kocevski/40875/cmap_HighResolution_368409601_368668801_4FGL_J1506.1+3731_daily_bin498.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1424       1.0000         .10000E-03   10000.    
     2 'norm      '    24.261       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.789       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    99.930       1.0000         .10000E-03   10000.    
    11 'norm      '    18.287       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.439       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.710       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1235       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3417       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2325       1.0000         .10000E-03   10000.    
    22 'norm      '    4.6932       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.2035       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77316       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0232       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=   5920.787     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3105 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1430        11.443       -.14289E-06   -.38923E-04
   2  norm          24.262        6.6289       -.31294E-07    .38159E-04
   3  Prefactor     .10000E-03    13.031       -.50725E-05** at limit **
   4  Prefactor     .10000E-03    9.7498        .10855E-04** at limit **
   5  Prefactor     .10000E-03    1.3008       -.12711E-06** at limit **
   6  norm          .10000E-03    6.5330       -.28288E-05** at limit **
   7  Prefactor     .10000E-03    13.161       -.52784E-05** at limit **
   8  norm          14.789        8.3282       -.89813E-08    .16500E-04
   9  Prefactor     .10000E-03    35.696       -.21692E-04** at limit **
  10  Prefactor     99.931        38.642        .74649E-06    .18030E-05
  11  norm          18.288        10.161        .67471E-07    .26024E-04
  12  Prefactor     16.434        13.882       -.45392E-06   -.23418E-04
  13  Prefactor     .10000E-03    2.1299        .35173E-06** at limit **
  14  Prefactor     14.710        7.4915       -.13794E-07   -.19599E-05
  15  norm          2.1239        1.3577       -.54738E-07   -.30029E-03
  16  norm          3.3415        3.1751        .11768E-06   -.15495E-03
  17  Prefactor     .10000E-03    3.1079        .48244E-06** at limit **
  18  Prefactor     .10000E-03    29.791        .97550E-05** at limit **
  19  Prefactor     .10000E-03    4.0925        .23249E-06** at limit **
  20  Prefactor     .10000E-03    6.3101        .37456E-05** at limit **
  21  Prefactor     1.2336        5.7434       -.33187E-05   -.98438E-03
  22  norm          4.6933        1.3816        .53530E-07    .46538E-03
  23  Prefactor     .10000E-03    12.534       -.27349E-05** at limit **
  24  Prefactor     .10000E-03    11.876        .25275E-05** at limit **
  25  Prefactor     .10000E-03    26.174        .15794E-04** at limit **
  26  norm          4.2033        8.0591       -.57097E-06   -.71372E-03
  27  Prefactor     .10000E-03    7.6888       -.58455E-05** at limit **
  28  Normalizat    .77316        .17631       -.67627E-07   -.14754E-04
  29  Prefactor     1.0232        .17493       -.51519E-07   -.11817E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.14299
  norm       = 24.2615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.7888
  Prefactor  = 0.0001
  Prefactor  = 99.9314
  norm       = 18.2878
  Prefactor  = 16.4345
  Prefactor  = 0.0001
  Prefactor  = 14.7101
  norm       = 2.12387
  norm       = 3.34152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.23361
  norm       = 4.69329
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.20328
  Prefactor  = 0.0001
  Normalizat = 0.773163
  Prefactor  = 1.02324
 **********
 **   18 **HESSE 
 **********

 FCN=   5920.787     FROM HESSE     STATUS=OK           549 CALLS     3654 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1430        11.432        .16199E-03   -1.5212    
   2  norm          24.262        6.6353        .81326E-04   -1.4722    
   3  Prefactor     .10000E-03    13.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.6903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3102        .85671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.5321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.789        8.3377        .10415E-03   -1.4939    
   9  Prefactor     .10000E-03    35.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     99.931        38.656        .40216E-04   -1.3705    
  11  norm          18.288        10.161        .93658E-04   -1.4852    
  12  Prefactor     16.434        13.882        .98783E-04   -1.4897    
  13  Prefactor     .10000E-03    2.1334        .10964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.710        7.4963        .10443E-03   -1.4941    
  15  norm          2.1239        1.3513        .68737E-04   -1.5416    
  16  norm          3.3415        3.1619        .12801E-03   -1.5342    
  17  Prefactor     .10000E-03    3.1158        .13238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1179        .15200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.3155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.2336        5.9676        .36441E-03   -1.5486    
  22  norm          4.6933        1.3752        .46739E-04   -1.5275    
  23  Prefactor     .10000E-03    12.710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.2033        8.0080        .19656E-03   -1.5298    
  27  Prefactor     .10000E-03    7.6658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .77316        .20220        .26387E-03   -1.0107    
  29  Prefactor     1.0232        .20087        .23994E-03   -.91959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09036e-09
Minuit parameter uncertainties:
  1  11.4357
  2  6.63552
  3  4.97401e-06
  4  1.50411e-06
  5  9.68852e-08
  6  1.40953e-06
  7  8.51076e-06
  8  8.33831
  9  3.87599e-05
  10  38.6653
  11  10.1619
  12  13.8847
  13  1.50702e-06
  14  7.49675
  15  1.35133
  16  3.16208
  17  1.19653e-05
  18  1.96951e-06
  19  1.51787e-07
  20  1.07653e-05
  21  5.42717
  22  1.37524
  23  2.65925e-06
  24  5.19336e-07
  25  6.71781e-05
  26  8.01003
  27  4.02168e-06
  28  0.202393
  29  0.201016
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.124e+00  1.351e+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:  1.023e+00  2.010e-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:  7.732e-01  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.75
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 8.47e-06

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) = 5920.71052638
delta logL = 0.0761230493281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5920.7051705
delta logL = 0.0814789316473

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0020       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6852       1.0000          .0000       5.0000    
     3 'Normalizat'    .76179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0309       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=   5920.705     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      235 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0020        1.3557        .64394E-04    .41665E-04
   2  alpha         2.6852        .73320        .17918E-01    .54645E-04
   3  Normalizat    .76178        .19597        .26564E-03    .14380E-04
   4  Prefactor     1.0309        .20096        .23915E-03    .29283E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.00201
  alpha      = 2.68516
  Normalizat = 0.76178
  Prefactor  = 1.03088
 **********
 **   18 **HESSE 
 **********

 FCN=   5920.705     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0020        1.3373        .25758E-05   -1.5425    
   2  alpha         2.6852        .72320        .35835E-02    .74133E-01
   3  Normalizat    .76178        .19612        .10626E-04   -1.0150    
   4  Prefactor     1.0309        .20111        .95661E-05   -.91707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67871e-12
Minuit parameter uncertainties:
  1  1.33734
  2  0.733742
  3  0.196305
  4  0.201261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/40875': 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) = 5920.7051705
delta logL = 0.0814789321021

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.002e+00  1.337e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.685e+00  7.337e-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.031e+00  2.013e-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:  7.618e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.91
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.69 +/- 0.73
Photon Flux (Free Index): 5.39e-08 +/- 3.83e-08
Energy Flux (Free Index): 1.28e-05 +/- 7.93e-06

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/40875/cmap_HighResolution_368409601_368668801_4FGL_J1506.1+3731_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='1.28e-05', photon_flux_error='2.90e-08', dlogl='8.15e-02', energy_flux='1.33e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-09-10 23:43:27.796094', photon_index_error2='0.73', photon_index2='2.69', ts='4.75', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='7.93e-06', EG='0.77', time_epoch_completed='1631342607.8', return_code='0', job_id='40875', GAL2='1.03', EG2='0.76', return_code2='0', energy_flux_error='8.47e-06', photon_flux_error2='3.83e-08', ts2='4.91', photon_index='2.40' WHERE bin_id='498' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:43:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 40875: <4FGL_J1506.1+3731_daily_bin498> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin498> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 10 23:31:04 2021
Job was executed on host(s) <bullet0216>, 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:43:28 2021
Results reported at Fri Sep 10 23:43:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin498 226.535 37.5183 368409601 368668801 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 :                                   654.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            744 sec.

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

