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


Performing analysis on: 4FGL_J1509.8-2906_daily_bin1565
RA = 227.463, Dec = -29.1069
tmin = 644976001, tmax = 645235201
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='147190', job_status='RUN', time_executed='2021-09-11 05:21:58.103161', time_epoch_executed='1631362918.1' WHERE source_name='4FGL J1509.8-2906' and cadence='daily' and bin_id='1565'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147190

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147190/ft1_4FGL_J1509.8-2906_daily_bin1565.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147190/ft2_4FGL_J1509.8-2906_daily_bin1565.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147190/ft1_4FGL_J1509.8-2906_daily_bin1565.fits outfile=/scratch/kocevski/147190/ft1_filteredMKT_4FGL_J1509.8-2906_daily_bin1565.fits ra=227.463 dec=-29.1069 rad=12.0 tmin=644976001.0 tmax=645235201.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.95
user 2.75
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147190/ft2_4FGL_J1509.8-2906_daily_bin1565.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/147190/ft1_filteredMKT_4FGL_J1509.8-2906_daily_bin1565.fits evtable="EVENTS" outfile="/scratch/kocevski/147190/ft1_filtered_4FGL_J1509.8-2906_daily_bin1565.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.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147190/ft1_filtered_4FGL_J1509.8-2906_daily_bin1565.fits" evtable="EVENTS" scfile=/scratch/kocevski/147190/ft2_4FGL_J1509.8-2906_daily_bin1565.fits sctable="SC_DATA" outfile=/scratch/kocevski/147190/ltcube_644976001_645235201_4FGL_J1509.8-2906_daily_bin1565.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/147190/ft2_4FGL_J1509.8-2906_daily_bin1565.fits
.....................!
real 12.82
user 12.43
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147190/ft1_filtered_4FGL_J1509.8-2906_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/147190/ft2_4FGL_J1509.8-2906_daily_bin1565.fits sctable="SC_DATA" expcube=/scratch/kocevski/147190/ltcube_644976001_645235201_4FGL_J1509.8-2906_daily_bin1565.fits outfile=/scratch/kocevski/147190/expmap_644976001_645235201_4FGL_J1509.8-2906_daily_bin1565.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/147190/ltcube_644976001_645235201_4FGL_J1509.8-2906_daily_bin1565.fits
.....................!
real 190.02
user 185.55
sys 4.09

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/147190/ft1_filtered_4FGL_J1509.8-2906_daily_bin1565.fits scfile=/scratch/kocevski/147190/ft2_4FGL_J1509.8-2906_daily_bin1565.fits outfile=/scratch/kocevski/147190/cmap_644976001_645235201_4FGL_J1509.8-2906_daily_bin1565.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/147190/ft1_filtered_4FGL_J1509.8-2906_daily_bin1565.fits scfile=/scratch/kocevski/147190/ft2_4FGL_J1509.8-2906_daily_bin1565.fits outfile=/scratch/kocevski/147190/cmap_HighResolution_644976001_645235201_4FGL_J1509.8-2906_daily_bin1565.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147190/ft1_filtered_4FGL_J1509.8-2906_daily_bin1565.fits evtable="EVENTS" scfile=/scratch/kocevski/147190/ft2_4FGL_J1509.8-2906_daily_bin1565.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147190/Model_4FGL_J1509.8-2906_daily_bin1565.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/147190/ft1_filtered_4FGL_J1509.8-2906_daily_bin1565.fits.....................!
real 42.37
user 40.98
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.929       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .57089E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11793E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .89175E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16103       1.0000         .10000E-03   10000.    
     6 'norm      '    53.766       1.0000         .10000E-03   10000.    
     7 'Prefactor '    637.89       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57183E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .39902E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    62.196       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .91479E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    21.269       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .60079E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10523E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.778       1.0000         .10000E-03   10000.    
    19 'Prefactor '    151.01       1.0000         .10000E-03   10000.    
    20 'norm      '    .13412E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25982E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1503       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=   3411.208     FROM MIGRAD    STATUS=CONVERGED    261 CALLS     1924 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.260        12.620        .28296E-05   -.28496E-04
   2  Prefactor     .10000E-03    50.187       -.76641E-06** at limit **
   3  Prefactor     .10000E-03    29.251       -.44185E-06** at limit **
   4  Prefactor     .10000E-03    34.914       -.11533E-06** at limit **
   5  Prefactor     .10000E-03    109.46       -.33141E-05** at limit **
   6  norm          54.772        30.159       -.37178E-06   -.13700E-04
   7  Prefactor     673.16        430.37        .15063E-04    .15890E-04
   8  Prefactor     .10000E-03    41.442       -.11540E-05** at limit **
   9  Prefactor     .10000E-03    314.27       -.81638E-05** at limit **
  10  norm          62.110        6.5648       -.34957E-07   -.58737E-04
  11  Prefactor     .10000E-03    16.560        .62949E-06** at limit **
  12  Prefactor     .10000E-03    15.251       -.77976E-07** at limit **
  13  norm          .10000E-03    5.1892        .40450E-07** at limit **
  14  norm          26.794        98.659        .56885E-05    .10332E-05
  15  norm          .10000E-03    .97798        .12922E-08** at limit **
  16  Prefactor     .10000E-03    11.558       -.30289E-06** at limit **
  17  norm          .10000E-03    5.4484        .65233E-07** at limit **
  18  Prefactor     125.77        277.55        .46402E-05    .47095E-05
  19  Prefactor     164.84        200.79       -.18430E-04   -.63510E-04
  20  norm          .10000E-03    73.906        .17239E-05** at limit **
  21  Prefactor     .10000E-03    9.6745        .28979E-06** at limit **
  22  Normalizat    .10000E-01    1.3749        .47974E-05** at limit **
  23  Prefactor     1.1389        .11734        .13108E-04   -.97504E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 54.7718
  Prefactor  = 673.158
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 62.1099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 26.7943
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 125.773
  Prefactor  = 164.842
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.1389
 **********
 **   18 **HESSE 
 **********

 FCN=   3411.208     FROM HESSE     STATUS=OK           412 CALLS     2336 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.260        12.741        .27850E-02   -1.4980    
   2  Prefactor     .10000E-03    49.905        .95069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.023        .10325E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.754        .91427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    108.95        .97983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          54.772        30.140        .13675E-02   -1.4226    
   7  Prefactor     673.16        433.15        .40920E-03   -1.0459    
   8  Prefactor     .10000E-03    41.193        .10545E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    310.60        .92207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          62.110        6.5658        .12720E-02   -1.4130    
  11  Prefactor     .10000E-03    16.476        .10410E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.099        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.1403        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          26.794        98.656        .21713E-02   -1.4672    
  15  norm          .10000E-03    .96955        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.500        .10532E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.4144        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     125.77        275.29        .18355E-02   -1.3460    
  19  Prefactor     164.84        201.07        .81997E-03   -1.3133    
  20  norm          .10000E-03    73.809        .90899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.6583        .99896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .10000E-01    .61276        .36266       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1389        .14855        .35929E-01   -.88233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61072e-09
Minuit parameter uncertainties:
  1  12.7436
  2  4.79622e-06
  3  4.71807e-06
  4  3.06252e-06
  5  4.3797e-05
  6  30.1488
  7  435.335
  8  4.31917e-05
  9  7.83537e-05
  10  6.56587
  11  3.66981e-06
  12  8.41013e-07
  13  3.97375e-07
  14  99.2653
  15  2.87117e-08
  16  7.3191e-06
  17  9.44728e-07
  18  278.174
  19  201.911
  20  1.3879e-05
  21  3.66945e-06
  22  1.04286e-05
  23  0.148608
Done.

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

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  8.410e-07  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:  1.139e+00  1.486e-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.043e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 227.463 -29.107
Photon Flux Upper Limit: 3.87e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147190/likelihoodResults_644976001_645235201_4FGL_J1509.8-2906_daily_bin1565.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) = 3411.20786475
delta logL = -0.000318062970109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3411.2075466
delta logL = 8.25602910481e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6851       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1389       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3411.117     FROM MIGRAD    STATUS=CONVERGED    160 CALLS      328 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3284        723.95        .18142E-01    .23087E-03
   2  Index         1.2547        9.0320        .20000        .57302E-04
   3  Normalizat    .10000E-01    .34444        .20245E-01** at limit **
   4  Prefactor     1.1338        .51749E-01    .18739E-03   -.24904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.32838
  Index      = 1.25471
  Normalizat = 0.01
  Prefactor  = 1.13382
 **********
 **   18 **HESSE 
 **********

 FCN=   3411.117     FROM HESSE     STATUS=OK            29 CALLS      357 TOTAL
                     EDM=   .87E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3284        16.870        .32482E-03   -1.5292    
   2  Index         1.2547        1.1370        .11261E-01   -2.2950    
   3  Normalizat    .10000E-01    1.4943        .40489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1338        .10499        .74957E-05   -.88393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72357e-12
Minuit parameter uncertainties:
  1  16.8884
  2  1.16056
  3  5.85525e-08
  4  0.105007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147190': 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) = 3411.1168202
delta logL = 0.0907264821722

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  4.328e+00  1.689e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.255e+00  1.161e+00  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:  1.134e+00  1.050e-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  5.855e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/147190/cmap_HighResolution_644976001_645235201_4FGL_J1509.8-2906_daily_bin1565.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-02', job_status='DONE', photon_flux_upper_limit='3.87e-07', time_completed='2021-09-11 05:31:18.679593', job_id='147190', GAL2='1.13', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631363478.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='9.07e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1565' AND source_name='4FGL J1509.8-2906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 05:31:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 147190: <4FGL_J1509.8-2906_daily_bin1565> in cluster <slac> Done

Job <4FGL_J1509.8-2906_daily_bin1565> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 05:21:07 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 05:21:09 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:21:09 2021
Terminated at Sat Sep 11 05:31:19 2021
Results reported at Sat Sep 11 05:31:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1509.8-2906_daily_bin1565 227.463 -29.1069 644976001 645235201 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 :                                   554.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            612 sec.

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

