/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 2 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin26
RA = 332.474, Dec = -50.4702
tmin = 246067201, tmax = 246326401
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='205704', job_status='RUN', time_executed='2021-09-28 06:10:29.968066', time_epoch_executed='1632834629.97' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205704/ft1_4FGL_J2209.8-5028_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205704/ft2_4FGL_J2209.8-5028_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205704/ft1_4FGL_J2209.8-5028_daily_bin26.fits outfile=/scratch/kocevski/205704/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin26.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=246067201.0 tmax=246326401.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 1.48
user 1.29
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205704/ft1_filtered_4FGL_J2209.8-5028_daily_bin26.fits" evtable="EVENTS" scfile=/scratch/kocevski/205704/ft2_4FGL_J2209.8-5028_daily_bin26.fits sctable="SC_DATA" outfile=/scratch/kocevski/205704/ltcube_246067201_246326401_4FGL_J2209.8-5028_daily_bin26.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/205704/ft2_4FGL_J2209.8-5028_daily_bin26.fits
.....................!
real 12.36
user 12.00
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205704/ft1_filtered_4FGL_J2209.8-5028_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/205704/ft2_4FGL_J2209.8-5028_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/205704/ltcube_246067201_246326401_4FGL_J2209.8-5028_daily_bin26.fits outfile=/scratch/kocevski/205704/expmap_246067201_246326401_4FGL_J2209.8-5028_daily_bin26.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/205704/ltcube_246067201_246326401_4FGL_J2209.8-5028_daily_bin26.fits
.....................!
real 190.39
user 184.96
sys 5.09

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/205704/ft1_filtered_4FGL_J2209.8-5028_daily_bin26.fits scfile=/scratch/kocevski/205704/ft2_4FGL_J2209.8-5028_daily_bin26.fits outfile=/scratch/kocevski/205704/cmap_246067201_246326401_4FGL_J2209.8-5028_daily_bin26.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205704/ft1_filtered_4FGL_J2209.8-5028_daily_bin26.fits scfile=/scratch/kocevski/205704/ft2_4FGL_J2209.8-5028_daily_bin26.fits outfile=/scratch/kocevski/205704/cmap_HighResolution_246067201_246326401_4FGL_J2209.8-5028_daily_bin26.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/205704/ft1_filtered_4FGL_J2209.8-5028_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/205704/ft2_4FGL_J2209.8-5028_daily_bin26.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205704/Model_4FGL_J2209.8-5028_daily_bin26.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/205704/ft1_filtered_4FGL_J2209.8-5028_daily_bin26.fits.....................!
real 50.51
user 49.28
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.485       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2978       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.468       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15953       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2587       1.0000         .10000E-03   10000.    
     7 'norm      '    19.278       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.816       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15707E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0434       1.0000         .10000E-03   10000.    
    12 'Prefactor '    241.32       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    74.493       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .77216       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.9883       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1445       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91125       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=   6557.809     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3084 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.486        27.043        .48623E-07   -.38740E-04
   2  Prefactor     .10000E-03    125.35        .79301E-06** at limit **
   3  Prefactor     7.2971        9.6930       -.38008E-06    .23459E-03
   4  Prefactor     34.470        33.764        .96810E-07    .92861E-04
   5  Prefactor     .28051        16.838        .20582E-05   -.98310E-04
   6  Prefactor     2.2577        4.8072        .38938E-05   -.23175E-04
   7  norm          19.278        7.0282        .65683E-07    .17442E-03
   8  Prefactor     .10000E-03    38.843        .56887E-06** at limit **
   9  Prefactor     23.811        35.626       -.14725E-05    .19011E-03
  10  Prefactor     .10005E-03    11.712       -.27219E-05** at limit **
  11  Prefactor     1.0433        2.9965       -.57634E-07    .11827E-04
  12  Prefactor     241.26        136.98       -.10246E-05    .52996E-04
  13  norm          .10000E-03    3.4059        .12974E-07** at limit **
  14  Prefactor     .10000E-03    1.9788        .13498E-06** at limit **
  15  Prefactor     .10000E-03    120.74        .22310E-05** at limit **
  16  Prefactor     .10000E-03    8.0127        .58301E-06** at limit **
  17  Prefactor     74.547        40.757       -.18626E-05   -.69767E-03
  18  Prefactor     .73527        20.440       -.41897E-05    .80401E-04
  19  Prefactor     .10003E-03    146.88       -.36798E-05** at limit **
  20  Prefactor     5.9890        7.1218       -.10971E-06    .17858E-03
  21  Prefactor     .10000E-03    19.881        .96249E-07** at limit **
  22  Prefactor     .10000E-03    6.2900        .47247E-07** at limit **
  23  norm          .10000E-03    2.6254        .95172E-09** at limit **
  24  Normalizat    1.1445        .19483       -.94238E-06   -.21178E-03
  25  Prefactor     .91121        .14895       -.80548E-06   -.35063E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.486
  Prefactor  = 0.000100001
  Prefactor  = 7.29706
  Prefactor  = 34.4702
  Prefactor  = 0.280509
  Prefactor  = 2.25775
  norm       = 19.2779
  Prefactor  = 0.000100001
  Prefactor  = 23.8111
  Prefactor  = 0.000100051
  Prefactor  = 1.0433
  Prefactor  = 241.261
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 74.5466
  Prefactor  = 0.735274
  Prefactor  = 0.000100026
  Prefactor  = 5.98899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.1445
  Prefactor  = 0.91121
 **********
 **   18 **HESSE 
 **********

 FCN=   6557.809     FROM HESSE     STATUS=OK           429 CALLS     3513 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.486        27.047        .63788E-04   -1.4450    
   2  Prefactor     .10000E-03    126.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2971        9.6538        .14847E-03   -1.5168    
   4  Prefactor     34.470        33.725        .68257E-04   -1.4533    
   5  Prefactor     .28051        19.357        .10439       -1.5602    
   6  Prefactor     2.2577        5.1507        .12921E-02   -1.5407    
   7  norm          19.278        7.0237        .91222E-04   -1.4830    
   8  Prefactor     .10000E-03    39.992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.811        35.446        .82080E-04   -1.4732    
  10  Prefactor     .10005E-03    52.847        .41468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0433        2.9223        .22555E-03   -1.5504    
  12  Prefactor     241.26        140.84        .13033E-03   -1.2589    
  13  norm          .10000E-03    3.4146        .14596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.0101        .11122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    122.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.3665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     74.547        43.317        .46520E-04   -1.3979    
  18  Prefactor     .73527        75.716        .47934E-02   -1.5536    
  19  Prefactor     .10003E-03    145.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.9890        7.1095        .16409E-03   -1.5218    
  21  Prefactor     .10000E-03    19.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.3085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.6261        .12815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1445        .22837        .26797E-03   -.88336    
  25  Prefactor     .91121        .17386        .23488E-03   -.95750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46744e-09
Minuit parameter uncertainties:
  1  27.0553
  2  0.000598994
  3  9.65582
  4  33.7432
  5  4.66117
  6  5.1517
  7  7.02398
  8  0.000307344
  9  35.4773
  10  0.00327232
  11  2.9227
  12  141.04
  13  3.30753e-06
  14  1.53494e-05
  15  0.00153392
  16  0.000153633
  17  43.3358
  18  14.9412
  19  0.00389591
  20  7.11055
  21  4.32762e-05
  22  1.12389e-05
  23  7.6018e-07
  24  0.228563
  25  0.173966
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.413e+02  1.410e+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.112e-01  1.740e-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.145e+00  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.50
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 8.48e-08 +/- 4.95e-08
Energy Flux (Fixed Index): 2.89e-05 +/- 1.69e-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) = 6555.68516343
delta logL = 2.12398898863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6555.68133259
delta logL = 2.12781982794

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.603       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4271       1.0000          .0000       10.000    
     3 'Normalizat'    1.0640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94906       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=   6555.681     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      306 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.638        101.48        .56376E-04    .62312E-04
   2  Index         3.4270        .92532        .28884E-02    .15761E-03
   3  Normalizat    1.0642        .22233        .27589E-03    .79530E-04
   4  Prefactor     .94902        .17323        .23043E-03   -.12038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.6378
  Index      = 3.42695
  Normalizat = 1.06417
  Prefactor  = 0.949017
 **********
 **   18 **HESSE 
 **********

 FCN=   6555.681     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.638        65.291        .22550E-05   -1.4284    
   2  Index         3.4270        .59589        .11553E-03   -.32005    
   3  Normalizat    1.0642        .22230        .11036E-04   -.90911    
   4  Prefactor     .94902        .17304        .92172E-05   -.94449    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37683e-10
Minuit parameter uncertainties:
  1  65.3835
  2  0.597463
  3  0.222497
  4  0.17314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205704': 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) = 6555.68133113
delta logL = 2.1278212895

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.064e+01  6.538e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.427e+00  5.975e-01  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.490e-01  1.731e-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.064e+00  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.05
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.43 +/- 0.60
Photon Flux (Free Index): 1.57e-07 +/- 6.80e-08
Energy Flux (Free Index): 2.67e-05 +/- 1.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/205704/cmap_HighResolution_246067201_246326401_4FGL_J2209.8-5028_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.48e-08', energy_flux2='2.67e-05', photon_flux_error='4.95e-08', dlogl='2.13e+00', energy_flux='2.89e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-28 06:21:54.637073', photon_index_error2='0.60', photon_index2='3.43', ts='4.50', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='1.14', time_epoch_completed='1632835314.64', return_code='0', job_id='205704', GAL2='0.95', EG2='1.06', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='6.80e-08', ts2='9.05', photon_index='2.37' WHERE bin_id='26' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:21:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 205704: <4FGL_J2209.8-5028_daily_bin26> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin26> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:18 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:20 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:10:20 2021
Terminated at Tue Sep 28 06:21:55 2021
Results reported at Tue Sep 28 06:21:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin26 332.474 -50.4702 246067201 246326401 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 :                                   677.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             319.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            697 sec.

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

