/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 142 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_bin775
RA = 226.674, Dec = 8.2256
tmin = 440208001, tmax = 440467201
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='58493', job_status='RUN', time_executed='2021-09-11 00:33:39.232843', time_epoch_executed='1631345619.23' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/58493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/58493/ft1_4FGL_J1506.6+0813_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/58493/ft2_4FGL_J1506.6+0813_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/58493/ft1_4FGL_J1506.6+0813_daily_bin775.fits outfile=/scratch/kocevski/58493/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin775.fits ra=226.674 dec=8.2256 rad=12.0 tmin=440208001.0 tmax=440467201.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.47
user 3.25
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/58493/ft2_4FGL_J1506.6+0813_daily_bin775.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/58493/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin775.fits evtable="EVENTS" outfile="/scratch/kocevski/58493/ft1_filtered_4FGL_J1506.6+0813_daily_bin775.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/58493/ft1_filtered_4FGL_J1506.6+0813_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/58493/ft2_4FGL_J1506.6+0813_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/58493/ltcube_440208001_440467201_4FGL_J1506.6+0813_daily_bin775.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/58493/ft2_4FGL_J1506.6+0813_daily_bin775.fits
.....................!
real 15.21
user 14.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/58493/ft1_filtered_4FGL_J1506.6+0813_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/58493/ft2_4FGL_J1506.6+0813_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/58493/ltcube_440208001_440467201_4FGL_J1506.6+0813_daily_bin775.fits outfile=/scratch/kocevski/58493/expmap_440208001_440467201_4FGL_J1506.6+0813_daily_bin775.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/58493/ltcube_440208001_440467201_4FGL_J1506.6+0813_daily_bin775.fits
.....................!
real 190.71
user 185.09
sys 5.26

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/58493/ft1_filtered_4FGL_J1506.6+0813_daily_bin775.fits scfile=/scratch/kocevski/58493/ft2_4FGL_J1506.6+0813_daily_bin775.fits outfile=/scratch/kocevski/58493/cmap_440208001_440467201_4FGL_J1506.6+0813_daily_bin775.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.765       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4830       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2466       1.0000         .10000E-03   10000.    
     5 'norm      '    .27853E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.797       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43078E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.350       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .38703       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.8700       1.0000         .10000E-03   10000.    
    14 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.3888       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    71.007       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5780       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2918       1.0000         .10000E-03   10000.    
    21 'norm      '    4.1534       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11343E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0007       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .99504       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=   9177.703     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2742 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.748        19.780       -.27758E-06   -.42106E-04
   2  norm          1.4770        47.151        .16171E-04   -.10020E-03
   3  Prefactor     .10000E-03    26.122       -.48801E-06** at limit **
   4  Prefactor     5.3386        24.220       -.48685E-05   -.12585E-03
   5  norm          .10002E-03    31.250        .80882E-05** at limit **
   6  Prefactor     30.799        22.231        .22458E-06    .11151E-03
   7  Prefactor     .10035E-03    14.373        .48860E-05** at limit **
   8  Prefactor     .10000E-03    2.9863       -.82556E-08** at limit **
   9  Prefactor     21.343        19.798        .19913E-06    .57442E-04
  10  Prefactor     .10002E-03    20.902        .17165E-05** at limit **
  11  norm          .38701        .15915        .12826E-07   -.16326E-02
  12  norm          .10000E-03    .64166       -.45822E-07** at limit **
  13  norm          7.8699        7.1854        .41297E-07   -.59328E-04
  14  norm          .10000E-03    11.625        .25564E-08** at limit **
  15  norm          8.3884        3.9375        .39351E-07   -.17326E-04
  16  Prefactor     .10000E-03    19.315       -.75505E-06** at limit **
  17  Prefactor     .10000E-03    25.490       -.20946E-06** at limit **
  18  Prefactor     71.009        39.530        .45409E-06    .12962E-03
  19  Prefactor     2.5770        3.8860        .16835E-06   -.63324E-04
  20  Prefactor     4.2908        40.703        .29596E-05   -.17013E-04
  21  norm          4.1531        5.0371       -.42600E-07   -.11706E-04
  22  Prefactor     .10000E-03    47.713        .73430E-06** at limit **
  23  Normalizat    1.0004        .19757       -.89031E-06   -.37546E-03
  24  Prefactor     .99522        .10658        .94644E-07   -.41280E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7482
  norm       = 1.47697
  Prefactor  = 0.000100002
  Prefactor  = 5.33859
  norm       = 0.00010002
  Prefactor  = 30.7986
  Prefactor  = 0.000100348
  Prefactor  = 0.0001
  Prefactor  = 21.3427
  Prefactor  = 0.000100017
  norm       = 0.387009
  norm       = 0.0001
  norm       = 7.86992
  norm       = 0.0001
  norm       = 8.38838
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 71.0088
  Prefactor  = 2.577
  Prefactor  = 4.29083
  norm       = 4.15308
  Prefactor  = 0.000100004
  Normalizat = 1.00043
  Prefactor  = 0.995224
 **********
 **   18 **HESSE 
 **********

 FCN=   9177.703     FROM HESSE     STATUS=OK           401 CALLS     3143 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.748        19.818        .50437E-03   -1.4914    
   2  norm          1.4770        49.590        .17617E-02   -1.5465    
   3  Prefactor     .10000E-03    26.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3386        26.346        .17548E-03   -1.5246    
   5  norm          .10002E-03    35.868        .39815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.799        22.242        .72199E-04   -1.4597    
   7  Prefactor     .10035E-03    86.085        .60193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9880        .16167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.343        19.794        .86686E-04   -1.4784    
  10  Prefactor     .10002E-03    21.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .38701        .15709        .23197E-04   -1.5584    
  12  norm          .10000E-03    .65692        .14966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.8699        7.1856        .14293E-03   -1.5147    
  14  norm          .10000E-03    11.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.3884        3.9366        .12548E-03   -1.5129    
  16  Prefactor     .10000E-03    19.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     71.009        39.665        .47640E-04   -1.4021    
  19  Prefactor     2.5770        3.8773        .21996E-03   -1.5387    
  20  Prefactor     4.2908        40.130        .97233E-03   -1.5294    
  21  norm          4.1531        4.9806        .19777E-03   -1.5300    
  22  Prefactor     .10000E-03    47.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0004        .23401        .33396E-03   -.93016    
  24  Prefactor     .99522        .12863        .18712E-03   -.92889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.10128e-09
Minuit parameter uncertainties:
  1  19.826
  2  17.1313
  3  0.000436602
  4  23.736
  5  0.00169408
  6  22.2477
  7  0.0109679
  8  1.42111e-06
  9  19.8
  10  0.00119948
  11  0.157095
  12  1.87332e-06
  13  7.18639
  14  2.82192e-06
  15  3.93673
  16  0.000553988
  17  9.86531e-05
  18  39.6797
  19  3.87773
  20  26.2674
  21  4.98111
  22  0.000904506
  23  0.234252
  24  0.128673
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  7.870e+00  7.186e+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.952e-01  1.287e-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.000e+00  2.343e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.00
Ra Dec: 226.674 8.226
Photon Index (Fixed Index): 1.60 +/- 0.00
Photon Flux (Fixed Index): 1.59e-08 +/- 1.45e-08
Energy Flux (Fixed Index): 3.63e-05 +/- 3.32e-05

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

Saving results to:
/scratch/kocevski/58493/likelihoodResults_440208001_440467201_4FGL_J1506.6+0813_daily_bin775.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) = 9176.18724486
delta logL = 1.51598814581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9176.15560898
delta logL = 1.54762401938

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85711       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4340       1.0000          .0000       5.0000    
     3 'Normalizat'    .85318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0439       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9176.156     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      273 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85355        4.6963        .94729E-02   -.91182E-03
   2  alpha         3.4358        1.4414        .16841        .32477E-04
   3  Normalizat    .85298        .53022E-01    .80900E-01   -.51291E-04
   4  Prefactor     1.0440        .28932E-01    .40281E-01   -.12817E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.853546
  alpha      = 3.43581
  Normalizat = 0.852977
  Prefactor  = 1.04395
 **********
 **   18 **HESSE 
 **********

 FCN=   9176.156     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      304 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85355        9.7345        .42683E-04   -1.5523    
   2  alpha         3.4358        3.8209        .66000E-02    .38367    
   3  Normalizat    .85298        .23995        .35815E-03   -.98133    
   4  Prefactor     1.0440        .12736        .18304E-03   -.91278    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.87397e-10
Minuit parameter uncertainties:
  1  5.76587
  2  2.63051
  3  0.240247
  4  0.127401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/58493': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9176.15560768
delta logL = 1.54762531918

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  8.535e-01  5.766e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  3.436e+00  2.631e+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.044e+00  1.274e-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:  8.530e-01  2.402e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.35
Ra Dec: 226.674 8.226
Photon Index (Free Index): 3.44 +/- 2.63
Photon Flux (Free Index): 1.24e-07 +/- 9.82e-08
Energy Flux (Free Index): 2.47e-05 +/- 1.69e-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/58493/cmap_HighResolution_440208001_440467201_4FGL_J1506.6+0813_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-04', comment='SUCCESS', photon_flux='1.59e-08', energy_flux2='2.47e-05', photon_flux_error='1.45e-08', dlogl='1.55e+00', energy_flux='3.63e-05', photon_flux2='1.24e-07', job_status='DONE', time_completed='2021-09-11 00:46:34.909697', photon_index_error2='2.63', photon_index2='3.44', ts='2.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.06e-08', energy_flux_error2='1.69e-05', EG='1.00', time_epoch_completed='1631346394.91', return_code='0', job_id='58493', GAL2='1.04', EG2='0.85', return_code2='102', energy_flux_error='3.32e-05', photon_flux_error2='9.82e-08', ts2='5.35', photon_index='1.60' WHERE bin_id='775' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:46:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 58493: <4FGL_J1506.6+0813_daily_bin775> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin775 226.674 8.2256 440208001 440467201 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            927 sec.

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

