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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1018
RA = 332.474, Dec = -50.4702
tmin = 503193601, tmax = 503452801
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='210611', job_status='RUN', time_executed='2021-09-28 06:25:53.142178', time_epoch_executed='1632835553.14' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210611

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210611/ft1_4FGL_J2209.8-5028_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210611/ft2_4FGL_J2209.8-5028_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210611/ft1_4FGL_J2209.8-5028_daily_bin1018.fits outfile=/scratch/kocevski/210611/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1018.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=503193601.0 tmax=503452801.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 5.10
user 4.85
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/210611/ft2_4FGL_J2209.8-5028_daily_bin1018.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210611/ft2_4FGL_J2209.8-5028_daily_bin1018.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/210611/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1018.fits evtable="EVENTS" outfile="/scratch/kocevski/210611/ft1_filtered_4FGL_J2209.8-5028_daily_bin1018.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.48
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210611/ft1_filtered_4FGL_J2209.8-5028_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/210611/ft2_4FGL_J2209.8-5028_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/210611/ltcube_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.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/210611/ft2_4FGL_J2209.8-5028_daily_bin1018.fits
.....................!
real 11.71
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210611/ft1_filtered_4FGL_J2209.8-5028_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/210611/ft2_4FGL_J2209.8-5028_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/210611/ltcube_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.fits outfile=/scratch/kocevski/210611/expmap_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.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/210611/ltcube_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.fits
.....................!
real 190.68
user 185.53
sys 4.83

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

Setting source of interest to:
4FGL J2209.8-5028 @ 332.474 -50.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/210611/ft1_filtered_4FGL_J2209.8-5028_daily_bin1018.fits scfile=/scratch/kocevski/210611/ft2_4FGL_J2209.8-5028_daily_bin1018.fits outfile=/scratch/kocevski/210611/cmap_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.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=332.474 yref=-50.4702 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210611/ft1_filtered_4FGL_J2209.8-5028_daily_bin1018.fits scfile=/scratch/kocevski/210611/ft2_4FGL_J2209.8-5028_daily_bin1018.fits outfile=/scratch/kocevski/210611/cmap_HighResolution_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.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=332.474 yref=-50.4702 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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210611/ft1_filtered_4FGL_J2209.8-5028_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/210611/ft2_4FGL_J2209.8-5028_daily_bin1018.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210611/Model_4FGL_J2209.8-5028_daily_bin1018.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/210611/ft1_filtered_4FGL_J2209.8-5028_daily_bin1018.fits.....................!
real 54.15
user 52.80
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/210611/ft1_filtered_4FGL_J2209.8-5028_daily_bin1018.fits', '/scratch/kocevski/210611/ft2_4FGL_J2209.8-5028_daily_bin1018.fits', expMap='/scratch/kocevski/210611/expmap_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.fits', expCube='/scratch/kocevski/210611/ltcube_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/210611/Model_4FGL_J2209.8-5028_daily_bin1018.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2209.8-5028'

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/210611/ft1_filtered_4FGL_J2209.8-5028_daily_bin1018.fits
Spacecraft file(s): /scratch/kocevski/210611/ft2_4FGL_J2209.8-5028_daily_bin1018.fits
Exposure map: /scratch/kocevski/210611/expmap_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.fits
Exposure cube: /scratch/kocevski/210611/ltcube_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/210611/Model_4FGL_J2209.8-5028_daily_bin1018.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) = 7486.288578

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.252       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18075E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    4.3644       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.209       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.6272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0368       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3271       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0743       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.332       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.140       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11228E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .55272       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7486.230     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2932 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.8272        .27031E-05** at limit **
   2  Prefactor     .10000E-03    14.386        .41521E-06** at limit **
   3  Prefactor     .10000E-03    5.8741       -.60003E-06** at limit **
   4  Prefactor     19.253        20.187        .21062E-06   -.17753E-04
   5  Prefactor     .10000E-03    10.072       -.35642E-05** at limit **
   6  Prefactor     .20717E-01    1.4709        .20942E-06   -.15012E-03
   7  norm          4.3639        3.3938       -.15147E-06   -.85790E-04
   8  Prefactor     .10000E-03    3.7510       -.30369E-07** at limit **
   9  Prefactor     11.209        30.686        .20744E-06    .47498E-04
  10  Prefactor     4.6208        6.2207       -.49406E-05    .25550E-03
  11  Prefactor     4.0368        3.3323        .35756E-06   -.22664E-03
  12  Prefactor     .10002E-03    183.10       -.72161E-05** at limit **
  13  norm          .10000E-03    2.2019       -.43319E-07** at limit **
  14  Prefactor     4.3276        3.4226       -.25534E-06   -.31385E-03
  15  Prefactor     .10000E-03    9.4409        .85189E-06** at limit **
  16  Prefactor     3.0735        4.5984       -.10368E-05   -.54130E-03
  17  Prefactor     10.330        22.989       -.37054E-06   -.77458E-05
  18  Prefactor     18.140        11.675        .61022E-06   -.10384E-03
  19  Prefactor     .10000E-03    23.830       -.35775E-06** at limit **
  20  Prefactor     .10000E-03    2.7154        .21612E-06** at limit **
  21  Prefactor     .10000E-03    123.03        .58041E-05** at limit **
  22  Prefactor     .10000E-03    3.2108       -.34641E-07** at limit **
  23  norm          .10000E-03    1.9010       -.21011E-07** at limit **
  24  Normalizat    .55266        .17139        .16086E-05   -.51441E-04
  25  Prefactor     1.2596        .13451       -.45861E-07    .21530E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2532
  Prefactor  = 0.0001
  Prefactor  = 0.0207173
  norm       = 4.36394
  Prefactor  = 0.0001
  Prefactor  = 11.2089
  Prefactor  = 4.62082
  Prefactor  = 4.0368
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 4.32762
  Prefactor  = 0.0001
  Prefactor  = 3.0735
  Prefactor  = 10.3296
  Prefactor  = 18.14
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.552662
  Prefactor  = 1.25962
 **********
 **   18 **HESSE 
 **********

 FCN=   7486.230     FROM HESSE     STATUS=OK           435 CALLS     3367 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.0211        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.253        20.154        .91282E-04   -1.4830    
   5  Prefactor     .10000E-03    10.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .20717E-01    3.8346        .34160E-01   -1.5679    
   7  norm          4.3639        3.3893        .13375E-03   -1.5290    
   8  Prefactor     .10000E-03    3.7628        .16365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.209        30.612        .11966E-03   -1.5038    
  10  Prefactor     4.6208        6.2777        .18711E-03   -1.5278    
  11  Prefactor     4.0368        3.3188        .13564E-03   -1.5306    
  12  Prefactor     .10002E-03    182.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.2051        .12538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.3276        3.4330        .13371E-03   -1.5292    
  15  Prefactor     .10000E-03    9.4406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0735        4.6570        .21455E-03   -1.5357    
  17  Prefactor     10.330        22.869        .12465E-03   -1.5065    
  18  Prefactor     18.140        11.630        .94037E-04   -1.4856    
  19  Prefactor     .10000E-03    23.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9885        .27717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    126.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.2139        .15141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.9011        .11651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .55266        .19109        .32095E-03   -1.1003    
  25  Prefactor     1.2596        .15144        .18533E-03   -.84516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41707e-10
Minuit parameter uncertainties:
  1  8.95176e-05
  2  1.89838e-05
  3  8.47091e-06
  4  20.1613
  5  0.000107495
  6  0.562386
  7  3.38941
  8  1.38268e-06
  9  30.6551
  10  6.27864
  11  3.31899
  12  0.00342301
  13  1.13855e-06
  14  3.43318
  15  2.46665e-05
  16  4.65759
  17  22.888
  18  11.6316
  19  1.13778e-05
  20  0.000104812
  21  0.000892554
  22  9.24137e-07
  23  8.85931e-08
  24  0.191317
  25  0.151494
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.423e-03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.260e+00  1.515e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  5.527e-01  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210611/likelihoodResults_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.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) = 7486.22966612
delta logL = -2.59179341811e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7486.22966612
delta logL = -2.59173530139e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    .55266       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2596       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7486.229     FROM MIGRAD    STATUS=FAILED       164 CALLS      313 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5282        6903.9        .18142E-01    .80555E-03
   2  Index         1.8777        5.8742        .50000        .41929E-05
   3  Normalizat    .55279        .11901E-01    .32095E-03    .16188E-04
   4  Prefactor     1.2592        .10082E-01    .18533E-03    .17176E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7486.229     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      394 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5282        6903.9        .21168E-02    .80555E-03
   2  Index         1.8777        5.8742        .40331E-02    .41929E-05
   3  Normalizat    .55279        .11901E-01    .12888E-04    .16188E-04
   4  Prefactor     1.2592        .10082E-01    .41900E-05    .17176E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7486.229     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      428 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5282        702.53        .36285E-02    .30065E-04
   2  Index         1.8777        5.9236        .30935E-01    .17745E-04
   3  Normalizat    .55279        .17587        .12838E-04    .16117E-04
   4  Prefactor     1.2592        .14978        .74133E-05    .17176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.52818
  Index      = 1.87773
  Normalizat = 0.552786
  Prefactor  = 1.25917
 **********
 **   18 **HESSE 
 **********

 FCN=   7486.229     FROM HESSE     STATUS=OK            27 CALLS      455 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5282        523.92        .72570E-03   -1.5332    
   2  Index         1.8777        2.9830        .61870E-02   -.67443    
   3  Normalizat    .55279        .17574        .25676E-05   -1.1003    
   4  Prefactor     1.2592        .14949        .14827E-05   -.84529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6289e-12
Minuit parameter uncertainties:
  1  86.7719
  2  3.39465
  3  0.175919
  4  0.149543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210611': 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) = 7486.22878056
delta logL = 0.000859644157572

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.528e+00  8.677e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.878e+00  3.395e+00  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.259e+00  1.495e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  5.528e-01  1.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

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/210611/cmap_HighResolution_503193601_503452801_4FGL_J2209.8-5028_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.72e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-28 06:39:51.694086', job_id='210611', GAL2='1.26', fit_tolerance='1e-08', EG2='0.55', EG='0.55', time_epoch_completed='1632836391.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='8.60e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1018' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:39:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 210611: <4FGL_J2209.8-5028_daily_bin1018> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1018> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:28 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:25:30 2021
Terminated at Tue Sep 28 06:39:52 2021
Results reported at Tue Sep 28 06:39:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1018 332.474 -50.4702 503193601 503452801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2209.8-5028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   819.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            864 sec.

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

