/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 66 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin20
RA = 332.474, Dec = -50.4702
tmin = 244512001, tmax = 244771201
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='205694', job_status='RUN', time_executed='2021-09-28 06:11:42.942917', time_epoch_executed='1632834702.94' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205694

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205694/ft1_4FGL_J2209.8-5028_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205694/ft2_4FGL_J2209.8-5028_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205694/ft1_4FGL_J2209.8-5028_daily_bin20.fits outfile=/scratch/kocevski/205694/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin20.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=244512001.0 tmax=244771201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.44
user 1.29
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/205694/ft2_4FGL_J2209.8-5028_daily_bin20.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/205694/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin20.fits evtable="EVENTS" outfile="/scratch/kocevski/205694/ft1_filtered_4FGL_J2209.8-5028_daily_bin20.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.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205694/ft1_filtered_4FGL_J2209.8-5028_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/205694/ft2_4FGL_J2209.8-5028_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/205694/ltcube_244512001_244771201_4FGL_J2209.8-5028_daily_bin20.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/205694/ft2_4FGL_J2209.8-5028_daily_bin20.fits
.....................!
real 12.81
user 12.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205694/ft1_filtered_4FGL_J2209.8-5028_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/205694/ft2_4FGL_J2209.8-5028_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/205694/ltcube_244512001_244771201_4FGL_J2209.8-5028_daily_bin20.fits outfile=/scratch/kocevski/205694/expmap_244512001_244771201_4FGL_J2209.8-5028_daily_bin20.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/205694/ltcube_244512001_244771201_4FGL_J2209.8-5028_daily_bin20.fits
.....................!
real 190.65
user 185.67
sys 4.66

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/205694/ft1_filtered_4FGL_J2209.8-5028_daily_bin20.fits scfile=/scratch/kocevski/205694/ft2_4FGL_J2209.8-5028_daily_bin20.fits outfile=/scratch/kocevski/205694/cmap_244512001_244771201_4FGL_J2209.8-5028_daily_bin20.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205694/ft1_filtered_4FGL_J2209.8-5028_daily_bin20.fits scfile=/scratch/kocevski/205694/ft2_4FGL_J2209.8-5028_daily_bin20.fits outfile=/scratch/kocevski/205694/cmap_HighResolution_244512001_244771201_4FGL_J2209.8-5028_daily_bin20.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.926       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .40641E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4248       1.0000         .10000E-03   10000.    
     7 'norm      '    5.5755       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4676       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.340       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.760       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2285       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.887       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .94346       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84476       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0968       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=   6700.794     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3377 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5330       -.75936E-07** at limit **
   2  Prefactor     21.945        34.015        .18982E-04    .14413E-05
   3  Prefactor     4.9464        7.1382       -.31283E-05   -.19859E-03
   4  Prefactor     .11129E-03    23.320       -.68915E-06** at limit **
   5  Prefactor     .10000E-03    14.066       -.16912E-06** at limit **
   6  Prefactor     2.4249        4.7779       -.10204E-05   -.80692E-03
   7  norm          5.5768        3.7183        .22742E-06    .16347E-03
   8  Prefactor     8.4683        8.3700       -.12371E-05   -.13417E-04
   9  Prefactor     23.335        37.251       -.84314E-05    .12811E-04
  10  Prefactor     .10000E-03    6.7045        .11901E-06** at limit **
  11  Prefactor     7.2180        4.3350       -.14002E-06   -.13566E-03
  12  Prefactor     .10000E-03    30.237        .17383E-06** at limit **
  13  norm          .10000E-03    6.3966        .22586E-06** at limit **
  14  Prefactor     .10000E-03    2.3011        .62466E-06** at limit **
  15  Prefactor     24.806        38.342       -.17854E-04   -.25608E-04
  16  Prefactor     8.2318        5.7318        .79566E-06   -.14019E-03
  17  Prefactor     17.886        21.521       -.14102E-04   -.93850E-05
  18  Prefactor     .10000E-03    5.7030        .34259E-06** at limit **
  19  Prefactor     .10000E-03    27.975       -.38150E-07** at limit **
  20  Prefactor     .94043        3.5022       -.13786E-05   -.11744E-02
  21  Prefactor     .10000E-03    10.118        .38158E-07** at limit **
  22  Prefactor     .10000E-03    5.4783       -.62256E-07** at limit **
  23  norm          .10000E-03    1.9847        .11470E-08** at limit **
  24  Normalizat    .84456        .18951        .63995E-05   -.22536E-03
  25  Prefactor     1.0970        .14488       -.14730E-05    .29240E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.9445
  Prefactor  = 4.94641
  Prefactor  = 0.000111286
  Prefactor  = 0.0001
  Prefactor  = 2.42487
  norm       = 5.57681
  Prefactor  = 8.46833
  Prefactor  = 23.3352
  Prefactor  = 0.0001
  Prefactor  = 7.21803
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 24.8064
  Prefactor  = 8.23185
  Prefactor  = 17.8858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.940432
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.844564
  Prefactor  = 1.09696
 **********
 **   18 **HESSE 
 **********

 FCN=   6700.794     FROM HESSE     STATUS=OK           437 CALLS     3814 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.945        33.900        .85541E-04   -1.4771    
   3  Prefactor     4.9464        7.1234        .18084E-03   -1.5263    
   4  Prefactor     .11129E-03    28.047        .10079       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4249        4.7684        .23327E-03   -1.5397    
   7  norm          5.5768        3.7212        .12086E-03   -1.5236    
   8  Prefactor     8.4683        8.3685        .13776E-03   -1.5126    
   9  Prefactor     23.335        37.212        .82911E-04   -1.4741    
  10  Prefactor     .10000E-03    6.8016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.2180        4.3341        .12573E-03   -1.5171    
  12  Prefactor     .10000E-03    30.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.5482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.3680        .23591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.806        38.047        .80503E-04   -1.4711    
  16  Prefactor     8.2318        5.7343        .13976E-03   -1.5134    
  17  Prefactor     17.886        21.435        .94701E-04   -1.4862    
  18  Prefactor     .10000E-03    5.7513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    27.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .94043        3.4520        .29003E-03   -1.5514    
  21  Prefactor     .10000E-03    10.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.5221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.9848        .11263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84456        .21874        .28474E-03   -.98436    
  25  Prefactor     1.0970        .16944        .20616E-03   -.89564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7194e-09
Minuit parameter uncertainties:
  1  2.46952e-05
  2  33.9295
  3  7.1246
  4  0.0355996
  5  7.86407e-05
  6  4.76918
  7  3.72131
  8  8.36966
  9  37.2488
  10  8.02529e-05
  11  4.33425
  12  3.89459e-05
  13  1.4694e-05
  14  0.000130444
  15  38.0841
  16  5.73471
  17  21.4442
  18  8.80591e-05
  19  4.70451e-05
  20  3.4527
  21  7.06063e-06
  22  6.35477e-06
  23  3.53004e-07
  24  0.218974
  25  0.169519
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.895e-05  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.097e+00  1.695e-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.446e-01  2.190e-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: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205694/likelihoodResults_244512001_244771201_4FGL_J2209.8-5028_daily_bin20.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) = 6700.79387865
delta logL = -0.000157401088472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6700.79372216
delta logL = -9.1357378551e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6959       1.0000          .0000       10.000    
     3 'Normalizat'    .84457       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0970       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=   6700.794     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      282 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10428E-03    11.506        .18142E-01** at limit **
   2  Index         2.5990        7.4819        .50000        .14717E-04
   3  Normalizat    .84457        .31443E-02    .28474E-03    .60688E-05
   4  Prefactor     1.0970        .25773E-02    .20616E-03    .73895E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104285
  Index      = 2.59904
  Normalizat = 0.84457
  Prefactor  = 1.09696
 **********
 **   18 **HESSE 
 **********

 FCN=   6700.794     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10428E-03    79.859        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5990        6.0949        .50000       -.50087    
   3  Normalizat    .84457        .83080E-02    .11390E-04   -.98436    
   4  Prefactor     1.0970        .68098E-02    .82463E-05   -.89564    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.45086e-09
Minuit parameter uncertainties:
  1  0.0370463
  2  254.492
  3  0.00830804
  4  0.00680979
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205694': 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) = 6700.79372191
delta logL = -6.61474587105e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.043e-04  3.705e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.599e+00  2.545e+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.097e+00  6.810e-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:  8.446e-01  8.308e-03  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/205694/cmap_HighResolution_244512001_244771201_4FGL_J2209.8-5028_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-09-28 06:25:41.954122', job_id='205694', GAL2='1.10', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632835541.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='-6.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='20' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:25:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 205694: <4FGL_J2209.8-5028_daily_bin20> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin20> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:17 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:10:18 2021
Terminated at Tue Sep 28 06:25:42 2021
Results reported at Tue Sep 28 06:25:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin20 332.474 -50.4702 244512001 244771201 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 :                                   818.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            925 sec.

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

