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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin725
RA = 226.674, Dec = 8.2256
tmin = 427248001, tmax = 427507201
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='58421', job_status='RUN', time_executed='2021-09-11 00:31:19.020043', time_epoch_executed='1631345479.02' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58421

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58421/ft1_4FGL_J1506.6+0813_daily_bin725.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58421/ft2_4FGL_J1506.6+0813_daily_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58421/ft1_4FGL_J1506.6+0813_daily_bin725.fits outfile=/scratch/kocevski/58421/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin725.fits ra=226.674 dec=8.2256 rad=12.0 tmin=427248001.0 tmax=427507201.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 5.61
user 5.37
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58421/ft1_filtered_4FGL_J1506.6+0813_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/58421/ft2_4FGL_J1506.6+0813_daily_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/58421/ltcube_427248001_427507201_4FGL_J1506.6+0813_daily_bin725.fits outfile=/scratch/kocevski/58421/expmap_427248001_427507201_4FGL_J1506.6+0813_daily_bin725.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/58421/ltcube_427248001_427507201_4FGL_J1506.6+0813_daily_bin725.fits
.....................!
real 189.73
user 185.26
sys 3.94

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/58421/ft1_filtered_4FGL_J1506.6+0813_daily_bin725.fits scfile=/scratch/kocevski/58421/ft2_4FGL_J1506.6+0813_daily_bin725.fits outfile=/scratch/kocevski/58421/cmap_427248001_427507201_4FGL_J1506.6+0813_daily_bin725.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/58421/ft1_filtered_4FGL_J1506.6+0813_daily_bin725.fits scfile=/scratch/kocevski/58421/ft2_4FGL_J1506.6+0813_daily_bin725.fits outfile=/scratch/kocevski/58421/cmap_HighResolution_427248001_427507201_4FGL_J1506.6+0813_daily_bin725.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.331       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.904       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.897       1.0000         .10000E-03   10000.    
    11 'norm      '    .24484       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3254       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.988       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.883       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9259       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0887       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1403       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=   11498.29     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2707 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.265       -.49535E-05** at limit **
   2  norm          .10000E-03    15.078        .27829E-05** at limit **
   3  Prefactor     .10000E-03    13.575        .58196E-06** at limit **
   4  Prefactor     .10000E-03    9.0341       -.18973E-05** at limit **
   5  norm          .10000E-03    4.2553        .44933E-06** at limit **
   6  Prefactor     .10000E-03    8.5357        .45101E-06** at limit **
   7  Prefactor     .10000E-03    7.8851        .37752E-05** at limit **
   8  Prefactor     11.328        13.313       -.74684E-06   -.21616E-04
   9  Prefactor     13.901        18.835       -.28706E-05   -.75322E-05
  10  Prefactor     26.895        30.730       -.28826E-05    .53898E-05
  11  norm          .24480        .12282       -.13507E-07   -.67493E-03
  12  norm          2.3254        1.8316       -.31536E-06   -.11081E-02
  13  norm          .10000E-03    3.5870       -.15796E-06** at limit **
  14  norm          .10000E-03    18.526       -.58997E-05** at limit **
  15  norm          .10000E-03    1.5267       -.12006E-07** at limit **
  16  Prefactor     .10000E-03    15.979        .25875E-05** at limit **
  17  Prefactor     35.988        32.756       -.89642E-06    .94327E-05
  18  Prefactor     27.875        25.553       -.93056E-05    .20124E-05
  19  Prefactor     3.9262        3.6107       -.10943E-05   -.97958E-03
  20  Prefactor     .10000E-03    5.3559       -.10919E-05** at limit **
  21  norm          .10000E-03    .97868        .21240E-07** at limit **
  22  Prefactor     .10000E-03    15.824        .26884E-05** at limit **
  23  Normalizat    1.0890        .18800        .24145E-05   -.57885E-04
  24  Prefactor     1.1402        .10158        .18714E-06    .12155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3278
  Prefactor  = 13.9011
  Prefactor  = 26.8948
  norm       = 0.244797
  norm       = 2.32537
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.9879
  Prefactor  = 27.8754
  Prefactor  = 3.92623
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.08897
  Prefactor  = 1.14016
 **********
 **   18 **HESSE 
 **********

 FCN=   11498.29     FROM HESSE     STATUS=OK           391 CALLS     3098 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    15.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.0408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.2578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.5469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.8897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.328        13.321        .11902E-03   -1.5035    
   9  Prefactor     13.901        18.824        .10742E-03   -1.4962    
  10  Prefactor     26.895        30.705        .77245E-04   -1.4670    
  11  norm          .24480        .12144        .25557E-04   -1.5609    
  12  norm          2.3254        1.8330        .12212E-03   -1.5403    
  13  norm          .10000E-03    3.6065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    18.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5748        .25861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     35.988        32.746        .66804E-04   -1.4507    
  18  Prefactor     27.875        25.493        .75870E-04   -1.4652    
  19  Prefactor     3.9262        3.6720        .18740E-03   -1.5312    
  20  Prefactor     .10000E-03    5.3595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .99334        .10357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0890        .21845        .34606E-03   -.90107    
  24  Prefactor     1.1402        .11905        .18771E-03   -.88193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03179e-10
Minuit parameter uncertainties:
  1  8.35837e-06
  2  2.61705e-05
  3  9.08052e-06
  4  1.00232e-05
  5  5.04097e-06
  6  8.48911e-06
  7  1.38756e-05
  8  13.3249
  9  18.8324
  10  30.7234
  11  0.121437
  12  1.83306
  13  4.60267e-06
  14  1.03798e-06
  15  1.73431e-06
  16  1.08227e-05
  17  32.7625
  18  25.5027
  19  3.67222
  20  1.7797e-06
  21  1.96558e-06
  22  8.70999e-06
  23  0.218634
  24  0.119078
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.140e+00  1.191e-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.089e+00  2.186e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/58421/likelihoodResults_427248001_427507201_4FGL_J1506.6+0813_daily_bin725.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) = 11498.2962221
delta logL = -0.00131983300162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11498.2949003
delta logL = 1.90114405996e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6583       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1402       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=   11498.29     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      241 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    11.959        .18142E-02** at limit **
   2  alpha         1.7350        3.3395        .50000       -.89788E-04
   3  Normalizat    1.0890        .21067        .34606E-03    .38969E-03
   4  Prefactor     1.1402        .11745        .18771E-03    .74427E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100047
  alpha      = 1.735
  Normalizat = 1.08897
  Prefactor  = 1.14016
 **********
 **   18 **HESSE 
 **********

 FCN=   11498.29     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    5.6531        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7350        3.3292        .50000       -.31099    
   3  Normalizat    1.0890        .21084        .13842E-04   -.90107    
   4  Prefactor     1.1402        .11754        .37541E-04   -.88193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45575e-08
Minuit parameter uncertainties:
  1  0.00103146
  2  2.40744
  3  0.211007
  4  0.117569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58421': 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) = 11498.2948974
delta logL = 4.82756695419e-06

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.031e-03  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.735e+00  2.407e+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:  1.140e+00  1.176e-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.089e+00  2.110e-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/58421/cmap_HighResolution_427248001_427507201_4FGL_J1506.6+0813_daily_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.60e-05', job_status='DONE', photon_flux_upper_limit='2.88e-08', time_completed='2021-09-11 00:46:12.649223', job_id='58421', GAL2='1.14', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1631346372.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='4.83e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='725' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:46:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 58421: <4FGL_J1506.6+0813_daily_bin725> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin725 226.674 8.2256 427248001 427507201 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 :                                   891.00 sec.
    Max Memory :                                 1114 MB
    Average Memory :                             348.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

