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


Performing analysis on: 4FGL_J1509.8-2906_daily_bin1253
RA = 227.463, Dec = -29.1069
tmin = 564105601, tmax = 564364801
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='144498', job_status='RUN', time_executed='2021-09-11 05:12:03.315860', time_epoch_executed='1631362323.32' WHERE source_name='4FGL J1509.8-2906' and cadence='daily' and bin_id='1253'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/144498

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/144498/ft1_4FGL_J1509.8-2906_daily_bin1253.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/144498/ft2_4FGL_J1509.8-2906_daily_bin1253.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/144498/ft1_4FGL_J1509.8-2906_daily_bin1253.fits outfile=/scratch/kocevski/144498/ft1_filteredMKT_4FGL_J1509.8-2906_daily_bin1253.fits ra=227.463 dec=-29.1069 rad=12.0 tmin=564105601.0 tmax=564364801.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.25
user 3.04
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/144498/ft2_4FGL_J1509.8-2906_daily_bin1253.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/144498/ft2_4FGL_J1509.8-2906_daily_bin1253.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/144498/ft1_filteredMKT_4FGL_J1509.8-2906_daily_bin1253.fits evtable="EVENTS" outfile="/scratch/kocevski/144498/ft1_filtered_4FGL_J1509.8-2906_daily_bin1253.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/144498/ft1_filtered_4FGL_J1509.8-2906_daily_bin1253.fits" evtable="EVENTS" scfile=/scratch/kocevski/144498/ft2_4FGL_J1509.8-2906_daily_bin1253.fits sctable="SC_DATA" outfile=/scratch/kocevski/144498/ltcube_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.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/144498/ft2_4FGL_J1509.8-2906_daily_bin1253.fits
.....................!
real 12.14
user 11.75
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/144498/ft1_filtered_4FGL_J1509.8-2906_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/144498/ft2_4FGL_J1509.8-2906_daily_bin1253.fits sctable="SC_DATA" expcube=/scratch/kocevski/144498/ltcube_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.fits outfile=/scratch/kocevski/144498/expmap_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.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/144498/ltcube_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.fits
.....................!
real 191.02
user 185.64
sys 5.01

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
Extended source FHES J1626.9-2431 in ROI with RadialGaussian spatial model.
Added 228 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1509.8-2906 @ 227.463 -29.1069

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/144498/ft1_filtered_4FGL_J1509.8-2906_daily_bin1253.fits scfile=/scratch/kocevski/144498/ft2_4FGL_J1509.8-2906_daily_bin1253.fits outfile=/scratch/kocevski/144498/cmap_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.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=227.463 yref=-29.1069 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/144498/ft1_filtered_4FGL_J1509.8-2906_daily_bin1253.fits scfile=/scratch/kocevski/144498/ft2_4FGL_J1509.8-2906_daily_bin1253.fits outfile=/scratch/kocevski/144498/cmap_HighResolution_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.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=227.463 yref=-29.1069 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/144498/ft1_filtered_4FGL_J1509.8-2906_daily_bin1253.fits evtable="EVENTS" scfile=/scratch/kocevski/144498/ft2_4FGL_J1509.8-2906_daily_bin1253.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/144498/Model_4FGL_J1509.8-2906_daily_bin1253.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 FHES J1626.9-2431
adding source GAL_V02
Working on...
/scratch/kocevski/144498/ft1_filtered_4FGL_J1509.8-2906_daily_bin1253.fits..............!
real 15.57
user 14.29
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/144498/ft1_filtered_4FGL_J1509.8-2906_daily_bin1253.fits', '/scratch/kocevski/144498/ft2_4FGL_J1509.8-2906_daily_bin1253.fits', expMap='/scratch/kocevski/144498/expmap_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.fits', expCube='/scratch/kocevski/144498/ltcube_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/144498/Model_4FGL_J1509.8-2906_daily_bin1253.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1509.8-2906'

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  3.269e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.711e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.617e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/144498/ft1_filtered_4FGL_J1509.8-2906_daily_bin1253.fits
Spacecraft file(s): /scratch/kocevski/144498/ft2_4FGL_J1509.8-2906_daily_bin1253.fits
Exposure map: /scratch/kocevski/144498/expmap_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.fits
Exposure cube: /scratch/kocevski/144498/ltcube_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/144498/Model_4FGL_J1509.8-2906_daily_bin1253.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) = 183.148473343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10187E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48861E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12455E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45280E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11497E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1694.8       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9997.4       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9991.3       1.0000         .10000E-03   10000.    
    10 'norm      '    10000.       1.0000         .10000E-03   10000.    
    11 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    13 'norm      '    10000.       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0152       1.0000         .10000E-03   10000.    
    15 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11242E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.1141       1.0000         .10000E-03   10000.    
    19 'Prefactor '    351.49       1.0000         .10000E-03   10000.    
    20 'norm      '    .26328E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   180.1834     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2982 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    183.18       -.43621E-05** at limit **
   2  Prefactor     .10000E-03    934.93        .27915E-04** at limit **
   3  Prefactor     .10000E-03    1154.8       -.62700E-06** at limit **
   4  Prefactor     .10000E-03    8049.2        .24967E-05** at limit **
   5  Prefactor     .10000E-03    616.74       -.55196E-05** at limit **
   6  norm         10000.0        7415.9        .65573E-04** at limit **
   7  Prefactor    10000.0        9015.4       -.75998E-04** at limit **
   8  Prefactor     .10000E-03    116.68       -.14934E-05** at limit **
   9  Prefactor    10000.0        6889.7        .16692E-04** at limit **
  10  norm         10000.0        7362.6       -.11808E-05** at limit **
  11  Prefactor    10000.0        6890.9       -.17172E-04** at limit **
  12  Prefactor    10000.0        6288.5       -.15624E-04** at limit **
  13  norm         10000.0        9959.0       -.64389E-05** at limit **
  14  norm          .10131E-03    7981.0        .25838E-05** at limit **
  15  norm          .10000E-03    17.953       -.36285E-06** at limit **
  16  Prefactor     .10000E-03    687.25       -.78489E-05** at limit **
  17  norm          .10000E-03    530.98        .10651E-05** at limit **
  18  Prefactor     .10009E-03    9165.9        .24485E-04** at limit **
  19  Prefactor     351.52        289.56        .19432E-05    .61659E-05
  20  norm          .10000E-03    449.07       -.10065E-04** at limit **
  21  Prefactor     .10000E-03    19.846        .19182E-05** at limit **
  22  Normalizat    .10000E-01    1.3309       -.79621E-06** at limit **
  23  Prefactor     .81137        .30062       -.67786E-06   -.75955E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.000101313
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100094
  Prefactor  = 351.523
  norm       = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.811369
 **********
 **   18 **HESSE 
 **********

 FCN=   180.1834     FROM HESSE     STATUS=OK           354 CALLS     3336 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    183.45        .17838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    976.11        .21169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1151.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8045.8        .19336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    751.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        7443.1        .53309E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        9111.2        .12634E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    121.59        .14507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor    10000.0        6866.4        .67991E-03    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm         10000.0        7354.5        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        7183.1        .18806E-02    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        9516.0        .21024E-02    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm         10000.0        9958.9        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10131E-03    7957.0        .25932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    18.189        .55895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    703.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    530.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    9197.0        .99373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     351.52        290.11        .10860E-03   -1.1936    
  20  norm          .10000E-03    451.14        .21444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.937        .58611E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    1.3310        .93155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .81137        .30099        .14078E-03   -.99311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.10143e-09
Minuit parameter uncertainties:
  1  0.000634475
  2  0.00404975
  3  0.000788123
  4  0.00466117
  5  0.00300809
  6  0.402422
  7  5.03077
  8  7.50244e-05
  9  1.95652
  10  0.00199789
  11  9.46045
  12  3.38383
  13  0.0939218
  14  0.518907
  15  5.07157e-06
  16  0.0015
  17  9.45561e-05
  18  0.121571
  19  291.328
  20  0.00238111
  21  6.91864e-05
  22  1.29372e-06
  23  0.301601
Done.

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

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  1.000e+04  3.384e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.711e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.617e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
777    Prefactor:  8.114e-01  3.016e-01  0.000e+00  1.000e+01 ( 1.000e+00)
778        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
779        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
772   Normalization:  1.000e-02  1.294e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 1.32850402679e-07

TS (Fixed Index): 0.30
Ra Dec: 227.463 -29.107
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.88e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/144498/likelihoodResults_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.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) = 171.646899242
delta logL = 8.53653519896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 171.642768057
delta logL = 8.54066638401

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   171.6428     FROM MIGRAD    STATUS=CONVERGED     11 CALLS       50 TOTAL
                     EDM=   .70E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        .34070        .10760    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   171.6428     FROM HESSE     STATUS=OK             5 CALLS       55 TOTAL
                     EDM=   .70E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .34037        .23786E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.01984e-18
Minuit parameter uncertainties:
  1  1.82331e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/144498': 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) = 171.642768057
delta logL = 8.54066638401

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12) fixed
324        Index:  1.000e+01  1.823e-09  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  5.617e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
777    Prefactor:  8.114e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
778        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
779        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
772   Normalization:  1.029e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 17.38
Ra Dec: 227.463 -29.107
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 3.59e+00 +/- 1.02e-08
Energy Flux (Free Index): 4.01e+02 +/- 1.14e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/144498/cmap_HighResolution_564105601_564364801_4FGL_J1509.8-2906_daily_bin1253.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.88e+04', comment='SUCCESS', energy_flux2='4.01e+02', dlogl='8.54e+00', photon_flux2='3.59e+00', job_status='DONE', time_completed='2021-09-11 05:17:54.565217', photon_index_error2='0.00', photon_index2='10.00', ts='0.30', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='1.14e-06', EG='0.01', time_epoch_completed='1631362674.57', return_code='0', job_id='144498', GAL2='0.81', EG2='0.01', return_code2='0', photon_flux_error2='1.02e-08', ts2='17.38', photon_index='2.71' WHERE bin_id='1253' AND source_name='4FGL J1509.8-2906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 05:17:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 144498: <4FGL_J1509.8-2906_daily_bin1253> in cluster <slac> Done

Job <4FGL_J1509.8-2906_daily_bin1253> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 11 05:11:03 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 05:11:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 05:11:05 2021
Terminated at Sat Sep 11 05:17:55 2021
Results reported at Sat Sep 11 05:17:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1509.8-2906_daily_bin1253 227.463 -29.1069 564105601 564364801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1509.8-2906 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   347.41 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             295.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   433 sec.
    Turnaround time :                            412 sec.

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

