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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin894
RA = 226.674, Dec = 8.2256
tmin = 471052801, tmax = 471312001
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='58669', job_status='RUN', time_executed='2021-09-11 00:34:07.145011', time_epoch_executed='1631345647.15' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='894'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58669

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58669/ft1_4FGL_J1506.6+0813_daily_bin894.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58669/ft2_4FGL_J1506.6+0813_daily_bin894.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58669/ft1_4FGL_J1506.6+0813_daily_bin894.fits outfile=/scratch/kocevski/58669/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin894.fits ra=226.674 dec=8.2256 rad=12.0 tmin=471052801.0 tmax=471312001.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.04
user 3.73
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58669/ft2_4FGL_J1506.6+0813_daily_bin894.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/58669/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin894.fits evtable="EVENTS" outfile="/scratch/kocevski/58669/ft1_filtered_4FGL_J1506.6+0813_daily_bin894.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.69
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58669/ft1_filtered_4FGL_J1506.6+0813_daily_bin894.fits" evtable="EVENTS" scfile=/scratch/kocevski/58669/ft2_4FGL_J1506.6+0813_daily_bin894.fits sctable="SC_DATA" outfile=/scratch/kocevski/58669/ltcube_471052801_471312001_4FGL_J1506.6+0813_daily_bin894.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/58669/ft2_4FGL_J1506.6+0813_daily_bin894.fits
.....................!
real 11.77
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58669/ft1_filtered_4FGL_J1506.6+0813_daily_bin894.fits evtable="EVENTS" scfile=/scratch/kocevski/58669/ft2_4FGL_J1506.6+0813_daily_bin894.fits sctable="SC_DATA" expcube=/scratch/kocevski/58669/ltcube_471052801_471312001_4FGL_J1506.6+0813_daily_bin894.fits outfile=/scratch/kocevski/58669/expmap_471052801_471312001_4FGL_J1506.6+0813_daily_bin894.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/58669/ltcube_471052801_471312001_4FGL_J1506.6+0813_daily_bin894.fits
.....................!
real 191.85
user 186.59
sys 4.81

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/58669/ft1_filtered_4FGL_J1506.6+0813_daily_bin894.fits scfile=/scratch/kocevski/58669/ft2_4FGL_J1506.6+0813_daily_bin894.fits outfile=/scratch/kocevski/58669/cmap_471052801_471312001_4FGL_J1506.6+0813_daily_bin894.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.65
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58669/ft1_filtered_4FGL_J1506.6+0813_daily_bin894.fits scfile=/scratch/kocevski/58669/ft2_4FGL_J1506.6+0813_daily_bin894.fits outfile=/scratch/kocevski/58669/cmap_HighResolution_471052801_471312001_4FGL_J1506.6+0813_daily_bin894.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.450       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.751       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.052       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5926       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7438       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3307       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.089       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6680       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.525       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.3302       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2779       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93568       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=   8163.834     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2733 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.449        27.290       -.18961E-05   -.12611E-04
   2  norm          .10000E-03    9.0239       -.16309E-05** at limit **
   3  Prefactor     22.752        45.027        .15140E-05   -.40216E-05
   4  Prefactor     .10000E-03    8.1544       -.12616E-05** at limit **
   5  norm          .10000E-03    4.5019        .22524E-06** at limit **
   6  Prefactor     52.059        34.545        .65157E-05   -.91940E-04
   7  Prefactor     .10000E-03    19.664       -.63323E-05** at limit **
   8  Prefactor     .10000E-03    6.9574        .37000E-05** at limit **
   9  Prefactor     .10000E-03    25.610        .69693E-05** at limit **
  10  Prefactor     .10000E-03    24.738        .60778E-05** at limit **
  11  norm          1.5925        .29220       -.42886E-08   -.90944E-03
  12  norm          1.7444        2.4265        .47348E-06   -.81733E-03
  13  norm          5.3306        5.4888        .12003E-06    .25736E-04
  14  norm          .10000E-03    14.279       -.35149E-05** at limit **
  15  norm          .10000E-03    2.0962       -.54732E-06** at limit **
  16  Prefactor     10.087        78.779       -.73996E-05   -.21215E-04
  17  Prefactor     .10000E-03    11.797        .46651E-05** at limit **
  18  Prefactor     3.6804        102.44        .44404E-04   -.17717E-04
  19  Prefactor     16.525        6.0187        .20923E-06   -.87201E-04
  20  Prefactor     .10000E-03    9.6630        .86357E-06** at limit **
  21  norm          3.3300        2.9233       -.80053E-06   -.31511E-02
  22  Prefactor     .10000E-03    33.994       -.63711E-05** at limit **
  23  Normalizat    1.2780        .23699       -.34700E-05    .42067E-04
  24  Prefactor     .93561        .11981        .83051E-06   -.23471E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4486
  norm       = 0.0001
  Prefactor  = 22.7522
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.0586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.59255
  norm       = 1.7444
  norm       = 5.33065
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 10.0869
  Prefactor  = 0.0001
  Prefactor  = 3.68035
  Prefactor  = 16.5253
  Prefactor  = 0.0001
  norm       = 3.32998
  Prefactor  = 0.0001
  Normalizat = 1.27805
  Prefactor  = 0.935612
 **********
 **   18 **HESSE 
 **********

 FCN=   8163.834     FROM HESSE     STATUS=OK           395 CALLS     3128 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.449        27.374        .11839E-03   -1.5031    
   2  norm          .10000E-03    9.0271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.752        45.039        .83976E-04   -1.4754    
   4  Prefactor     .10000E-03    8.1550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.5040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.059        34.261        .55590E-04   -1.4264    
   7  Prefactor     .10000E-03    19.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5925        .29334        .19806E-04   -1.5456    
  12  norm          1.7444        2.3894        .15405E-03   -1.5444    
  13  norm          5.3306        5.4905        .17407E-03   -1.5246    
  14  norm          .10000E-03    14.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.6345        .25202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.087        79.110        .12615E-03   -1.5073    
  17  Prefactor     .10000E-03    11.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6804        98.548        .21090E-03   -1.5324    
  19  Prefactor     16.525        6.0221        .98525E-04   -1.4895    
  20  Prefactor     .10000E-03    9.6742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.3300        3.0315        .73091E-03   -1.5343    
  22  Prefactor     .10000E-03    33.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2780        .28170        .33814E-03   -.84224    
  24  Prefactor     .93561        .14275        .20774E-03   -.94908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91921e-09
Minuit parameter uncertainties:
  1  27.4043
  2  8.71023e-06
  3  45.1061
  4  5.35681e-06
  5  3.42653e-06
  6  34.2742
  7  3.27558e-05
  8  2.25502e-05
  9  0.000230562
  10  5.72823e-05
  11  0.293338
  12  2.38951
  13  5.49097
  14  5.52392e-07
  15  0.000319227
  16  56.6001
  17  1.83972e-06
  18  38.1583
  19  6.02227
  20  7.85794e-06
  21  3.0316
  22  1.47788e-05
  23  0.282037
  24  0.142809
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  5.331e+00  5.491e+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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  9.356e-01  1.428e-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.278e+00  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.81
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 1.07e-08 +/- 1.11e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 2.53e-05

TS (Fixed Index): 2.81
Ra Dec: 226.674 8.226
Photon Flux Upper Limit: 4.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58669/likelihoodResults_471052801_471312001_4FGL_J1506.6+0813_daily_bin894.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) = 8163.76713131
delta logL = 0.0667277924358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8163.75976858
delta logL = 0.0740905232924

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6483       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9468       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93555       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=   8163.760     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      235 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6474        5.6471        .18667E-03    .62098E-03
   2  alpha         1.9466        .93653        .18052E-01    .47047E-04
   3  Normalizat    1.2747        .26189        .33845E-03   -.43529E-03
   4  Prefactor     .93555        .14096        .20771E-03   -.79661E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.64742
  alpha      = 1.94665
  Normalizat = 1.27469
  Prefactor  = 0.935549
 **********
 **   18 **HESSE 
 **********

 FCN=   8163.760     FROM HESSE     STATUS=OK            25 CALLS      260 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6474        5.4529        .37334E-04   -1.5277    
   2  alpha         1.9466        .90601        .72208E-03   -.22319    
   3  Normalizat    1.2747        .26200        .67691E-04   -.84325    
   4  Prefactor     .93555        .14107        .41541E-04   -.94910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5415e-10
Minuit parameter uncertainties:
  1  5.45352
  2  0.928273
  3  0.262275
  4  0.141125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58669': 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) = 8163.75976851
delta logL = 0.0740905847924

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  4.647e+00  5.454e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.947e+00  9.283e-01  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.355e-01  1.411e-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.275e+00  2.623e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 226.674 8.226
Photon Index (Free Index): 1.95 +/- 0.93
Photon Flux (Free Index): 1.68e-08 +/- 2.59e-08
Energy Flux (Free Index): 1.70e-05 +/- 2.17e-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/58669/cmap_HighResolution_471052801_471312001_4FGL_J1506.6+0813_daily_bin894.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-04', comment='SUCCESS', photon_flux='1.07e-08', energy_flux2='1.70e-05', photon_flux_error='1.11e-08', dlogl='7.41e-02', energy_flux='2.46e-05', photon_flux2='1.68e-08', job_status='DONE', time_completed='2021-09-11 00:46:07.235880', photon_index_error2='0.93', photon_index2='1.95', ts='2.81', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='4.46e-08', energy_flux_error2='2.17e-05', EG='1.28', time_epoch_completed='1631346367.24', return_code='0', job_id='58669', GAL2='0.94', EG2='1.27', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='2.59e-08', ts2='2.96', photon_index='1.60' WHERE bin_id='894' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:46:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 58669: <4FGL_J1506.6+0813_daily_bin894> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin894 226.674 8.2256 471052801 471312001 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 :                                   714.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

