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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin997
RA = 226.674, Dec = 8.2256
tmin = 497750401, tmax = 498009601
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='60030', job_status='RUN', time_executed='2021-09-11 00:38:26.436735', time_epoch_executed='1631345906.44' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='997'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/60030

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/60030/ft1_4FGL_J1506.6+0813_daily_bin997.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/60030/ft2_4FGL_J1506.6+0813_daily_bin997.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/60030/ft1_4FGL_J1506.6+0813_daily_bin997.fits outfile=/scratch/kocevski/60030/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin997.fits ra=226.674 dec=8.2256 rad=12.0 tmin=497750401.0 tmax=498009601.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 4.69
user 4.43
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/60030/ft1_filtered_4FGL_J1506.6+0813_daily_bin997.fits" evtable="EVENTS" scfile=/scratch/kocevski/60030/ft2_4FGL_J1506.6+0813_daily_bin997.fits sctable="SC_DATA" outfile=/scratch/kocevski/60030/ltcube_497750401_498009601_4FGL_J1506.6+0813_daily_bin997.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/60030/ft2_4FGL_J1506.6+0813_daily_bin997.fits
.....................!
real 11.98
user 11.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/60030/ft1_filtered_4FGL_J1506.6+0813_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/60030/ft2_4FGL_J1506.6+0813_daily_bin997.fits sctable="SC_DATA" expcube=/scratch/kocevski/60030/ltcube_497750401_498009601_4FGL_J1506.6+0813_daily_bin997.fits outfile=/scratch/kocevski/60030/expmap_497750401_498009601_4FGL_J1506.6+0813_daily_bin997.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/60030/ltcube_497750401_498009601_4FGL_J1506.6+0813_daily_bin997.fits
.....................!
real 191.14
user 186.12
sys 4.56

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/60030/ft1_filtered_4FGL_J1506.6+0813_daily_bin997.fits scfile=/scratch/kocevski/60030/ft2_4FGL_J1506.6+0813_daily_bin997.fits outfile=/scratch/kocevski/60030/cmap_497750401_498009601_4FGL_J1506.6+0813_daily_bin997.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/60030/ft1_filtered_4FGL_J1506.6+0813_daily_bin997.fits scfile=/scratch/kocevski/60030/ft2_4FGL_J1506.6+0813_daily_bin997.fits outfile=/scratch/kocevski/60030/cmap_HighResolution_497750401_498009601_4FGL_J1506.6+0813_daily_bin997.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3684       1.0000         .10000E-03   10000.    
     2 'norm      '    34.903       1.0000         .10000E-03   10000.    
     3 'Prefactor '    96.826       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.8206       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2713       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6746       1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .13601E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.552       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.609       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1665       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2517       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7792       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64660       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=   6670.334     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2703 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3036        155.41        .29451E-04   -.79989E-04
   2  norm          34.902        27.972        .45163E-05   -.65964E-04
   3  Prefactor     96.810        83.697       -.13508E-04   -.65711E-06
   4  Prefactor     .10000E-03    24.583        .34953E-05** at limit **
   5  norm          7.8197        17.921       -.21452E-05   -.50697E-04
   6  Prefactor     .10000E-03    20.731        .56236E-05** at limit **
   7  Prefactor     .10000E-03    9.8208       -.93997E-05** at limit **
   8  Prefactor     .10000E-03    6.6835       -.15671E-06** at limit **
   9  Prefactor     .10000E-03    15.615       -.51907E-05** at limit **
  10  Prefactor     .10000E-03    14.538        .36137E-05** at limit **
  11  norm          1.2714        .28131       -.12262E-07    .12542E-02
  12  norm          1.6743        1.9192       -.34173E-06   -.42903E-03
  13  norm          .10000E-03    11.844        .17492E-05** at limit **
  14  norm          .10000E-03    39.670        .11192E-04** at limit **
  15  norm          .10002E-03    2.1573       -.10468E-06** at limit **
  16  Prefactor     23.550        46.861       -.26564E-05    .11210E-04
  17  Prefactor     .10000E-03    30.860       -.18340E-04** at limit **
  18  Prefactor     18.547        36.529       -.34123E-04    .14471E-04
  19  Prefactor     2.1656        4.6150       -.14749E-05   -.79171E-03
  20  Prefactor     .10000E-03    9.7631        .84480E-05** at limit **
  21  norm          1.2510        3.3335       -.12200E-05   -.10313E-02
  22  Prefactor     .10000E-03    15.388       -.34323E-05** at limit **
  23  Normalizat    1.7791        .24136        .38191E-05   -.10333E-03
  24  Prefactor     .64670        .12472        .11208E-05    .15570E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30362
  norm       = 34.9022
  Prefactor  = 96.8102
  Prefactor  = 0.0001
  norm       = 7.81973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.27138
  norm       = 1.67427
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100016
  Prefactor  = 23.5495
  Prefactor  = 0.0001
  Prefactor  = 18.5474
  Prefactor  = 2.16563
  Prefactor  = 0.0001
  norm       = 1.25101
  Prefactor  = 0.0001
  Normalizat = 1.77914
  Prefactor  = 0.646705
 **********
 **   18 **HESSE 
 **********

 FCN=   6670.334     FROM HESSE     STATUS=OK           395 CALLS     3098 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3036        156.38        .37284E-03   -1.5480    
   2  norm          34.902        27.864        .67832E-04   -1.4526    
   3  Prefactor     96.810        83.793        .40849E-04   -1.3737    
   4  Prefactor     .10000E-03    24.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.8197        17.902        .14339E-03   -1.5149    
   6  Prefactor     .10000E-03    20.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.8390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2714        .28229        .19331E-04   -1.5482    
  12  norm          1.6743        1.8960        .11599E-03   -1.5449    
  13  norm          .10000E-03    12.323        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    39.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10002E-03    24.310        .23053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.550        46.908        .82538E-04   -1.4737    
  17  Prefactor     .10000E-03    30.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.547        36.717        .92845E-04   -1.4846    
  19  Prefactor     2.1656        4.6243        .24395E-03   -1.5414    
  20  Prefactor     .10000E-03    9.7650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2510        3.3135        .23660E-03   -1.5484    
  22  Prefactor     .10000E-03    15.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7791        .28548        .27915E-03   -.70209    
  24  Prefactor     .64670        .14611        .23015E-03   -1.0565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03804e-09
Minuit parameter uncertainties:
  1  28.6317
  2  27.8745
  3  83.8959
  4  2.77421e-05
  5  17.9143
  6  7.58443e-05
  7  1.30157e-05
  8  1.45806e-05
  9  2.7348e-05
  10  4.9844e-06
  11  0.282294
  12  1.89607
  13  7.55836e-05
  14  3.36421e-05
  15  0.00126661
  16  46.9811
  17  2.18943e-05
  18  36.7614
  19  4.62502
  20  2.85973e-06
  21  3.31403
  22  1.48819e-06
  23  0.285749
  24  0.146193
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  7.558e-05  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:  6.467e-01  1.462e-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.779e+00  2.857e-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: 3.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/60030/likelihoodResults_497750401_498009601_4FGL_J1506.6+0813_daily_bin997.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) = 6670.33424111
delta logL = -0.000387221874007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6670.33385273
delta logL = 1.15643433674e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96507E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7222       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7790       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64678       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.

 FCN=   6669.376     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      301 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .30860        3.4248        .84909E-02    .69380E-02
   2  alpha         3.6201        1.7135        .26869        .31623E-03
   3  Normalizat    1.7135        .48689E-01    .63886E-01    .63360E-03
   4  Prefactor     .66238        .25650E-01    .41688E-01    .37233E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.308596
  alpha      = 3.62013
  Normalizat = 1.71354
  Prefactor  = 0.66238
 **********
 **   18 **HESSE 
 **********

 FCN=   6669.376     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      334 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .30860        11.560        .39072E-03   -1.5597    
   2  alpha         3.6201        4.2959        .92190E-02    .46459    
   3  Normalizat    1.7135        .23902        .28254E-03   -.71942    
   4  Prefactor     .66238        .11912        .22725E-03   -1.0502    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.28403e-08
Minuit parameter uncertainties:
  1  3.77766
  2  4.88593
  3  0.239186
  4  0.119167
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/60030': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6669.37622748
delta logL = 0.957626404276

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  3.086e-01  3.778e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  3.620e+00  4.886e+00  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:  6.624e-01  1.192e-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.714e+00  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 226.674 8.226
Photon Index (Free Index): 3.62 +/- 4.89
Photon Flux (Free Index): 7.53e-08 +/- 1.39e-07
Energy Flux (Free Index): 1.40e-05 +/- 1.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/60030/cmap_HighResolution_497750401_498009601_4FGL_J1506.6+0813_daily_bin997.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.04e-05', comment='SUCCESS', energy_flux2='1.40e-05', dlogl='9.58e-01', photon_flux2='7.53e-08', job_status='DONE', time_completed='2021-09-11 00:49:27.355848', photon_index_error2='4.89', photon_index2='3.62', ts='-0.00', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='3.95e-08', energy_flux_error2='1.16e-05', EG='1.78', time_epoch_completed='1631346567.36', return_code='0', job_id='60030', GAL2='0.66', EG2='1.71', return_code2='102', photon_flux_error2='1.39e-07', ts2='1.95', photon_index='1.60' WHERE bin_id='997' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:49:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 60030: <4FGL_J1506.6+0813_daily_bin997> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin997> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:36:08 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:36:10 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:36:10 2021
Terminated at Sat Sep 11 00:49:28 2021
Results reported at Sat Sep 11 00:49:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin997 226.674 8.2256 497750401 498009601 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 :                                   657.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            800 sec.

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

