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


Performing analysis on: 4FGL_J1509.8-2906_daily_bin438
RA = 227.463, Dec = -29.1069
tmin = 352857601, tmax = 353116801
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='136580', job_status='RUN', time_executed='2021-09-11 04:41:25.504815', time_epoch_executed='1631360485.5' WHERE source_name='4FGL J1509.8-2906' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136580/ft1_4FGL_J1509.8-2906_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136580/ft2_4FGL_J1509.8-2906_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136580/ft1_4FGL_J1509.8-2906_daily_bin438.fits outfile=/scratch/kocevski/136580/ft1_filteredMKT_4FGL_J1509.8-2906_daily_bin438.fits ra=227.463 dec=-29.1069 rad=12.0 tmin=352857601.0 tmax=353116801.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.42
user 3.17
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136580/ft1_filtered_4FGL_J1509.8-2906_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/136580/ft2_4FGL_J1509.8-2906_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/136580/ltcube_352857601_353116801_4FGL_J1509.8-2906_daily_bin438.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/136580/ft2_4FGL_J1509.8-2906_daily_bin438.fits
.....................!
real 12.03
user 11.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136580/ft1_filtered_4FGL_J1509.8-2906_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/136580/ft2_4FGL_J1509.8-2906_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/136580/ltcube_352857601_353116801_4FGL_J1509.8-2906_daily_bin438.fits outfile=/scratch/kocevski/136580/expmap_352857601_353116801_4FGL_J1509.8-2906_daily_bin438.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/136580/ltcube_352857601_353116801_4FGL_J1509.8-2906_daily_bin438.fits
.....................!
real 190.57
user 184.97
sys 5.23

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/136580/ft1_filtered_4FGL_J1509.8-2906_daily_bin438.fits scfile=/scratch/kocevski/136580/ft2_4FGL_J1509.8-2906_daily_bin438.fits outfile=/scratch/kocevski/136580/cmap_352857601_353116801_4FGL_J1509.8-2906_daily_bin438.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136580/ft1_filtered_4FGL_J1509.8-2906_daily_bin438.fits scfile=/scratch/kocevski/136580/ft2_4FGL_J1509.8-2906_daily_bin438.fits outfile=/scratch/kocevski/136580/cmap_HighResolution_352857601_353116801_4FGL_J1509.8-2906_daily_bin438.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136580/ft1_filtered_4FGL_J1509.8-2906_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/136580/ft2_4FGL_J1509.8-2906_daily_bin438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136580/Model_4FGL_J1509.8-2906_daily_bin438.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/136580/ft1_filtered_4FGL_J1509.8-2906_daily_bin438.fits.....................!
real 53.81
user 52.51
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.166       1.0000         .10000E-03   10000.    
     6 'norm      '    21.699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11232E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14767E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.4916       1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    16.757       1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4476       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .13007E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7103       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .61327       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0064       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=   4769.384     FROM MIGRAD    STATUS=CONVERGED    886 CALLS     2894 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.6672        .87040E-03** at limit **
   2  Prefactor     .10000E-03    11.967        .18142E-02** at limit **
   3  Prefactor     .10000E-03    11.655        .18142E-02** at limit **
   4  Prefactor     .10000E-03    7.2262        .18130E-02** at limit **
   5  Prefactor     39.218        61.414        .64047E-04   -.26271E-04
   6  norm          21.688        19.715        .85987E-04    .19832E-05
   7  Prefactor     .10000E-03    56.515        .18142E-02** at limit **
   8  Prefactor     .10000E-03    36.375        .18142E-02** at limit **
   9  Prefactor     .10000E-03    49.032        .18142E-02** at limit **
  10  norm          .10000E-03    .55591        .98668E-04** at limit **
  11  Prefactor     .10000E-03    4.8401        .14829E-02** at limit **
  12  Prefactor     5.4927        11.223        .85729E-03   -.44027E-05
  13  norm          .10000E-03    4.3359        .14004E-02** at limit **
  14  norm          16.752        27.409        .97842E-04    .11968E-04
  15  norm          .10000E-03    .37248        .74944E-03** at limit **
  16  Prefactor     .10000E-03    3.5042        .12611E-02** at limit **
  17  norm          2.4501        2.9051        .12485E-03    .33417E-04
  18  Prefactor     .10000E-03    38.133        .18142E-02** at limit **
  19  Prefactor     .10000E-03    15.111        .18142E-02** at limit **
  20  norm          .10000E-03    13.393        .82803E-01** at limit **
  21  Prefactor     1.7165        2.5012        .12905E-03    .90037E-04
  22  Normalizat    .61423        .39532        .57248E-03   -.25518E-04
  23  Prefactor     1.0062        .11261        .12852E-03   -.18169E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.2182
  norm       = 21.6876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.49269
  norm       = 0.0001
  norm       = 16.7517
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.45006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 1.71648
  Normalizat = 0.614233
  Prefactor  = 1.00625
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.384     FROM HESSE     STATUS=OK           358 CALLS     3252 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6672        .17408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.967        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.655        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.2263        .36260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.218        61.414        .12809E-04   -1.4455    
   6  norm          21.688        19.717        .34395E-05   -1.4776    
   7  Prefactor     .10000E-03    56.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    49.040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .55591        .19734E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8402        .29659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.4927        11.220        .34292E-04   -1.5239    
  13  norm          .10000E-03    4.3364        .28008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          16.752        27.406        .39137E-05   -1.4889    
  15  norm          .10000E-03    .37264        .14989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5044        .25221E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4501        2.9050        .49942E-05   -1.5395    
  18  Prefactor     .10000E-03    38.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    13.042        .84883E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.7165        2.5012        .51618E-05   -1.5446    
  22  Normalizat    .61423        .39528        .22899E-04   -1.0738    
  23  Prefactor     1.0062        .11260        .25704E-04   -.92522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54815e-11
Minuit parameter uncertainties:
  1  3.04864e-06
  2  2.77989e-06
  3  1.21561e-05
  4  6.43446e-06
  5  61.5128
  6  19.7229
  7  5.51944e-05
  8  6.42429e-05
  9  1.56968e-05
  10  2.12491e-06
  11  7.11749e-06
  12  11.2242
  13  7.37121e-06
  14  27.4264
  15  6.49732e-07
  16  2.73481e-06
  17  2.9052
  18  3.13412e-05
  19  4.53924e-06
  20  0.000282985
  21  2.50131
  22  0.397122
  23  0.112631
Done.

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

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  5.493e+00  1.122e+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:  1.006e+00  1.126e-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:  6.142e-01  3.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/136580/likelihoodResults_352857601_353116801_4FGL_J1509.8-2906_daily_bin438.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) = 4769.25140474
delta logL = 0.132865738555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4769.24174678
delta logL = 0.142523700885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.553       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2032       1.0000          .0000       10.000    
     3 'Normalizat'    .62242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0025       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=   4769.242     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      250 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.553        957.22        .30835E-02    .16854E-03
   2  Index         2.2030        5.0503        .24738        .65632E-05
   3  Normalizat    .62229        .16832        .12824        .30513E-04
   4  Prefactor     1.0025        .57102E-01    .29123E-01   -.72329E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5527
  Index      = 2.20304
  Normalizat = 0.622288
  Prefactor  = 1.0025
 **********
 **   18 **HESSE 
 **********

 FCN=   4769.242     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.553        16.255        .12334E-03   -1.5058    
   2  Index         2.2030        .78521        .10175E-01   -.59365    
   3  Normalizat    .62229        .38967        .56890E-03   -1.0705    
   4  Prefactor     1.0025        .11161        .12870E-03   -.92646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63376e-11
Minuit parameter uncertainties:
  1  16.2616
  2  0.789983
  3  0.391409
  4  0.111632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136580': 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) = 4769.2417467
delta logL = 0.142523775845

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  1.055e+01  1.626e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.203e+00  7.900e-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:  1.003e+00  1.116e-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:  6.223e-01  3.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/136580/cmap_HighResolution_352857601_353116801_4FGL_J1509.8-2906_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', job_status='DONE', photon_flux_upper_limit='2.07e-07', time_completed='2021-09-11 04:53:29.213395', job_id='136580', GAL2='1.00', fit_tolerance='1e-08', EG2='0.62', EG='0.61', time_epoch_completed='1631361209.21', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.43e-01', ts2='0.57', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='438' AND source_name='4FGL J1509.8-2906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 04:53:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 136580: <4FGL_J1509.8-2906_daily_bin438> in cluster <slac> Done

Job <4FGL_J1509.8-2906_daily_bin438> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 04:41:13 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 04:41:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 04:41:15 2021
Terminated at Sat Sep 11 04:53:29 2021
Results reported at Sat Sep 11 04:53:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1509.8-2906_daily_bin438 227.463 -29.1069 352857601 353116801 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 :                                   719.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             356.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

