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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin864
RA = 332.474, Dec = -50.4702
tmin = 463276801, tmax = 463536001
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='209163', job_status='RUN', time_executed='2021-09-28 06:22:43.771139', time_epoch_executed='1632835363.77' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='864'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209163

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209163/ft1_4FGL_J2209.8-5028_daily_bin864.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209163/ft2_4FGL_J2209.8-5028_daily_bin864.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209163/ft1_4FGL_J2209.8-5028_daily_bin864.fits outfile=/scratch/kocevski/209163/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin864.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=463276801.0 tmax=463536001.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.74
user 3.46
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209163/ft1_filtered_4FGL_J2209.8-5028_daily_bin864.fits" evtable="EVENTS" scfile=/scratch/kocevski/209163/ft2_4FGL_J2209.8-5028_daily_bin864.fits sctable="SC_DATA" outfile=/scratch/kocevski/209163/ltcube_463276801_463536001_4FGL_J2209.8-5028_daily_bin864.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/209163/ft2_4FGL_J2209.8-5028_daily_bin864.fits
.....................!
real 12.30
user 11.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209163/ft1_filtered_4FGL_J2209.8-5028_daily_bin864.fits evtable="EVENTS" scfile=/scratch/kocevski/209163/ft2_4FGL_J2209.8-5028_daily_bin864.fits sctable="SC_DATA" expcube=/scratch/kocevski/209163/ltcube_463276801_463536001_4FGL_J2209.8-5028_daily_bin864.fits outfile=/scratch/kocevski/209163/expmap_463276801_463536001_4FGL_J2209.8-5028_daily_bin864.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/209163/ltcube_463276801_463536001_4FGL_J2209.8-5028_daily_bin864.fits
.....................!
real 192.85
user 187.59
sys 4.77

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/209163/ft1_filtered_4FGL_J2209.8-5028_daily_bin864.fits scfile=/scratch/kocevski/209163/ft2_4FGL_J2209.8-5028_daily_bin864.fits outfile=/scratch/kocevski/209163/cmap_463276801_463536001_4FGL_J2209.8-5028_daily_bin864.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/209163/ft1_filtered_4FGL_J2209.8-5028_daily_bin864.fits scfile=/scratch/kocevski/209163/ft2_4FGL_J2209.8-5028_daily_bin864.fits outfile=/scratch/kocevski/209163/cmap_HighResolution_463276801_463536001_4FGL_J2209.8-5028_daily_bin864.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209163/ft1_filtered_4FGL_J2209.8-5028_daily_bin864.fits evtable="EVENTS" scfile=/scratch/kocevski/209163/ft2_4FGL_J2209.8-5028_daily_bin864.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209163/Model_4FGL_J2209.8-5028_daily_bin864.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/209163/ft1_filtered_4FGL_J2209.8-5028_daily_bin864.fits.....................!
real 45.83
user 44.52
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7505       1.0000         .10000E-03   10000.    
     4 'Prefactor '    53.212       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.9884       1.0000         .10000E-03   10000.    
     7 'norm      '    13.165       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5174       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0390       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5805       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4057       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5144       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6702       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8854       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .45510       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1291       1.0000         .10000E-03   10000.    
    23 'norm      '    19.949       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2174       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0432       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=   5573.566     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2983 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.167        .23460E-06** at limit **
   2  Prefactor     .10000E-03    34.847        .30798E-05** at limit **
   3  Prefactor     1.7504        8.4127        .42556E-06   -.16088E-03
   4  Prefactor     53.212        44.878       -.45018E-06   -.40125E-04
   5  Prefactor     .10000E-03    20.184        .28620E-06** at limit **
   6  Prefactor     8.9884        6.1948        .99723E-07   -.61379E-04
   7  norm          13.165        7.0067        .11193E-06    .15515E-04
   8  Prefactor     .10000E-03    8.4088        .11860E-07** at limit **
   9  Prefactor     2.5041        229.36       -.20537E-04   -.61612E-04
  10  Prefactor     3.0427        7.8104        .18121E-05    .12362E-03
  11  Prefactor     7.5805        5.6084        .50937E-06    .24288E-03
  12  Prefactor     .10000E-03    246.86       -.40046E-05** at limit **
  13  norm          4.4058        5.0137       -.25713E-06   -.65151E-04
  14  Prefactor     4.5144        3.6809        .91760E-06   -.24613E-02
  15  Prefactor     .10000E-03    44.173        .48051E-05** at limit **
  16  Prefactor     5.6707        6.1062       -.81959E-07   -.71941E-03
  17  Prefactor     2.8599        85.113        .96969E-05    .68564E-04
  18  Prefactor     .10000E-03    7.4320       -.39217E-07** at limit **
  19  Prefactor     .10001E-03    37.748       -.86997E-05** at limit **
  20  Prefactor     .46068        7.7552        .25570E-05   -.73577E-03
  21  Prefactor     .10000E-03    35.359        .91819E-06** at limit **
  22  Prefactor     2.1298        36.347       -.41489E-06   -.45687E-04
  23  norm          19.950        14.766        .64747E-07   -.49545E-04
  24  Normalizat    1.2174        .23787       -.10793E-05   -.34999E-04
  25  Prefactor     1.0431        .17438        .33023E-06   -.83750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.75043
  Prefactor  = 53.2121
  Prefactor  = 0.0001
  Prefactor  = 8.98843
  norm       = 13.1648
  Prefactor  = 0.0001
  Prefactor  = 2.5041
  Prefactor  = 3.04273
  Prefactor  = 7.58048
  Prefactor  = 0.000100005
  norm       = 4.40578
  Prefactor  = 4.51443
  Prefactor  = 0.000100003
  Prefactor  = 5.67071
  Prefactor  = 2.85994
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.460677
  Prefactor  = 0.0001
  Prefactor  = 2.12975
  norm       = 19.9497
  Normalizat = 1.21739
  Prefactor  = 1.04313
 **********
 **   18 **HESSE 
 **********

 FCN=   5573.566     FROM HESSE     STATUS=OK           433 CALLS     3416 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7504        8.5296        .31690E-03   -1.5443    
   4  Prefactor     53.212        44.817        .54984E-04   -1.4248    
   5  Prefactor     .10000E-03    20.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.9884        6.1989        .13369E-03   -1.5108    
   7  norm          13.165        7.0044        .11039E-03   -1.4982    
   8  Prefactor     .10000E-03    8.4206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5041        236.58        .25750E-03   -1.5391    
  10  Prefactor     3.0427        7.7717        .23275E-03   -1.5359    
  11  Prefactor     7.5805        5.6126        .14261E-03   -1.5157    
  12  Prefactor     .10000E-03    247.94        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4058        5.0154        .17405E-03   -1.5288    
  14  Prefactor     4.5144        5.2301        .87116E-03   -1.5283    
  15  Prefactor     .10000E-03    44.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6707        6.1873        .84346E-03   -1.5232    
  17  Prefactor     2.8599        86.345        .23926E-03   -1.5370    
  18  Prefactor     .10000E-03    7.4587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    38.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .46068        25.408        .37770E-02   -1.5572    
  21  Prefactor     .10000E-03    35.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.1298        36.412        .28257E-03   -1.5416    
  23  norm          19.950        14.689        .44837E-03   -1.4814    
  24  Normalizat    1.2174        .28368        .28024E-03   -.86067    
  25  Prefactor     1.0431        .20623        .23510E-03   -.91305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.16971e-09
Minuit parameter uncertainties:
  1  1.87451e-05
  2  0.000455664
  3  7.72953
  4  44.8455
  5  2.6546e-05
  6  6.19932
  7  7.00485
  8  2.85135e-06
  9  48.8787
  10  7.77432
  11  5.61304
  12  0.00215396
  13  5.01588
  14  5.23066
  15  0.000785536
  16  6.188
  17  31.4782
  18  3.78368e-05
  19  0.00138592
  20  6.84485
  21  0.000109316
  22  17.6246
  23  14.6918
  24  0.284036
  25  0.206385
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.154e-03  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.043e+00  2.064e-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.217e+00  2.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/209163/likelihoodResults_463276801_463536001_4FGL_J2209.8-5028_daily_bin864.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): 102
logL (Free Index) = 5573.56562691
delta logL = -1.90734044736e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5573.56562691
delta logL = -1.90730825125e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96365E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    1.2174       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0431       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=   5573.566     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      205 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    190.75        .90712E-02** at limit **
   2  Index         2.3001        5.6816        .50000        .18392E-05
   3  Normalizat    1.2174        .44418E-02    .63355E-01   -.35861E-05
   4  Prefactor     1.0431        .34977E-02    .40329E-01    .16704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.30005
  Normalizat = 1.21738
  Prefactor  = 1.04314
 **********
 **   18 **HESSE 
 **********

 FCN=   5573.566     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    950.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3001        6.0978        .50000       -.57042    
   3  Normalizat    1.2174        .10040E-01    .28025E-03   -.86067    
   4  Prefactor     1.0431        .79119E-02    .23510E-03   -.91305    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.88962e-08
Minuit parameter uncertainties:
  1  0.00413126
  2  373.535
  3  0.0100397
  4  0.00791192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209163': 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): 102
logL (Free Index) = 5573.5656078
delta logL = 3.65635060007e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.131e-03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.300e+00  3.735e+02  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.043e+00  7.912e-03  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.217e+00  1.004e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/209163/cmap_HighResolution_463276801_463536001_4FGL_J2209.8-5028_daily_bin864.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.45e-03', job_status='DONE', photon_flux_upper_limit='9.66e-08', time_completed='2021-09-28 06:34:08.030311', job_id='209163', GAL2='1.04', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632836048.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.66e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='864' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:34:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 209163: <4FGL_J2209.8-5028_daily_bin864> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin864> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:34 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:20:35 2021
Terminated at Tue Sep 28 06:34:08 2021
Results reported at Tue Sep 28 06:34:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin864 332.474 -50.4702 463276801 463536001 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 :                                   681.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            814 sec.

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

