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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin516
RA = 226.674, Dec = 8.2256
tmin = 373075201, tmax = 373334401
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='55970', job_status='RUN', time_executed='2021-09-11 00:24:04.668645', time_epoch_executed='1631345044.67' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55970/ft1_4FGL_J1506.6+0813_daily_bin516.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55970/ft2_4FGL_J1506.6+0813_daily_bin516.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55970/ft1_4FGL_J1506.6+0813_daily_bin516.fits outfile=/scratch/kocevski/55970/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin516.fits ra=226.674 dec=8.2256 rad=12.0 tmin=373075201.0 tmax=373334401.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.71
user 3.52
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55970/ft1_filtered_4FGL_J1506.6+0813_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/55970/ft2_4FGL_J1506.6+0813_daily_bin516.fits sctable="SC_DATA" expcube=/scratch/kocevski/55970/ltcube_373075201_373334401_4FGL_J1506.6+0813_daily_bin516.fits outfile=/scratch/kocevski/55970/expmap_373075201_373334401_4FGL_J1506.6+0813_daily_bin516.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/55970/ltcube_373075201_373334401_4FGL_J1506.6+0813_daily_bin516.fits
.....................!
real 190.05
user 185.70
sys 4.00

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/55970/ft1_filtered_4FGL_J1506.6+0813_daily_bin516.fits scfile=/scratch/kocevski/55970/ft2_4FGL_J1506.6+0813_daily_bin516.fits outfile=/scratch/kocevski/55970/cmap_373075201_373334401_4FGL_J1506.6+0813_daily_bin516.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.57
user 0.35
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55970/ft1_filtered_4FGL_J1506.6+0813_daily_bin516.fits scfile=/scratch/kocevski/55970/ft2_4FGL_J1506.6+0813_daily_bin516.fits outfile=/scratch/kocevski/55970/cmap_HighResolution_373075201_373334401_4FGL_J1506.6+0813_daily_bin516.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/55970/ft1_filtered_4FGL_J1506.6+0813_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/55970/ft2_4FGL_J1506.6+0813_daily_bin516.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55970/Model_4FGL_J1506.6+0813_daily_bin516.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/55970/ft1_filtered_4FGL_J1506.6+0813_daily_bin516.fits.....................!
real 50.94
user 49.67
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41655E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.521       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6795       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6195       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.629       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .45648       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0127       1.0000         .10000E-03   10000.    
    13 'norm      '    .10633E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .88460       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8127       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.0888       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2635       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99134       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=   6465.998     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2689 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.224       -.56991E-05** at limit **
   2  norm          .10000E-03    13.173        .36677E-05** at limit **
   3  Prefactor     .10001E-03    238.84       -.12798E-03** at limit **
   4  Prefactor     15.516        19.201        .66566E-06    .39963E-04
   5  norm          .10000E-03    6.6258        .19703E-06** at limit **
   6  Prefactor     .10000E-03    18.467        .34303E-05** at limit **
   7  Prefactor     5.6846        32.183       -.23755E-05   -.19647E-04
   8  Prefactor     8.6199        10.536        .41406E-06   -.77437E-04
   9  Prefactor     33.611        34.463       -.51576E-05   -.19391E-03
  10  Prefactor     .10000E-03    145.52        .50436E-04** at limit **
  11  norm          .45662        .21213       -.16985E-07   -.16968E-02
  12  norm          3.0129        2.1246       -.20868E-07    .11990E-03
  13  norm          .10000E-03    13.834        .56078E-05** at limit **
  14  norm          .10000E-03    15.664       -.29083E-05** at limit **
  15  norm          .88515        2.5587       -.83354E-06   -.12191E-02
  16  Prefactor     .10000E-03    52.402        .11923E-05** at limit **
  17  Prefactor     .10000E-03    34.183       -.13087E-04** at limit **
  18  Prefactor     .10000E-03    11.065        .32459E-06** at limit **
  19  Prefactor     3.8142        4.5016       -.31965E-06   -.32203E-03
  20  Prefactor     .10000E-03    12.692       -.48021E-05** at limit **
  21  norm          2.0893        3.4943       -.38157E-06   -.57386E-03
  22  Prefactor     .10000E-03    31.109        .10658E-04** at limit **
  23  Normalizat    1.2631        .23644        .17135E-05    .10385E-03
  24  Prefactor     .99138        .12856       -.97865E-09    .23968E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 15.516
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.68461
  Prefactor  = 8.61986
  Prefactor  = 33.6113
  Prefactor  = 0.0001
  norm       = 0.456617
  norm       = 3.01285
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.885152
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.81418
  Prefactor  = 0.0001
  norm       = 2.08933
  Prefactor  = 0.0001
  Normalizat = 1.26315
  Prefactor  = 0.991375
 **********
 **   18 **HESSE 
 **********

 FCN=   6465.998     FROM HESSE     STATUS=OK           391 CALLS     3080 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    237.66        .19444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.516        19.203        .10166E-03   -1.4920    
   5  norm          .10000E-03    6.6290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.6846        32.495        .16855E-03   -1.5231    
   8  Prefactor     8.6199        10.528        .13653E-03   -1.5121    
   9  Prefactor     33.611        34.771        .69101E-04   -1.4548    
  10  Prefactor     .10000E-03    146.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .45662        .20925        .23797E-04   -1.5573    
  12  norm          3.0129        2.1134        .93948E-04   -1.5361    
  13  norm          .10000E-03    14.416        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    15.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .88515        2.4030        .21137E-02   -1.5520    
  16  Prefactor     .10000E-03    52.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8142        4.5010        .17746E-03   -1.5317    
  20  Prefactor     .10000E-03    12.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.0893        3.4834        .18847E-03   -1.5419    
  22  Prefactor     .10000E-03    31.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2631        .28683        .30857E-03   -.84673    
  24  Prefactor     .99138        .15581        .19373E-03   -.93018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3833e-09
Minuit parameter uncertainties:
  1  2.05946e-06
  2  5.01741e-06
  3  0.00278646
  4  19.2105
  5  1.38545e-06
  6  4.91266e-05
  7  27.2047
  8  10.5303
  9  34.7917
  10  0.000384635
  11  0.209254
  12  2.11346
  13  0.00011188
  14  1.01976e-07
  15  2.40329
  16  2.60768e-05
  17  9.5473e-06
  18  7.36697e-06
  19  4.50136
  20  1.7275e-07
  21  3.48374
  22  1.95148e-05
  23  0.28719
  24  0.155876
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.119e-04  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:  9.914e-01  1.559e-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.263e+00  2.872e-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.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55970/likelihoodResults_373075201_373334401_4FGL_J1506.6+0813_daily_bin516.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) = 6465.99785854
delta logL = -0.000331186007315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6465.99751158
delta logL = 1.57727608894e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12580E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7384       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99139       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=   6465.430     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      264 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77983        16.349        .17813E-01    .95664E-03
   2  alpha         3.0035        3.7875        .22483        .81311E-04
   3  Normalizat    1.2347        .48141E-01    .70338E-01   -.99691E-04
   4  Prefactor     .99486        .27001E-01    .46159E-01   -.11388E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.779828
  alpha      = 3.00349
  Normalizat = 1.23471
  Prefactor  = 0.994857
 **********
 **   18 **HESSE 
 **********

 FCN=   6465.430     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77983        51.331        .83139E-03   -1.5531    
   2  alpha         3.0035        3.3930        .12117E-01    .20278    
   3  Normalizat    1.2347        .24723        .31123E-03   -.85537    
   4  Prefactor     .99486        .13364        .19322E-03   -.92901    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46455e-07
Minuit parameter uncertainties:
  1  12.6643
  2  6.87042
  3  0.247464
  4  0.133686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55970': 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) = 6465.42962836
delta logL = 0.56789899874

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  7.798e-01  1.266e+01  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  3.003e+00  6.870e+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:  9.949e-01  1.337e-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.235e+00  2.475e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 226.674 8.226
Photon Index (Free Index): 3.00 +/- 6.87
Photon Flux (Free Index): 3.47e-08 +/- 8.24e-08
Energy Flux (Free Index): 8.71e-06 +/- 2.36e-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/55970/cmap_HighResolution_373075201_373334401_4FGL_J1506.6+0813_daily_bin516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.01e-05', comment='SUCCESS', energy_flux2='8.71e-06', dlogl='5.68e-01', photon_flux2='3.47e-08', job_status='DONE', time_completed='2021-09-11 00:34:38.268218', photon_index_error2='6.87', photon_index2='3.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='3.94e-08', energy_flux_error2='2.36e-05', EG='1.26', time_epoch_completed='1631345678.27', return_code='0', job_id='55970', GAL2='0.99', EG2='1.23', return_code2='102', photon_flux_error2='8.24e-08', ts2='1.16', photon_index='1.60' WHERE bin_id='516' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:34:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 55970: <4FGL_J1506.6+0813_daily_bin516> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin516> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 00:21:42 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:21:43 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:43 2021
Terminated at Sat Sep 11 00:34:39 2021
Results reported at Sat Sep 11 00:34:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin516 226.674 8.2256 373075201 373334401 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 :                                   631.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            777 sec.

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

