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


Performing analysis on: 4FGL_J1506.1+3731_daily_bin20
RA = 226.535, Dec = 37.5183
tmin = 244512001, tmax = 244771201
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='38177', job_status='RUN', time_executed='2021-09-10 23:25:20.993014', time_epoch_executed='1631341520.99' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/38177

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/38177/ft1_4FGL_J1506.1+3731_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/38177/ft2_4FGL_J1506.1+3731_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/38177/ft1_4FGL_J1506.1+3731_daily_bin20.fits outfile=/scratch/kocevski/38177/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin20.fits ra=226.535 dec=37.5183 rad=12.0 tmin=244512001.0 tmax=244771201.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.45
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/38177/ft2_4FGL_J1506.1+3731_daily_bin20.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/38177/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin20.fits evtable="EVENTS" outfile="/scratch/kocevski/38177/ft1_filtered_4FGL_J1506.1+3731_daily_bin20.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/38177/ft1_filtered_4FGL_J1506.1+3731_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/38177/ft2_4FGL_J1506.1+3731_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/38177/ltcube_244512001_244771201_4FGL_J1506.1+3731_daily_bin20.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/38177/ft2_4FGL_J1506.1+3731_daily_bin20.fits
.....................!
real 12.40
user 12.06
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/38177/ft1_filtered_4FGL_J1506.1+3731_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/38177/ft2_4FGL_J1506.1+3731_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/38177/ltcube_244512001_244771201_4FGL_J1506.1+3731_daily_bin20.fits outfile=/scratch/kocevski/38177/expmap_244512001_244771201_4FGL_J1506.1+3731_daily_bin20.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/38177/ltcube_244512001_244771201_4FGL_J1506.1+3731_daily_bin20.fits
.....................!
real 191.39
user 185.24
sys 5.79

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/38177/ft1_filtered_4FGL_J1506.1+3731_daily_bin20.fits scfile=/scratch/kocevski/38177/ft2_4FGL_J1506.1+3731_daily_bin20.fits outfile=/scratch/kocevski/38177/cmap_244512001_244771201_4FGL_J1506.1+3731_daily_bin20.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/38177/ft1_filtered_4FGL_J1506.1+3731_daily_bin20.fits scfile=/scratch/kocevski/38177/ft2_4FGL_J1506.1+3731_daily_bin20.fits outfile=/scratch/kocevski/38177/cmap_HighResolution_244512001_244771201_4FGL_J1506.1+3731_daily_bin20.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/38177/ft1_filtered_4FGL_J1506.1+3731_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/38177/ft2_4FGL_J1506.1+3731_daily_bin20.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/38177/Model_4FGL_J1506.1+3731_daily_bin20.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/38177/ft1_filtered_4FGL_J1506.1+3731_daily_bin20.fits....................!
real 41.40
user 40.13
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2224       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.306       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13484E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .38586E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .13011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .94124       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.5718       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8760       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3686       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8082       1.0000         .10000E-03   10000.    
    16 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.663       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8744       1.0000         .10000E-03   10000.    
    22 'norm      '    7.6142       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.589       1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.317       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.8684       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .64873       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1252       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=   5093.737     FROM MIGRAD    STATUS=CONVERGED    721 CALLS     3711 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.368        .44523E-06** at limit **
   2  norm          1.2208        2.9926       -.10097E-06   -.32022E-03
   3  Prefactor     18.302        16.524        .37606E-05    .32753E-03
   4  Prefactor     .10000E-03    19.380       -.14615E-04** at limit **
   5  Prefactor     .72343E-01    2.4933        .47152E-06   -.30388E-03
   6  norm          .10000E-03    16.214        .14935E-05** at limit **
   7  Prefactor     .10000E-03    10.206       -.20164E-05** at limit **
   8  norm          .93956        4.2210       -.20238E-07   -.12288E-03
   9  Prefactor     .10000E-03    17.526       -.62142E-05** at limit **
  10  Prefactor     .10000E-03    14.896        .10403E-04** at limit **
  11  norm          6.5720        6.4835        .30817E-08    .26535E-04
  12  Prefactor     4.8750        10.938        .71982E-06   -.37650E-03
  13  Prefactor     .10000E-03    4.6076       -.27848E-05** at limit **
  14  Prefactor     2.3708        6.1673        .12080E-05   -.17032E-02
  15  norm          2.8081        1.5642        .23127E-07    .18930E-03
  16  norm          .10000E-03    3.1940       -.37308E-06** at limit **
  17  Prefactor     .10000E-03    5.5595       -.31763E-05** at limit **
  18  Prefactor     .10000E-03    26.888        .12301E-04** at limit **
  19  Prefactor     .10000E-03    4.6755        .36907E-05** at limit **
  20  Prefactor     23.675        20.783        .36066E-05    .14075E-03
  21  Prefactor     1.8758        9.7507        .52241E-06   -.11024E-02
  22  norm          7.6143        2.0472       -.50133E-07   -.18208E-03
  23  Prefactor     13.590        12.848        .61524E-07   -.29943E-04
  24  Prefactor     38.324        35.921        .59996E-05    .45528E-04
  25  Prefactor     .10000E-03    7.4125       -.45990E-06** at limit **
  26  norm          .10000E-03    6.1211        .29222E-05** at limit **
  27  Prefactor     2.8693        11.171        .87603E-06   -.49837E-03
  28  Normalizat    .64872        .18591       -.23282E-05    .75641E-04
  29  Prefactor     1.1251        .18310       -.17712E-06   -.43379E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.22081
  Prefactor  = 18.3016
  Prefactor  = 0.000100002
  Prefactor  = 0.0723427
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.939555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.57204
  Prefactor  = 4.87497
  Prefactor  = 0.0001
  Prefactor  = 2.37083
  norm       = 2.80808
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6748
  Prefactor  = 1.87584
  norm       = 7.61432
  Prefactor  = 13.5903
  Prefactor  = 38.3238
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.86934
  Normalizat = 0.648717
  Prefactor  = 1.12508
 **********
 **   18 **HESSE 
 **********

 FCN=   5093.737     FROM HESSE     STATUS=OK           553 CALLS     4264 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2208        2.3879        .18493E-02   -1.5487    
   3  Prefactor     18.302        16.627        .93610E-04   -1.4852    
   4  Prefactor     .10000E-03    19.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .72343E-01    65.670        .21104E-02   -1.5654    
   6  norm          .10000E-03    16.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .93956        4.0609        .28261E-03   -1.5514    
   9  Prefactor     .10000E-03    17.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.5720        6.4862        .15654E-03   -1.5195    
  12  Prefactor     4.8750        11.076        .91081E-03   -1.5266    
  13  Prefactor     .10000E-03    4.6378        .14936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3708        7.4912        .13312E-02   -1.5400    
  15  norm          2.8081        1.5640        .63781E-04   -1.5373    
  16  norm          .10000E-03    3.3078        .24854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.5940        .16402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.7055        .15061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.675        21.281        .82344E-04   -1.4734    
  21  Prefactor     1.8758        16.146        .15208E-02   -1.5434    
  22  norm          7.6143        2.0639        .44242E-04   -1.5156    
  23  Prefactor     13.590        12.932        .10866E-03   -1.4970    
  24  Prefactor     38.324        35.882        .32375E-03   -1.4469    
  25  Prefactor     .10000E-03    7.4211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.1383        .17243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.8693        11.476        .12000E-02   -1.5369    
  28  Normalizat    .64872        .22678        .27464E-03   -1.0595    
  29  Prefactor     1.1251        .21614        .22132E-03   -.88669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03156e-08
Minuit parameter uncertainties:
  1  6.00994e-05
  2  2.38807
  3  16.6316
  4  0.00035504
  5  4.36101
  6  0.000107608
  7  1.79702e-05
  8  3.90686
  9  7.55579e-05
  10  0.000121548
  11  6.48686
  12  11.0811
  13  8.24415e-06
  14  7.49421
  15  1.56405
  16  4.21144e-06
  17  2.93354e-05
  18  0.000182991
  19  1.99946e-05
  20  21.2879
  21  11.0104
  22  2.06387
  23  12.935
  24  35.9023
  25  2.05229e-06
  26  2.23352e-05
  27  11.4802
  28  0.22711
  29  0.216308
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.808e+00  1.564e+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.125e+00  2.163e-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.487e-01  2.271e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.13
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 6.02e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 9.81e-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) = 5093.71857432
delta logL = 0.0185390940278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5093.71702871
delta logL = 0.0200847024289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7392       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5177       1.0000          .0000       5.0000    
     3 'Normalizat'    .64334       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1288       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=   5093.717     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7393        40.427        .61501E-02    .11671E-03
   2  alpha         2.5175        2.7133        .35623        .10424E-04
   3  Normalizat    .64335        .12248        .62312E-01    .21117E-04
   4  Prefactor     1.1288        .13187        .36583E-01    .18396E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.73933
  alpha      = 2.5175
  Normalizat = 0.643348
  Prefactor  = 1.12879
 **********
 **   18 **HESSE 
 **********

 FCN=   5093.717     FROM HESSE     STATUS=OK            33 CALLS      233 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7393        1.5780        .62036E-04   -1.5377    
   2  alpha         2.5175        .60053        .14531E-01    .70013E-02
   3  Normalizat    .64335        .20343        .27568E-03   -1.0617    
   4  Prefactor     1.1288        .21004        .22100E-03   -.88552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02996e-10
Minuit parameter uncertainties:
  1  1.57807
  2  0.606465
  3  0.203668
  4  0.210195
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/38177': 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) = 5093.71702865
delta logL = 0.0200847597362

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.739e+00  1.578e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.518e+00  6.065e-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.129e+00  2.102e-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.433e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.15
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.52 +/- 0.61
Photon Flux (Free Index): 6.43e-08 +/- 3.99e-08
Energy Flux (Free Index): 1.71e-05 +/- 9.73e-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/38177/cmap_HighResolution_244512001_244771201_4FGL_J1506.1+3731_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.02e-08', energy_flux2='1.71e-05', photon_flux_error='3.35e-08', dlogl='2.01e-02', energy_flux='1.76e-05', photon_flux2='6.43e-08', job_status='DONE', time_completed='2021-09-10 23:35:52.721578', photon_index_error2='0.61', photon_index2='2.52', ts='7.13', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='9.73e-06', EG='0.65', time_epoch_completed='1631342152.72', return_code='0', job_id='38177', GAL2='1.13', EG2='0.64', return_code2='0', energy_flux_error='9.81e-06', photon_flux_error2='3.99e-08', ts2='7.15', photon_index='2.40' WHERE bin_id='20' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 23:35:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 38177: <4FGL_J1506.1+3731_daily_bin20> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin20 226.535 37.5183 244512001 244771201 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 :                                   630.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

