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


Performing analysis on: 4FGL_J1506.6+0813_daily_bin399
RA = 226.674, Dec = 8.2256
tmin = 342748801, tmax = 343008001
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='55766', job_status='RUN', time_executed='2021-09-11 00:25:22.641992', time_epoch_executed='1631345122.64' WHERE source_name='4FGL J1506.6+0813' and cadence='daily' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/55766

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/55766/ft1_4FGL_J1506.6+0813_daily_bin399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/55766/ft2_4FGL_J1506.6+0813_daily_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/55766/ft1_4FGL_J1506.6+0813_daily_bin399.fits outfile=/scratch/kocevski/55766/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin399.fits ra=226.674 dec=8.2256 rad=12.0 tmin=342748801.0 tmax=343008001.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.51
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/55766/ft2_4FGL_J1506.6+0813_daily_bin399.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/55766/ft1_filteredMKT_4FGL_J1506.6+0813_daily_bin399.fits evtable="EVENTS" outfile="/scratch/kocevski/55766/ft1_filtered_4FGL_J1506.6+0813_daily_bin399.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/55766/ft1_filtered_4FGL_J1506.6+0813_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/55766/ft2_4FGL_J1506.6+0813_daily_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/55766/ltcube_342748801_343008001_4FGL_J1506.6+0813_daily_bin399.fits outfile=/scratch/kocevski/55766/expmap_342748801_343008001_4FGL_J1506.6+0813_daily_bin399.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/55766/ltcube_342748801_343008001_4FGL_J1506.6+0813_daily_bin399.fits
.....................!
real 189.92
user 185.55
sys 4.00

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

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/55766/ft1_filtered_4FGL_J1506.6+0813_daily_bin399.fits scfile=/scratch/kocevski/55766/ft2_4FGL_J1506.6+0813_daily_bin399.fits outfile=/scratch/kocevski/55766/cmap_HighResolution_342748801_343008001_4FGL_J1506.6+0813_daily_bin399.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/55766/ft1_filtered_4FGL_J1506.6+0813_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/55766/ft2_4FGL_J1506.6+0813_daily_bin399.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/55766/Model_4FGL_J1506.6+0813_daily_bin399.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/55766/ft1_filtered_4FGL_J1506.6+0813_daily_bin399.fits.....................!
real 61.90
user 60.50
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11263E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1945       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.793       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.591       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .30086       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4848       1.0000         .10000E-03   10000.    
    13 'norm      '    .15467E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7755       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.4478       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.7377       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72933       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=   8113.617     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2684 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.381        .44635E-05** at limit **
   2  norm          .10000E-03    14.379       -.41256E-05** at limit **
   3  Prefactor     .10000E-03    23.402       -.26793E-06** at limit **
   4  Prefactor     .10000E-03    18.453        .49315E-05** at limit **
   5  norm          1.1599        32.384       -.76550E-05   -.29507E-03
   6  Prefactor     12.779        27.671       -.23974E-04   -.24598E-04
   7  Prefactor     21.594        17.224        .16314E-05    .26307E-04
   8  Prefactor     .10000E-03    23.108        .59718E-06** at limit **
   9  Prefactor     .10000E-03    10.141        .49080E-05** at limit **
  10  Prefactor     .10000E-03    11.443        .44045E-05** at limit **
  11  norm          .30078        .16798       -.40751E-07   -.98268E-03
  12  norm          2.4846        2.1499        .58895E-08   -.10310E-03
  13  norm          .10001E-03    3.3523        .24365E-06** at limit **
  14  norm          .10000E-03    13.341       -.31197E-05** at limit **
  15  norm          5.7753        3.7576       -.11529E-05   -.29177E-04
  16  Prefactor     .10000E-03    15.079       -.34942E-05** at limit **
  17  Prefactor     .10000E-03    17.944        .35118E-05** at limit **
  18  Prefactor     .10000E-03    22.368        .33444E-05** at limit **
  19  Prefactor     .10002E-03    1.7689       -.94416E-06** at limit **
  20  Prefactor     .10000E-03    13.458       -.35271E-05** at limit **
  21  norm          4.4478        3.6531        .80482E-06   -.27283E-04
  22  Prefactor     .10000E-03    24.941       -.84079E-05** at limit **
  23  Normalizat    1.7378        .21897        .20666E-05    .11421E-03
  24  Prefactor     .72935        .11455        .34046E-06    .35798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15992
  Prefactor  = 12.7791
  Prefactor  = 21.5939
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.300782
  norm       = 2.48457
  norm       = 0.000100013
  norm       = 0.0001
  norm       = 5.7753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 0.0001
  norm       = 4.44779
  Prefactor  = 0.0001
  Normalizat = 1.73781
  Prefactor  = 0.729346
 **********
 **   18 **HESSE 
 **********

 FCN=   8113.617     FROM HESSE     STATUS=OK           393 CALLS     3077 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    23.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1599        34.337        .41619E-03   -1.5493    
   6  Prefactor     12.779        27.621        .11199E-03   -1.4993    
   7  Prefactor     21.594        17.246        .86200E-04   -1.4778    
   8  Prefactor     .10000E-03    23.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .30078        .16475        .26256E-04   -1.5598    
  12  norm          2.4846        2.1476        .11590E-03   -1.5393    
  13  norm          .10001E-03    24.095        .32064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7753        3.7535        .13488E-03   -1.5227    
  16  Prefactor     .10000E-03    15.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    9.5511        .22948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.4478        3.6492        .15104E-03   -1.5286    
  22  Prefactor     .10000E-03    24.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.7378        .26314        .28417E-03   -.71298    
  24  Prefactor     .72935        .13730        .21949E-03   -1.0239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89724e-09
Minuit parameter uncertainties:
  1  1.92871e-05
  2  8.95981e-06
  3  1.34612e-05
  4  8.51629e-05
  5  12.6293
  6  27.6481
  7  17.2502
  8  0.000230344
  9  9.29173e-05
  10  1.56418e-05
  11  0.164746
  12  2.1477
  13  0.00110911
  14  3.82283e-07
  15  3.75365
  16  1.82413e-06
  17  7.59757e-06
  18  4.11398e-05
  19  0.000842267
  20  1.98416e-05
  21  3.64937
  22  1.8789e-05
  23  0.263349
  24  0.137368
Done.

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

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.000e-04  1.109e-03  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:  7.293e-01  1.374e-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.738e+00  2.633e-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.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/55766/likelihoodResults_342748801_343008001_4FGL_J1506.6+0813_daily_bin399.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) = 8113.61698844
delta logL = -0.000192736916688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8113.6167958
delta logL = -9.40599420574e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10370E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6650       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7376       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72946       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=   8113.617     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      255 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10064E-03    12.885        .58435E-01** at limit **
   2  alpha         1.8192        4.0301        .17805E-01   -.52704E-06
   3  Normalizat    1.7378        .11026E-01    .28417E-03   -.62227E-03
   4  Prefactor     .72934        .58617E-02    .21949E-03   -.10126E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100643
  alpha      = 1.81924
  Normalizat = 1.73782
  Prefactor  = 0.729343
 **********
 **   18 **HESSE 
 **********

 FCN=   8113.617     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      288 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10064E-03    13.853        .58418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8192        3.8961        .35609E-02   -.27579    
   3  Normalizat    1.7378        .11436E-01    .56834E-04   -.71298    
   4  Prefactor     .72934        .60793E-02    .43898E-04   -1.0239    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.89141e-10
Minuit parameter uncertainties:
  1  0.00596874
  2  450.348
  3  0.0114356
  4  0.00607934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/55766': 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) = 8113.6167951
delta logL = 6.01477040618e-07

Extracting fit parameters...

4FGL J1506.6+0813
   Spectrum: LogParabola
225         norm:  1.006e-04  5.969e-03  1.000e-04  1.000e+04 ( 1.000e-13)
226        alpha:  1.819e+00  4.503e+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:  7.293e-01  6.079e-03  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.738e+00  1.144e-02  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/55766/cmap_HighResolution_342748801_343008001_4FGL_J1506.6+0813_daily_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-05', job_status='DONE', photon_flux_upper_limit='2.85e-08', time_completed='2021-09-11 00:37:03.299197', job_id='55766', GAL2='0.73', fit_tolerance='1e-08', EG2='1.74', EG='1.74', time_epoch_completed='1631345823.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='6.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.60' WHERE bin_id='399' AND source_name='4FGL J1506.6+0813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:37:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 55766: <4FGL_J1506.6+0813_daily_bin399> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.6+0813_daily_bin399 226.674 8.2256 342748801 343008001 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 :                                   699.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             221.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            937 sec.

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

