/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 213 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 = 7350
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1506.6+0813_daily_bin398
RA = 226.674, Dec = 8.2256
tmin = 342489601, tmax = 342748801
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='55764', job_status='RUN', time_executed='2021-09-11 00:25:09.619778', time_epoch_executed='1631345109.62' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55764/ft1_4FGL_J1506.6+0813_daily_bin398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55764/ft2_4FGL_J1506.6+0813_daily_bin398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55764/ft1_4FGL_J1506.6+0813_daily_bin398.fits outfile=/scratch/kocevski/55764/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin398.fits ra=226.674 dec=8.2256 rad=12.0 tmin=342489601.0 tmax=342748801.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.44
user 3.21
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/55764/ft2_4FGL_J1506.6+0813_daily_bin398.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55764/ft2_4FGL_J1506.6+0813_daily_bin398.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/55764/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin398.fits evtable="EVENTS" outfile="/scratch/kocevski/55764/ft1_filtered_4FGL_J1506.6+0813_daily_bin398.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/55764/ft1_filtered_4FGL_J1506.6+0813_daily_bin398.fits" evtable="EVENTS" scfile=/scratch/kocevski/55764/ft2_4FGL_J1506.6+0813_daily_bin398.fits sctable="SC_DATA" outfile=/scratch/kocevski/55764/ltcube_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.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/55764/ft2_4FGL_J1506.6+0813_daily_bin398.fits
.....................!
real 11.69
user 11.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55764/ft1_filtered_4FGL_J1506.6+0813_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/55764/ft2_4FGL_J1506.6+0813_daily_bin398.fits sctable="SC_DATA" expcube=/scratch/kocevski/55764/ltcube_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.fits outfile=/scratch/kocevski/55764/expmap_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.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/55764/ltcube_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.fits
.....................!
real 190.73
user 185.38
sys 5.03

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 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J1506.6+0813 @ 226.674 8.2256

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/55764/ft1_filtered_4FGL_J1506.6+0813_daily_bin398.fits scfile=/scratch/kocevski/55764/ft2_4FGL_J1506.6+0813_daily_bin398.fits outfile=/scratch/kocevski/55764/cmap_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.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.674 yref=8.2256 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55764/ft1_filtered_4FGL_J1506.6+0813_daily_bin398.fits scfile=/scratch/kocevski/55764/ft2_4FGL_J1506.6+0813_daily_bin398.fits outfile=/scratch/kocevski/55764/cmap_HighResolution_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.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.674 yref=8.2256 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/55764/ft1_filtered_4FGL_J1506.6+0813_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/55764/ft2_4FGL_J1506.6+0813_daily_bin398.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55764/Model_4FGL_J1506.6+0813_daily_bin398.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/55764/ft1_filtered_4FGL_J1506.6+0813_daily_bin398.fits.....................!
real 63.99
user 62.67
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/55764/ft1_filtered_4FGL_J1506.6+0813_daily_bin398.fits', '/scratch/kocevski/55764/ft2_4FGL_J1506.6+0813_daily_bin398.fits', expMap='/scratch/kocevski/55764/expmap_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.fits', expCube='/scratch/kocevski/55764/ltcube_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/55764/Model_4FGL_J1506.6+0813_daily_bin398.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1506.6+0813'

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.295e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.597e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/55764/ft1_filtered_4FGL_J1506.6+0813_daily_bin398.fits
Spacecraft file(s): /scratch/kocevski/55764/ft2_4FGL_J1506.6+0813_daily_bin398.fits
Exposure map: /scratch/kocevski/55764/expmap_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.fits
Exposure cube: /scratch/kocevski/55764/ltcube_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/55764/Model_4FGL_J1506.6+0813_daily_bin398.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) = 8366.84846672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.181       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .24654E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.508       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .17207       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8208       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .17530E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15138E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.998       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5059       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3194       1.0000         .10000E-03   10000.    
    21 'norm      '    .25937       1.0000         .10000E-03   10000.    
    22 'Prefactor '    70.504       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1671       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1483       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8366.828     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2747 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5900       -.23688E-07** at limit **
   2  norm          .10000E-03    10.630        .12544E-06** at limit **
   3  Prefactor     .10000E-03    20.808       -.72439E-06** at limit **
   4  Prefactor     .10000E-03    26.447       -.25794E-05** at limit **
   5  norm          .10000E-03    8.2089        .16496E-07** at limit **
   6  Prefactor     34.186        27.800       -.25537E-06    .17297E-04
   7  Prefactor     .10001E-03    18.783        .17613E-06** at limit **
   8  Prefactor     11.508        11.834       -.37524E-07    .65973E-05
   9  Prefactor     .10000E-03    13.531       -.15896E-05** at limit **
  10  Prefactor     .10000E-03    13.538       -.12163E-05** at limit **
  11  norm          .17205        .15509       -.39639E-07   -.23051E-02
  12  norm          1.8212        2.7288       -.38011E-06   -.83734E-03
  13  norm          .10000E-03    1.8752        .51282E-08** at limit **
  14  norm          .10000E-03    14.829        .39508E-05** at limit **
  15  norm          .10001E-03    2.8175       -.24325E-06** at limit **
  16  Prefactor     .10000E-03    23.934        .38729E-05** at limit **
  17  Prefactor     .10000E-03    77.870        .60535E-06** at limit **
  18  Prefactor     35.008        39.378        .29139E-05   -.15658E-03
  19  Prefactor     1.5081        4.0213       -.16303E-05   -.11435E-02
  20  Prefactor     5.2792        46.340       -.73873E-05    .67501E-04
  21  norm          .26093        2.3713        .18087E-06   -.16569E-03
  22  Prefactor     70.502        58.904       -.14298E-05    .54903E-04
  23  Normalizat    1.1665        .23584       -.13428E-06    .76548E-04
  24  Prefactor     1.1485        .12520        .55358E-06    .78327E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 34.186
  Prefactor  = 0.000100015
  Prefactor  = 11.5085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.172053
  norm       = 1.82121
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 0.000100013
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 35.0085
  Prefactor  = 1.50813
  Prefactor  = 5.2792
  norm       = 0.260926
  Prefactor  = 70.5021
  Normalizat = 1.16655
  Prefactor  = 1.14852
 **********
 **   18 **HESSE 
 **********

 FCN=   8366.828     FROM HESSE     STATUS=OK           399 CALLS     3146 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.2328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.186        27.830        .68542E-04   -1.4538    
   7  Prefactor     .10001E-03    145.87        .74568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.508        11.837        .11809E-03   -1.5029    
   9  Prefactor     .10000E-03    13.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .17205        .14540        .32655E-03   -1.5625    
  12  norm          1.8212        2.7566        .17299E-03   -1.5438    
  13  norm          .10000E-03    1.8763        .12232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    16.705        .29114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    78.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     35.008        38.350        .67740E-04   -1.4524    
  19  Prefactor     1.5081        4.7702        .33332E-03   -1.5462    
  20  Prefactor     5.2792        43.101        .17426E-03   -1.5248    
  21  norm          .26093        15.344        .25788E-02   -1.5606    
  22  Prefactor     70.502        58.712        .47808E-04   -1.4027    
  23  Normalizat    1.1665        .27380        .34835E-03   -.87643    
  24  Prefactor     1.1485        .14850        .19279E-03   -.87931    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82406e-08
Minuit parameter uncertainties:
  1  3.97793e-07
  2  1.0171e-05
  3  6.30985e-05
  4  0.000264897
  5  9.95921e-07
  6  27.8404
  7  0.00295225
  8  11.8396
  9  0.000111566
  10  8.452e-05
  11  0.145403
  12  2.75682
  13  2.46145e-08
  14  0.000293498
  15  0.000933801
  16  0.000383124
  17  4.37718e-05
  18  38.3771
  19  4.77135
  20  30.1983
  21  4.00214
  22  58.7603
  23  0.274132
  24  0.148549
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  2.461e-08  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.597e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.149e+00  1.485e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.167e+00  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.674 8.226
Photon Flux Upper Limit: 2.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55764/likelihoodResults_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.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) = 8366.83045091
delta logL = -0.00234425274175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8366.82810667
delta logL = -2.06910044653e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5975       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1665       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1485       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   8365.720     FROM MIGRAD    STATUS=CONVERGED    146 CALLS      287 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72786E-02    .17239        .12232E-02    .10969E-01
   2  alpha         5.0000        2.7577        .50000    ** at limit **
   3  Normalizat    1.0304        .11881        .34835E-02    .19192E-03
   4  Prefactor     1.1947        .63363E-01    .19279E-03    .39123E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00727864
  alpha      = 5
  Normalizat = 1.03041
  Prefactor  = 1.19471
 **********
 **   18 **HESSE 
 **********

 FCN=   8365.720     FROM HESSE     STATUS=OK            33 CALLS      320 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72786E-02    .61201E-02    .56419E-04   -1.5691    
   2  alpha         5.0000        .48878        .47337        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0304        .28268        .13934E-03   -.92019    
   4  Prefactor     1.1947        .15029        .38558E-04   -.86494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59168e-09
Minuit parameter uncertainties:
  1  0.00612008
  2  3.39147e-06
  3  0.283098
  4  0.150349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55764': 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) = 8365.72027075
delta logL = 1.10783590264

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  7.279e-03  6.120e-03  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  5.000e+00  3.391e-06  0.000e+00  5.000e+00 ( 1.000e+00)
227         beta:  1.103e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
228           Eb:  2.755e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.195e+00  1.503e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.030e+00  2.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.43
Ra Dec: 226.674 8.226
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.04e-07 +/- 8.67e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.22e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/55764/cmap_HighResolution_342489601_342748801_4FGL_J1506.6+0813_daily_bin398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-05', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='1.11e+00', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-11 00:37:17.709069', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='2.16e-08', energy_flux_error2='1.22e-05', EG='1.17', time_epoch_completed='1631345837.71', return_code='0', job_id='55764', GAL2='1.19', EG2='1.03', return_code2='0', photon_flux_error2='8.67e-08', ts2='2.43', photon_index='1.60' WHERE bin_id='398' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:37:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 55764: <4FGL_J1506.6+0813_daily_bin398> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin398> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:21:26 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:21:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:21:28 2021
Terminated at Sat Sep 11 00:37:18 2021
Results reported at Sat Sep 11 00:37:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin398 226.674 8.2256 342489601 342748801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1506.6+0813 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   725.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

