/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 7 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 = 7378
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1506.6+0813_daily_bin370
RA = 226.674, Dec = 8.2256
tmin = 335232001, tmax = 335491201
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='55719', job_status='RUN', time_executed='2021-09-11 00:21:39.600642', time_epoch_executed='1631344899.6' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='370'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55719

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55719/ft1_4FGL_J1506.6+0813_daily_bin370.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55719/ft2_4FGL_J1506.6+0813_daily_bin370.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55719/ft1_4FGL_J1506.6+0813_daily_bin370.fits outfile=/scratch/kocevski/55719/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin370.fits ra=226.674 dec=8.2256 rad=12.0 tmin=335232001.0 tmax=335491201.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.70
user 3.47
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55719/ft1_filtered_4FGL_J1506.6+0813_daily_bin370.fits evtable="EVENTS" scfile=/scratch/kocevski/55719/ft2_4FGL_J1506.6+0813_daily_bin370.fits sctable="SC_DATA" expcube=/scratch/kocevski/55719/ltcube_335232001_335491201_4FGL_J1506.6+0813_daily_bin370.fits outfile=/scratch/kocevski/55719/expmap_335232001_335491201_4FGL_J1506.6+0813_daily_bin370.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/55719/ltcube_335232001_335491201_4FGL_J1506.6+0813_daily_bin370.fits
.....................!
real 191.24
user 185.50
sys 5.38

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/55719/ft1_filtered_4FGL_J1506.6+0813_daily_bin370.fits scfile=/scratch/kocevski/55719/ft2_4FGL_J1506.6+0813_daily_bin370.fits outfile=/scratch/kocevski/55719/cmap_335232001_335491201_4FGL_J1506.6+0813_daily_bin370.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=226.674 yref=8.2256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.1599       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.488       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.766       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4742       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      '    .28545       1.0000         .10000E-03   10000.    
    12 'norm      '    3.0243       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.899       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    62.971       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8053       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8986       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.929       1.0000         .10000E-03   10000.    
    21 'norm      '    3.3830       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98055       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1300       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=   6833.914     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2704 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3736        .18445E-06** at limit **
   2  norm          2.1146        59.960        .26279E-05    .31572E-04
   3  Prefactor     11.419        70.239       -.13077E-05   -.17809E-04
   4  Prefactor     .10000E-03    13.648       -.55521E-07** at limit **
   5  norm          .10000E-03    8.4075        .40250E-08** at limit **
   6  Prefactor     .10000E-03    7.6379        .67222E-07** at limit **
   7  Prefactor     15.770        16.852       -.35686E-06   -.20182E-04
   8  Prefactor     7.4711        15.960       -.33923E-06   -.50587E-05
   9  Prefactor     .10000E-03    7.7535        .13533E-07** at limit **
  10  Prefactor     .10000E-03    15.262        .15412E-07** at limit **
  11  norm          .28543        .17424       -.21434E-07   -.79318E-03
  12  norm          3.0244        2.7294        .25290E-06    .17338E-03
  13  norm          .10000E-03    3.1695        .78919E-07** at limit **
  14  norm          10.900        30.575        .36829E-06   -.38348E-06
  15  norm          .10000E-03    2.2205        .37048E-06** at limit **
  16  Prefactor     62.943        59.470       -.12019E-05   -.61404E-04
  17  Prefactor     4.8550        128.71        .13136E-05    .33325E-05
  18  Prefactor     2.8289        179.94       -.38872E-05   -.14485E-04
  19  Prefactor     .10000E-03    4.3593        .88124E-06** at limit **
  20  Prefactor     19.929        21.142        .11515E-06   -.13317E-04
  21  norm          3.3830        3.4355        .15037E-06    .30416E-04
  22  Prefactor     .10000E-03    31.558        .73451E-07** at limit **
  23  Normalizat    .98074        .28767        .64020E-05   -.13429E-03
  24  Prefactor     1.1299        .15142       -.36207E-05   -.11095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.11459
  Prefactor  = 11.4188
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7699
  Prefactor  = 7.4711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.285431
  norm       = 3.02439
  norm       = 0.0001
  norm       = 10.9002
  norm       = 0.0001
  Prefactor  = 62.9432
  Prefactor  = 4.85496
  Prefactor  = 2.82892
  Prefactor  = 0.0001
  Prefactor  = 19.9289
  norm       = 3.38296
  Prefactor  = 0.0001
  Normalizat = 0.980736
  Prefactor  = 1.12993
 **********
 **   18 **HESSE 
 **********

 FCN=   6833.914     FROM HESSE     STATUS=OK           397 CALLS     3101 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.1146        60.352        .28028E-03   -1.5417    
   3  Prefactor     11.419        70.938        .11820E-03   -1.5032    
   4  Prefactor     .10000E-03    13.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    8.4243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.770        16.844        .10087E-03   -1.4914    
   8  Prefactor     7.4711        15.952        .14670E-03   -1.5161    
   9  Prefactor     .10000E-03    7.7577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .28543        .17045        .25759E-04   -1.5601    
  12  norm          3.0244        2.7306        .12252E-03   -1.5360    
  13  norm          .10000E-03    3.1840        .14375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.900        30.568        .12135E-03   -1.5048    
  15  norm          .10000E-03    2.2546        .12053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     62.943        59.513        .50568E-04   -1.4120    
  17  Prefactor     4.8550        127.61        .18353E-03   -1.5267    
  18  Prefactor     2.8289        180.42        .23867E-03   -1.5372    
  19  Prefactor     .10000E-03    4.5160        .16967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.929        21.138        .89719E-04   -1.4815    
  21  norm          3.3830        3.4287        .14986E-03   -1.5340    
  22  Prefactor     .10000E-03    31.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98074        .28749        .35394E-03   -.93679    
  24  Prefactor     1.1299        .15237        .18564E-03   -.88515    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60711e-10
Minuit parameter uncertainties:
  1  1.21995e-05
  2  22.6184
  3  57.0222
  4  1.83944e-05
  5  2.77668e-07
  6  3.92597e-07
  7  16.8488
  8  15.9611
  9  3.01792e-06
  10  9.80202e-06
  11  0.17045
  12  2.73074
  13  4.58395e-06
  14  30.6122
  15  1.34658e-05
  16  59.5694
  17  49.8987
  18  45.3259
  19  4.39899e-05
  20  21.1458
  21  3.42889
  22  7.32103e-07
  23  0.287946
  24  0.152433
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  4.584e-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.130e+00  1.524e-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:  9.807e-01  2.879e-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.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.80e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55719/likelihoodResults_335232001_335491201_4FGL_J1506.6+0813_daily_bin370.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) = 6833.91499107
delta logL = -0.001479306482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6833.91351171
delta logL = 5.85423549637e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5872       1.0000          .0000       5.0000    
     3 'Normalizat'    .98074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1299       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=   6833.914     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      235 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    670.00        .14428E-02** at limit **
   2  alpha         1.3806        3.0463        .18122       -.46737E-07
   3  Normalizat    .98074        .13645        .35393E-03   -.10536E-03
   4  Prefactor     1.1299        .76749E-01    .18564E-03   -.18772E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.3806
  Normalizat = 0.980738
  Prefactor  = 1.12993
 **********
 **   18 **HESSE 
 **********

 FCN=   6833.914     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3282        .28855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3806        3.9525        .72489E-02   -.46426    
   3  Normalizat    .98074        .26550        .14157E-04   -.93679    
   4  Prefactor     1.1299        .14944        .37128E-04   -.88516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72949e-11
Minuit parameter uncertainties:
  1  1.02994e-05
  2  179.773
  3  0.265855
  4  0.149496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55719': 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) = 6833.91351109
delta logL = 6.77296156937e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  1.130e+00  1.495e-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:  9.807e-01  2.659e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/55719/cmap_HighResolution_335232001_335491201_4FGL_J1506.6+0813_daily_bin370.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.80e-05', job_status='DONE', photon_flux_upper_limit='2.97e-08', time_completed='2021-09-11 00:32:24.977192', job_id='55719', GAL2='1.13', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1631345544.98', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='6.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='370' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:32:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 55719: <4FGL_J1506.6+0813_daily_bin370> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin370 226.674 8.2256 335232001 335491201 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 :                                   641.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             376.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            662 sec.

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

