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


Performing analysis on: 4FGL_J1509.8-2906_daily_bin1440
RA = 227.463, Dec = -29.1069
tmin = 612576001, tmax = 612835201
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='145950', job_status='RUN', time_executed='2021-09-11 05:17:56.370661', time_epoch_executed='1631362676.37' WHERE source_name='4FGL J1509.8-2906' and cadence='daily' and bin_id='1440'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/145950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/145950/ft1_4FGL_J1509.8-2906_daily_bin1440.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/145950/ft2_4FGL_J1509.8-2906_daily_bin1440.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/145950/ft1_4FGL_J1509.8-2906_daily_bin1440.fits outfile=/scratch/kocevski/145950/ft1_filteredMKT_4FGL_J1509.8-2906_daily_bin1440.fits ra=227.463 dec=-29.1069 rad=12.0 tmin=612576001.0 tmax=612835201.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 2.80
user 2.62
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/145950/ft1_filtered_4FGL_J1509.8-2906_daily_bin1440.fits" evtable="EVENTS" scfile=/scratch/kocevski/145950/ft2_4FGL_J1509.8-2906_daily_bin1440.fits sctable="SC_DATA" outfile=/scratch/kocevski/145950/ltcube_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.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/145950/ft2_4FGL_J1509.8-2906_daily_bin1440.fits
.....................!
real 12.31
user 11.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/145950/ft1_filtered_4FGL_J1509.8-2906_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/145950/ft2_4FGL_J1509.8-2906_daily_bin1440.fits sctable="SC_DATA" expcube=/scratch/kocevski/145950/ltcube_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.fits outfile=/scratch/kocevski/145950/expmap_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.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/145950/ltcube_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.fits
.....................!
real 190.20
user 185.66
sys 4.20

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/145950/ft1_filtered_4FGL_J1509.8-2906_daily_bin1440.fits scfile=/scratch/kocevski/145950/ft2_4FGL_J1509.8-2906_daily_bin1440.fits outfile=/scratch/kocevski/145950/cmap_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/145950/ft1_filtered_4FGL_J1509.8-2906_daily_bin1440.fits scfile=/scratch/kocevski/145950/ft2_4FGL_J1509.8-2906_daily_bin1440.fits outfile=/scratch/kocevski/145950/cmap_HighResolution_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.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.53
user 0.40
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/145950/ft1_filtered_4FGL_J1509.8-2906_daily_bin1440.fits evtable="EVENTS" scfile=/scratch/kocevski/145950/ft2_4FGL_J1509.8-2906_daily_bin1440.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/145950/Model_4FGL_J1509.8-2906_daily_bin1440.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/145950/ft1_filtered_4FGL_J1509.8-2906_daily_bin1440.fits.........................!
real 24.19
user 22.54
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/145950/ft1_filtered_4FGL_J1509.8-2906_daily_bin1440.fits', '/scratch/kocevski/145950/ft2_4FGL_J1509.8-2906_daily_bin1440.fits', expMap='/scratch/kocevski/145950/expmap_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.fits', expCube='/scratch/kocevski/145950/ltcube_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/145950/Model_4FGL_J1509.8-2906_daily_bin1440.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/145950/ft1_filtered_4FGL_J1509.8-2906_daily_bin1440.fits
Spacecraft file(s): /scratch/kocevski/145950/ft2_4FGL_J1509.8-2906_daily_bin1440.fits
Exposure map: /scratch/kocevski/145950/expmap_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.fits
Exposure cube: /scratch/kocevski/145950/ltcube_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/145950/Model_4FGL_J1509.8-2906_daily_bin1440.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) = 1156.73576374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    69.856       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    263.45       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.015       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.892       1.0000         .10000E-03   10000.    
    10 'norm      '    6.1395       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    58.922       1.0000         .10000E-03   10000.    
    13 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12490E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.951       1.0000         .10000E-03   10000.    
    17 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    859.77       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11451E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10467E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    72.504       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .73950       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93328       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1156.712     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     2134 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.3841        .14837E-05** at limit **
   2  Prefactor     69.858        1.1252        .85239E-06   -.19693E-03
   3  Prefactor     .10000E-03    50.951        .11317E-04** at limit **
   4  Prefactor     .10020E-03    79.353       -.67312E-04** at limit **
   5  Prefactor     263.45        1.0474        .27295E-06   -.38811E-03
   6  norm          .10000E-03    14.494       -.10376E-04** at limit **
   7  Prefactor     .12629E-03    180.20       -.29235E-03** at limit **
   8  Prefactor     35.012        1.3403       -.21631E-05    .55372E-03
   9  Prefactor     17.890        1.1625       -.20264E-05    .33912E-03
  10  norm          6.1398        4.2013        .14397E-05    .55566E-03
  11  Prefactor     2.9155        9.2509       -.70295E-04    .27701E-03
  12  Prefactor     58.912        2.4674       -.40276E-05    .81994E-03
  13  norm          .10000E-03    11.767       -.14403E-05** at limit **
  14  norm          .11772E-03    135.99        .25397E-03** at limit **
  15  norm          .10000E-03    16.509       -.58324E-05** at limit **
  16  Prefactor     37.934        4.0577       -.88620E-05    .14365E-02
  17  norm          .10000E-03    14.848        .16372E-04** at limit **
  18  Prefactor     859.77        1.0773        .20283E-06   -.10458E-02
  19  Prefactor     .26956E-02    138.86       -.32952E-03    .19403E-02
  20  norm          .12427E-03    85.666       -.59722E-04** at limit **
  21  Prefactor     72.504        1.0085        .21068E-06   -.49242E-04
  22  Normalizat    .73756        1.0102       -.36072E-06    .69952E-04
  23  Prefactor     .93390        .30795        .48021E-05    .27780E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 69.8578
  Prefactor  = 0.000100001
  Prefactor  = 0.000100202
  Prefactor  = 263.448
  norm       = 0.0001
  Prefactor  = 0.00012629
  Prefactor  = 35.0125
  Prefactor  = 17.8902
  norm       = 6.13976
  Prefactor  = 2.91546
  Prefactor  = 58.9122
  norm       = 0.000100001
  norm       = 0.000117723
  norm       = 0.000100001
  Prefactor  = 37.934
  norm       = 0.000100002
  Prefactor  = 859.77
  Prefactor  = 0.00269561
  norm       = 0.000124267
  Prefactor  = 72.5044
  Normalizat = 0.737561
  Prefactor  = 0.933901
 **********
 **   18 **HESSE 
 **********

 FCN=   1156.712     FROM HESSE     STATUS=OK           416 CALLS     2550 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.3784        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     69.858        96.012        .12007E-02   -1.4034    
   3  Prefactor     .10000E-03    50.962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10020E-03    79.275        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     263.45        251.30        .62438E-03   -1.2447    
   6  norm          .10000E-03    14.494        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12629E-03    300.03        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.012        86.484        .16931E-02   -1.4524    
   9  Prefactor     17.890        143.32        .23672E-02   -1.4862    
  10  norm          6.1398        4.8844        .40507E-02   -1.5212    
  11  Prefactor     2.9155        200.05        .58951E-02   -1.5366    
  12  Prefactor     58.912        83.376        .13066E-02   -1.4171    
  13  norm          .10000E-03    11.770        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11772E-03    155.78        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.6094        .33014E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.934        76.061        .16265E-02   -1.4475    
  17  norm          .10000E-03    14.847        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     859.77        968.73        .35672E-03   -.97561    
  19  Prefactor     .26956E-02    1256.4        .90712E-02   -1.5698    
  20  norm          .12427E-03    221.76        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     72.504        150.59        .11787E-02   -1.4003    
  22  Normalizat    .73756        1.0406        .14681       -1.0243    
  23  Prefactor     .93390        .29868        .45428E-01   -.94966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47964e-06
Minuit parameter uncertainties:
  1  5.05984e-05
  2  96.2255
  3  0.000515386
  4  0.00800409
  5  252.346
  6  0.000155781
  7  0.178526
  8  86.7964
  9  101.606
  10  4.88469
  11  48.4691
  12  83.5414
  13  0.000249528
  14  0.105363
  15  0.000216185
  16  76.2565
  17  0.000298749
  18  989.122
  19  3.692
  20  0.147266
  21  151.388
  22  1.07074
  23  0.299211
Done.

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

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  5.891e+01  8.354e+01  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:  9.339e-01  2.992e-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:  7.376e-01  1.071e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 227.463 -29.107
Photon Flux Upper Limit: 1.60e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/145950/likelihoodResults_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.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) = 1156.63208447
delta logL = 0.0795093528693

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1156.62431362
delta logL = 0.0872802039494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.350       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2699       1.0000          .0000       10.000    
     3 'Normalizat'    .79811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91600       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=   1156.624     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      252 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 18.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.340        90.871       -.11507E-04    .40634E-03
   2  Index         2.2699        .79587        .16958E-04    .28282E-03
   3  Normalizat    .79857        .94147       -.37218E-05   -.19632E-04
   4  Prefactor     .91590        .28266        .17470E-05   -.97689E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.3401
  Index      = 2.26988
  Normalizat = 0.798565
  Prefactor  = 0.915899
 **********
 **   18 **HESSE 
 **********

 FCN=   1156.624     FROM HESSE     STATUS=OK            29 CALLS      281 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.340        96.645        .45659E-04   -1.3947    
   2  Index         2.2699        .92499        .65584E-02   -.57761    
   3  Normalizat    .79857        1.0236        .62886E-03   -1.0012    
   4  Prefactor     .91590        .31063        .17218E-03   -.95588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17866e-09
Minuit parameter uncertainties:
  1  96.842
  2  0.932677
  3  1.05004
  4  0.311232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/145950': 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) = 1156.6243135
delta logL = 0.0872803190846

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  7.734e+01  9.684e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.270e+00  9.327e-01  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:  9.159e-01  3.112e-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:  7.986e-01  1.050e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.76
Ra Dec: 227.463 -29.107

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/145950/cmap_HighResolution_612576001_612835201_4FGL_J1509.8-2906_daily_bin1440.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-01', job_status='DONE', photon_flux_upper_limit='1.60e-06', time_completed='2021-09-11 05:24:45.383118', job_id='145950', GAL2='0.92', fit_tolerance='1e-08', EG2='0.80', EG='0.74', time_epoch_completed='1631363085.38', return_code2='0', ts='0.76', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='8.73e-02', ts2='0.94', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1440' AND source_name='4FGL J1509.8-2906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 05:24:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 145950: <4FGL_J1509.8-2906_daily_bin1440> in cluster <slac> Done

Job <4FGL_J1509.8-2906_daily_bin1440> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep 11 05:16:22 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 05:16:23 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:16:23 2021
Terminated at Sat Sep 11 05:24:46 2021
Results reported at Sat Sep 11 05:24:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1509.8-2906_daily_bin1440 227.463 -29.1069 612576001 612835201 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 :                                   400.03 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             331.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   502 sec.
    Turnaround time :                            504 sec.

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

