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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin87
RA = 226.535, Dec = 37.5183
tmin = 261878401, tmax = 262137601
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='38273', job_status='RUN', time_executed='2021-09-10 23:22:41.814444', time_epoch_executed='1631341361.81' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38273

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38273/ft1_4FGL_J1506.1+3731_daily_bin87.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38273/ft2_4FGL_J1506.1+3731_daily_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38273/ft1_4FGL_J1506.1+3731_daily_bin87.fits outfile=/scratch/kocevski/38273/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin87.fits ra=226.535 dec=37.5183 rad=12.0 tmin=261878401.0 tmax=262137601.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.39
user 1.20
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38273/ft2_4FGL_J1506.1+3731_daily_bin87.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/38273/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin87.fits evtable="EVENTS" outfile="/scratch/kocevski/38273/ft1_filtered_4FGL_J1506.1+3731_daily_bin87.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/38273/ft1_filtered_4FGL_J1506.1+3731_daily_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/38273/ft2_4FGL_J1506.1+3731_daily_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/38273/ltcube_261878401_262137601_4FGL_J1506.1+3731_daily_bin87.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/38273/ft2_4FGL_J1506.1+3731_daily_bin87.fits
.....................!
real 13.18
user 12.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38273/ft1_filtered_4FGL_J1506.1+3731_daily_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/38273/ft2_4FGL_J1506.1+3731_daily_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/38273/ltcube_261878401_262137601_4FGL_J1506.1+3731_daily_bin87.fits outfile=/scratch/kocevski/38273/expmap_261878401_262137601_4FGL_J1506.1+3731_daily_bin87.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/38273/ltcube_261878401_262137601_4FGL_J1506.1+3731_daily_bin87.fits
.....................!
real 190.57
user 185.41
sys 4.72

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/38273/ft1_filtered_4FGL_J1506.1+3731_daily_bin87.fits scfile=/scratch/kocevski/38273/ft2_4FGL_J1506.1+3731_daily_bin87.fits outfile=/scratch/kocevski/38273/cmap_261878401_262137601_4FGL_J1506.1+3731_daily_bin87.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/38273/ft1_filtered_4FGL_J1506.1+3731_daily_bin87.fits scfile=/scratch/kocevski/38273/ft2_4FGL_J1506.1+3731_daily_bin87.fits outfile=/scratch/kocevski/38273/cmap_HighResolution_261878401_262137601_4FGL_J1506.1+3731_daily_bin87.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9710       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2380       1.0000         .10000E-03   10000.    
     6 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3833       1.0000         .10000E-03   10000.    
     8 'norm      '    3.4981       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.376       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .39772       1.0000         .10000E-03   10000.    
    15 'norm      '    .12040E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .40378       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10769E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.603       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .64354E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    18.101       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6678       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.8702       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .64676       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2489       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=   6232.560     FROM MIGRAD    STATUS=CONVERGED    734 CALLS     3185 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5643        .50265E-07** at limit **
   2  norm          .10000E-03    1.8506        .81727E-07** at limit **
   3  Prefactor     1.9732        9.1714       -.55158E-06   -.97346E-04
   4  Prefactor     .10000E-03    16.012       -.16442E-05** at limit **
   5  Prefactor     2.2372        2.7146        .63989E-07   -.22792E-04
   6  norm          .10000E-03    20.464        .11709E-05** at limit **
   7  Prefactor     1.3371        152.68        .10102E-04   -.30432E-04
   8  norm          3.4974        5.8642        .34826E-05    .41770E-03
   9  Prefactor     .10000E-03    22.744        .11436E-05** at limit **
  10  Prefactor     .10000E-03    12.122        .10950E-05** at limit **
  11  norm          .10000E-03    2.6883       -.93554E-08** at limit **
  12  Prefactor     28.374        16.038       -.10312E-06   -.57633E-04
  13  Prefactor     .10000E-03    2.1791       -.93782E-08** at limit **
  14  Prefactor     .38346        4.2338       -.40590E-07   -.90972E-04
  15  norm          .10000E-03    .62617       -.19209E-06** at limit **
  16  norm          .10000E-03    2.4383        .73372E-09** at limit **
  17  Prefactor     .46561        11.307        .68095E-06   -.44054E-03
  18  Prefactor     .10000E-03    78.044        .17199E-06** at limit **
  19  Prefactor     .10000E-03    3.9718       -.90282E-07** at limit **
  20  Prefactor     40.611        23.581        .13759E-05   -.44892E-04
  21  Prefactor     .10026E-03    13.228        .28095E-05** at limit **
  22  norm          18.101        2.5223        .32372E-07    .61278E-04
  23  Prefactor     6.6661        10.113        .28745E-06    .32073E-04
  24  Prefactor     .10000E-03    13.590       -.10107E-05** at limit **
  25  Prefactor     .10000E-03    27.830       -.14281E-05** at limit **
  26  norm          8.8667        10.098        .75444E-06    .19151E-03
  27  Prefactor     .10000E-03    6.9344       -.59870E-07** at limit **
  28  Normalizat    .64697        .18503       -.92075E-06   -.23401E-03
  29  Prefactor     1.2488        .17864       -.93123E-06   -.34707E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.97324
  Prefactor  = 0.0001
  Prefactor  = 2.23717
  norm       = 0.0001
  Prefactor  = 1.33708
  norm       = 3.49736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.3738
  Prefactor  = 0.0001
  Prefactor  = 0.38346
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.465614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.6107
  Prefactor  = 0.000100257
  norm       = 18.1005
  Prefactor  = 6.66605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.86674
  Prefactor  = 0.0001
  Normalizat = 0.646967
  Prefactor  = 1.2488
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.560     FROM HESSE     STATUS=OK           555 CALLS     3740 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.8766        .10484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9732        8.9761        .29534E-03   -1.5427    
   4  Prefactor     .10000E-03    16.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2372        2.7049        .13804E-03   -1.5409    
   6  norm          .10000E-03    20.926        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3371        153.85        .36991E-03   -1.5477    
   8  norm          3.4974        5.9827        .10809E-02   -1.5334    
   9  Prefactor     .10000E-03    22.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.6892        .12641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.374        16.020        .75209E-04   -1.4642    
  13  Prefactor     .10000E-03    2.1831        .11377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .38346        36.783        .30474E-02   -1.5584    
  15  norm          .10000E-03    3.9293        .11950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4563        .11984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .46561        42.306        .40100E-02   -1.5572    
  18  Prefactor     .10000E-03    78.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.9874        .15362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.611        23.231        .62907E-04   -1.4433    
  21  Prefactor     .10026E-03    48.716        .40665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          18.101        2.5213        .41383E-04   -1.4857    
  23  Prefactor     6.6661        10.099        .15540E-03   -1.5192    
  24  Prefactor     .10000E-03    13.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    28.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.8667        10.095        .67290E-03   -1.5112    
  27  Prefactor     .10000E-03    6.9369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .64697        .21725        .29568E-03   -1.0603    
  29  Prefactor     1.2488        .21405        .23244E-03   -.84843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.42661e-09
Minuit parameter uncertainties:
  1  7.70433e-07
  2  3.21594e-06
  3  8.41899
  4  8.11891e-05
  5  2.70501
  6  7.74876e-05
  7  28.7598
  8  5.98368
  9  0.000126659
  10  4.67224e-06
  11  3.92947e-07
  12  16.0222
  13  7.58783e-07
  14  7.51503
  15  6.23036e-05
  16  9.77325e-06
  17  8.88204
  18  5.8677e-05
  19  8.70607e-06
  20  23.2361
  21  0.00708912
  22  2.5213
  23  10.1016
  24  2.17306e-05
  25  0.000120158
  26  10.0971
  27  2.63233e-06
  28  0.217538
  29  0.214202
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.000e-04  6.230e-05  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.249e+00  2.142e-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:  6.470e-01  2.175e-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: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/38273/likelihoodResults_261878401_262137601_4FGL_J1506.1+3731_daily_bin87.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): 102
logL (Free Index) = 6232.56135305
delta logL = -0.00124074903488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6232.56010975
delta logL = 2.55011764239e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4710       1.0000          .0000       5.0000    
     3 'Normalizat'    .64690       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2489       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=   6232.560     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      282 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12079E-03    3.4390        .16446E-01** at limit **
   2  alpha         3.3156        2.7883        .16462        .61373E-05
   3  Normalizat    .64697        .85620E-02    .29567E-03    .45686E-03
   4  Prefactor     1.2488        .91266E-02    .23244E-03   -.13449E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00012079
  alpha      = 3.31558
  Normalizat = 0.646971
  Prefactor  = 1.24879
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.560     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      315 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12079E-03    3.5915        .18194E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.3156        2.5152        .65848E-02    .33231    
   3  Normalizat    .64697        .95338E-02    .11827E-04   -1.0603    
   4  Prefactor     1.2488        .10160E-01    .46489E-04   -.84843    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.06551e-09
Minuit parameter uncertainties:
  1  0.0172832
  2  291.148
  3  0.00953377
  4  0.0101603
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38273': 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): 102
logL (Free Index) = 6232.56009396
delta logL = 1.83422052942e-05

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.208e-04  1.728e-02  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  3.316e+00  2.911e+02  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.249e+00  1.016e-02  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:  6.470e-01  9.534e-03  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/38273/cmap_HighResolution_261878401_262137601_4FGL_J1506.1+3731_daily_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-05', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-09-10 23:35:54.204779', job_id='38273', GAL2='1.25', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1631342154.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.83e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='87' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:35:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 38273: <4FGL_J1506.1+3731_daily_bin87> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin87> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 10 23:21:26 2021
Job was executed on host(s) <bullet0047>, 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:54 2021
Results reported at Fri Sep 10 23:35:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin87 226.535 37.5183 261878401 262137601 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 :                                   788.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            868 sec.

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

