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


Performing analysis on: 4FGL_J2005.9-2309_daily_bin1518
RA = 301.476, Dec = -23.1531
tmin = 632793601, tmax = 633052801
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='617581', job_status='RUN', time_executed='2021-09-24 11:45:59.492813', time_epoch_executed='1632509159.49' WHERE source_name='4FGL J2005.9-2309' and cadence='daily' and bin_id='1518'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617581/ft1_4FGL_J2005.9-2309_daily_bin1518.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617581/ft2_4FGL_J2005.9-2309_daily_bin1518.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617581/ft1_4FGL_J2005.9-2309_daily_bin1518.fits outfile=/scratch/kocevski/617581/ft1_filteredMKT_4FGL_J2005.9-2309_daily_bin1518.fits ra=301.476 dec=-23.1531 rad=12.0 tmin=632793601.0 tmax=633052801.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.02
user 2.76
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/617581/ft2_4FGL_J2005.9-2309_daily_bin1518.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/617581/ft2_4FGL_J2005.9-2309_daily_bin1518.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/617581/ft1_filteredMKT_4FGL_J2005.9-2309_daily_bin1518.fits evtable="EVENTS" outfile="/scratch/kocevski/617581/ft1_filtered_4FGL_J2005.9-2309_daily_bin1518.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.44
user 0.28
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617581/ft1_filtered_4FGL_J2005.9-2309_daily_bin1518.fits" evtable="EVENTS" scfile=/scratch/kocevski/617581/ft2_4FGL_J2005.9-2309_daily_bin1518.fits sctable="SC_DATA" outfile=/scratch/kocevski/617581/ltcube_632793601_633052801_4FGL_J2005.9-2309_daily_bin1518.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/617581/ft2_4FGL_J2005.9-2309_daily_bin1518.fits
.....................!
real 13.55
user 13.21
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617581/ft1_filtered_4FGL_J2005.9-2309_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/617581/ft2_4FGL_J2005.9-2309_daily_bin1518.fits sctable="SC_DATA" expcube=/scratch/kocevski/617581/ltcube_632793601_633052801_4FGL_J2005.9-2309_daily_bin1518.fits outfile=/scratch/kocevski/617581/expmap_632793601_633052801_4FGL_J2005.9-2309_daily_bin1518.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/617581/ltcube_632793601_633052801_4FGL_J2005.9-2309_daily_bin1518.fits
.....................!
real 158.42
user 153.68
sys 4.46

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
Added 202 point sources and 0 extended sources

Setting source of interest to:
4FGL J2005.9-2309 @ 301.476 -23.1531

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/617581/ft1_filtered_4FGL_J2005.9-2309_daily_bin1518.fits scfile=/scratch/kocevski/617581/ft2_4FGL_J2005.9-2309_daily_bin1518.fits outfile=/scratch/kocevski/617581/cmap_632793601_633052801_4FGL_J2005.9-2309_daily_bin1518.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=301.476 yref=-23.1531 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.47
user 0.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617581/ft1_filtered_4FGL_J2005.9-2309_daily_bin1518.fits scfile=/scratch/kocevski/617581/ft2_4FGL_J2005.9-2309_daily_bin1518.fits outfile=/scratch/kocevski/617581/cmap_HighResolution_632793601_633052801_4FGL_J2005.9-2309_daily_bin1518.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=301.476 yref=-23.1531 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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/617581/ft1_filtered_4FGL_J2005.9-2309_daily_bin1518.fits evtable="EVENTS" scfile=/scratch/kocevski/617581/ft2_4FGL_J2005.9-2309_daily_bin1518.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/617581/Model_4FGL_J2005.9-2309_daily_bin1518.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 GAL_V02
Working on...
/scratch/kocevski/617581/ft1_filtered_4FGL_J2005.9-2309_daily_bin1518.fits.....................!
real 74.17
user 72.19
sys 1.00

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/617581/ft1_filtered_4FGL_J2005.9-2309_daily_bin1518.fits', '/scratch/kocevski/617581/ft2_4FGL_J2005.9-2309_daily_bin1518.fits', expMap='/scratch/kocevski/617581/expmap_632793601_633052801_4FGL_J2005.9-2309_daily_bin1518.fits', expCube='/scratch/kocevski/617581/ltcube_632793601_633052801_4FGL_J2005.9-2309_daily_bin1518.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/617581/Model_4FGL_J2005.9-2309_daily_bin1518.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2005.9-2309'

4FGL J2005.9-2309
   Spectrum: LogParabola
401         norm:  6.544e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  2.399e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  9.770e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  5.563e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/617581/ft1_filtered_4FGL_J2005.9-2309_daily_bin1518.fits
Spacecraft file(s): /scratch/kocevski/617581/ft2_4FGL_J2005.9-2309_daily_bin1518.fits
Exposure map: /scratch/kocevski/617581/expmap_632793601_633052801_4FGL_J2005.9-2309_daily_bin1518.fits
Exposure cube: /scratch/kocevski/617581/ltcube_632793601_633052801_4FGL_J2005.9-2309_daily_bin1518.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/617581/Model_4FGL_J2005.9-2309_daily_bin1518.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) = 9599.58244584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.2670       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.912       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10794E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25713       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2817       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.689       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.599       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.2169       1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.273       1.0000         .10000E-03   10000.    
    12 'norm      '    57.391       1.0000         .10000E-03   10000.    
    13 'norm      '    5.5261       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16060E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11980E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2928       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .90477       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3295       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9599.560     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2528 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6399        .31143E-06** at limit **
   2  norm          2.2679        6.8524       -.94711E-05   -.37200E-03
   3  Prefactor     .10000E-03    1.6265        .24474E-06** at limit **
   4  Prefactor     44.921        27.498       -.22854E-06    .24748E-03
   5  Prefactor     .10000E-03    30.692        .54697E-06** at limit **
   6  Prefactor     .42918        17.826       -.68567E-05    .58941E-03
   7  Prefactor     6.2886        8.8392        .11835E-05    .80878E-05
   8  Prefactor     14.693        29.787        .25200E-05    .28237E-04
   9  Prefactor     20.639        52.015        .27565E-04    .97650E-04
  10  Prefactor     2.2147        3.4500        .18738E-06   -.23371E-03
  11  Prefactor     43.298        32.594       -.12853E-06    .25487E-03
  12  norm          57.406        27.872        .21518E-05    .19362E-03
  13  norm          5.5276        6.8888       -.41525E-06    .90617E-04
  14  Prefactor     .10000E-03    242.40        .24133E-06** at limit **
  15  norm          .10000E-03    5.0857        .78196E-07** at limit **
  16  Prefactor     .10000E-03    103.60       -.16710E-04** at limit **
  17  Prefactor     .21278        4.2253       -.18321E-05    .21739E-03
  18  Prefactor     .10000E-03    8.0912        .68441E-06** at limit **
  19  Prefactor     6.4683        198.98        .41781E-03    .65590E-04
  20  norm          .10000E-03    9.4966       -.66986E-06** at limit **
  21  Normalizat    .90405        .39053       -.31708E-04    .15709E-03
  22  Prefactor     1.3296        .11690        .41676E-05    .33361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.26789
  Prefactor  = 0.0001
  Prefactor  = 44.9214
  Prefactor  = 0.0001
  Prefactor  = 0.429184
  Prefactor  = 6.28861
  Prefactor  = 14.693
  Prefactor  = 20.639
  Prefactor  = 2.21471
  Prefactor  = 43.2976
  norm       = 57.4056
  norm       = 5.52761
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.212782
  Prefactor  = 0.000100001
  Prefactor  = 6.46829
  norm       = 0.000100001
  Normalizat = 0.904049
  Prefactor  = 1.32957
 **********
 **   18 **HESSE 
 **********

 FCN=   9599.560     FROM HESSE     STATUS=OK           348 CALLS     2876 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2679        6.8674        .27279E-03   -1.5407    
   3  Prefactor     .10000E-03    1.6351        .12202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.921        27.565        .59825E-04   -1.4366    
   5  Prefactor     .10000E-03    30.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .42918        18.494        .15119       -1.5577    
   7  Prefactor     6.2886        8.8013        .16016E-03   -1.5206    
   8  Prefactor     14.693        29.775        .10450E-03   -1.4941    
   9  Prefactor     20.639        51.972        .88251E-04   -1.4799    
  10  Prefactor     2.2147        3.3335        .17676E-03   -1.5410    
  11  Prefactor     43.298        31.671        .60943E-04   -1.4391    
  12  norm          57.406        27.826        .52955E-04   -1.4191    
  13  norm          5.5276        6.8792        .17091E-03   -1.5238    
  14  Prefactor     .10000E-03    242.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.0934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    104.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .21278        64.769        .37884E-02   -1.5616    
  18  Prefactor     .10000E-03    8.4060        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4683        196.28        .16002E-03   -1.5199    
  20  norm          .10000E-03    9.4987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .90405        .40775        .63796E-03   -.96318    
  22  Prefactor     1.3296        .12545        .16769E-03   -.82432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.11892e-09
Minuit parameter uncertainties:
  1  4.28392e-05
  2  6.86978
  3  8.06675e-06
  4  27.5731
  5  7.94043e-05
  6  5.63579
  7  8.80311
  8  29.8048
  9  52.0862
  10  3.33379
  11  31.683
  12  27.8323
  13  6.88016
  14  0.000211083
  15  2.50815e-05
  16  0.00087937
  17  7.43112
  18  0.000182559
  19  71.5203
  20  0.000163792
  21  0.409151
  22  0.125484
Done.

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

Extracting fit parameters...

4FGL J2005.9-2309
   Spectrum: LogParabola
401         norm:  5.741e+01  2.783e+01  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  2.399e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  9.770e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  5.563e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
683    Prefactor:  1.330e+00  1.255e-01  0.000e+00  1.000e+01 ( 1.000e+00)
684        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
685        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  9.040e-01  4.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.21
Ra Dec: 301.476 -23.153
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.18e-07 +/- 1.06e-07
Energy Flux (Fixed Index): 6.69e-05 +/- 3.24e-05

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) = 9599.39557452
delta logL = 0.163962130664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9599.39227583
delta logL = 0.167260816121

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    52.679       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6462       1.0000          .0000       5.0000    
     3 'Normalizat'    .86123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3377       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9599.392     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      263 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          52.608        410.38        .13815E-02    .13661E-03
   2  alpha         2.6447        3.8179        .31752        .52015E-04
   3  Normalizat    .86166        .18846        .14674        .48910E-04
   4  Prefactor     1.3377        .65163E-01    .31983E-01   -.11933E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 52.6083
  alpha      = 2.64473
  Normalizat = 0.861659
  Prefactor  = 1.33775
 **********
 **   18 **HESSE 
 **********

 FCN=   9599.392     FROM HESSE     STATUS=OK            33 CALLS      296 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          52.608        28.152        .27630E-03   -1.4256    
   2  alpha         2.6447        .44445        .12661E-01    .57923E-01
   3  Normalizat    .86166        .39320        .65164E-03   -.97821    
   4  Prefactor     1.3377        .12181        .16722E-03   -.82191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41001e-09
Minuit parameter uncertainties:
  1  28.1595
  2  0.446837
  3  0.394515
  4  0.121833
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617581': 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) = 9599.39225708
delta logL = 0.167279568863

Extracting fit parameters...

4FGL J2005.9-2309
   Spectrum: LogParabola
401         norm:  5.261e+01  2.816e+01  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  2.645e+00  4.468e-01  0.000e+00  5.000e+00 ( 1.000e+00)
403         beta:  9.770e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  5.563e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
683    Prefactor:  1.338e+00  1.218e-01  0.000e+00  1.000e+01 ( 1.000e+00)
684        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
685        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
682   Normalization:  8.617e-01  3.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.59
Ra Dec: 301.476 -23.153
Photon Index (Free Index): 2.64 +/- 0.45
Photon Flux (Free Index): 2.57e-07 +/- 1.29e-07
Energy Flux (Free Index): 6.47e-05 +/- 3.05e-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/617581/cmap_HighResolution_632793601_633052801_4FGL_J2005.9-2309_daily_bin1518.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.18e-07', energy_flux2='6.47e-05', photon_flux_error='1.06e-07', dlogl='1.67e-01', energy_flux='6.69e-05', photon_flux2='2.57e-07', job_status='DONE', time_completed='2021-09-24 11:57:31.929168', photon_index_error2='0.45', photon_index2='2.64', ts='6.21', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='3.05e-05', EG='0.90', time_epoch_completed='1632509851.93', return_code='0', job_id='617581', GAL2='1.34', EG2='0.86', return_code2='0', energy_flux_error='3.24e-05', photon_flux_error2='1.29e-07', ts2='6.59', photon_index='2.40' WHERE bin_id='1518' AND source_name='4FGL J2005.9-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 11:57:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 617581: <4FGL_J2005.9-2309_daily_bin1518> in cluster <slac> Done

Job <4FGL_J2005.9-2309_daily_bin1518> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep 24 11:41:24 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 11:42:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 24 11:42:58 2021
Terminated at Fri Sep 24 11:57:32 2021
Results reported at Fri Sep 24 11:57:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.9-2309_daily_bin1518 301.476 -23.1531 632793601 633052801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2005.9-2309 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   689.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             324.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            968 sec.

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

