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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin575
RA = 226.674, Dec = 8.2256
tmin = 388368001, tmax = 388627201
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='57138', job_status='RUN', time_executed='2021-09-11 00:26:15.429948', time_epoch_executed='1631345175.43' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/57138

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/57138/ft1_4FGL_J1506.6+0813_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/57138/ft2_4FGL_J1506.6+0813_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/57138/ft1_4FGL_J1506.6+0813_daily_bin575.fits outfile=/scratch/kocevski/57138/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin575.fits ra=226.674 dec=8.2256 rad=12.0 tmin=388368001.0 tmax=388627201.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.42
user 4.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/57138/ft1_filtered_4FGL_J1506.6+0813_daily_bin575.fits" evtable="EVENTS" scfile=/scratch/kocevski/57138/ft2_4FGL_J1506.6+0813_daily_bin575.fits sctable="SC_DATA" outfile=/scratch/kocevski/57138/ltcube_388368001_388627201_4FGL_J1506.6+0813_daily_bin575.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/57138/ft2_4FGL_J1506.6+0813_daily_bin575.fits
.....................!
real 11.71
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/57138/ft1_filtered_4FGL_J1506.6+0813_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/57138/ft2_4FGL_J1506.6+0813_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/57138/ltcube_388368001_388627201_4FGL_J1506.6+0813_daily_bin575.fits outfile=/scratch/kocevski/57138/expmap_388368001_388627201_4FGL_J1506.6+0813_daily_bin575.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/57138/ltcube_388368001_388627201_4FGL_J1506.6+0813_daily_bin575.fits
.....................!
real 190.95
user 185.65
sys 4.85

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/57138/ft1_filtered_4FGL_J1506.6+0813_daily_bin575.fits scfile=/scratch/kocevski/57138/ft2_4FGL_J1506.6+0813_daily_bin575.fits outfile=/scratch/kocevski/57138/cmap_388368001_388627201_4FGL_J1506.6+0813_daily_bin575.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/57138/ft1_filtered_4FGL_J1506.6+0813_daily_bin575.fits scfile=/scratch/kocevski/57138/ft2_4FGL_J1506.6+0813_daily_bin575.fits outfile=/scratch/kocevski/57138/cmap_HighResolution_388368001_388627201_4FGL_J1506.6+0813_daily_bin575.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    69.586       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .73843E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12395E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    57.204       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12498       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1462       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4593       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13587E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    40.008       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10831E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.809       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3443       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93536       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=   7287.390     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     2865 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2643        .40008E-08** at limit **
   2  norm          .10000E-03    13.934        .26393E-05** at limit **
   3  Prefactor     69.693        97.941        .97799E-06   -.11123E-04
   4  Prefactor     .10007E-03    31.582        .16341E-05** at limit **
   5  norm          .10000E-03    37.819       -.35686E-06** at limit **
   6  Prefactor     .10000E-03    9.0796       -.54808E-07** at limit **
   7  Prefactor     57.204        30.997       -.88999E-05   -.57282E-04
   8  Prefactor     .11154E-03    16.130        .25331E-06** at limit **
   9  Prefactor     .10000E-03    12.382       -.36596E-06** at limit **
  10  Prefactor     .10000E-03    17.687       -.17696E-05** at limit **
  11  norm          .10000E-03    .85075E-01    .79399E-07** at limit **
  12  norm          1.1447        2.1645       -.66323E-06   -.11858E-02
  13  norm          .10000E-03    2.8099        .57044E-08** at limit **
  14  norm          .10000E-03    15.208       -.79553E-05** at limit **
  15  norm          .10000E-03    1.5564       -.23508E-07** at limit **
  16  Prefactor     9.4567        33.029        .97942E-05   -.31751E-05
  17  Prefactor     .10000E-03    35.564        .34748E-06** at limit **
  18  Prefactor     40.022        37.192       -.92278E-05    .27140E-05
  19  Prefactor     .10000E-03    1.8472       -.19542E-06** at limit **
  20  Prefactor     32.803        27.349       -.29391E-05    .49896E-05
  21  norm          .10000E-03    2.0404        .12170E-07** at limit **
  22  Prefactor     .10000E-03    16.031        .74022E-05** at limit **
  23  Normalizat    1.3446        .23648        .39301E-05   -.22370E-03
  24  Prefactor     .93532        .11889       -.21823E-06    .73298E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.6929
  Prefactor  = 0.000100074
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.2044
  Prefactor  = 0.000111541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.14473
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.45674
  Prefactor  = 0.0001
  Prefactor  = 40.0225
  Prefactor  = 0.0001
  Prefactor  = 32.8032
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.34457
  Prefactor  = 0.935316
 **********
 **   18 **HESSE 
 **********

 FCN=   7287.390     FROM HESSE     STATUS=OK           409 CALLS     3274 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    13.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     69.693        97.802        .48120E-04   -1.4036    
   4  Prefactor     .10007E-03    274.95        .90520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    38.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.0878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     57.204        30.986        .53041E-04   -1.4194    
   8  Prefactor     .11154E-03    22.581        .90271E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .93759E-01    .83026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1447        2.1459        .16419E-03   -1.5494    
  13  norm          .10000E-03    2.8160        .13975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    15.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.5673        .10396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4567        32.982        .13030E-03   -1.5093    
  17  Prefactor     .10000E-03    36.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     40.022        37.234        .63371E-04   -1.4442    
  19  Prefactor     .10000E-03    9.8880        .22359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.803        27.367        .69956E-04   -1.4562    
  21  norm          .10000E-03    2.0734        .11902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3446        .28476        .31150E-03   -.82246    
  24  Prefactor     .93532        .14395        .19642E-03   -.94918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19311e-09
Minuit parameter uncertainties:
  1  2.57197e-06
  2  1.57237e-05
  3  98.0288
  4  0.00903767
  5  4.22783e-05
  6  7.19342e-06
  7  30.995
  8  0.0322998
  9  8.93015e-06
  10  3.2249e-06
  11  2.8374e-06
  12  2.14604
  13  3.17866e-07
  14  1.37064e-06
  15  1.09782e-06
  16  33.0454
  17  3.425e-05
  18  37.2552
  19  9.26166e-05
  20  27.3774
  21  2.18631e-06
  22  3.26946e-06
  23  0.285099
  24  0.14401
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  3.179e-07  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.353e-01  1.440e-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.345e+00  2.851e-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.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/57138/likelihoodResults_388368001_388627201_4FGL_J1506.6+0813_daily_bin575.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) = 7287.39138238
delta logL = -0.00167869498455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7287.38970983
delta logL = -6.14270356891e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6114       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93507       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7287.385     FROM MIGRAD    STATUS=FAILED       140 CALLS      275 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49076E-01    78.021        .18465E-01    .21246E-02
   2  alpha         3.2895        3.3124        .50000       -.26244E-04
   3  Normalizat    1.3399        .44165        .31150E-03   -.72080E-04
   4  Prefactor     .93616        .88404E-01    .19642E-03   -.14735E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7287.385     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      365 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49076E-01    78.021        .20213E-03    .21246E-02
   2  alpha         3.2895        3.3124        .10687E-01   -.26244E-04
   3  Normalizat    1.3399        .44165        .36662E-04   -.72080E-04
   4  Prefactor     .93616        .88404E-01    .19980E-04   -.14735E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7287.385     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      409 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49073E-01    3.2135         .0000        .82733E-02
   2  alpha         3.2895        3.0689         .0000       -.54457E-05
   3  Normalizat    1.3399        .26845         .0000       -.22080E-04
   4  Prefactor     .93616        .14246         .0000       -.73391E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0490733
  alpha      = 3.2895
  Normalizat = 1.33994
  Prefactor  = 0.93616
 **********
 **   18 **HESSE 
 **********

 FCN=   7287.385     FROM HESSE     STATUS=OK            27 CALLS      436 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49073E-01    3.3328        .20441E-03   -1.5664    
   2  alpha         3.2895        3.0069        .17432E-02    9.1035    
   3  Normalizat    1.3399        .26748        .24920E-05   -.82382    
   4  Prefactor     .93616        .14241        .78569E-05   -.94889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.41505e-11
Minuit parameter uncertainties:
  1  0.808053
  2  4.77883
  3  0.267758
  4  0.142469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/57138': 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) = 7287.38536839
delta logL = 0.00433529719521

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  4.907e-02  8.081e-01  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  3.290e+00  4.779e+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.362e-01  1.425e-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.340e+00  2.678e-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/57138/cmap_HighResolution_388368001_388627201_4FGL_J1506.6+0813_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.53e-05', job_status='DONE', photon_flux_upper_limit='2.85e-08', time_completed='2021-09-11 00:37:46.328987', job_id='57138', GAL2='0.94', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1631345866.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.34e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='575' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:37:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 57138: <4FGL_J1506.6+0813_daily_bin575> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin575> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 00:26:02 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:26:03 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:26:03 2021
Terminated at Sat Sep 11 00:37:47 2021
Results reported at Sat Sep 11 00:37:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin575 226.674 8.2256 388368001 388627201 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 :                                   687.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             310.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

