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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1258
RA = 332.474, Dec = -50.4702
tmin = 565401601, tmax = 565660801
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='210974', job_status='RUN', time_executed='2021-09-28 06:26:39.806771', time_epoch_executed='1632835599.81' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210974

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210974/ft1_4FGL_J2209.8-5028_daily_bin1258.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210974/ft2_4FGL_J2209.8-5028_daily_bin1258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210974/ft1_4FGL_J2209.8-5028_daily_bin1258.fits outfile=/scratch/kocevski/210974/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1258.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=565401601.0 tmax=565660801.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.65
user 3.39
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210974/ft2_4FGL_J2209.8-5028_daily_bin1258.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/210974/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1258.fits evtable="EVENTS" outfile="/scratch/kocevski/210974/ft1_filtered_4FGL_J2209.8-5028_daily_bin1258.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/210974/ft1_filtered_4FGL_J2209.8-5028_daily_bin1258.fits" evtable="EVENTS" scfile=/scratch/kocevski/210974/ft2_4FGL_J2209.8-5028_daily_bin1258.fits sctable="SC_DATA" outfile=/scratch/kocevski/210974/ltcube_565401601_565660801_4FGL_J2209.8-5028_daily_bin1258.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/210974/ft2_4FGL_J2209.8-5028_daily_bin1258.fits
.....................!
real 11.78
user 11.38
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210974/ft1_filtered_4FGL_J2209.8-5028_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/210974/ft2_4FGL_J2209.8-5028_daily_bin1258.fits sctable="SC_DATA" expcube=/scratch/kocevski/210974/ltcube_565401601_565660801_4FGL_J2209.8-5028_daily_bin1258.fits outfile=/scratch/kocevski/210974/expmap_565401601_565660801_4FGL_J2209.8-5028_daily_bin1258.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/210974/ltcube_565401601_565660801_4FGL_J2209.8-5028_daily_bin1258.fits
.....................!
real 191.31
user 186.14
sys 4.82

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/210974/ft1_filtered_4FGL_J2209.8-5028_daily_bin1258.fits scfile=/scratch/kocevski/210974/ft2_4FGL_J2209.8-5028_daily_bin1258.fits outfile=/scratch/kocevski/210974/cmap_565401601_565660801_4FGL_J2209.8-5028_daily_bin1258.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210974/ft1_filtered_4FGL_J2209.8-5028_daily_bin1258.fits scfile=/scratch/kocevski/210974/ft2_4FGL_J2209.8-5028_daily_bin1258.fits outfile=/scratch/kocevski/210974/cmap_HighResolution_565401601_565660801_4FGL_J2209.8-5028_daily_bin1258.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.57
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210974/ft1_filtered_4FGL_J2209.8-5028_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/210974/ft2_4FGL_J2209.8-5028_daily_bin1258.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210974/Model_4FGL_J2209.8-5028_daily_bin1258.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/210974/ft1_filtered_4FGL_J2209.8-5028_daily_bin1258.fits.....................!
real 47.17
user 45.79
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33196       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1259       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0198       1.0000         .10000E-03   10000.    
     7 'norm      '    6.8336       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5277       1.0000         .10000E-03   10000.    
    12 'Prefactor '    69.669       1.0000         .10000E-03   10000.    
    13 'norm      '    5.2501       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1165       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.209       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    38.088       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'    .90584       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82699       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=   6343.957     FROM MIGRAD    STATUS=CONVERGED   1063 CALLS     3391 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.754        18.142        .95047E-04   -.23324E-04
   2  Prefactor     .10000E-03    14.442        .18142E-02** at limit **
   3  Prefactor     11.107        8.1062        .12026E-03   -.14246E-03
   4  Prefactor     .82125E-01    27.759        .99567E-01    .19026E-03
   5  Prefactor     1.0385        149.61        .65423E-02    .37634E-04
   6  Prefactor     5.0189        3.7574        .12782E-03   -.97482E-04
   7  norm          6.8413        4.0887        .11748E-03   -.10469E-03
   8  Prefactor     .10000E-03    11.366        .18142E-02** at limit **
   9  Prefactor     .10000E-03    12.576        .18142E-02** at limit **
  10  Prefactor     .10000E-03    2.4588        .12167E-02** at limit **
  11  Prefactor     3.5269        3.5122        .14134E-03   -.15982E-03
  12  Prefactor     69.653        63.788        .48092E-04   -.23451E-04
  13  norm          5.2497        5.2153        .17543E-03   -.29487E-04
  14  Prefactor     6.1167        3.3584        .10329E-03   -.13758E-04
  15  Prefactor     .10000E-03    45.476        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.4909        .94704E-03** at limit **
  17  Prefactor     14.200        21.763        .10626E-03    .23217E-04
  18  Prefactor     .10000E-03    11.809        .36285E-03** at limit **
  19  Prefactor     .10000E-03    89.330        .18142E-02** at limit **
  20  Prefactor     .10000E-03    5.2609        .35049E-03** at limit **
  21  Prefactor     38.084        31.708        .64943E-04    .10153E-04
  22  Prefactor     .10000E-03    3.5396        .14627E-02** at limit **
  23  norm          .10000E-03    2.2339        .11623E-02** at limit **
  24  Normalizat    .90589        .19101        .24413E-03   -.21547E-03
  25  Prefactor     .82708        .15064        .20745E-03    .31182E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7536
  Prefactor  = 0.0001
  Prefactor  = 11.1067
  Prefactor  = 0.0821255
  Prefactor  = 1.03849
  Prefactor  = 5.01887
  norm       = 6.84131
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.52691
  Prefactor  = 69.6533
  norm       = 5.24971
  Prefactor  = 6.11667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.0839
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.905892
  Prefactor  = 0.827079
 **********
 **   18 **HESSE 
 **********

 FCN=   6343.957     FROM HESSE     STATUS=OK           413 CALLS     3804 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.754        18.144        .38019E-05   -1.4865    
   2  Prefactor     .10000E-03    14.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.107        8.1025        .48104E-05   -1.5041    
   4  Prefactor     .82125E-01    25.083        .10621       -1.5651    
   5  Prefactor     1.0385        148.82        .26169E-03   -1.5504    
   6  Prefactor     5.0189        3.7558        .51128E-05   -1.5260    
   7  norm          6.8413        4.0853        .23496E-04   -1.5185    
   8  Prefactor     .10000E-03    11.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.577        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.4590        .24334E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5269        3.5118        .56538E-05   -1.5332    
  12  Prefactor     69.653        63.789        .96183E-05   -1.4037    
  13  norm          5.2497        5.2151        .70170E-05   -1.5250    
  14  Prefactor     6.1167        3.3574        .41317E-05   -1.5213    
  15  Prefactor     .10000E-03    45.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4910        .18941E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.200        21.759        .42503E-05   -1.4954    
  18  Prefactor     .10000E-03    11.809        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    89.345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.2612        .70098E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     38.084        31.712        .25977E-05   -1.4473    
  22  Prefactor     .10000E-03    3.5397        .29254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.2339        .23245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90589        .19110        .97652E-05   -.96253    
  25  Prefactor     .82708        .15055        .82980E-05   -.98738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00299e-10
Minuit parameter uncertainties:
  1  18.1496
  2  1.628e-05
  3  8.10329
  4  2.86995
  5  24.9254
  6  3.75593
  7  4.0855
  8  2.1059e-05
  9  1.1899e-05
  10  1.86242e-05
  11  3.51197
  12  63.8516
  13  5.21557
  14  3.35749
  15  2.19942e-06
  16  2.46879e-06
  17  21.7707
  18  4.6945e-05
  19  0.000159429
  20  3.00294e-07
  21  31.7255
  22  1.23827e-06
  23  2.27761e-07
  24  0.191246
  25  0.150628
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.965e+01  6.385e+01  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:  8.271e-01  1.506e-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:  9.059e-01  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.45e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 8.34e-06 +/- 7.64e-06

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

Saving results to:
/scratch/kocevski/210974/likelihoodResults_565401601_565660801_4FGL_J2209.8-5028_daily_bin1258.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): 0
logL (Free Index) = 6343.20492291
delta logL = 0.751644408048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6343.20210327
delta logL = 0.754464048199

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.653       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3699       1.0000          .0000       10.000    
     3 'Normalizat'    .92461       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82127       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=   6343.202     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      202 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.308        75.898        .12024E-02   -.37157E-05
   2  Index         1.3788        .51205        .30567       -.51910E-04
   3  Normalizat    .92451        .15483        .45215E-01    .56464E-05
   4  Prefactor     .82125        .12664        .43993E-01    .17349E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.3079
  Index      = 1.37881
  Normalizat = 0.924506
  Prefactor  = 0.821253
 **********
 **   18 **HESSE 
 **********

 FCN=   6343.202     FROM HESSE     STATUS=OK            31 CALLS      233 TOTAL
                     EDM=   .68E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.308        94.008        .48097E-04   -1.4017    
   2  Index         1.3788        .76365        .11147E-01   -.80993    
   3  Normalizat    .92451        .17845        .24194E-03   -.95604    
   4  Prefactor     .82125        .14623        .20812E-03   -.98950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83874e-12
Minuit parameter uncertainties:
  1  94.2047
  2  0.770039
  3  0.178566
  4  0.146297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210974': 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) = 6343.2019577
delta logL = 0.754609615358

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.131e+01  9.420e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.379e+00  7.700e-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:  8.213e-01  1.463e-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:  9.245e-01  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.14
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 1.38 +/- 0.77
Photon Flux (Free Index): 6.33e-09 +/- 1.01e-08
Energy Flux (Free Index): 3.00e-05 +/- 5.02e-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/210974/cmap_HighResolution_565401601_565660801_4FGL_J2209.8-5028_daily_bin1258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.23e-03', comment='SUCCESS', photon_flux='2.45e-08', energy_flux2='3.00e-05', photon_flux_error='2.24e-08', dlogl='7.55e-01', energy_flux='8.34e-06', photon_flux2='6.33e-09', job_status='DONE', time_completed='2021-09-28 06:39:14.996354', photon_index_error2='0.77', photon_index2='1.38', ts='2.66', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='8.07e-08', energy_flux_error2='5.02e-05', EG='0.91', time_epoch_completed='1632836355.0', return_code='0', job_id='210974', GAL2='0.82', EG2='0.92', return_code2='0', energy_flux_error='7.64e-06', photon_flux_error2='1.01e-08', ts2='4.14', photon_index='2.37' WHERE bin_id='1258' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:39:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 210974: <4FGL_J2209.8-5028_daily_bin1258> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1258> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:59 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:26:01 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:26:01 2021
Terminated at Tue Sep 28 06:39:15 2021
Results reported at Tue Sep 28 06:39:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1258 332.474 -50.4702 565401601 565660801 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 :                                   754.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

