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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1154
RA = 332.474, Dec = -50.4702
tmin = 538444801, tmax = 538704001
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='210813', job_status='RUN', time_executed='2021-09-28 06:26:03.085369', time_epoch_executed='1632835563.09' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1154'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210813

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210813/ft1_4FGL_J2209.8-5028_daily_bin1154.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210813/ft2_4FGL_J2209.8-5028_daily_bin1154.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210813/ft1_4FGL_J2209.8-5028_daily_bin1154.fits outfile=/scratch/kocevski/210813/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1154.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=538444801.0 tmax=538704001.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.48
user 3.29
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210813/ft1_filtered_4FGL_J2209.8-5028_daily_bin1154.fits" evtable="EVENTS" scfile=/scratch/kocevski/210813/ft2_4FGL_J2209.8-5028_daily_bin1154.fits sctable="SC_DATA" outfile=/scratch/kocevski/210813/ltcube_538444801_538704001_4FGL_J2209.8-5028_daily_bin1154.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/210813/ft2_4FGL_J2209.8-5028_daily_bin1154.fits
.....................!
real 12.07
user 11.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210813/ft1_filtered_4FGL_J2209.8-5028_daily_bin1154.fits evtable="EVENTS" scfile=/scratch/kocevski/210813/ft2_4FGL_J2209.8-5028_daily_bin1154.fits sctable="SC_DATA" expcube=/scratch/kocevski/210813/ltcube_538444801_538704001_4FGL_J2209.8-5028_daily_bin1154.fits outfile=/scratch/kocevski/210813/expmap_538444801_538704001_4FGL_J2209.8-5028_daily_bin1154.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/210813/ltcube_538444801_538704001_4FGL_J2209.8-5028_daily_bin1154.fits
.....................!
real 190.32
user 185.72
sys 4.19

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/210813/ft1_filtered_4FGL_J2209.8-5028_daily_bin1154.fits scfile=/scratch/kocevski/210813/ft2_4FGL_J2209.8-5028_daily_bin1154.fits outfile=/scratch/kocevski/210813/cmap_538444801_538704001_4FGL_J2209.8-5028_daily_bin1154.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210813/ft1_filtered_4FGL_J2209.8-5028_daily_bin1154.fits scfile=/scratch/kocevski/210813/ft2_4FGL_J2209.8-5028_daily_bin1154.fits outfile=/scratch/kocevski/210813/cmap_HighResolution_538444801_538704001_4FGL_J2209.8-5028_daily_bin1154.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7928       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.960       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7818       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8675       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.8842       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    141.51       1.0000         .10000E-03   10000.    
    13 'norm      '    1.5780       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .83104       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1435       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .82061E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .57277E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.530       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12078E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85189       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98188       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=   7086.270     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     3427 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.442       -.37954E-07** at limit **
   2  Prefactor     .10000E-03    22.815       -.16231E-06** at limit **
   3  Prefactor     4.7925        7.0554        .30271E-05   -.50893E-04
   4  Prefactor     .10000E-03    4.7381        .63413E-07** at limit **
   5  Prefactor     .10000E-03    8.5935       -.45062E-08** at limit **
   6  Prefactor     .10000E-03    .88161        .13058E-06** at limit **
   7  norm          16.960        4.9615       -.56454E-06   -.35504E-03
   8  Prefactor     1.7818        11.238        .14778E-04   -.65211E-04
   9  Prefactor     2.8658        25.793        .70973E-05    .17443E-04
  10  Prefactor     9.8929        13.831       -.30534E-05   -.11332E-03
  11  Prefactor     .10000E-03    1.6947       -.25912E-06** at limit **
  12  Prefactor     141.39        162.58        .15354E-04    .18239E-03
  13  norm          1.5777        3.8054       -.75341E-07   -.10652E-03
  14  Prefactor     .83023        1.9550        .11598E-06   -.22859E-03
  15  Prefactor     .10000E-03    8.9614        .47602E-06** at limit **
  16  Prefactor     6.1430        4.5398        .54015E-07    .18716E-03
  17  Prefactor     .10007E-03    11.782        .82679E-06** at limit **
  18  Prefactor     .10010E-03    6.8705       -.42341E-05** at limit **
  19  Prefactor     47.531        49.115        .65216E-08    .57365E-04
  20  Prefactor     .10000E-03    3.9320        .70763E-06** at limit **
  21  Prefactor     .10000E-03    9.1614       -.46674E-06** at limit **
  22  Prefactor     .10000E-03    12.714        .16007E-06** at limit **
  23  norm          .10000E-03    2.2891       -.10582E-07** at limit **
  24  Normalizat    .85200        .16218       -.79237E-06    .21627E-03
  25  Prefactor     .98181        .13134       -.82026E-06    .38899E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.7925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9598
  Prefactor  = 1.78179
  Prefactor  = 2.86577
  Prefactor  = 9.89288
  Prefactor  = 0.0001
  Prefactor  = 141.387
  norm       = 1.57773
  Prefactor  = 0.830231
  Prefactor  = 0.0001
  Prefactor  = 6.14304
  Prefactor  = 0.000100074
  Prefactor  = 0.000100104
  Prefactor  = 47.5311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.851999
  Prefactor  = 0.981809
 **********
 **   18 **HESSE 
 **********

 FCN=   7086.270     FROM HESSE     STATUS=OK           435 CALLS     3862 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7925        7.0600        .91885E-03   -1.5270    
   4  Prefactor     .10000E-03    4.7400        .17896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.6047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .88384        .77185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.960        4.9646        .97254E-04   -1.4884    
   8  Prefactor     1.7818        11.448        .15676E-02   -1.5441    
   9  Prefactor     2.8658        25.760        .12002E-02   -1.5369    
  10  Prefactor     9.8929        13.935        .63729E-03   -1.5079    
  11  Prefactor     .10000E-03    1.7130        .10696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     141.39        164.13        .16933E-03   -1.3324    
  13  norm          1.5777        3.7587        .24854E-03   -1.5457    
  14  Prefactor     .83023        1.7197        .17272E-02   -1.5526    
  15  Prefactor     .10000E-03    8.9627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.1430        4.5382        .14669E-03   -1.5212    
  17  Prefactor     .10007E-03    11.869        .88876E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10010E-03    34.152        .39252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     47.531        48.969        .58162E-04   -1.4328    
  20  Prefactor     .10000E-03    14.211        .32168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.1627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.2914        .12439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85200        .18705        .26207E-03   -.98168    
  25  Prefactor     .98181        .15358        .20505E-03   -.93338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10632e-08
Minuit parameter uncertainties:
  1  5.44149e-05
  2  5.03093e-07
  3  7.06118
  4  6.72972e-06
  5  9.1752e-06
  6  6.70257e-06
  7  4.9647
  8  9.03507
  9  17.1934
  10  13.9393
  11  1.84785e-05
  12  164.664
  13  3.75926
  14  1.71984
  15  2.16644e-05
  16  4.53847
  17  0.00187614
  18  0.00377044
  19  49.0101
  20  4.00171e-05
  21  1.95859e-05
  22  6.12305e-06
  23  2.37704e-07
  24  0.18719
  25  0.153648
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.414e+02  1.647e+02  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.818e-01  1.536e-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.520e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.18
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.97e-08 +/- 5.78e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.97e-05

TS (Fixed Index): 2.18
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210813/likelihoodResults_538444801_538704001_4FGL_J2209.8-5028_daily_bin1154.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) = 7086.26674526
delta logL = 0.00326438296088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7086.26143862
delta logL = 0.00857101539441

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    124.91       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4588       1.0000          .0000       10.000    
     3 'Normalizat'    .84925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98349       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=   7086.261     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      260 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     124.98        185.46        .18008E-03   -.63698E-04
   2  Index         2.4589        .79368        .61712E-02   -.52494E-04
   3  Normalizat    .84889        .18355        .26249E-03    .18332E-02
   4  Prefactor     .98377        .15246        .20487E-03    .27965E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 124.984
  Index      = 2.45891
  Normalizat = 0.848893
  Prefactor  = 0.983772
 **********
 **   18 **HESSE 
 **********

 FCN=   7086.261     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     124.98        158.09        .72033E-05   -1.3467    
   2  Index         2.4589        .67622        .24685E-03   -.53311    
   3  Normalizat    .84889        .18327        .52499E-04   -.98280    
   4  Prefactor     .98377        .15223        .40974E-04   -.93272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26706e-09
Minuit parameter uncertainties:
  1  158.627
  2  0.679028
  3  0.183407
  4  0.152294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210813': 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) = 7086.2614362
delta logL = 0.00857344349333

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.250e+02  1.586e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.459e+00  6.790e-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:  9.838e-01  1.523e-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.489e-01  1.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.23
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 2.46 +/- 0.68
Photon Flux (Free Index): 5.18e-08 +/- 4.18e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.45e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.62e-03', comment='SUCCESS', photon_flux='4.97e-08', energy_flux2='1.58e-05', photon_flux_error='5.78e-08', dlogl='8.57e-03', energy_flux='1.69e-05', photon_flux2='5.18e-08', job_status='DONE', time_completed='2021-09-28 06:41:21.300674', photon_index_error2='0.68', photon_index2='2.46', ts='2.18', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.45e-05', EG='0.85', time_epoch_completed='1632836481.3', return_code='0', job_id='210813', GAL2='0.98', EG2='0.85', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='4.18e-08', ts2='2.23', photon_index='2.37' WHERE bin_id='1154' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:41:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 210813: <4FGL_J2209.8-5028_daily_bin1154> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1154> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:44 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:45 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:25:45 2021
Terminated at Tue Sep 28 06:41:22 2021
Results reported at Tue Sep 28 06:41:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1154 332.474 -50.4702 538444801 538704001 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 :                                   820.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             310.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

