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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin381
RA = 226.674, Dec = 8.2256
tmin = 338083201, tmax = 338342401
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='55736', job_status='RUN', time_executed='2021-09-11 00:21:41.490939', time_epoch_executed='1631344901.49' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55736

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55736/ft1_4FGL_J1506.6+0813_daily_bin381.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55736/ft2_4FGL_J1506.6+0813_daily_bin381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55736/ft1_4FGL_J1506.6+0813_daily_bin381.fits outfile=/scratch/kocevski/55736/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin381.fits ra=226.674 dec=8.2256 rad=12.0 tmin=338083201.0 tmax=338342401.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 6.69
user 6.45
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55736/ft1_filtered_4FGL_J1506.6+0813_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/55736/ft2_4FGL_J1506.6+0813_daily_bin381.fits sctable="SC_DATA" expcube=/scratch/kocevski/55736/ltcube_338083201_338342401_4FGL_J1506.6+0813_daily_bin381.fits outfile=/scratch/kocevski/55736/expmap_338083201_338342401_4FGL_J1506.6+0813_daily_bin381.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/55736/ltcube_338083201_338342401_4FGL_J1506.6+0813_daily_bin381.fits
.....................!
real 190.67
user 185.35
sys 4.79

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/55736/ft1_filtered_4FGL_J1506.6+0813_daily_bin381.fits scfile=/scratch/kocevski/55736/ft2_4FGL_J1506.6+0813_daily_bin381.fits outfile=/scratch/kocevski/55736/cmap_338083201_338342401_4FGL_J1506.6+0813_daily_bin381.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55736/ft1_filtered_4FGL_J1506.6+0813_daily_bin381.fits scfile=/scratch/kocevski/55736/ft2_4FGL_J1506.6+0813_daily_bin381.fits outfile=/scratch/kocevski/55736/cmap_HighResolution_338083201_338342401_4FGL_J1506.6+0813_daily_bin381.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/55736/ft1_filtered_4FGL_J1506.6+0813_daily_bin381.fits evtable="EVENTS" scfile=/scratch/kocevski/55736/ft2_4FGL_J1506.6+0813_daily_bin381.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55736/Model_4FGL_J1506.6+0813_daily_bin381.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/55736/ft1_filtered_4FGL_J1506.6+0813_daily_bin381.fits.....................!
real 54.51
user 53.13
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    57.602       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35038E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.172       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.982       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10786E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2994       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.216       1.0000         .10000E-03   10000.    
    11 'norm      '    .22948       1.0000         .10000E-03   10000.    
    12 'norm      '    .11506E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    40.662       1.0000         .10000E-03   10000.    
    15 'norm      '    6.7398       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12832E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11775E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .30954E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.350       1.0000         .10000E-03   10000.    
    21 'norm      '    .17891       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1970       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90912       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=   7033.998     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2752 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.218        .57429E-05** at limit **
   2  norm          57.616        35.839        .17381E-05    .13383E-03
   3  Prefactor     .10000E-03    45.716       -.25466E-05** at limit **
   4  Prefactor     .10000E-03    145.25       -.23493E-06** at limit **
   5  norm          10.161        20.632        .25769E-06    .29947E-04
   6  Prefactor     21.983        27.038        .48619E-06    .35818E-04
   7  Prefactor     .10000E-03    35.090       -.31022E-06** at limit **
   8  Prefactor     1.3062        40.243        .15651E-05   -.64797E-04
   9  Prefactor     .10000E-03    11.737        .24420E-06** at limit **
  10  Prefactor     37.251        35.300        .24537E-05    .26421E-03
  11  norm          .22952        .16507        .53082E-06   -.24205E-02
  12  norm          .30046E-01    1.0693       -.58569E-06    .18006E-02
  13  norm          .10000E-03    2.0511       -.95671E-07** at limit **
  14  norm          40.663        46.279        .12867E-06    .10970E-04
  15  norm          6.7309        4.7835        .23952E-06    .35694E-03
  16  Prefactor     .10003E-03    105.98       -.11262E-04** at limit **
  17  Prefactor     .10000E-03    34.083        .22134E-05** at limit **
  18  Prefactor     .10000E-03    53.607        .17196E-05** at limit **
  19  Prefactor     .10000E-03    2.0023        .24391E-06** at limit **
  20  Prefactor     21.350        20.387        .19204E-06    .47041E-05
  21  norm          .18022        1.7732        .31602E-06   -.31207E-03
  22  Prefactor     .10000E-03    40.904       -.39259E-05** at limit **
  23  Normalizat    1.1967        .21658       -.23165E-05    .12525E-03
  24  Prefactor     .90905        .11581        .82153E-08    .35636E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 57.616
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 10.1614
  Prefactor  = 21.9827
  Prefactor  = 0.0001
  Prefactor  = 1.30617
  Prefactor  = 0.0001
  Prefactor  = 37.2509
  norm       = 0.22952
  norm       = 0.0300457
  norm       = 0.0001
  norm       = 40.6626
  norm       = 6.73094
  Prefactor  = 0.000100031
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.3499
  norm       = 0.180217
  Prefactor  = 0.000100004
  Normalizat = 1.19673
  Prefactor  = 0.909053
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.998     FROM HESSE     STATUS=OK           399 CALLS     3151 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          57.616        35.869        .52858E-04   -1.4188    
   3  Prefactor     .10000E-03    46.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    146.37        .42646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.161        20.442        .12563E-03   -1.5070    
   6  Prefactor     21.983        27.050        .85432E-04   -1.4770    
   7  Prefactor     .10000E-03    35.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3062        40.839        .38772E-03   -1.5479    
   9  Prefactor     .10000E-03    11.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.251        35.855        .32848E-03   -1.4487    
  11  norm          .22952        .16890        .14567E-02   -1.5612    
  12  norm          .30046E-01    59.396        .15628E-02   -1.5673    
  13  norm          .10000E-03    2.0528        .11732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          40.663        46.293        .31431E-03   -1.4432    
  15  norm          6.7309        4.9383        .14429E-03   -1.5189    
  16  Prefactor     .10003E-03    110.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    54.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.6670        .22674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     21.350        20.367        .86686E-04   -1.4784    
  21  norm          .18022        4.4548        .21636E-02   -1.5623    
  22  Prefactor     .10000E-03    41.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1967        .25884        .30796E-03   -.86704    
  24  Prefactor     .90905        .13821        .19029E-03   -.95825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27899e-07
Minuit parameter uncertainties:
  1  0.0010626
  2  35.8821
  3  0.000571504
  4  0.000472572
  5  20.4562
  6  27.0655
  7  5.93273e-05
  8  14.6176
  9  1.17977e-05
  10  35.8761
  11  0.168905
  12  2.66997
  13  5.50539e-06
  14  46.3336
  15  4.93858
  16  0.00370559
  17  0.00046702
  18  0.000477313
  19  9.008e-05
  20  20.3733
  21  1.79166
  22  0.000833598
  23  0.259116
  24  0.138259
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  5.505e-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:  9.091e-01  1.383e-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.197e+00  2.591e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55736/likelihoodResults_338083201_338342401_4FGL_J1506.6+0813_daily_bin381.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) = 7034.00025854
delta logL = -0.00223317159271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7033.99802543
delta logL = -5.88870534557e-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.5940       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90904       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=   7033.998     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      233 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    493.79        .11737E-02** at limit **
   2  alpha         1.5025        3.1127        .18093       -.43985E-09
   3  Normalizat    1.1967        .20615        .30796E-03    .44501E-03
   4  Prefactor     .90906        .11345        .19029E-03    .93182E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.50248
  Normalizat = 1.19673
  Prefactor  = 0.909056
 **********
 **   18 **HESSE 
 **********

 FCN=   7033.998     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.0659        .23473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5025        3.6539        .72370E-02   -.41044    
   3  Normalizat    1.1967        .24703        .61592E-04   -.86704    
   4  Prefactor     .90906        .13597        .38058E-04   -.95825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96271e-10
Minuit parameter uncertainties:
  1  1.24607e-05
  2  170.635
  3  0.247276
  4  0.136022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55736': 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) = 7033.99802521
delta logL = 1.51942003868e-07

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.246e-05  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.502e+00  1.706e+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:  9.091e-01  1.360e-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.197e+00  2.473e-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/55736/cmap_HighResolution_338083201_338342401_4FGL_J1506.6+0813_daily_bin381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-05', job_status='DONE', photon_flux_upper_limit='2.36e-08', time_completed='2021-09-11 00:32:54.428041', job_id='55736', GAL2='0.91', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1631345574.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='381' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:32:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 55736: <4FGL_J1506.6+0813_daily_bin381> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin381 226.674 8.2256 338083201 338342401 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 :                                   665.28 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             289.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            691 sec.

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

