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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1060
RA = 332.474, Dec = -50.4702
tmin = 514080001, tmax = 514339201
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='210671', job_status='RUN', time_executed='2021-09-28 06:28:49.208197', time_epoch_executed='1632835729.21' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210671/ft1_4FGL_J2209.8-5028_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210671/ft2_4FGL_J2209.8-5028_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210671/ft1_4FGL_J2209.8-5028_daily_bin1060.fits outfile=/scratch/kocevski/210671/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1060.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=514080001.0 tmax=514339201.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.60
user 3.41
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210671/ft2_4FGL_J2209.8-5028_daily_bin1060.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/210671/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1060.fits evtable="EVENTS" outfile="/scratch/kocevski/210671/ft1_filtered_4FGL_J2209.8-5028_daily_bin1060.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210671/ft1_filtered_4FGL_J2209.8-5028_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/210671/ft2_4FGL_J2209.8-5028_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/210671/ltcube_514080001_514339201_4FGL_J2209.8-5028_daily_bin1060.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/210671/ft2_4FGL_J2209.8-5028_daily_bin1060.fits
.....................!
real 12.04
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210671/ft1_filtered_4FGL_J2209.8-5028_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/210671/ft2_4FGL_J2209.8-5028_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/210671/ltcube_514080001_514339201_4FGL_J2209.8-5028_daily_bin1060.fits outfile=/scratch/kocevski/210671/expmap_514080001_514339201_4FGL_J2209.8-5028_daily_bin1060.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/210671/ltcube_514080001_514339201_4FGL_J2209.8-5028_daily_bin1060.fits
.....................!
real 190.44
user 185.13
sys 4.99

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/210671/ft1_filtered_4FGL_J2209.8-5028_daily_bin1060.fits scfile=/scratch/kocevski/210671/ft2_4FGL_J2209.8-5028_daily_bin1060.fits outfile=/scratch/kocevski/210671/cmap_514080001_514339201_4FGL_J2209.8-5028_daily_bin1060.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210671/ft1_filtered_4FGL_J2209.8-5028_daily_bin1060.fits scfile=/scratch/kocevski/210671/ft2_4FGL_J2209.8-5028_daily_bin1060.fits outfile=/scratch/kocevski/210671/cmap_HighResolution_514080001_514339201_4FGL_J2209.8-5028_daily_bin1060.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210671/ft1_filtered_4FGL_J2209.8-5028_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/210671/ft2_4FGL_J2209.8-5028_daily_bin1060.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210671/Model_4FGL_J2209.8-5028_daily_bin1060.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/210671/ft1_filtered_4FGL_J2209.8-5028_daily_bin1060.fits.....................!
real 46.07
user 44.74
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    62.969       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    37.754       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.048       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3721       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2718       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3570       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.404       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10877E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.885       1.0000         .10000E-03   10000.    
    12 'Prefactor '    205.46       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5700       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9740       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12582E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .41099E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1558       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96759       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=   5831.572     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2969 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     62.967        34.816        .15602E-06   -.32266E-04
   2  Prefactor     .10000E-03    26.818        .33805E-06** at limit **
   3  Prefactor     18.111        13.431        .78334E-07   -.37558E-04
   4  Prefactor     37.721        43.979        .69865E-06   -.24597E-03
   5  Prefactor     20.058        36.329        .53490E-06    .57502E-04
   6  Prefactor     8.3726        5.8381        .12268E-06    .55316E-04
   7  norm          4.2739        5.0142       -.26777E-06   -.31509E-03
   8  Prefactor     8.3591        15.310        .57009E-06   -.31796E-04
   9  Prefactor     34.410        42.861       -.18363E-07    .93225E-04
  10  Prefactor     .10000E-03    5.2459       -.45834E-07** at limit **
  11  Prefactor     10.886        5.2579        .84429E-07    .42790E-03
  12  Prefactor     205.45        134.90        .31770E-06    .61301E-04
  13  norm          1.5699        4.8590        .17552E-06   -.39291E-05
  14  Prefactor     1.9769        5.1074        .63662E-05   -.22643E-03
  15  Prefactor     .10000E-03    26.030        .10481E-06** at limit **
  16  Prefactor     .10000E-03    5.6212       -.17820E-05** at limit **
  17  Prefactor     9.9693        27.175        .27780E-05    .34672E-03
  18  Prefactor     .10001E-03    10.014       -.92081E-05** at limit **
  19  Prefactor     .10000E-03    72.808       -.42281E-06** at limit **
  20  Prefactor     .10000E-03    6.8326        .16789E-06** at limit **
  21  Prefactor     .10000E-03    16.615       -.11075E-06** at limit **
  22  Prefactor     .10000E-03    8.0126        .33074E-07** at limit **
  23  norm          .10000E-03    3.9868        .15523E-07** at limit **
  24  Normalizat    1.1552        .22518       -.14468E-05    .72343E-03
  25  Prefactor     .96797        .16762       -.82295E-07    .44222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 62.9669
  Prefactor  = 0.0001
  Prefactor  = 18.1113
  Prefactor  = 37.7209
  Prefactor  = 20.0577
  Prefactor  = 8.37264
  norm       = 4.27391
  Prefactor  = 8.35911
  Prefactor  = 34.4098
  Prefactor  = 0.0001
  Prefactor  = 10.8862
  Prefactor  = 205.45
  norm       = 1.5699
  Prefactor  = 1.97692
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.96926
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.1552
  Prefactor  = 0.967966
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.572     FROM HESSE     STATUS=OK           423 CALLS     3392 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     62.967        34.842        .50569E-04   -1.4119    
   2  Prefactor     .10000E-03    26.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     18.111        13.430        .94123E-04   -1.4857    
   4  Prefactor     37.721        43.973        .65229E-04   -1.4479    
   5  Prefactor     20.058        36.372        .89453E-04   -1.4812    
   6  Prefactor     8.3726        5.8320        .13855E-03   -1.5129    
   7  norm          4.2739        5.0045        .16906E-03   -1.5294    
   8  Prefactor     8.3591        15.306        .69338E-03   -1.5130    
   9  Prefactor     34.410        42.942        .68320E-04   -1.4534    
  10  Prefactor     .10000E-03    5.2547        .17061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.886        5.2628        .11553E-03   -1.5048    
  12  Prefactor     205.45        134.84        .28197E-04   -1.2831    
  13  norm          1.5699        4.8093        .28844E-03   -1.5457    
  14  Prefactor     1.9769        5.6956        .14034E-02   -1.5427    
  15  Prefactor     .10000E-03    26.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.626        .33908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.9693        27.002        .12676E-03   -1.5076    
  18  Prefactor     .10001E-03    20.964        .36848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    72.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.8892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.623        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.0313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.9955        .14892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1552        .26667        .28217E-03   -.87999    
  25  Prefactor     .96797        .19723        .24050E-03   -.93805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66749e-09
Minuit parameter uncertainties:
  1  34.8534
  2  5.81018e-05
  3  13.432
  4  44.0106
  5  36.412
  6  5.8324
  7  5.00503
  8  15.3128
  9  42.9807
  10  7.1083e-06
  11  5.26301
  12  135.039
  13  4.8105
  14  5.69717
  15  9.26319e-05
  16  0.000457939
  17  27.0354
  18  0.000701199
  19  3.46759e-05
  20  2.82138e-05
  21  2.11297e-06
  22  7.4414e-06
  23  2.3958e-06
  24  0.266983
  25  0.197381
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.055e+02  1.350e+02  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.680e-01  1.974e-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:  1.155e+00  2.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.38
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.22e-08 +/- 4.74e-08
Energy Flux (Fixed Index): 2.46e-05 +/- 1.62e-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) = 5830.38307084
delta logL = 1.18899816531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5830.3492941
delta logL = 1.22277490163

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.888       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8876       1.0000          .0000       10.000    
     3 'Normalizat'    1.0372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0337       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=   5830.349     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      326 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.921        195.56        .92158E-04    .61236E-03
   2  Index         3.8878        2.8300        .29303E-02    .23044E-03
   3  Normalizat    1.0351        .24796        .29501E-03   -.53126E-03
   4  Prefactor     1.0349        .19121        .23346E-03    .15303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.9211
  Index      = 3.88778
  Normalizat = 1.03511
  Prefactor  = 1.03494
 **********
 **   18 **HESSE 
 **********

 FCN=   5830.349     FROM HESSE     STATUS=OK            25 CALLS      351 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.921        52.938        .36863E-05   -1.4838    
   2  Index         3.8878        1.2963        .11721E-03   -.22432    
   3  Normalizat    1.0351        .25451        .59001E-04   -.91863    
   4  Prefactor     1.0349        .19748        .46692E-04   -.91574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.33709e-09
Minuit parameter uncertainties:
  1  53.0702
  2  1.31211
  3  0.254808
  4  0.197618
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210671': 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) = 5830.34925697
delta logL = 1.22281203681

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.892e+01  5.307e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.888e+00  1.312e+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.035e+00  1.976e-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:  1.035e+00  2.548e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.17
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.89 +/- 1.31
Photon Flux (Free Index): 1.64e-07 +/- 8.37e-08
Energy Flux (Free Index): 2.51e-05 +/- 1.18e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/210671/cmap_HighResolution_514080001_514339201_4FGL_J2209.8-5028_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.22e-08', energy_flux2='2.51e-05', photon_flux_error='4.74e-08', dlogl='1.22e+00', energy_flux='2.46e-05', photon_flux2='1.64e-07', job_status='DONE', time_completed='2021-09-28 06:41:46.730514', photon_index_error2='1.31', photon_index2='3.89', ts='4.38', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='1.16', time_epoch_completed='1632836506.73', return_code='0', job_id='210671', GAL2='1.03', EG2='1.04', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='8.37e-08', ts2='7.17', photon_index='2.37' WHERE bin_id='1060' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:41:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0188>
Subject: Job 210671: <4FGL_J2209.8-5028_daily_bin1060> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1060> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:32 2021
Job was executed on host(s) <bullet0188>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:35 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:35 2021
Terminated at Tue Sep 28 06:41:47 2021
Results reported at Tue Sep 28 06:41:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1060 332.474 -50.4702 514080001 514339201 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 :                                   629.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             258.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            975 sec.

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

