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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin622
RA = 332.474, Dec = -50.4702
tmin = 400550401, tmax = 400809601
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='207684', job_status='RUN', time_executed='2021-09-28 06:17:41.223400', time_epoch_executed='1632835061.22' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='622'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207684/ft1_4FGL_J2209.8-5028_daily_bin622.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207684/ft2_4FGL_J2209.8-5028_daily_bin622.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207684/ft1_4FGL_J2209.8-5028_daily_bin622.fits outfile=/scratch/kocevski/207684/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin622.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=400550401.0 tmax=400809601.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 4.40
user 4.16
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207684/ft1_filtered_4FGL_J2209.8-5028_daily_bin622.fits" evtable="EVENTS" scfile=/scratch/kocevski/207684/ft2_4FGL_J2209.8-5028_daily_bin622.fits sctable="SC_DATA" outfile=/scratch/kocevski/207684/ltcube_400550401_400809601_4FGL_J2209.8-5028_daily_bin622.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/207684/ft2_4FGL_J2209.8-5028_daily_bin622.fits
.....................!
real 12.33
user 11.99
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207684/ft1_filtered_4FGL_J2209.8-5028_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/207684/ft2_4FGL_J2209.8-5028_daily_bin622.fits sctable="SC_DATA" expcube=/scratch/kocevski/207684/ltcube_400550401_400809601_4FGL_J2209.8-5028_daily_bin622.fits outfile=/scratch/kocevski/207684/expmap_400550401_400809601_4FGL_J2209.8-5028_daily_bin622.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/207684/ltcube_400550401_400809601_4FGL_J2209.8-5028_daily_bin622.fits
.....................!
real 190.82
user 184.96
sys 5.50

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/207684/ft1_filtered_4FGL_J2209.8-5028_daily_bin622.fits scfile=/scratch/kocevski/207684/ft2_4FGL_J2209.8-5028_daily_bin622.fits outfile=/scratch/kocevski/207684/cmap_400550401_400809601_4FGL_J2209.8-5028_daily_bin622.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207684/ft1_filtered_4FGL_J2209.8-5028_daily_bin622.fits scfile=/scratch/kocevski/207684/ft2_4FGL_J2209.8-5028_daily_bin622.fits outfile=/scratch/kocevski/207684/cmap_HighResolution_400550401_400809601_4FGL_J2209.8-5028_daily_bin622.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207684/ft1_filtered_4FGL_J2209.8-5028_daily_bin622.fits evtable="EVENTS" scfile=/scratch/kocevski/207684/ft2_4FGL_J2209.8-5028_daily_bin622.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207684/Model_4FGL_J2209.8-5028_daily_bin622.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/207684/ft1_filtered_4FGL_J2209.8-5028_daily_bin622.fits.....................!
real 49.10
user 47.78
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5395       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.481       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2014       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9939       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14551E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .69319       1.0000         .10000E-03   10000.    
    12 'Prefactor '    76.038       1.0000         .10000E-03   10000.    
    13 'norm      '    10.547       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2404       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2708       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.106       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11220E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12767E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0180       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.079       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63745       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3666       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6562.401     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     2409 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6017       -.31781E-05** at limit **
   2  Prefactor     .10040E-03    19.522        .29224E-04** at limit **
   3  Prefactor     9.5382        1.0098        .69546E-07    .20769E-03
   4  Prefactor     .10001E-03    11.432        .99717E-05** at limit **
   5  Prefactor     28.480        1.0023       -.65958E-07    .16888E-03
   6  Prefactor     7.2017        1.2679        .13168E-05    .38615E-02
   7  norm          .10000E-03    1.5094       -.19344E-06** at limit **
   8  Prefactor     1.9923        1.0375        .42268E-07   -.12522E-04
   9  Prefactor     .10799E-03    29.365        .19808E-04** at limit **
  10  Prefactor     .10000E-03    5.5873        .78450E-05** at limit **
  11  Prefactor     .69642        4.8843        .41030E-05    .57061E-04
  12  Prefactor     76.042        1.4263        .67963E-06   -.40933E-02
  13  norm          10.548        1.0095        .19079E-07   -.16954E-04
  14  Prefactor     4.2400        3.4755        .91940E-06    .35956E-03
  15  Prefactor     .10856E-03    33.436       -.36991E-04** at limit **
  16  Prefactor     4.2734        1.0274        .78926E-07    .12040E-04
  17  Prefactor     36.107        1.0085        .12250E-06   -.35854E-03
  18  Prefactor     .10000E-03    5.5293       -.77042E-05** at limit **
  19  Prefactor     .10002E-03    26.134       -.11750E-04** at limit **
  20  Prefactor     7.0167        1.0128       -.15127E-06   -.20181E-03
  21  Prefactor     20.075        1.1590       -.74149E-06    .10100E-02
  22  Prefactor     .10031E-03    16.980       -.32591E-04** at limit **
  23  norm          .10000E-03    2.9374        .77947E-06** at limit **
  24  Normalizat    .63727        .21398       -.16910E-05   -.50055E-04
  25  Prefactor     1.3669        .17927        .16186E-06   -.75087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100398
  Prefactor  = 9.53821
  Prefactor  = 0.000100014
  Prefactor  = 28.4803
  Prefactor  = 7.20174
  norm       = 0.0001
  Prefactor  = 1.99233
  Prefactor  = 0.00010799
  Prefactor  = 0.0001
  Prefactor  = 0.696416
  Prefactor  = 76.042
  norm       = 10.5477
  Prefactor  = 4.24003
  Prefactor  = 0.000108561
  Prefactor  = 4.27337
  Prefactor  = 36.1067
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 7.01666
  Prefactor  = 20.0755
  Prefactor  = 0.00010031
  norm       = 0.000100002
  Normalizat = 0.637266
  Prefactor  = 1.36689
 **********
 **   18 **HESSE 
 **********

 FCN=   6562.401     FROM HESSE     STATUS=OK           481 CALLS     2890 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6061        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10040E-03    21.390        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5382        9.7623        .32437E-02   -1.5090    
   4  Prefactor     .10001E-03    11.462        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.480        25.228        .18768E-02   -1.4640    
   6  Prefactor     7.2017        4.4092        .37369E-02   -1.5171    
   7  norm          .10000E-03    1.4964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9923        12.960        .73343E-02   -1.5426    
   9  Prefactor     .10799E-03    67.394        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.5721        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .69642        2.8353        .43623E-01   -1.5541    
  12  Prefactor     76.042        85.336        .11512E-02   -1.3962    
  13  norm          10.548        7.5182        .30842E-02   -1.5058    
  14  Prefactor     4.2400        3.5142        .48919E-02   -1.5296    
  15  Prefactor     .10856E-03    85.131        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2734        6.6345        .48740E-02   -1.5294    
  17  Prefactor     36.107        29.013        .16674E-02   -1.4505    
  18  Prefactor     .10000E-03    5.5410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10002E-03    76.776        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0167        7.8293        .37858E-02   -1.5178    
  21  Prefactor     20.075        32.508        .22346E-02   -1.4812    
  22  Prefactor     .10031E-03    18.142        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .63727        .20147        .76010E-01   -1.0642    
  25  Prefactor     1.3669        .15785        .45715E-01   -.81339    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.18907e-07
Minuit parameter uncertainties:
  1  8.96724e-06
  2  0.00583826
  3  9.76397
  4  0.000791117
  5  25.237
  6  4.40937
  7  5.45997e-06
  8  10.1657
  9  0.0464624
  10  9.83489e-05
  11  2.81039
  12  85.4734
  13  7.51887
  14  3.51442
  15  0.0540708
  16  6.63564
  17  29.0241
  18  7.65833e-05
  19  0.00274582
  20  7.83042
  21  32.5365
  22  0.00474089
  23  0.000146572
  24  0.201702
  25  0.157904
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.604e+01  8.547e+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.367e+00  1.579e-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:  6.373e-01  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.16
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 9.10e-06 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/207684/likelihoodResults_400550401_400809601_4FGL_J2209.8-5028_daily_bin622.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6562.39882349
delta logL = 0.00178270615834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6562.39645439
delta logL = 0.00415181514109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.755       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2884       1.0000          .0000       10.000    
     3 'Normalizat'    .63930       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3656       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=   6562.396     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      274 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.756        145.88        .43635E-04   -.77120E-05
   2  Index         2.2881        .99207        .92637E-02    .38475E-03
   3  Normalizat    .63962        .21152        .33592E-03   -.40409E-04
   4  Prefactor     1.3654        .17945        .20216E-03   -.35991E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.7561
  Index      = 2.28806
  Normalizat = 0.639623
  Prefactor  = 1.36537
 **********
 **   18 **HESSE 
 **********

 FCN=   6562.396     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.756        132.74        .87270E-05   -1.3864    
   2  Index         2.2881        .90351        .18527E-02   -.57328    
   3  Normalizat    .63962        .21130        .13437E-04   -1.0633    
   4  Prefactor     1.3654        .17933        .80864E-05   -.81383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19622e-11
Minuit parameter uncertainties:
  1  133.206
  2  0.910627
  3  0.211571
  4  0.179414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207684': 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) = 6562.39645309
delta logL = 0.00415311429242

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  8.476e+01  1.332e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.288e+00  9.106e-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.365e+00  1.794e-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:  6.396e-01  2.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 2.29 +/- 0.91
Photon Flux (Free Index): 2.55e-08 +/- 3.17e-08
Energy Flux (Free Index): 9.84e-06 +/- 1.41e-05

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/207684/cmap_HighResolution_400550401_400809601_4FGL_J2209.8-5028_daily_bin622.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='9.84e-06', photon_flux_error='3.00e-08', dlogl='4.15e-03', energy_flux='9.10e-06', photon_flux2='2.55e-08', job_status='DONE', time_completed='2021-09-28 06:29:36.037055', photon_index_error2='0.91', photon_index2='2.29', ts='1.16', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', photon_flux_upper_limit='9.65e-08', energy_flux_error2='1.41e-05', EG='0.64', time_epoch_completed='1632835776.04', return_code='0', job_id='207684', GAL2='1.37', EG2='0.64', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.17e-08', ts2='1.17', photon_index='2.37' WHERE bin_id='622' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:29:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 207684: <4FGL_J2209.8-5028_daily_bin622> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin622 332.474 -50.4702 400550401 400809601 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

