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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin135
RA = 226.674, Dec = 8.2256
tmin = 274320001, tmax = 274579201
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='54227', job_status='RUN', time_executed='2021-09-11 00:20:15.605558', time_epoch_executed='1631344815.61' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='135'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54227

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54227/ft1_4FGL_J1506.6+0813_daily_bin135.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54227/ft2_4FGL_J1506.6+0813_daily_bin135.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54227/ft1_4FGL_J1506.6+0813_daily_bin135.fits outfile=/scratch/kocevski/54227/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin135.fits ra=226.674 dec=8.2256 rad=12.0 tmin=274320001.0 tmax=274579201.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.60
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54227/ft1_filtered_4FGL_J1506.6+0813_daily_bin135.fits" evtable="EVENTS" scfile=/scratch/kocevski/54227/ft2_4FGL_J1506.6+0813_daily_bin135.fits sctable="SC_DATA" outfile=/scratch/kocevski/54227/ltcube_274320001_274579201_4FGL_J1506.6+0813_daily_bin135.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/54227/ft2_4FGL_J1506.6+0813_daily_bin135.fits
.....................!
real 12.02
user 11.67
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54227/ft1_filtered_4FGL_J1506.6+0813_daily_bin135.fits evtable="EVENTS" scfile=/scratch/kocevski/54227/ft2_4FGL_J1506.6+0813_daily_bin135.fits sctable="SC_DATA" expcube=/scratch/kocevski/54227/ltcube_274320001_274579201_4FGL_J1506.6+0813_daily_bin135.fits outfile=/scratch/kocevski/54227/expmap_274320001_274579201_4FGL_J1506.6+0813_daily_bin135.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/54227/ltcube_274320001_274579201_4FGL_J1506.6+0813_daily_bin135.fits
.....................!
real 190.89
user 185.39
sys 4.98

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/54227/ft1_filtered_4FGL_J1506.6+0813_daily_bin135.fits scfile=/scratch/kocevski/54227/ft2_4FGL_J1506.6+0813_daily_bin135.fits outfile=/scratch/kocevski/54227/cmap_274320001_274579201_4FGL_J1506.6+0813_daily_bin135.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.59
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54227/ft1_filtered_4FGL_J1506.6+0813_daily_bin135.fits scfile=/scratch/kocevski/54227/ft2_4FGL_J1506.6+0813_daily_bin135.fits outfile=/scratch/kocevski/54227/cmap_HighResolution_274320001_274579201_4FGL_J1506.6+0813_daily_bin135.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=226.674 yref=8.2256 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11065E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .65256E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.265       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2580       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9420       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8061       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10277E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    59.541       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14132       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17547E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7114       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1271       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1853       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9454.721     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     2282 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6441       -.10052E-04** at limit **
   2  norm          .10000E-03    5.0374       -.62543E-06** at limit **
   3  Prefactor     .10153E-03    38.053        .57416E-04** at limit **
   4  Prefactor     .10000E-03    6.2750       -.17257E-04** at limit **
   5  norm          .10000E-03    3.3198       -.12967E-05** at limit **
   6  Prefactor     .10000E-03    4.2454       -.13742E-04** at limit **
   7  Prefactor     .10866E-03    34.748        .10398E-03** at limit **
   8  Prefactor     11.255        1.4218       -.22907E-05   -.16805E-02
   9  Prefactor     .10000E-03    7.1612        .32382E-04** at limit **
  10  Prefactor     .10000E-03    10.861        .37269E-05** at limit **
  11  norm          1.2581        .23975       -.15246E-06    .12371E-03
  12  norm          3.9414        1.9322        .17568E-06    .49309E-03
  13  norm          1.8048        3.8564        .28163E-05   -.28978E-03
  14  norm          .10000E-03    15.217       -.13683E-04** at limit **
  15  norm          .10000E-03    1.9547       -.75577E-07** at limit **
  16  Prefactor     59.556        1.4363        .90787E-07    .64706E-03
  17  Prefactor     .10017E-03    700.42       -.11289E-03** at limit **
  18  Prefactor     .10073E-03    38.381       -.79296E-04** at limit **
  19  Prefactor     2.7099        4.0585        .39335E-05    .12325E-03
  20  Prefactor     .10000E-03    5.8839        .37980E-05** at limit **
  21  norm          5.1263        3.4829       -.53503E-06    .70001E-04
  22  Prefactor     .10000E-03    20.966        .16304E-04** at limit **
  23  Normalizat    1.1855        .23157        .73063E-05    .13272E-03
  24  Prefactor     1.0093        .12704       -.22121E-05    .87227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000101528
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000108662
  Prefactor  = 11.2553
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.25807
  norm       = 3.94138
  norm       = 1.80482
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 59.556
  Prefactor  = 0.000100169
  Prefactor  = 0.000100733
  Prefactor  = 2.70986
  Prefactor  = 0.0001
  norm       = 5.1263
  Prefactor  = 0.000100001
  Normalizat = 1.1855
  Prefactor  = 1.00934
 **********
 **   18 **HESSE 
 **********

 FCN=   9454.721     FROM HESSE     STATUS=OK           451 CALLS     2733 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.6316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.0375        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10153E-03    49.252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.3190        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10866E-03    8.5571        .15104       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.255        12.132        .29841E-02   -1.5037    
   9  Prefactor     .10000E-03    7.1820        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.863        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2581        .24051        .44632E-02   -1.5484    
  12  norm          3.9414        1.9379        .50794E-02   -1.5311    
  13  norm          1.8048        3.8943        .77740E-02   -1.5439    
  14  norm          .10000E-03    15.226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9277        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     59.556        53.915        .12999E-02   -1.4163    
  17  Prefactor     .10017E-03    28.783        .14877       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10073E-03    43.782        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7099        4.0772        .61839E-02   -1.5379    
  20  Prefactor     .10000E-03    5.8865        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.1263        3.4860        .44389E-02   -1.5255    
  22  Prefactor     .10000E-03    20.975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1855        .19913        .75118E-01   -.87052    
  24  Prefactor     1.0093        .10763        .43442E-01   -.92419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41804e-07
Minuit parameter uncertainties:
  1  0.000211832
  2  5.76044e-06
  3  0.017362
  4  4.10579e-05
  5  2.01328e-05
  6  4.05675e-06
  7  0.0172214
  8  12.1347
  9  0.000131122
  10  8.0821e-06
  11  0.240514
  12  1.93794
  13  3.8948
  14  7.1578e-05
  15  5.02384e-06
  16  53.9588
  17  0.00440921
  18  0.0113392
  19  4.07758
  20  1.41859e-05
  21  3.48611
  22  0.000241752
  23  0.199257
  24  0.107649
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.805e+00  3.895e+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:  1.009e+00  1.076e-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.186e+00  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 226.674 8.226
Photon Flux Upper Limit: 3.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/54227/likelihoodResults_274320001_274579201_4FGL_J1506.6+0813_daily_bin135.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) = 9454.4857816
delta logL = 0.234886670783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9454.47887791
delta logL = 0.241790366961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4538       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3466       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1817       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0086       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=   9454.479     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4529        51.419        .89293E-02    .88416E-03
   2  alpha         2.3469        3.6682        .41250        .55929E-04
   3  Normalizat    1.1816        .50279E-01    .75202E-01    .11782E-02
   4  Prefactor     1.0086        .25170E-01    .43545E-01    .18589E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.45289
  alpha      = 2.34692
  Normalizat = 1.1816
  Prefactor  = 1.00859
 **********
 **   18 **HESSE 
 **********

 FCN=   9454.479     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4529        3.3420        .16819E-03   -1.5467    
   2  alpha         2.3469        1.1686        .18739E-01   -.61269E-01
   3  Normalizat    1.1816        .22820        .33282E-03   -.87173    
   4  Prefactor     1.0086        .12617        .19632E-03   -.92444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69727e-09
Minuit parameter uncertainties:
  1  3.34245
  2  1.21614
  3  0.228396
  4  0.126203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54227': 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) = 9454.47887783
delta logL = 0.241790445405

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.453e+00  3.342e+00  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  2.347e+00  1.216e+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.009e+00  1.262e-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.182e+00  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.32
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/54227/cmap_HighResolution_274320001_274579201_4FGL_J1506.6+0813_daily_bin135.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.95e-05', job_status='DONE', photon_flux_upper_limit='3.04e-08', time_completed='2021-09-11 00:32:46.199917', job_id='54227', GAL2='1.01', fit_tolerance='1e-08', EG2='1.18', EG='1.19', time_epoch_completed='1631345566.2', return_code2='0', ts='0.32', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.42e-01', ts2='0.80', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='135' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:32:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 54227: <4FGL_J1506.6+0813_daily_bin135> in cluster <slac> Done

Job <4FGL_J1506.6+0813_daily_bin135> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 00:16:20 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:16:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:16:22 2021
Terminated at Sat Sep 11 00:32:47 2021
Results reported at Sat Sep 11 00:32:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin135 226.674 8.2256 274320001 274579201 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 :                                   747.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            987 sec.

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

