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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin569
RA = 332.474, Dec = -50.4702
tmin = 386812801, tmax = 387072001
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='207600', job_status='RUN', time_executed='2021-09-28 06:16:01.627458', time_epoch_executed='1632834961.63' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='569'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207600/ft1_4FGL_J2209.8-5028_daily_bin569.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207600/ft2_4FGL_J2209.8-5028_daily_bin569.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207600/ft1_4FGL_J2209.8-5028_daily_bin569.fits outfile=/scratch/kocevski/207600/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin569.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=386812801.0 tmax=387072001.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.41
user 3.22
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207600/ft1_filtered_4FGL_J2209.8-5028_daily_bin569.fits" evtable="EVENTS" scfile=/scratch/kocevski/207600/ft2_4FGL_J2209.8-5028_daily_bin569.fits sctable="SC_DATA" outfile=/scratch/kocevski/207600/ltcube_386812801_387072001_4FGL_J2209.8-5028_daily_bin569.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/207600/ft2_4FGL_J2209.8-5028_daily_bin569.fits
.....................!
real 11.81
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207600/ft1_filtered_4FGL_J2209.8-5028_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/207600/ft2_4FGL_J2209.8-5028_daily_bin569.fits sctable="SC_DATA" expcube=/scratch/kocevski/207600/ltcube_386812801_387072001_4FGL_J2209.8-5028_daily_bin569.fits outfile=/scratch/kocevski/207600/expmap_386812801_387072001_4FGL_J2209.8-5028_daily_bin569.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/207600/ltcube_386812801_387072001_4FGL_J2209.8-5028_daily_bin569.fits
.....................!
real 191.27
user 185.31
sys 5.54

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/207600/ft1_filtered_4FGL_J2209.8-5028_daily_bin569.fits scfile=/scratch/kocevski/207600/ft2_4FGL_J2209.8-5028_daily_bin569.fits outfile=/scratch/kocevski/207600/cmap_386812801_387072001_4FGL_J2209.8-5028_daily_bin569.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207600/ft1_filtered_4FGL_J2209.8-5028_daily_bin569.fits scfile=/scratch/kocevski/207600/ft2_4FGL_J2209.8-5028_daily_bin569.fits outfile=/scratch/kocevski/207600/cmap_HighResolution_386812801_387072001_4FGL_J2209.8-5028_daily_bin569.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207600/ft1_filtered_4FGL_J2209.8-5028_daily_bin569.fits evtable="EVENTS" scfile=/scratch/kocevski/207600/ft2_4FGL_J2209.8-5028_daily_bin569.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207600/Model_4FGL_J2209.8-5028_daily_bin569.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/207600/ft1_filtered_4FGL_J2209.8-5028_daily_bin569.fits.....................!
real 52.86
user 51.47
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.2151       1.0000         .10000E-03   10000.    
     7 'norm      '    18.587       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2315       1.0000         .10000E-03   10000.    
    12 'Prefactor '    87.272       1.0000         .10000E-03   10000.    
    13 'norm      '    .95766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6501       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1900       1.0000         .10000E-03   10000.    
    19 'Prefactor '    60.352       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.833       1.0000         .10000E-03   10000.    
    21 'Prefactor '    57.315       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8474       1.0000         .10000E-03   10000.    
    23 'norm      '    5.7786       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83979       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0715       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=   7210.702     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2799 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5965        .81919E-06** at limit **
   2  Prefactor     .10000E-03    9.4831       -.13385E-05** at limit **
   3  Prefactor     .10000E-03    7.3216        .10031E-06** at limit **
   4  Prefactor     .10000E-03    10.200       -.85923E-06** at limit **
   5  Prefactor     .10000E-03    21.354       -.25515E-05** at limit **
   6  Prefactor     8.2154        4.4428        .96834E-07    .64062E-04
   7  norm          18.588        5.8476        .20358E-07    .37813E-04
   8  Prefactor     .10000E-03    5.6918       -.53057E-06** at limit **
   9  Prefactor     .10000E-03    19.578        .21127E-05** at limit **
  10  Prefactor     .10000E-03    7.2032        .53525E-06** at limit **
  11  Prefactor     6.2311        3.7738       -.12559E-06   -.23805E-03
  12  Prefactor     87.279        76.662        .12101E-05    .55703E-04
  13  norm          .95765        4.2548        .14832E-05   -.23923E-03
  14  Prefactor     .10000E-03    1.6580       -.24379E-07** at limit **
  15  Prefactor     .10000E-03    11.794        .18374E-05** at limit **
  16  Prefactor     7.6503        4.8154        .11858E-05   -.75336E-03
  17  Prefactor     .10000E-03    4.5074        .50632E-07** at limit **
  18  Prefactor     7.1904        6.5069       -.44629E-07   -.99425E-05
  19  Prefactor     60.351        65.427       -.25968E-06   -.15092E-04
  20  Prefactor     15.834        8.1566        .30320E-06   -.14163E-03
  21  Prefactor     57.312        41.173       -.74757E-06   -.66416E-04
  22  Prefactor     6.8468        10.772        .10710E-06   -.15291E-04
  23  norm          5.7789        6.0914       -.65090E-08    .41639E-05
  24  Normalizat    .83970        .17709       -.56820E-06    .80069E-05
  25  Prefactor     1.0716        .14234       -.16154E-07   -.22764E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 8.21544
  norm       = 18.5882
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.23113
  Prefactor  = 87.2789
  norm       = 0.957652
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.65032
  Prefactor  = 0.0001
  Prefactor  = 7.19038
  Prefactor  = 60.3508
  Prefactor  = 15.8337
  Prefactor  = 57.3124
  Prefactor  = 6.84683
  norm       = 5.77889
  Normalizat = 0.839701
  Prefactor  = 1.0716
 **********
 **   18 **HESSE 
 **********

 FCN=   7210.702     FROM HESSE     STATUS=OK           423 CALLS     3222 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.6816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5156        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.2154        4.4425        .12575E-03   -1.5135    
   7  norm          18.588        5.8480        .92900E-04   -1.4845    
   8  Prefactor     .10000E-03    5.7354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.2311        3.7805        .12264E-03   -1.5209    
  12  Prefactor     87.279        76.729        .43007E-04   -1.3837    
  13  norm          .95765        4.2979        .34865E-03   -1.5512    
  14  Prefactor     .10000E-03    1.6889        .10670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6503        4.9381        .72493E-03   -1.5155    
  17  Prefactor     .10000E-03    4.5095        .17608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.1904        6.5095        .14959E-03   -1.5172    
  19  Prefactor     60.351        65.418        .51647E-04   -1.4153    
  20  Prefactor     15.834        8.1753        .50327E-03   -1.4912    
  21  Prefactor     57.312        41.241        .52990E-04   -1.4192    
  22  Prefactor     6.8468        10.773        .15333E-03   -1.5185    
  23  norm          5.7789        6.0908        .16708E-03   -1.5227    
  24  Normalizat    .83970        .20640        .28893E-03   -.98613    
  25  Prefactor     1.0716        .16623        .21293E-03   -.90379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.53829e-10
Minuit parameter uncertainties:
  1  8.08915e-05
  2  0.000160063
  3  5.69463e-06
  4  0.000105772
  5  0.000440559
  6  4.44264
  7  5.84822
  8  4.82594e-05
  9  0.000338087
  10  1.71399e-06
  11  3.78064
  12  76.8161
  13  4.05782
  14  1.96661e-06
  15  0.000245662
  16  4.93834
  17  4.60669e-06
  18  6.51017
  19  65.4964
  20  8.17584
  21  41.2612
  22  10.7757
  23  6.09147
  24  0.206596
  25  0.166309
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  8.728e+01  7.682e+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.072e+00  1.663e-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.397e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.05
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.07e-08 +/- 2.70e-08
Energy Flux (Fixed Index): 1.04e-05 +/- 9.19e-06

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

Saving results to:
/scratch/kocevski/207600/likelihoodResults_386812801_387072001_4FGL_J2209.8-5028_daily_bin569.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) = 7210.61823732
delta logL = 0.084108657682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7210.61462515
delta logL = 0.0877208340007

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.985       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6878       1.0000          .0000       10.000    
     3 'Normalizat'    .82969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0763       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=   7210.615     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      287 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.929        104.21        .52239E-04   -.27112E-03
   2  Index         2.6887        .96018        .66603E-02   -.21472E-03
   3  Normalizat    .82972        .20247        .29046E-03   -.16963E-02
   4  Prefactor     1.0766        .16605        .21248E-03   -.25257E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.9289
  Index      = 2.68867
  Normalizat = 0.829723
  Prefactor  = 1.07663
 **********
 **   18 **HESSE 
 **********

 FCN=   7210.615     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.929        85.591        .10448E-04   -1.4171    
   2  Index         2.6887        .78956        .26641E-03   -.48055    
   3  Normalizat    .82972        .20224        .58091E-04   -.98975    
   4  Prefactor     1.0766        .16595        .42497E-04   -.90217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47654e-09
Minuit parameter uncertainties:
  1  85.7708
  2  0.793789
  3  0.202423
  4  0.166029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207600': 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) = 7210.6146154
delta logL = 0.0877305817075

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.893e+01  8.577e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.689e+00  7.938e-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.077e+00  1.660e-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.297e-01  2.024e-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.69 +/- 0.79
Photon Flux (Free Index): 3.84e-08 +/- 3.48e-08
Energy Flux (Free Index): 9.33e-06 +/- 7.96e-06

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/207600/cmap_HighResolution_386812801_387072001_4FGL_J2209.8-5028_daily_bin569.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-03', comment='SUCCESS', photon_flux='3.07e-08', energy_flux2='9.33e-06', photon_flux_error='2.70e-08', dlogl='8.77e-02', energy_flux='1.04e-05', photon_flux2='3.84e-08', job_status='DONE', time_completed='2021-09-28 06:29:08.728937', photon_index_error2='0.79', photon_index2='2.69', ts='2.05', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='9.19e-08', energy_flux_error2='7.96e-06', EG='0.84', time_epoch_completed='1632835748.73', return_code='0', job_id='207600', GAL2='1.08', EG2='0.83', return_code2='0', energy_flux_error='9.19e-06', photon_flux_error2='3.48e-08', ts2='2.23', photon_index='2.37' WHERE bin_id='569' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:29:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 207600: <4FGL_J2209.8-5028_daily_bin569> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin569 332.474 -50.4702 386812801 387072001 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 :                                   777.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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

