/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 0 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1506.1+3731_daily_bin1052
RA = 226.535, Dec = 37.5183
tmin = 512006401, tmax = 512265601
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='45258', job_status='RUN', time_executed='2021-09-10 23:46:32.883026', time_epoch_executed='1631342792.88' WHERE source_name='4FGL J1506.1+3731' and cadence='daily' and bin_id='1052'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/45258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/45258/ft1_4FGL_J1506.1+3731_daily_bin1052.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/45258/ft2_4FGL_J1506.1+3731_daily_bin1052.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/45258/ft1_4FGL_J1506.1+3731_daily_bin1052.fits outfile=/scratch/kocevski/45258/ft1_filteredMKT_4FGL_J1506.1+3731_daily_bin1052.fits ra=226.535 dec=37.5183 rad=12.0 tmin=512006401.0 tmax=512265601.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.47
user 3.25
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/45258/ft1_filtered_4FGL_J1506.1+3731_daily_bin1052.fits evtable="EVENTS" scfile=/scratch/kocevski/45258/ft2_4FGL_J1506.1+3731_daily_bin1052.fits sctable="SC_DATA" expcube=/scratch/kocevski/45258/ltcube_512006401_512265601_4FGL_J1506.1+3731_daily_bin1052.fits outfile=/scratch/kocevski/45258/expmap_512006401_512265601_4FGL_J1506.1+3731_daily_bin1052.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/45258/ltcube_512006401_512265601_4FGL_J1506.1+3731_daily_bin1052.fits
.....................!
real 190.93
user 185.19
sys 5.31

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/45258/ft1_filtered_4FGL_J1506.1+3731_daily_bin1052.fits scfile=/scratch/kocevski/45258/ft2_4FGL_J1506.1+3731_daily_bin1052.fits outfile=/scratch/kocevski/45258/cmap_512006401_512265601_4FGL_J1506.1+3731_daily_bin1052.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/45258/ft1_filtered_4FGL_J1506.1+3731_daily_bin1052.fits scfile=/scratch/kocevski/45258/ft2_4FGL_J1506.1+3731_daily_bin1052.fits outfile=/scratch/kocevski/45258/cmap_HighResolution_512006401_512265601_4FGL_J1506.1+3731_daily_bin1052.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1558       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7088       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.666       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.2328       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.509       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5641       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.9941       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5453       1.0000         .10000E-03   10000.    
    16 'norm      '    .77967       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7387       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5744       1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.132       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .65316       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.4336       1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.316       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.5194       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.4989       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89292       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0218       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=   6611.178     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3710 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.902       -.24523E-06** at limit **
   2  norm          1.1545        3.3570        .22526E-06   -.56943E-04
   3  Prefactor     .10000E-03    7.7452       -.10389E-06** at limit **
   4  Prefactor     8.7059        12.478        .15992E-06   -.19152E-04
   5  Prefactor     .10000E-03    1.0878        .12590E-07** at limit **
   6  norm          .10000E-03    5.6209        .16941E-08** at limit **
   7  Prefactor     .10000E-03    13.013        .46321E-07** at limit **
   8  norm          14.664        7.6917       -.11876E-08   -.66324E-05
   9  Prefactor     .10000E-03    15.196        .51681E-06** at limit **
  10  Prefactor     .10000E-03    9.3946        .52795E-06** at limit **
  11  norm          8.2327        6.9657       -.10614E-06    .67196E-04
  12  Prefactor     12.508        16.672        .11691E-06    .14135E-04
  13  Prefactor     6.5651        7.9402        .22985E-07    .21117E-05
  14  Prefactor     7.9933        5.7923        .30363E-07   -.38665E-05
  15  norm          1.5446        1.8196        .49503E-07    .76899E-05
  16  norm          .77726        4.0512        .11164E-06   -.12053E-03
  17  Prefactor     2.7483        10.683        .48861E-06    .10675E-05
  18  Prefactor     .10000E-03    93.926        .39316E-06** at limit **
  19  Prefactor     3.5701        9.7333        .24556E-05   -.26026E-03
  20  Prefactor     28.124        23.370       -.43130E-07   -.71372E-05
  21  Prefactor     .10000E-03    9.9273       -.23379E-06** at limit **
  22  norm          .65021        1.4871       -.12208E-05   -.10316E-02
  23  Prefactor     7.4551        12.914        .30917E-05   -.92267E-04
  24  Prefactor     26.315        25.139       -.70458E-07   -.75076E-04
  25  Prefactor     .10000E-03    10.576       -.61024E-06** at limit **
  26  norm          8.5217        12.456        .44255E-06   -.24197E-04
  27  Prefactor     8.4823        27.503        .89007E-06   -.61332E-04
  28  Normalizat    .89312        .17450        .55962E-06    .10644E-03
  29  Prefactor     1.0217        .17455       -.93941E-06    .13940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.15446
  Prefactor  = 0.0001
  Prefactor  = 8.70589
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6641
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.23266
  Prefactor  = 12.5084
  Prefactor  = 6.56514
  Prefactor  = 7.99327
  norm       = 1.54455
  norm       = 0.777258
  Prefactor  = 2.74834
  Prefactor  = 0.0001
  Prefactor  = 3.57013
  Prefactor  = 28.124
  Prefactor  = 0.0001
  norm       = 0.650207
  Prefactor  = 7.45506
  Prefactor  = 26.3147
  Prefactor  = 0.0001
  norm       = 8.52168
  Prefactor  = 8.48229
  Normalizat = 0.893116
  Prefactor  = 1.02168
 **********
 **   18 **HESSE 
 **********

 FCN=   6611.178     FROM HESSE     STATUS=OK           559 CALLS     4269 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1545        3.3206        .24296E-03   -1.5493    
   3  Prefactor     .10000E-03    7.7693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7059        12.443        .13583E-03   -1.5118    
   5  Prefactor     .10000E-03    1.0936        .82793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.6259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.664        7.6994        .10459E-03   -1.4942    
   9  Prefactor     .10000E-03    15.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.2757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.2327        6.9675        .69862E-03   -1.5134    
  12  Prefactor     12.508        16.676        .11326E-03   -1.5000    
  13  Prefactor     6.5651        7.8592        .15664E-03   -1.5195    
  14  Prefactor     7.9933        5.7903        .14181E-03   -1.5142    
  15  norm          1.5446        1.7808        .10361E-03   -1.5459    
  16  norm          .77726        3.4608        .26277E-03   -1.5532    
  17  Prefactor     2.7483        9.7843        .24603E-03   -1.5376    
  18  Prefactor     .10000E-03    94.267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5701        9.8559        .10688E-02   -1.5330    
  20  Prefactor     28.124        23.109        .75533E-04   -1.4647    
  21  Prefactor     .10000E-03    9.9822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .65021        1.4876        .99647E-04   -1.5547    
  23  Prefactor     7.4551        12.949        .14710E-03   -1.5162    
  24  Prefactor     26.315        25.082        .78091E-04   -1.4682    
  25  Prefactor     .10000E-03    10.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.5217        12.410        .13734E-03   -1.5124    
  27  Prefactor     8.4823        27.317        .13751E-03   -1.5125    
  28  Normalizat    .89312        .20316        .24911E-03   -.96702    
  29  Prefactor     1.0217        .20127        .23979E-03   -.92010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66557e-10
Minuit parameter uncertainties:
  1  9.97457e-05
  2  3.32113
  3  1.58329e-05
  4  12.4472
  5  2.56518e-07
  6  1.25204e-06
  7  7.27291e-06
  8  7.69994
  9  0.000167434
  10  0.000130947
  11  6.96818
  12  16.6817
  13  7.86039
  14  5.79073
  15  1.78088
  16  3.28031
  17  9.79001
  18  0.000313161
  19  9.86038
  20  23.1159
  21  2.37552e-05
  22  1.48766
  23  12.9537
  24  25.0916
  25  0.000113141
  26  12.4139
  27  27.3571
  28  0.203336
  29  0.201422
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.545e+00  1.781e+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.022e+00  2.014e-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:  8.931e-01  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 9.68e-06 +/- 1.12e-05

TS (Fixed Index): 1.08
Ra Dec: 226.535 37.518
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/45258/likelihoodResults_512006401_512265601_4FGL_J1506.1+3731_daily_bin1052.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): 0
logL (Free Index) = 6611.15696309
delta logL = 0.0210722542824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6611.15634413
delta logL = 0.0216912147753

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5234        60.136        .86504E-02    .83821E-03
   2  alpha         2.5947        3.2782        .41188        .43678E-05
   3  Normalizat    .88596        .66692E-01    .44725E-01    .16386E-04
   4  Prefactor     1.0266        .81305E-01    .41550E-01    .92516E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52335
  alpha      = 2.59472
  Normalizat = 0.885963
  Prefactor  = 1.02664
 **********
 **   18 **HESSE 
 **********

 FCN=   6611.156     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5234        1.6674        .99425E-04   -1.5461    
   2  alpha         2.5947        .96258        .25068E-01    .37899E-01
   3  Normalizat    .88596        .19316        .24999E-03   -.96955    
   4  Prefactor     1.0266        .19497        .23928E-03   -.91847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.6195e-11
Minuit parameter uncertainties:
  1  1.66742
  2  0.988149
  3  0.193315
  4  0.195109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/45258': 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) = 6611.15634339
delta logL = 0.0216919453678

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.523e+00  1.667e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.595e+00  9.881e-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.027e+00  1.951e-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:  8.860e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 226.535 37.518
Photon Index (Free Index): 2.59 +/- 0.99
Photon Flux (Free Index): 3.81e-08 +/- 4.38e-08
Energy Flux (Free Index): 9.56e-06 +/- 1.02e-05

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/45258/cmap_HighResolution_512006401_512265601_4FGL_J1506.1+3731_daily_bin1052.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='9.56e-06', photon_flux_error='3.82e-08', dlogl='2.17e-02', energy_flux='9.68e-06', photon_flux2='3.81e-08', job_status='DONE', time_completed='2021-09-11 00:00:54.755588', photon_index_error2='0.99', photon_index2='2.59', ts='1.08', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.02e-05', EG='0.89', time_epoch_completed='1631343654.76', return_code='0', job_id='45258', GAL2='1.03', EG2='0.89', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.38e-08', ts2='1.14', photon_index='2.40' WHERE bin_id='1052' AND source_name='4FGL J1506.1+3731' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:00:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 45258: <4FGL_J1506.1+3731_daily_bin1052> in cluster <slac> Done

Job <4FGL_J1506.1+3731_daily_bin1052> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 23:46:21 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 23:46:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 23:46:23 2021
Terminated at Sat Sep 11 00:00:55 2021
Results reported at Sat Sep 11 00:00:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_daily_bin1052 226.535 37.5183 512006401 512265601 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 :                                   853.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.14 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.

