/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 159 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin215
RA = 332.474, Dec = -50.4702
tmin = 295056001, tmax = 295315201
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='205999', job_status='RUN', time_executed='2021-09-28 06:13:37.031660', time_epoch_executed='1632834817.03' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205999

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205999/ft1_4FGL_J2209.8-5028_daily_bin215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205999/ft2_4FGL_J2209.8-5028_daily_bin215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205999/ft1_4FGL_J2209.8-5028_daily_bin215.fits outfile=/scratch/kocevski/205999/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin215.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=295056001.0 tmax=295315201.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.99
user 1.80
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205999/ft1_filtered_4FGL_J2209.8-5028_daily_bin215.fits" evtable="EVENTS" scfile=/scratch/kocevski/205999/ft2_4FGL_J2209.8-5028_daily_bin215.fits sctable="SC_DATA" outfile=/scratch/kocevski/205999/ltcube_295056001_295315201_4FGL_J2209.8-5028_daily_bin215.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/205999/ft2_4FGL_J2209.8-5028_daily_bin215.fits
.....................!
real 9.20
user 8.93
sys 0.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205999/ft1_filtered_4FGL_J2209.8-5028_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/205999/ft2_4FGL_J2209.8-5028_daily_bin215.fits sctable="SC_DATA" expcube=/scratch/kocevski/205999/ltcube_295056001_295315201_4FGL_J2209.8-5028_daily_bin215.fits outfile=/scratch/kocevski/205999/expmap_295056001_295315201_4FGL_J2209.8-5028_daily_bin215.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/205999/ltcube_295056001_295315201_4FGL_J2209.8-5028_daily_bin215.fits
.....................!
real 145.76
user 141.60
sys 3.92

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/205999/ft1_filtered_4FGL_J2209.8-5028_daily_bin215.fits scfile=/scratch/kocevski/205999/ft2_4FGL_J2209.8-5028_daily_bin215.fits outfile=/scratch/kocevski/205999/cmap_295056001_295315201_4FGL_J2209.8-5028_daily_bin215.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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205999/ft1_filtered_4FGL_J2209.8-5028_daily_bin215.fits scfile=/scratch/kocevski/205999/ft2_4FGL_J2209.8-5028_daily_bin215.fits outfile=/scratch/kocevski/205999/cmap_HighResolution_295056001_295315201_4FGL_J2209.8-5028_daily_bin215.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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/205999/ft1_filtered_4FGL_J2209.8-5028_daily_bin215.fits evtable="EVENTS" scfile=/scratch/kocevski/205999/ft2_4FGL_J2209.8-5028_daily_bin215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205999/Model_4FGL_J2209.8-5028_daily_bin215.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/205999/ft1_filtered_4FGL_J2209.8-5028_daily_bin215.fits.....................!
real 41.44
user 40.42
sys 0.94

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0408       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.2001       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2843       1.0000         .10000E-03   10000.    
     7 'norm      '    5.4789       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.125       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3516       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1960       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4498       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.823       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0818       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2348       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11535E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.327       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .49741       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.916       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91472       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96701       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=   7455.084     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     2935 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0278        .36567E-07** at limit **
   2  Prefactor     .10000E-03    12.344        .20877E-06** at limit **
   3  Prefactor     2.0407        4.4757        .50666E-06   -.14688E-03
   4  Prefactor     .10000E-03    9.4756       -.97799E-08** at limit **
   5  Prefactor     7.2001        18.491        .60747E-06    .12358E-04
   6  Prefactor     3.2846        3.9343       -.28868E-08   -.15078E-03
   7  norm          5.4788        2.8267       -.10294E-07    .10656E-04
   8  Prefactor     13.125        10.022        .70578E-07    .10113E-04
   9  Prefactor     .10000E-03    26.027       -.25568E-06** at limit **
  10  Prefactor     9.3493        7.7728        .13749E-05   -.53554E-03
  11  Prefactor     3.1958        3.3317       -.17322E-07   -.11189E-03
  12  Prefactor     .10000E-03    73.100       -.29384E-06** at limit **
  13  norm          .10000E-03    3.9357       -.23290E-07** at limit **
  14  Prefactor     4.4497        3.0576       -.17028E-07   -.31869E-04
  15  Prefactor     24.817        36.287        .79197E-06    .38449E-04
  16  Prefactor     5.0814        3.8648        .93509E-07    .65655E-05
  17  Prefactor     2.2420        45.507       -.61667E-05   -.13939E-03
  18  Prefactor     .10038E-03    5.8716        .41795E-06** at limit **
  19  Prefactor     53.336        66.603        .29583E-05    .33581E-04
  20  Prefactor     .49668        4.6959        .25212E-07   -.10348E-03
  21  Prefactor     .10000E-03    12.558       -.19722E-06** at limit **
  22  Prefactor     14.915        12.443        .51799E-07   -.12777E-04
  23  norm          .10000E-03    1.8958       -.99732E-09** at limit **
  24  Normalizat    .91478        .16973        .19858E-06   -.64026E-04
  25  Prefactor     .96696        .13009       -.48665E-06    .72108E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.04069
  Prefactor  = 0.0001
  Prefactor  = 7.20013
  Prefactor  = 3.28456
  norm       = 5.47884
  Prefactor  = 13.1248
  Prefactor  = 0.0001
  Prefactor  = 9.34933
  Prefactor  = 3.19576
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.4497
  Prefactor  = 24.8168
  Prefactor  = 5.08143
  Prefactor  = 2.24201
  Prefactor  = 0.00010038
  Prefactor  = 53.3356
  Prefactor  = 0.496675
  Prefactor  = 0.0001
  Prefactor  = 14.9155
  norm       = 0.0001
  Normalizat = 0.914782
  Prefactor  = 0.966958
 **********
 **   18 **HESSE 
 **********

 FCN=   7455.084     FROM HESSE     STATUS=OK           443 CALLS     3378 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.0474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.0407        4.4963        .26222E-03   -1.5422    
   4  Prefactor     .10000E-03    9.5029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.2001        18.469        .14949E-03   -1.5171    
   6  Prefactor     3.2846        3.9256        .17660E-03   -1.5345    
   7  norm          5.4788        2.8273        .10143E-03   -1.5240    
   8  Prefactor     13.125        10.023        .11056E-03   -1.4983    
   9  Prefactor     .10000E-03    26.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3493        8.4538        .65526E-03   -1.5096    
  11  Prefactor     3.1958        3.3207        .15177E-03   -1.5350    
  12  Prefactor     .10000E-03    73.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.0024        .16727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4497        3.0567        .11883E-03   -1.5286    
  15  Prefactor     24.817        36.252        .80402E-04   -1.4711    
  16  Prefactor     5.0814        3.8700        .14088E-03   -1.5257    
  17  Prefactor     2.2420        60.206        .27497E-03   -1.5408    
  18  Prefactor     .10038E-03    10.099        .61686E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.336        66.473        .54925E-04   -1.4246    
  20  Prefactor     .49668        14.420        .35722E-02   -1.5567    
  21  Prefactor     .10000E-03    12.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.915        12.463        .10371E-03   -1.4935    
  23  norm          .10000E-03    1.8961        .11610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91478        .19945        .26287E-03   -.95943    
  25  Prefactor     .96696        .15149        .20983E-03   -.93839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0277e-08
Minuit parameter uncertainties:
  1  1.13199e-06
  2  1.20416e-05
  3  4.49706
  4  2.21532e-06
  5  18.4838
  6  3.92588
  7  2.82741
  8  10.0242
  9  6.3609e-05
  10  8.4549
  11  3.32091
  12  0.000115054
  13  2.89277e-06
  14  3.05676
  15  36.2842
  16  3.87022
  17  23.2619
  18  0.00392
  19  66.5657
  20  5.35328
  21  8.69827e-06
  22  12.4655
  23  2.15254e-08
  24  0.199611
  25  0.151556
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
604   Normalization:  9.148e-01  1.996e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205999/likelihoodResults_295056001_295315201_4FGL_J2209.8-5028_daily_bin215.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) = 7455.08378811
delta logL = -6.49313233225e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7455.08372315
delta logL = 2.19752109842e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7712       1.0000          .0000       10.000    
     3 'Normalizat'    .91478       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96696       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=   7455.084     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.450        .90712E-02** at limit **
   2  Index         2.7778        7.8475        .50000       -.81800E-06
   3  Normalizat    .91478        .29683E-02    .45090E-01    .22977E-04
   4  Prefactor     .96696        .24423E-02    .45853E-01    .10646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.77781
  Normalizat = 0.914782
  Prefactor  = 0.966957
 **********
 **   18 **HESSE 
 **********

 FCN=   7455.084     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    357.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7778        6.2878        .50000       -.46055    
   3  Normalizat    .91478        .86567E-02    .26287E-03   -.95943    
   4  Prefactor     .96696        .71240E-02    .20983E-03   -.93839    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.69023e-09
Minuit parameter uncertainties:
  1  8.21453e-05
  2  372.106
  3  0.00865676
  4  0.00712401
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205999': 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) = 7455.08372314
delta logL = 3.71064743376e-08

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  8.215e-05  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.778e+00  3.721e+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:  9.670e-01  7.124e-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:  9.148e-01  8.657e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/205999/cmap_HighResolution_295056001_295315201_4FGL_J2209.8-5028_daily_bin215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-28 06:23:46.504979', job_id='205999', GAL2='0.97', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1632835426.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.71e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='215' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:23:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 205999: <4FGL_J2209.8-5028_daily_bin215> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin215> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:44 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:46 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:46 2021
Terminated at Tue Sep 28 06:23:49 2021
Results reported at Tue Sep 28 06:23:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin215 332.474 -50.4702 295056001 295315201 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 :                                   601.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            785 sec.

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

