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


Performing analysis on: 4FGL_J1509.8-2906_daily_bin1277
RA = 227.463, Dec = -29.1069
tmin = 570326401, tmax = 570585601
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='144532', job_status='RUN', time_executed='2021-09-11 05:12:35.087383', time_epoch_executed='1631362355.09' WHERE source_name='4FGL J1509.8-2906' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/144532

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/144532/ft1_4FGL_J1509.8-2906_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/144532/ft2_4FGL_J1509.8-2906_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/144532/ft1_4FGL_J1509.8-2906_daily_bin1277.fits outfile=/scratch/kocevski/144532/ft1_filteredMKT_4FGL_J1509.8-2906_daily_bin1277.fits ra=227.463 dec=-29.1069 rad=12.0 tmin=570326401.0 tmax=570585601.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.48
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/144532/ft1_filtered_4FGL_J1509.8-2906_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/144532/ft2_4FGL_J1509.8-2906_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/144532/ltcube_570326401_570585601_4FGL_J1509.8-2906_daily_bin1277.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/144532/ft2_4FGL_J1509.8-2906_daily_bin1277.fits
.....................!
real 12.02
user 11.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/144532/ft1_filtered_4FGL_J1509.8-2906_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/144532/ft2_4FGL_J1509.8-2906_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/144532/ltcube_570326401_570585601_4FGL_J1509.8-2906_daily_bin1277.fits outfile=/scratch/kocevski/144532/expmap_570326401_570585601_4FGL_J1509.8-2906_daily_bin1277.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/144532/ltcube_570326401_570585601_4FGL_J1509.8-2906_daily_bin1277.fits
.....................!
real 191.21
user 185.73
sys 5.05

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/144532/ft1_filtered_4FGL_J1509.8-2906_daily_bin1277.fits scfile=/scratch/kocevski/144532/ft2_4FGL_J1509.8-2906_daily_bin1277.fits outfile=/scratch/kocevski/144532/cmap_570326401_570585601_4FGL_J1509.8-2906_daily_bin1277.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/144532/ft1_filtered_4FGL_J1509.8-2906_daily_bin1277.fits scfile=/scratch/kocevski/144532/ft2_4FGL_J1509.8-2906_daily_bin1277.fits outfile=/scratch/kocevski/144532/cmap_HighResolution_570326401_570585601_4FGL_J1509.8-2906_daily_bin1277.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.56
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/144532/ft1_filtered_4FGL_J1509.8-2906_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/144532/ft2_4FGL_J1509.8-2906_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/144532/Model_4FGL_J1509.8-2906_daily_bin1277.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/144532/ft1_filtered_4FGL_J1509.8-2906_daily_bin1277.fits.....................!
real 77.75
user 76.22
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3985       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30564E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1090       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.402       1.0000         .10000E-03   10000.    
     6 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23187E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22826E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20492E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.2527       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.286       1.0000         .10000E-03   10000.    
    13 'norm      '    6.1792       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4231       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.234       1.0000         .10000E-03   10000.    
    17 'norm      '    4.0143       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12432E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.237       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7785       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3629       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89519       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=   7364.632     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2596 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3734        8.4937        .73098E-06    .30018E-03
   2  Prefactor     .10073E-03    56.522       -.29941E-05** at limit **
   3  Prefactor     .10000E-03    24.005        .36673E-06** at limit **
   4  Prefactor     8.1128        29.880        .46669E-06    .34233E-04
   5  Prefactor     24.440        52.987        .31377E-05    .12111E-03
   6  norm          .10000E-03    10.909       -.21726E-08** at limit **
   7  Prefactor     .10000E-03    65.006        .58536E-06** at limit **
   8  Prefactor     .10034E-03    8.5798       -.15928E-05** at limit **
   9  Prefactor     .10002E-03    230.69        .93402E-05** at limit **
  10  norm          .10000E-03    .49515        .51363E-08** at limit **
  11  Prefactor     8.2555        9.3889       -.27201E-06   -.13378E-03
  12  Prefactor     28.284        19.401        .18345E-07    .52828E-04
  13  norm          6.1858        10.284        .26600E-06   -.27573E-04
  14  norm          .10000E-03    20.781       -.36234E-06** at limit **
  15  norm          1.4230        .87932        .61318E-06   -.11193E-03
  16  Prefactor     10.229        9.0451        .44375E-06    .29276E-03
  17  norm          4.0152        4.4399       -.12757E-06   -.78207E-04
  18  Prefactor     .10001E-03    258.47       -.45987E-05** at limit **
  19  Prefactor     34.231        28.653        .22939E-06    .20683E-04
  20  norm          1.7809        22.042        .14097E-05   -.10176E-04
  21  Prefactor     .10000E-03    1.4228        .14556E-07** at limit **
  22  Normalizat    1.3631        .33519       -.20967E-05    .13729E-03
  23  Prefactor     .89518        .86414E-01    .34374E-07    .18233E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.37345
  Prefactor  = 0.000100727
  Prefactor  = 0.0001
  Prefactor  = 8.11282
  Prefactor  = 24.4404
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100337
  Prefactor  = 0.000100019
  norm       = 0.0001
  Prefactor  = 8.25547
  Prefactor  = 28.2839
  norm       = 6.18584
  norm       = 0.0001
  norm       = 1.42303
  Prefactor  = 10.2295
  norm       = 4.01524
  Prefactor  = 0.000100005
  Prefactor  = 34.2308
  norm       = 1.78095
  Prefactor  = 0.0001
  Normalizat = 1.36313
  Prefactor  = 0.895179
 **********
 **   18 **HESSE 
 **********

 FCN=   7364.632     FROM HESSE     STATUS=OK           380 CALLS     2976 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3734        8.4976        .19203E-03   -1.5290    
   2  Prefactor     .10073E-03    54.139        .18153       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.1128        29.813        .14079E-03   -1.5138    
   5  Prefactor     24.440        53.775        .81091E-04   -1.4719    
   6  norm          .10000E-03    10.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    65.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10034E-03    58.786        .45519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    243.16        .40414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .50265        .58936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.2555        9.4146        .13956E-03   -1.5133    
  12  Prefactor     28.284        19.394        .75329E-04   -1.4644    
  13  norm          6.1858        10.291        .16150E-03   -1.5210    
  14  norm          .10000E-03    20.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4230        .89181        .30517E-03   -1.5469    
  16  Prefactor     10.229        9.1488        .12525E-03   -1.5068    
  17  norm          4.0152        4.4331        .17740E-03   -1.5307    
  18  Prefactor     .10001E-03    261.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     34.231        28.606        .68486E-04   -1.4537    
  20  norm          1.7809        22.271        .31385E-03   -1.5441    
  21  Prefactor     .10000E-03    2.6678        .19785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3631        .37747        .47722E-03   -.81701    
  23  Prefactor     .89518        .10013        .15410E-03   -.96310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03777e-09
Minuit parameter uncertainties:
  1  8.49996
  2  0.012558
  3  7.46487e-05
  4  29.8675
  5  53.8822
  6  6.9962e-07
  7  0.000180049
  8  0.00890563
  9  0.00433455
  10  3.77499e-07
  11  9.41631
  12  19.3984
  13  10.2935
  14  5.23409e-05
  15  0.89182
  16  9.15004
  17  4.4335
  18  0.00230924
  19  28.6177
  20  12.6014
  21  9.96158e-06
  22  0.378244
  23  0.100153
Done.

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

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  2.828e+01  1.940e+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:  8.952e-01  1.002e-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.363e+00  3.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 227.463 -29.107
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 1.78e-07 +/- 1.22e-07
Energy Flux (Fixed Index): 4.25e-05 +/- 2.92e-05

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

Saving results to:
/scratch/kocevski/144532/likelihoodResults_570326401_570585601_4FGL_J1509.8-2906_daily_bin1277.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) = 7364.4853261
delta logL = 0.146189481994

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7364.47506151
delta logL = 0.156454075104

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.917       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2430       1.0000          .0000       10.000    
     3 'Normalizat'    1.3164       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90528       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=   7364.475     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      302 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.920        40.138        .94622E-04    .59450E-03
   2  Index         3.2430        1.7465        .66372E-02    .25724E-03
   3  Normalizat    1.3153        .38272        .48424E-03    .89801E-04
   4  Prefactor     .90558        .10250        .15331E-03    .37949E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9197
  Index      = 3.24304
  Normalizat = 1.31528
  Prefactor  = 0.905575
 **********
 **   18 **HESSE 
 **********

 FCN=   7364.475     FROM HESSE     STATUS=OK            25 CALLS      327 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.920        27.101        .37849E-05   -1.4861    
   2  Index         3.2430        1.1924        .26549E-03   -.35906    
   3  Normalizat    1.3153        .37716        .19370E-04   -.83111    
   4  Prefactor     .90558        .10017        .30663E-04   -.95947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.051e-09
Minuit parameter uncertainties:
  1  27.1198
  2  1.20566
  3  0.377954
  4  0.100191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/144532': 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) = 7364.47505664
delta logL = 0.156458949076

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  1.792e+01  2.712e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  3.243e+00  1.206e+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:  9.056e-01  1.002e-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.315e+00  3.780e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.29
Ra Dec: 227.463 -29.107
Photon Index (Free Index): 3.24 +/- 1.21
Photon Flux (Free Index): 2.16e-07 +/- 1.43e-07
Energy Flux (Free Index): 3.89e-05 +/- 2.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/144532/cmap_HighResolution_570326401_570585601_4FGL_J1509.8-2906_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-02', comment='SUCCESS', photon_flux='1.78e-07', energy_flux2='3.89e-05', photon_flux_error='1.22e-07', dlogl='1.56e-01', energy_flux='4.25e-05', photon_flux2='2.16e-07', job_status='DONE', time_completed='2021-09-11 05:27:25.800009', photon_index_error2='1.21', photon_index2='3.24', ts='2.88', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='4.02e-07', energy_flux_error2='2.69e-05', EG='1.36', time_epoch_completed='1631363245.8', return_code='0', job_id='144532', GAL2='0.91', EG2='1.32', return_code2='0', energy_flux_error='2.92e-05', photon_flux_error2='1.43e-07', ts2='3.29', photon_index='2.71' WHERE bin_id='1277' AND source_name='4FGL J1509.8-2906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 05:27:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 144532: <4FGL_J1509.8-2906_daily_bin1277> in cluster <slac> Done

Job <4FGL_J1509.8-2906_daily_bin1277> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 11 05:11:05 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 05:11:07 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:07 2021
Terminated at Sat Sep 11 05:27:26 2021
Results reported at Sat Sep 11 05:27:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1509.8-2906_daily_bin1277 227.463 -29.1069 570326401 570585601 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 :                                   883.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             336.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

