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


Performing analysis on: 4FGL_J2005.9-2309_daily_bin1591
RA = 301.476, Dec = -23.1531
tmin = 651715201, tmax = 651974401
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='618798', job_status='RUN', time_executed='2021-09-24 11:47:18.502340', time_epoch_executed='1632509238.5' WHERE source_name='4FGL J2005.9-2309' and cadence='daily' and bin_id='1591'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/618798

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/618798/ft1_4FGL_J2005.9-2309_daily_bin1591.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/618798/ft2_4FGL_J2005.9-2309_daily_bin1591.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/618798/ft1_4FGL_J2005.9-2309_daily_bin1591.fits outfile=/scratch/kocevski/618798/ft1_filteredMKT_4FGL_J2005.9-2309_daily_bin1591.fits ra=301.476 dec=-23.1531 rad=12.0 tmin=651715201.0 tmax=651974401.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.50
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/618798/ft2_4FGL_J2005.9-2309_daily_bin1591.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/618798/ft1_filteredMKT_4FGL_J2005.9-2309_daily_bin1591.fits evtable="EVENTS" outfile="/scratch/kocevski/618798/ft1_filtered_4FGL_J2005.9-2309_daily_bin1591.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/618798/ft1_filtered_4FGL_J2005.9-2309_daily_bin1591.fits" evtable="EVENTS" scfile=/scratch/kocevski/618798/ft2_4FGL_J2005.9-2309_daily_bin1591.fits sctable="SC_DATA" outfile=/scratch/kocevski/618798/ltcube_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.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/618798/ft2_4FGL_J2005.9-2309_daily_bin1591.fits
.....................!
real 14.56
user 14.16
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/618798/ft1_filtered_4FGL_J2005.9-2309_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/618798/ft2_4FGL_J2005.9-2309_daily_bin1591.fits sctable="SC_DATA" expcube=/scratch/kocevski/618798/ltcube_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.fits outfile=/scratch/kocevski/618798/expmap_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.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/618798/ltcube_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.fits
.....................!
real 193.26
user 187.85
sys 4.92

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/618798/ft1_filtered_4FGL_J2005.9-2309_daily_bin1591.fits scfile=/scratch/kocevski/618798/ft2_4FGL_J2005.9-2309_daily_bin1591.fits outfile=/scratch/kocevski/618798/cmap_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/618798/ft1_filtered_4FGL_J2005.9-2309_daily_bin1591.fits scfile=/scratch/kocevski/618798/ft2_4FGL_J2005.9-2309_daily_bin1591.fits outfile=/scratch/kocevski/618798/cmap_HighResolution_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/618798/ft1_filtered_4FGL_J2005.9-2309_daily_bin1591.fits evtable="EVENTS" scfile=/scratch/kocevski/618798/ft2_4FGL_J2005.9-2309_daily_bin1591.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/618798/Model_4FGL_J2005.9-2309_daily_bin1591.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/618798/ft1_filtered_4FGL_J2005.9-2309_daily_bin1591.fits.....................!
real 71.77
user 70.27
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/618798/ft1_filtered_4FGL_J2005.9-2309_daily_bin1591.fits', '/scratch/kocevski/618798/ft2_4FGL_J2005.9-2309_daily_bin1591.fits', expMap='/scratch/kocevski/618798/expmap_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.fits', expCube='/scratch/kocevski/618798/ltcube_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/618798/Model_4FGL_J2005.9-2309_daily_bin1591.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/618798/ft1_filtered_4FGL_J2005.9-2309_daily_bin1591.fits
Spacecraft file(s): /scratch/kocevski/618798/ft2_4FGL_J2005.9-2309_daily_bin1591.fits
Exposure map: /scratch/kocevski/618798/expmap_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.fits
Exposure cube: /scratch/kocevski/618798/ltcube_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/618798/Model_4FGL_J2005.9-2309_daily_bin1591.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) = 7390.68070783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.001       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2916       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.660       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.049       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7140       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2769       1.0000         .10000E-03   10000.    
    16 'Prefactor '    89.450       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3034       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .42694E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19547E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .11104E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3425       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81434       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=   7390.676     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2346 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.005        12.227       -.19180E-06    .33243E-04
   2  norm          .10000E-03    11.638       -.35461E-06** at limit **
   3  Prefactor     2.2942        6.9471       -.34354E-05    .35042E-04
   4  Prefactor     .10000E-03    3.6112       -.78840E-09** at limit **
   5  Prefactor     .10000E-03    27.800       -.44276E-06** at limit **
   6  Prefactor     .10000E-03    12.181        .40843E-06** at limit **
   7  Prefactor     .10000E-03    2.2745        .21705E-06** at limit **
   8  Prefactor     59.650        39.714        .33477E-06    .25670E-04
   9  Prefactor     13.084        41.634       -.30648E-05   -.35220E-04
  10  Prefactor     7.7153        2.6003       -.81470E-08    .13151E-04
  11  Prefactor     .10000E-03    5.3505        .38295E-07** at limit **
  12  norm          .10000E-03    14.120        .71661E-06** at limit **
  13  norm          .10000E-03    3.0789       -.11309E-07** at limit **
  14  Prefactor     .10000E-03    33.582        .30980E-05** at limit **
  15  norm          4.2793        10.652       -.72720E-06    .17697E-04
  16  Prefactor     89.448        70.655        .23074E-06    .78461E-05
  17  Prefactor     6.2970        7.9555       -.44542E-06    .29149E-04
  18  Prefactor     .10000E-03    25.594        .12225E-04** at limit **
  19  Prefactor     .10000E-03    266.73        .53105E-05** at limit **
  20  norm          .10000E-03    39.734       -.24547E-05** at limit **
  21  Normalizat    1.3422        .30381        .12485E-05    .64387E-04
  22  Prefactor     .81434        .88991E-01   -.34788E-06   -.15317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0055
  norm       = 0.0001
  Prefactor  = 2.29422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.6498
  Prefactor  = 13.0842
  Prefactor  = 7.71527
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.27932
  Prefactor  = 89.4481
  Prefactor  = 6.29697
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.34217
  Prefactor  = 0.81434
 **********
 **   18 **HESSE 
 **********

 FCN=   7390.676     FROM HESSE     STATUS=OK           334 CALLS     2680 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.005        12.225        .91884E-04   -1.4836    
   2  norm          .10000E-03    11.947        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2942        6.9245        .27115E-03   -1.5405    
   4  Prefactor     .10000E-03    3.6126        .15955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2944        .12663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     59.650        39.749        .51944E-04   -1.4162    
   9  Prefactor     13.084        41.847        .11088E-03   -1.4984    
  10  Prefactor     7.7153        2.5990        .77036E-04   -1.5152    
  11  Prefactor     .10000E-03    5.3560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.510        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.0833        .14730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2793        10.638        .19482E-03   -1.5294    
  16  Prefactor     89.448        70.702        .42484E-04   -1.3814    
  17  Prefactor     6.2970        7.9576        .15988E-03   -1.5206    
  18  Prefactor     .10000E-03    25.356        .27405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    269.13        .20249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    40.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.3422        .35284        .41879E-03   -.82316    
  22  Prefactor     .81434        .10623        .15839E-03   -.99202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08195e-10
Minuit parameter uncertainties:
  1  12.2264
  2  1.83593e-05
  3  6.92691
  4  1.35837e-06
  5  4.11996e-05
  6  3.68343e-05
  7  3.10892e-06
  8  39.7662
  9  41.9414
  10  2.59902
  11  5.06679e-06
  12  3.33059e-06
  13  3.83369e-06
  14  0.000289314
  15  10.643
  16  70.7689
  17  7.9589
  18  0.000127126
  19  0.000962537
  20  0.000213688
  21  0.353477
  22  0.106252
Done.

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

Extracting fit parameters...

4FGL J2005.9-2309
   Spectrum: LogParabola
401         norm:  1.000e-04  3.331e-06  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:  8.143e-01  1.063e-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:  1.342e+00  3.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 301.476 -23.153
Photon Flux Upper Limit: 9.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/618798/likelihoodResults_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.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) = 7390.67641544
delta logL = -0.000328858550347

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7390.67608569
delta logL = 8.91793206392e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13882E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2933       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81436       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=   7390.539     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      274 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4958        8.0863        .90712E-02    .75089E-03
   2  alpha         1.3885        .95380        .41331E-01   -.29720E-04
   3  Normalizat    1.3542        .28587        .94198E-01   -.13583E-03
   4  Prefactor     .80833        .87356E-01    .43904E-01    .16587E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.49583
  alpha      = 1.38855
  Normalizat = 1.35415
  Prefactor  = 0.808328
 **********
 **   18 **HESSE 
 **********

 FCN=   7390.539     FROM HESSE     STATUS=OK            29 CALLS      303 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4958        7.9758        .33813E-03   -1.5334    
   2  alpha         1.3885        .94703        .16532E-02   -.46071    
   3  Normalizat    1.3542        .34121        .41724E-03   -.81964    
   4  Prefactor     .80833        .10456        .15891E-03   -.99422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94558e-10
Minuit parameter uncertainties:
  1  7.97819
  2  0.977801
  3  0.34178
  4  0.104581
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/618798': 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) = 7390.53924866
delta logL = 0.136837925387

Extracting fit parameters...

4FGL J2005.9-2309
   Spectrum: LogParabola
401         norm:  3.496e+00  7.978e+00  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  1.389e+00  9.778e-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:  8.083e-01  1.046e-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:  1.354e+00  3.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 301.476 -23.153

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/618798/cmap_HighResolution_651715201_651974401_4FGL_J2005.9-2309_daily_bin1591.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.97e-05', job_status='DONE', photon_flux_upper_limit='9.69e-08', time_completed='2021-09-24 12:00:05.341887', job_id='618798', GAL2='0.81', fit_tolerance='1e-08', EG2='1.35', EG='1.34', time_epoch_completed='1632510005.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.37e-01', ts2='0.28', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1591' AND source_name='4FGL J2005.9-2309' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 24 12:00:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 618798: <4FGL_J2005.9-2309_daily_bin1591> in cluster <slac> Done

Job <4FGL_J2005.9-2309_daily_bin1591> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 24 11:46:11 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 24 11:46:14 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:46:14 2021
Terminated at Fri Sep 24 12:00:05 2021
Results reported at Fri Sep 24 12:00:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2005.9-2309_daily_bin1591 301.476 -23.1531 651715201 651974401 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 :                                   764.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            834 sec.

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

