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


Performing analysis on: 4FGL_J1509.8-2906_daily_bin582
RA = 227.463, Dec = -29.1069
tmin = 390182401, tmax = 390441601
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='137935', job_status='RUN', time_executed='2021-09-11 04:48:36.272242', time_epoch_executed='1631360916.27' WHERE source_name='4FGL J1509.8-2906' and cadence='daily' and bin_id='582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/137935

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/137935/ft1_4FGL_J1509.8-2906_daily_bin582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/137935/ft2_4FGL_J1509.8-2906_daily_bin582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/137935/ft1_4FGL_J1509.8-2906_daily_bin582.fits outfile=/scratch/kocevski/137935/ft1_filteredMKT_4FGL_J1509.8-2906_daily_bin582.fits ra=227.463 dec=-29.1069 rad=12.0 tmin=390182401.0 tmax=390441601.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 4.08
user 3.83
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/137935/ft2_4FGL_J1509.8-2906_daily_bin582.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/137935/ft1_filteredMKT_4FGL_J1509.8-2906_daily_bin582.fits evtable="EVENTS" outfile="/scratch/kocevski/137935/ft1_filtered_4FGL_J1509.8-2906_daily_bin582.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/137935/ft1_filtered_4FGL_J1509.8-2906_daily_bin582.fits" evtable="EVENTS" scfile=/scratch/kocevski/137935/ft2_4FGL_J1509.8-2906_daily_bin582.fits sctable="SC_DATA" outfile=/scratch/kocevski/137935/ltcube_390182401_390441601_4FGL_J1509.8-2906_daily_bin582.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/137935/ft2_4FGL_J1509.8-2906_daily_bin582.fits
.....................!
real 12.30
user 11.96
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/137935/ft1_filtered_4FGL_J1509.8-2906_daily_bin582.fits evtable="EVENTS" scfile=/scratch/kocevski/137935/ft2_4FGL_J1509.8-2906_daily_bin582.fits sctable="SC_DATA" expcube=/scratch/kocevski/137935/ltcube_390182401_390441601_4FGL_J1509.8-2906_daily_bin582.fits outfile=/scratch/kocevski/137935/expmap_390182401_390441601_4FGL_J1509.8-2906_daily_bin582.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/137935/ltcube_390182401_390441601_4FGL_J1509.8-2906_daily_bin582.fits
.....................!
real 190.91
user 185.68
sys 4.35

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/137935/ft1_filtered_4FGL_J1509.8-2906_daily_bin582.fits scfile=/scratch/kocevski/137935/ft2_4FGL_J1509.8-2906_daily_bin582.fits outfile=/scratch/kocevski/137935/cmap_390182401_390441601_4FGL_J1509.8-2906_daily_bin582.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.53
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/137935/ft1_filtered_4FGL_J1509.8-2906_daily_bin582.fits evtable="EVENTS" scfile=/scratch/kocevski/137935/ft2_4FGL_J1509.8-2906_daily_bin582.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/137935/Model_4FGL_J1509.8-2906_daily_bin582.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/137935/ft1_filtered_4FGL_J1509.8-2906_daily_bin582.fits.....................!
real 48.76
user 47.42
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.594       1.0000         .10000E-03   10000.    
    10 'norm      '    .70701       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.9707       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5514       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.464       1.0000         .10000E-03   10000.    
    17 'norm      '    12.435       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .55607E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0505       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .99309       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=   4058.472     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2138 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7814       -.53203E-06** at limit **
   2  Prefactor     .10000E-03    18.528       -.46778E-05** at limit **
   3  Prefactor     .10000E-03    19.023       -.46814E-05** at limit **
   4  Prefactor     .10000E-03    15.663        .64671E-05** at limit **
   5  Prefactor     .10000E-03    126.16       -.89630E-05** at limit **
   6  norm          .10000E-03    12.158        .43562E-06** at limit **
   7  Prefactor     .10000E-03    62.859       -.19767E-04** at limit **
   8  Prefactor     .10000E-03    22.547        .56382E-05** at limit **
   9  Prefactor     19.610        36.890        .10162E-04    .49804E-05
  10  norm          .70673        .89385       -.25268E-06   -.54541E-03
  11  Prefactor     7.9707        12.751       -.16334E-05   -.73588E-03
  12  Prefactor     .10000E-03    13.550       -.25898E-05** at limit **
  13  norm          .10000E-03    8.3184        .30980E-06** at limit **
  14  norm          .10000E-03    21.697        .26479E-05** at limit **
  15  norm          1.5514        1.1611       -.63534E-07   -.59513E-04
  16  Prefactor     22.464        19.024        .12619E-06    .57504E-04
  17  norm          12.434        8.8398        .31620E-07    .76404E-04
  18  Prefactor     .10003E-03    601.65       -.20311E-03** at limit **
  19  Prefactor     .10000E-03    77.588        .30129E-04** at limit **
  20  norm          .10000E-03    27.691       -.11071E-05** at limit **
  21  Prefactor     .10000E-03    3.5961       -.22186E-06** at limit **
  22  Normalizat    1.0503        .45403       -.57833E-06    .82470E-04
  23  Prefactor     .99309        .12342        .27054E-06    .39381E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6097
  norm       = 0.706735
  Prefactor  = 7.97067
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.55138
  Prefactor  = 22.4642
  norm       = 12.4344
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05034
  Prefactor  = 0.993093
 **********
 **   18 **HESSE 
 **********

 FCN=   4058.472     FROM HESSE     STATUS=OK           362 CALLS     2500 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.7945        .10376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    126.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    62.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.610        36.820        .90484E-04   -1.4822    
  10  norm          .70673        .85096        .65365E-03   -1.5540    
  11  Prefactor     7.9707        12.806        .71009E-03   -1.5143    
  12  Prefactor     .10000E-03    13.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.3840        .17940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    21.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5514        1.1537        .57195E-04   -1.5459    
  16  Prefactor     22.464        19.019        .84511E-04   -1.4760    
  17  norm          12.434        8.8405        .11360E-03   -1.5003    
  18  Prefactor     .10003E-03    599.64        .21104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    77.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    27.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.7091        .23587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0503        .50610        .51850E-03   -.91363    
  23  Prefactor     .99309        .13887        .14475E-03   -.92960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34432e-09
Minuit parameter uncertainties:
  1  3.09705e-07
  2  9.54722e-07
  3  1.02566e-06
  4  4.13098e-06
  5  5.67387e-06
  6  2.19657e-05
  7  3.22013e-06
  8  1.74328e-05
  9  36.8628
  10  0.850978
  11  12.8102
  12  7.07328e-06
  13  9.35858e-06
  14  2.78692e-06
  15  1.15367
  16  19.024
  17  8.84143
  18  0.00848829
  19  0.000183146
  20  1.26036e-05
  21  2.81214e-06
  22  0.508447
  23  0.138922
Done.

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

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  7.073e-06  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.931e-01  1.389e-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.050e+00  5.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/137935/likelihoodResults_390182401_390441601_4FGL_J1509.8-2906_daily_bin582.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) = 4058.47244948
delta logL = -0.000349889225163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4058.47210079
delta logL = -1.20388585856e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11442E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7096       1.0000          .0000       10.000    
     3 'Normalizat'    1.0498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99324       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=   4058.472     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      214 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    49.456        .90712E-02** at limit **
   2  Index         2.7082        7.7378        .50000        .91580E-06
   3  Normalizat    1.0503        .21812E-01    .11692        .15224E-04
   4  Prefactor     .99309        .59683E-02    .32757E-01   -.31008E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.70818
  Normalizat = 1.05034
  Prefactor  = 0.993092
 **********
 **   18 **HESSE 
 **********

 FCN=   4058.472     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      247 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    279.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7082        6.1325        .50000       -.47615    
   3  Normalizat    1.0503        .52626E-01    .51850E-03   -.91362    
   4  Prefactor     .99309        .14455E-01    .14475E-03   -.92960    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.97469e-08
Minuit parameter uncertainties:
  1  9.33591e-05
  2  983.997
  3  0.0526281
  4  0.0144552
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/137935': 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): 102
logL (Free Index) = 4058.47209959
delta logL = 6.38920027995e-10

Extracting fit parameters...

4FGL J1509.8-2906
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  9.336e-05  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.708e+00  9.840e+02  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.931e-01  1.446e-02  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.050e+00  5.263e-02  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/137935/cmap_HighResolution_390182401_390441601_4FGL_J1509.8-2906_daily_bin582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-02', job_status='DONE', photon_flux_upper_limit='2.30e-07', time_completed='2021-09-11 04:58:46.924469', job_id='137935', GAL2='0.99', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1631361526.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='6.39e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='582' AND source_name='4FGL J1509.8-2906' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 04:58:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 137935: <4FGL_J1509.8-2906_daily_bin582> in cluster <slac> Done

Job <4FGL_J1509.8-2906_daily_bin582> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep 11 04:46:17 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 04:46:19 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:46:19 2021
Terminated at Sat Sep 11 04:58:47 2021
Results reported at Sat Sep 11 04:58:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1509.8-2906_daily_bin582 227.463 -29.1069 390182401 390441601 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 :                                   608.14 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             284.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            750 sec.

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

