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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1487
RA = 332.474, Dec = -50.4702
tmin = 624758401, tmax = 625017601
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='211872', job_status='RUN', time_executed='2021-09-28 06:32:11.589065', time_epoch_executed='1632835931.59' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211872

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211872/ft1_4FGL_J2209.8-5028_daily_bin1487.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211872/ft2_4FGL_J2209.8-5028_daily_bin1487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211872/ft1_4FGL_J2209.8-5028_daily_bin1487.fits outfile=/scratch/kocevski/211872/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1487.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=624758401.0 tmax=625017601.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.59
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211872/ft2_4FGL_J2209.8-5028_daily_bin1487.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/211872/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1487.fits evtable="EVENTS" outfile="/scratch/kocevski/211872/ft1_filtered_4FGL_J2209.8-5028_daily_bin1487.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211872/ft1_filtered_4FGL_J2209.8-5028_daily_bin1487.fits" evtable="EVENTS" scfile=/scratch/kocevski/211872/ft2_4FGL_J2209.8-5028_daily_bin1487.fits sctable="SC_DATA" outfile=/scratch/kocevski/211872/ltcube_624758401_625017601_4FGL_J2209.8-5028_daily_bin1487.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/211872/ft2_4FGL_J2209.8-5028_daily_bin1487.fits
.....................!
real 15.59
user 15.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211872/ft1_filtered_4FGL_J2209.8-5028_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/211872/ft2_4FGL_J2209.8-5028_daily_bin1487.fits sctable="SC_DATA" expcube=/scratch/kocevski/211872/ltcube_624758401_625017601_4FGL_J2209.8-5028_daily_bin1487.fits outfile=/scratch/kocevski/211872/expmap_624758401_625017601_4FGL_J2209.8-5028_daily_bin1487.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/211872/ltcube_624758401_625017601_4FGL_J2209.8-5028_daily_bin1487.fits
.....................!
real 193.18
user 188.45
sys 4.35

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/211872/ft1_filtered_4FGL_J2209.8-5028_daily_bin1487.fits scfile=/scratch/kocevski/211872/ft2_4FGL_J2209.8-5028_daily_bin1487.fits outfile=/scratch/kocevski/211872/cmap_624758401_625017601_4FGL_J2209.8-5028_daily_bin1487.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.62
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211872/ft1_filtered_4FGL_J2209.8-5028_daily_bin1487.fits scfile=/scratch/kocevski/211872/ft2_4FGL_J2209.8-5028_daily_bin1487.fits outfile=/scratch/kocevski/211872/cmap_HighResolution_624758401_625017601_4FGL_J2209.8-5028_daily_bin1487.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211872/ft1_filtered_4FGL_J2209.8-5028_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/211872/ft2_4FGL_J2209.8-5028_daily_bin1487.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211872/Model_4FGL_J2209.8-5028_daily_bin1487.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/211872/ft1_filtered_4FGL_J2209.8-5028_daily_bin1487.fits.....................!
real 51.67
user 50.23
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    100.42       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.032       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.292       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9577       1.0000         .10000E-03   10000.    
     7 'norm      '    6.6245       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7724       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2958       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1976       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.045       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .84083       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.337       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3784       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.490       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.0932       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82934       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=   6606.879     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2892 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.900       -.52495E-06** at limit **
   2  Prefactor     100.39        65.634        .30860E-05    .20676E-06
   3  Prefactor     21.032        9.5944       -.10642E-06   -.22858E-04
   4  Prefactor     30.290        25.021        .29316E-06   -.34692E-05
   5  Prefactor     .10000E-03    12.008        .83672E-06** at limit **
   6  Prefactor     3.9562        4.7452        .20606E-05   -.70015E-04
   7  norm          6.6242        4.7024        .76956E-08   -.17268E-04
   8  Prefactor     7.7716        9.9842        .67711E-06   -.62547E-05
   9  Prefactor     3.2879        66.306        .25911E-05   -.77045E-06
  10  Prefactor     .10000E-03    5.7320       -.76757E-06** at limit **
  11  Prefactor     7.1972        4.0816       -.55402E-07   -.27187E-04
  12  Prefactor     47.017        76.897        .52550E-05    .82802E-05
  13  norm          .10000E-03    2.3880       -.26055E-07** at limit **
  14  Prefactor     .84132        2.1619        .24260E-06   -.12961E-04
  15  Prefactor     10.334        25.045        .71965E-06   -.24332E-05
  16  Prefactor     1.3788        3.0397        .23592E-06   -.99453E-05
  17  Prefactor     .10000E-03    11.126       -.92791E-06** at limit **
  18  Prefactor     .10000E-03    3.5018        .39758E-07** at limit **
  19  Prefactor     .10000E-03    47.142        .97867E-07** at limit **
  20  Prefactor     .10000E-03    5.9011        .24099E-06** at limit **
  21  Prefactor     19.490        18.828        .87682E-07   -.29546E-06
  22  Prefactor     .10000E-03    3.2553        .13732E-07** at limit **
  23  norm          .10000E-03    1.8115       -.55014E-08** at limit **
  24  Normalizat    1.0931        .17528       -.68559E-06   -.52466E-05
  25  Prefactor     .82941        .14030       -.78822E-06   -.27169E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 100.393
  Prefactor  = 21.0315
  Prefactor  = 30.2898
  Prefactor  = 0.0001
  Prefactor  = 3.95623
  norm       = 6.62417
  Prefactor  = 7.77162
  Prefactor  = 3.28785
  Prefactor  = 0.0001
  Prefactor  = 7.19718
  Prefactor  = 47.0167
  norm       = 0.0001
  Prefactor  = 0.841319
  Prefactor  = 10.3345
  Prefactor  = 1.37876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.4896
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.09314
  Prefactor  = 0.82941
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.879     FROM HESSE     STATUS=OK           429 CALLS     3321 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     100.39        65.514        .20059E-03   -1.3701    
   3  Prefactor     21.032        9.5943        .87337E-04   -1.4790    
   4  Prefactor     30.290        25.003        .72797E-04   -1.4607    
   5  Prefactor     .10000E-03    11.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.9562        4.7497        .91530E-03   -1.5310    
   7  norm          6.6242        4.6980        .13907E-03   -1.5193    
   8  Prefactor     7.7716        9.9774        .71916E-03   -1.5150    
   9  Prefactor     3.2879        66.310        .22301E-03   -1.5345    
  10  Prefactor     .10000E-03    5.8135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1972        4.0839        .11724E-03   -1.5171    
  12  Prefactor     47.017        76.993        .58459E-04   -1.4336    
  13  norm          .10000E-03    2.3903        .12267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .84132        2.1047        .18297E-03   -1.5525    
  15  Prefactor     10.334        25.014        .12462E-03   -1.5065    
  16  Prefactor     1.3788        3.0091        .20299E-03   -1.5473    
  17  Prefactor     .10000E-03    11.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.5180        .14854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    47.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1266        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.490        18.830        .90724E-04   -1.4825    
  22  Prefactor     .10000E-03    3.2580        .14323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.8115        .10684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0931        .20491        .24761E-03   -.89972    
  25  Prefactor     .82941        .16461        .22822E-03   -.98653    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21556e-11
Minuit parameter uncertainties:
  1  5.14609e-05
  2  65.5611
  3  9.59499
  4  25.0117
  5  3.12241e-05
  6  4.75018
  7  4.6983
  8  9.97957
  9  29.568
  10  6.68738e-05
  11  4.08404
  12  77.156
  13  1.16565e-06
  14  2.10492
  15  25.0395
  16  3.00945
  17  3.01222e-06
  18  3.27938e-06
  19  1.8383e-05
  20  1.00058e-05
  21  18.8353
  22  1.95138e-06
  23  1.90064e-07
  24  0.205062
  25  0.164708
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.702e+01  7.716e+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.294e-01  1.647e-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.093e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/211872/likelihoodResults_624758401_625017601_4FGL_J2209.8-5028_daily_bin1487.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) = 6606.79364119
delta logL = 0.0850598433235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6606.78215248
delta logL = 0.0965485567294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.855       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0496       1.0000          .0000       10.000    
     3 'Normalizat'    1.0780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83678       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=   6606.782     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      289 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.855        873.39        .21927E-02    .23120E-03
   2  Index         3.0498        6.5027        .14540        .12287E-03
   3  Normalizat    1.0770        .56145E-01    .56355E-01    .79600E-05
   4  Prefactor     .83752        .41724E-01    .44194E-01    .98569E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8553
  Index      = 3.04985
  Normalizat = 1.07702
  Prefactor  = 0.837523
 **********
 **   18 **HESSE 
 **********

 FCN=   6606.782     FROM HESSE     STATUS=OK            31 CALLS      320 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.855        336.35        .87706E-04   -1.4794    
   2  Index         3.0498        3.7017        .81632E-02   -.40066    
   3  Normalizat    1.0770        .21464        .24920E-03   -.90493    
   4  Prefactor     .83752        .16989        .22721E-03   -.98360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43177e-07
Minuit parameter uncertainties:
  1  168.64
  2  4.30029
  3  0.21481
  4  0.169996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211872': 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) = 6606.78214098
delta logL = 0.0965600517748

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.086e+01  1.686e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.050e+00  4.300e+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:  8.375e-01  1.700e-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.077e+00  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/211872/cmap_HighResolution_624758401_625017601_4FGL_J2209.8-5028_daily_bin1487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.81e-08', time_completed='2021-09-28 06:46:16.151013', job_id='211872', GAL2='0.84', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1632836776.15', return_code2='0', ts='0.57', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='9.66e-02', ts2='0.79', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1487' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 211872: <4FGL_J2209.8-5028_daily_bin1487> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1487 332.474 -50.4702 624758401 625017601 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 :                                   775.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

