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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1561
RA = 332.474, Dec = -50.4702
tmin = 643939201, tmax = 644198401
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='211980', job_status='RUN', time_executed='2021-09-28 06:32:26.019552', time_epoch_executed='1632835946.02' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211980

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211980/ft1_4FGL_J2209.8-5028_daily_bin1561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211980/ft2_4FGL_J2209.8-5028_daily_bin1561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211980/ft1_4FGL_J2209.8-5028_daily_bin1561.fits outfile=/scratch/kocevski/211980/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1561.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=643939201.0 tmax=644198401.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.45
user 4.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211980/ft2_4FGL_J2209.8-5028_daily_bin1561.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/211980/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1561.fits evtable="EVENTS" outfile="/scratch/kocevski/211980/ft1_filtered_4FGL_J2209.8-5028_daily_bin1561.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/211980/ft1_filtered_4FGL_J2209.8-5028_daily_bin1561.fits" evtable="EVENTS" scfile=/scratch/kocevski/211980/ft2_4FGL_J2209.8-5028_daily_bin1561.fits sctable="SC_DATA" outfile=/scratch/kocevski/211980/ltcube_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.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/211980/ft2_4FGL_J2209.8-5028_daily_bin1561.fits
.....................!
real 11.86
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211980/ft1_filtered_4FGL_J2209.8-5028_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/211980/ft2_4FGL_J2209.8-5028_daily_bin1561.fits sctable="SC_DATA" expcube=/scratch/kocevski/211980/ltcube_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.fits outfile=/scratch/kocevski/211980/expmap_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.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/211980/ltcube_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.fits
.....................!
real 189.76
user 185.10
sys 4.32

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/211980/ft1_filtered_4FGL_J2209.8-5028_daily_bin1561.fits scfile=/scratch/kocevski/211980/ft2_4FGL_J2209.8-5028_daily_bin1561.fits outfile=/scratch/kocevski/211980/cmap_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211980/ft1_filtered_4FGL_J2209.8-5028_daily_bin1561.fits scfile=/scratch/kocevski/211980/ft2_4FGL_J2209.8-5028_daily_bin1561.fits outfile=/scratch/kocevski/211980/cmap_HighResolution_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.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.54
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211980/ft1_filtered_4FGL_J2209.8-5028_daily_bin1561.fits evtable="EVENTS" scfile=/scratch/kocevski/211980/ft2_4FGL_J2209.8-5028_daily_bin1561.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211980/Model_4FGL_J2209.8-5028_daily_bin1561.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/211980/ft1_filtered_4FGL_J2209.8-5028_daily_bin1561.fits.....................!
real 54.24
user 52.91
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/211980/ft1_filtered_4FGL_J2209.8-5028_daily_bin1561.fits', '/scratch/kocevski/211980/ft2_4FGL_J2209.8-5028_daily_bin1561.fits', expMap='/scratch/kocevski/211980/expmap_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.fits', expCube='/scratch/kocevski/211980/ltcube_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/211980/Model_4FGL_J2209.8-5028_daily_bin1561.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/211980/ft1_filtered_4FGL_J2209.8-5028_daily_bin1561.fits
Spacecraft file(s): /scratch/kocevski/211980/ft2_4FGL_J2209.8-5028_daily_bin1561.fits
Exposure map: /scratch/kocevski/211980/expmap_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.fits
Exposure cube: /scratch/kocevski/211980/ltcube_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/211980/Model_4FGL_J2209.8-5028_daily_bin1561.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) = 7395.7832487

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19923E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7562       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.828       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7393       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0237       1.0000         .10000E-03   10000.    
     7 'norm      '    1.7191       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.958       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2320       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7013       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12346E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .81515       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .67183       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6101       1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.024       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2092       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1526       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85946       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99274       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.

 FCN=   7395.779     FROM MIGRAD    STATUS=CONVERGED   1033 CALLS     3396 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    20.927        .10645    ** at limit **
   2  Prefactor     .10000E-03    20.943        .18142E-02** at limit **
   3  Prefactor     2.7566        5.0826        .12259E-02    .48402E-03
   4  Prefactor     13.830        18.215        .10771E-03   -.17784E-03
   5  Prefactor     3.7396        12.137        .20881E-03   -.30327E-04
   6  Prefactor     4.0236        3.5450        .72537E-03   -.16306E-03
   7  norm          1.7190        3.1732        .19635E-03    .34729E-04
   8  Prefactor     .10000E-03    5.5652        .18142E-02** at limit **
   9  Prefactor     29.954        29.735        .73201E-04   -.26172E-03
  10  Prefactor     3.2333        7.8362        .22532E-03   -.25117E-03
  11  Prefactor     2.7006        4.3688        .10392E-02   -.38075E-03
  12  Prefactor     .10000E-03    199.39        .18142E-02** at limit **
  13  norm          .10000E-03    2.0375        .11972E-02** at limit **
  14  Prefactor     .81559        1.7497        .17125E-02   -.74526E-03
  15  Prefactor     .10000E-03    13.941        .18142E-02** at limit **
  16  Prefactor     .67145        2.0146        .20540E-03   -.95991E-03
  17  Prefactor     .10000E-03    6.6423        .18142E-02** at limit **
  18  Prefactor     7.6093        8.6637        .72685E-03    .34316E-04
  19  Prefactor     39.022        58.488        .64162E-04   -.14742E-04
  20  Prefactor     .10000E-03    2.1654        .24403E-03** at limit **
  21  Prefactor     2.2075        42.101        .27675E-03    .31590E-04
  22  Prefactor     .10000E-03    5.4330        .18142E-02** at limit **
  23  norm          3.1527        3.9738        .18817E-03    .50751E-04
  24  Normalizat    .85946        .18541        .25915E-03    .18381E-04
  25  Prefactor     .99271        .14858        .20086E-03    .71088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 2.75665
  Prefactor  = 13.8303
  Prefactor  = 3.73961
  Prefactor  = 4.02363
  norm       = 1.71895
  Prefactor  = 0.0001
  Prefactor  = 29.9539
  Prefactor  = 3.23327
  Prefactor  = 2.70058
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.815589
  Prefactor  = 0.0001
  Prefactor  = 0.671446
  Prefactor  = 0.0001
  Prefactor  = 7.60931
  Prefactor  = 39.0218
  Prefactor  = 0.0001
  Prefactor  = 2.2075
  Prefactor  = 0.0001
  norm       = 3.15274
  Normalizat = 0.859461
  Prefactor  = 0.992711
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.779     FROM HESSE     STATUS=OK           423 CALLS     3819 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    20.150        .10935       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7566        5.0799        .49038E-04   -1.5376    
   4  Prefactor     13.830        18.214        .43086E-05   -1.4964    
   5  Prefactor     3.7396        12.137        .83522E-05   -1.5321    
   6  Prefactor     4.0236        3.5439        .29015E-04   -1.5307    
   7  norm          1.7190        3.1727        .39270E-04   -1.5446    
   8  Prefactor     .10000E-03    5.5674        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     29.954        29.730        .14640E-04   -1.4613    
  10  Prefactor     3.2333        7.8293        .90127E-05   -1.5348    
  11  Prefactor     2.7006        4.3616        .41568E-04   -1.5379    
  12  Prefactor     .10000E-03    199.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.0375        .23944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .81559        1.7472        .68499E-04   -1.5527    
  15  Prefactor     .10000E-03    13.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .67145        2.0145        .82161E-05   -1.5544    
  17  Prefactor     .10000E-03    6.6425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6093        8.6612        .29074E-04   -1.5156    
  19  Prefactor     39.022        58.484        .12832E-04   -1.4458    
  20  Prefactor     .10000E-03    2.1654        .48807E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2075        42.092        .11070E-04   -1.5411    
  22  Prefactor     .10000E-03    5.4337        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1527        3.9738        .75267E-05   -1.5353    
  24  Normalizat    .85946        .18539        .10366E-04   -.97900    
  25  Prefactor     .99271        .14870        .80346E-05   -.92973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61459e-09
Minuit parameter uncertainties:
  1  0.000662805
  2  4.14608e-05
  3  5.08073
  4  18.2214
  5  12.1448
  6  3.54413
  7  3.17298
  8  1.22035e-05
  9  29.7446
  10  7.83179
  11  4.36213
  12  0.000810826
  13  1.35221e-05
  14  1.74732
  15  1.53032e-05
  16  2.01473
  17  4.77078e-05
  18  8.66263
  19  58.5703
  20  1.81766e-06
  21  19.294
  22  1.40103e-05
  23  3.97412
  24  0.18553
  25  0.148758
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  8.108e-04  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:  9.927e-01  1.488e-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:  8.595e-01  1.855e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211980/likelihoodResults_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.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) = 7395.77868187
delta logL = -2.37602289417e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7395.778658
delta logL = 1.1700194591e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6328       1.0000          .0000       10.000    
     3 'Normalizat'    .85946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99271       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.

 FCN=   7395.779     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      255 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    122.31        .90712E-02** at limit **
   2  Index         2.7121        6.1328        .50000       -.15677E-05
   3  Normalizat    .85946        .19018E-02    .44381E-01    .10548E-04
   4  Prefactor     .99271        .15819E-02    .46176E-01   -.72266E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100022
  Index      = 2.7121
  Normalizat = 0.859461
  Prefactor  = 0.99271
 **********
 **   18 **HESSE 
 **********

 FCN=   7395.779     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      290 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    585.16        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7121        7.9073        .50000       -.47527    
   3  Normalizat    .85946        .41055E-02    .25915E-03   -.97900    
   4  Prefactor     .99271        .34155E-02    .20086E-03   -.92973    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.61617e-09
Minuit parameter uncertainties:
  1  0.00716562
  2  266.741
  3  0.00410549
  4  0.00341552
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211980': 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) = 7395.77865796
delta logL = 1.54269400809e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  7.166e-03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.712e+00  2.667e+02  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:  9.927e-01  3.416e-03  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:  8.595e-01  4.105e-03  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/211980/cmap_HighResolution_643939201_644198401_4FGL_J2209.8-5028_daily_bin1561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-09-28 06:46:47.396949', job_id='211980', GAL2='0.99', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1632836807.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.54e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1561' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:46:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 211980: <4FGL_J2209.8-5028_daily_bin1561> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1561> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:43 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:45 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:30:45 2021
Terminated at Tue Sep 28 06:46:48 2021
Results reported at Tue Sep 28 06:46:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1561 332.474 -50.4702 643939201 644198401 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 :                                   856.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            965 sec.

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

