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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin612
RA = 332.474, Dec = -50.4702
tmin = 397958401, tmax = 398217601
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='207668', job_status='RUN', time_executed='2021-09-28 06:16:07.782760', time_epoch_executed='1632834967.78' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207668

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207668/ft1_4FGL_J2209.8-5028_daily_bin612.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207668/ft2_4FGL_J2209.8-5028_daily_bin612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207668/ft1_4FGL_J2209.8-5028_daily_bin612.fits outfile=/scratch/kocevski/207668/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin612.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=397958401.0 tmax=398217601.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.62
user 3.31
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207668/ft1_filtered_4FGL_J2209.8-5028_daily_bin612.fits" evtable="EVENTS" scfile=/scratch/kocevski/207668/ft2_4FGL_J2209.8-5028_daily_bin612.fits sctable="SC_DATA" outfile=/scratch/kocevski/207668/ltcube_397958401_398217601_4FGL_J2209.8-5028_daily_bin612.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/207668/ft2_4FGL_J2209.8-5028_daily_bin612.fits
.....................!
real 11.88
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207668/ft1_filtered_4FGL_J2209.8-5028_daily_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/207668/ft2_4FGL_J2209.8-5028_daily_bin612.fits sctable="SC_DATA" expcube=/scratch/kocevski/207668/ltcube_397958401_398217601_4FGL_J2209.8-5028_daily_bin612.fits outfile=/scratch/kocevski/207668/expmap_397958401_398217601_4FGL_J2209.8-5028_daily_bin612.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/207668/ltcube_397958401_398217601_4FGL_J2209.8-5028_daily_bin612.fits
.....................!
real 195.40
user 187.71
sys 5.59

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/207668/ft1_filtered_4FGL_J2209.8-5028_daily_bin612.fits scfile=/scratch/kocevski/207668/ft2_4FGL_J2209.8-5028_daily_bin612.fits outfile=/scratch/kocevski/207668/cmap_397958401_398217601_4FGL_J2209.8-5028_daily_bin612.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207668/ft1_filtered_4FGL_J2209.8-5028_daily_bin612.fits scfile=/scratch/kocevski/207668/ft2_4FGL_J2209.8-5028_daily_bin612.fits outfile=/scratch/kocevski/207668/cmap_HighResolution_397958401_398217601_4FGL_J2209.8-5028_daily_bin612.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8017       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1894       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4607       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.172       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54845       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3883       1.0000         .10000E-03   10000.    
    12 'Prefactor '    142.95       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.643       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2339       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.843       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.478       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.620       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.071       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84442       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1873       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=   7664.460     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2844 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.045        .16172E-05** at limit **
   2  Prefactor     8.7946        53.012       -.20843E-04    .71928E-04
   3  Prefactor     .10000E-03    4.1051       -.47054E-06** at limit **
   4  Prefactor     1.8870        67.238       -.81650E-05   -.27525E-04
   5  Prefactor     .10000E-03    9.5748       -.11524E-05** at limit **
   6  Prefactor     3.1896        3.7335       -.25190E-06    .86764E-05
   7  norm          1.4603        3.5217       -.32670E-06   -.85717E-03
   8  Prefactor     .10000E-03    4.9788       -.22460E-06** at limit **
   9  Prefactor     32.182        32.517        .14789E-04    .26815E-03
  10  Prefactor     .55434        5.0054       -.50784E-05    .62229E-03
  11  Prefactor     1.3887        2.6150       -.34530E-06   -.37206E-03
  12  Prefactor     142.96        95.069        .81494E-05    .39744E-03
  13  norm          .10000E-03    1.9348       -.49399E-07** at limit **
  14  Prefactor     .10000E-03    1.0930       -.12058E-06** at limit **
  15  Prefactor     26.651        26.096        .10896E-04   -.24085E-03
  16  Prefactor     6.2344        5.2021       -.40577E-06    .83889E-04
  17  Prefactor     11.842        18.822       -.20814E-05    .12222E-03
  18  Prefactor     .10000E-03    4.7591        .84402E-06** at limit **
  19  Prefactor     45.480        60.214        .22097E-05   -.11483E-04
  20  Prefactor     .10000E-03    2.6913        .31377E-07** at limit **
  21  Prefactor     37.628        26.799        .90903E-05   -.25397E-03
  22  Prefactor     24.066        16.045       -.39932E-05    .22438E-03
  23  norm          .10000E-03    2.4116       -.97285E-07** at limit **
  24  Normalizat    .84432        .17958       -.10095E-05    .86531E-03
  25  Prefactor     1.1874        .14211        .76166E-06    .81329E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.79463
  Prefactor  = 0.0001
  Prefactor  = 1.88704
  Prefactor  = 0.0001
  Prefactor  = 3.18964
  norm       = 1.4603
  Prefactor  = 0.0001
  Prefactor  = 32.1823
  Prefactor  = 0.554345
  Prefactor  = 1.38873
  Prefactor  = 142.964
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.6508
  Prefactor  = 6.23443
  Prefactor  = 11.8422
  Prefactor  = 0.0001
  Prefactor  = 45.4797
  Prefactor  = 0.0001
  Prefactor  = 37.6279
  Prefactor  = 24.0664
  norm       = 0.0001
  Normalizat = 0.844317
  Prefactor  = 1.18739
 **********
 **   18 **HESSE 
 **********

 FCN=   7664.460     FROM HESSE     STATUS=OK           419 CALLS     3263 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7946        53.087        .13511E-03   -1.5115    
   3  Prefactor     .10000E-03    4.1513        .17310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8870        64.017        .30278E-03   -1.5433    
   5  Prefactor     .10000E-03    9.5874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1896        3.7186        .17359E-03   -1.5351    
   7  norm          1.4603        3.4167        .22887E-03   -1.5466    
   8  Prefactor     .10000E-03    5.0025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.182        32.795        .70644E-04   -1.4573    
  10  Prefactor     .55434        31.655        .32246E-02   -1.5559    
  11  Prefactor     1.3887        2.5803        .18554E-03   -1.5472    
  12  Prefactor     142.96        99.346        .16849E-03   -1.3311    
  13  norm          .10000E-03    1.9364        .11893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1031        .89352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.651        25.908        .77611E-04   -1.4675    
  16  Prefactor     6.2344        5.2050        .16078E-03   -1.5209    
  17  Prefactor     11.842        18.825        .11640E-03   -1.5020    
  18  Prefactor     .10000E-03    4.7846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.480        60.185        .59453E-04   -1.4358    
  20  Prefactor     .10000E-03    2.7067        .14025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     37.628        26.641        .65344E-04   -1.4480    
  22  Prefactor     24.066        16.082        .81645E-04   -1.4726    
  23  norm          .10000E-03    2.4121        .13277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84432        .20866        .29035E-03   -.98445    
  25  Prefactor     1.1874        .16611        .20484E-03   -.86720    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96862e-09
Minuit parameter uncertainties:
  1  3.77193e-06
  2  43.2722
  3  1.08479e-05
  4  22.0071
  5  5.99931e-05
  6  3.71883
  7  3.41713
  8  7.98564e-06
  9  32.8135
  10  8.38197
  11  2.58056
  12  99.4621
  13  1.22583e-07
  14  7.49913e-06
  15  25.9188
  16  5.2054
  17  18.8341
  18  5.19615e-06
  19  60.2654
  20  8.43696e-06
  21  26.6496
  22  16.0848
  23  5.47343e-06
  24  0.208854
  25  0.166187
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.430e+02  9.946e+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:  1.187e+00  1.662e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  8.443e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.53
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.03e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.19e-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) = 7663.61474268
delta logL = 0.844950265537

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7663.45832515
delta logL = 1.00136779323

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    255.64       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6937       1.0000          .0000       10.000    
     3 'Normalizat'    .87929       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1665       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=   7663.458     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      274 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     255.64        152.81        .12672E-03   -.25610E-03
   2  Index         1.6937        .40616        .74554E-02   -.27526E-03
   3  Normalizat    .87928        .19727        .28509E-03    .10456E-03
   4  Prefactor     1.1665        .16257        .20630E-03    .16155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 255.642
  Index      = 1.69373
  Normalizat = 0.879284
  Prefactor  = 1.16648
 **********
 **   18 **HESSE 
 **********

 FCN=   7663.458     FROM HESSE     STATUS=OK            23 CALLS      297 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     255.64        152.60        .25344E-04   -1.2496    
   2  Index         1.6937        .40556        .29821E-03   -.72249    
   3  Normalizat    .87928        .19741        .11404E-04   -.97192    
   4  Prefactor     1.1665        .16270        .41259E-04   -.87369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49849e-09
Minuit parameter uncertainties:
  1  152.834
  2  0.406355
  3  0.197573
  4  0.162767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207668': 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) = 7663.45832514
delta logL = 1.00136780355

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.556e+02  1.528e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.694e+00  4.064e-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:  1.166e+00  1.628e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  8.793e-01  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.56
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 1.69 +/- 0.41
Photon Flux (Free Index): 3.01e-08 +/- 2.30e-08
Energy Flux (Free Index): 5.02e-05 +/- 5.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/207668/cmap_HighResolution_397958401_398217601_4FGL_J2209.8-5028_daily_bin612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.03e-08', energy_flux2='5.02e-05', photon_flux_error='3.49e-08', dlogl='1.00e+00', energy_flux='1.71e-05', photon_flux2='3.01e-08', job_status='DONE', time_completed='2021-09-28 06:28:23.483151', photon_index_error2='0.41', photon_index2='1.69', ts='6.53', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='5.13e-05', EG='0.84', time_epoch_completed='1632835703.48', return_code='0', job_id='207668', GAL2='1.17', EG2='0.88', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='2.30e-08', ts2='8.56', photon_index='2.37' WHERE bin_id='612' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:28:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 207668: <4FGL_J2209.8-5028_daily_bin612> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin612> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:15:52 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:15:54 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:15:54 2021
Terminated at Tue Sep 28 06:28:23 2021
Results reported at Tue Sep 28 06:28:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin612 332.474 -50.4702 397958401 398217601 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 :                                   717.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            751 sec.

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

