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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin981
RA = 226.674, Dec = 8.2256
tmin = 493603201, tmax = 493862401
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='58798', job_status='RUN', time_executed='2021-09-11 00:33:58.258855', time_epoch_executed='1631345638.26' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58798

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58798/ft1_4FGL_J1506.6+0813_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58798/ft2_4FGL_J1506.6+0813_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58798/ft1_4FGL_J1506.6+0813_daily_bin981.fits outfile=/scratch/kocevski/58798/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin981.fits ra=226.674 dec=8.2256 rad=12.0 tmin=493603201.0 tmax=493862401.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.49
user 3.28
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58798/ft2_4FGL_J1506.6+0813_daily_bin981.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/58798/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin981.fits evtable="EVENTS" outfile="/scratch/kocevski/58798/ft1_filtered_4FGL_J1506.6+0813_daily_bin981.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.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58798/ft1_filtered_4FGL_J1506.6+0813_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/58798/ft2_4FGL_J1506.6+0813_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/58798/ltcube_493603201_493862401_4FGL_J1506.6+0813_daily_bin981.fits outfile=/scratch/kocevski/58798/expmap_493603201_493862401_4FGL_J1506.6+0813_daily_bin981.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/58798/ltcube_493603201_493862401_4FGL_J1506.6+0813_daily_bin981.fits
.....................!
real 190.40
user 185.18
sys 4.80

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/58798/ft1_filtered_4FGL_J1506.6+0813_daily_bin981.fits scfile=/scratch/kocevski/58798/ft2_4FGL_J1506.6+0813_daily_bin981.fits outfile=/scratch/kocevski/58798/cmap_493603201_493862401_4FGL_J1506.6+0813_daily_bin981.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/58798/ft1_filtered_4FGL_J1506.6+0813_daily_bin981.fits scfile=/scratch/kocevski/58798/ft2_4FGL_J1506.6+0813_daily_bin981.fits outfile=/scratch/kocevski/58798/cmap_HighResolution_493603201_493862401_4FGL_J1506.6+0813_daily_bin981.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.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/58798/ft1_filtered_4FGL_J1506.6+0813_daily_bin981.fits', '/scratch/kocevski/58798/ft2_4FGL_J1506.6+0813_daily_bin981.fits', expMap='/scratch/kocevski/58798/expmap_493603201_493862401_4FGL_J1506.6+0813_daily_bin981.fits', expCube='/scratch/kocevski/58798/ltcube_493603201_493862401_4FGL_J1506.6+0813_daily_bin981.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/58798/Model_4FGL_J1506.6+0813_daily_bin981.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/58798/ft1_filtered_4FGL_J1506.6+0813_daily_bin981.fits
Spacecraft file(s): /scratch/kocevski/58798/ft2_4FGL_J1506.6+0813_daily_bin981.fits
Exposure map: /scratch/kocevski/58798/expmap_493603201_493862401_4FGL_J1506.6+0813_daily_bin981.fits
Exposure cube: /scratch/kocevski/58798/ltcube_493603201_493862401_4FGL_J1506.6+0813_daily_bin981.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/58798/Model_4FGL_J1506.6+0813_daily_bin981.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) = 7334.55334538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    38.363       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.887       1.0000         .10000E-03   10000.    
     5 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9825       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.707       1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.234       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0235       1.0000         .10000E-03   10000.    
    12 'norm      '    8.4377       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10429E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.3464       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    103.74       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0109       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .12274E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.356       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2246       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82787       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=   7334.539     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2699 TOTAL
                     EDM=   .78E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.974        .57895E-07** at limit **
   2  norm          38.347        33.634       -.74003E-07   -.41398E-05
   3  Prefactor     .10000E-03    46.179        .29981E-06** at limit **
   4  Prefactor     24.909        25.079       -.15231E-06   -.35559E-05
   5  norm          .10000E-03    7.8922        .14540E-06** at limit **
   6  Prefactor     .10000E-03    13.692        .19231E-06** at limit **
   7  Prefactor     .10000E-03    40.063        .43789E-06** at limit **
   8  Prefactor     7.9791        17.735        .35712E-05   -.20849E-05
   9  Prefactor     14.710        16.341       -.22231E-06   -.64131E-05
  10  Prefactor     49.232        44.508       -.66043E-06   -.47454E-05
  11  norm          1.0235        .25319       -.28067E-07   -.19093E-03
  12  norm          8.4377        3.1708       -.19423E-08   -.48162E-05
  13  norm          .10000E-03    1.7155        .14305E-07** at limit **
  14  norm          .10000E-03    16.360        .14184E-07** at limit **
  15  norm          3.3460        2.8919       -.12383E-08    .25413E-05
  16  Prefactor     .10000E-03    77.870        .93875E-06** at limit **
  17  Prefactor     .10000E-03    10.280        .52113E-07** at limit **
  18  Prefactor     103.72        46.986        .47932E-07   -.80262E-05
  19  Prefactor     9.0081        5.3466        .62656E-07    .17649E-04
  20  Prefactor     .10000E-03    27.262       -.98325E-07** at limit **
  21  norm          .10000E-03    4.6550       -.12667E-05** at limit **
  22  Prefactor     16.205        55.700       -.80134E-06   -.10315E-04
  23  Normalizat    1.2246        .23163       -.80564E-06    .36895E-04
  24  Prefactor     .82794        .11945        .30368E-06   -.12302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 38.3467
  Prefactor  = 0.0001
  Prefactor  = 24.9085
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.97906
  Prefactor  = 14.7104
  Prefactor  = 49.2324
  norm       = 1.0235
  norm       = 8.43767
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.34601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 103.719
  Prefactor  = 9.00813
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.2051
  Normalizat = 1.22457
  Prefactor  = 0.827942
 **********
 **   18 **HESSE 
 **********

 FCN=   7334.539     FROM HESSE     STATUS=OK           393 CALLS     3092 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          38.347        33.647        .64710E-04   -1.4469    
   3  Prefactor     .10000E-03    46.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     24.909        25.105        .80297E-04   -1.4709    
   5  norm          .10000E-03    7.8983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.9791        17.788        .70957E-03   -1.5143    
   9  Prefactor     14.710        16.341        .10444E-03   -1.4941    
  10  Prefactor     49.232        44.521        .57151E-04   -1.4303    
  11  norm          1.0235        .25379        .20396E-04   -1.5506    
  12  norm          8.4377        3.1722        .87848E-04   -1.5127    
  13  norm          .10000E-03    1.7157        .10955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    16.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.3460        2.8909        .13083E-03   -1.5342    
  16  Prefactor     .10000E-03    78.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     103.72        47.157        .39479E-04   -1.3668    
  19  Prefactor     9.0081        5.3529        .13352E-03   -1.5108    
  20  Prefactor     .10000E-03    27.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.7419        .35783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.205        55.896        .99033E-04   -1.4903    
  23  Normalizat    1.2246        .27135        .32574E-03   -.85847    
  24  Prefactor     .82794        .14016        .20728E-03   -.98706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21096e-11
Minuit parameter uncertainties:
  1  2.58336e-06
  2  33.6632
  3  6.32932e-06
  4  25.1161
  5  2.77979e-06
  6  5.26015e-06
  7  3.20669e-05
  8  17.7995
  9  16.3463
  10  44.5511
  11  0.253788
  12  3.1723
  13  1.7675e-07
  14  3.81527e-06
  15  2.89101
  16  7.55618e-05
  17  5.01025e-07
  18  47.1743
  19  5.35319
  20  2.70865e-05
  21  1.26551e-05
  22  56.0771
  23  0.271658
  24  0.140222
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.768e-07  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:  8.279e-01  1.402e-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.225e+00  2.717e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58798/likelihoodResults_493603201_493862401_4FGL_J1506.6+0813_daily_bin981.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) = 7334.53862421
delta logL = -3.38991958415e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7334.53862073
delta logL = 9.40253812587e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5825       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2246       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82796       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=   7334.539     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      233 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.650        .10988E-02** at limit **
   2  alpha         1.3795        3.7322        .18143        .22558E-08
   3  Normalizat    1.2246        .25637        .32574E-03    .12913E-04
   4  Prefactor     .82794        .13792        .20727E-03    .21939E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.37952
  Normalizat = 1.22457
  Prefactor  = 0.827942
 **********
 **   18 **HESSE 
 **********

 FCN=   7334.539     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.7724        .21976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3795        3.1069        .72573E-02   -.46474    
   3  Normalizat    1.2246        .25661        .13030E-04   -.85847    
   4  Prefactor     .82794        .13805        .82910E-05   -.98706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23823e-11
Minuit parameter uncertainties:
  1  1.66525e-05
  2  156.115
  3  0.256876
  4  0.138109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58798': 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) = 7334.53861989
delta logL = 9.30737769522e-07

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.665e-05  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.380e+00  1.561e+02  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:  8.279e-01  1.381e-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.225e+00  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.674 8.226

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/58798/cmap_HighResolution_493603201_493862401_4FGL_J1506.6+0813_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-05', job_status='DONE', photon_flux_upper_limit='2.05e-08', time_completed='2021-09-11 00:45:08.295831', job_id='58798', GAL2='0.83', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1631346308.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='981' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:45:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 58798: <4FGL_J1506.6+0813_daily_bin981> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin981> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:31:29 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:31:30 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:31:30 2021
Terminated at Sat Sep 11 00:45:09 2021
Results reported at Sat Sep 11 00:45:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin981 226.674 8.2256 493603201 493862401 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 :                                   666.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

