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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1362
RA = 332.474, Dec = -50.4702
tmin = 592358401, tmax = 592617601
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='211685', job_status='RUN', time_executed='2021-09-28 06:31:58.996551', time_epoch_executed='1632835919.0' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211685/ft1_4FGL_J2209.8-5028_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211685/ft2_4FGL_J2209.8-5028_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211685/ft1_4FGL_J2209.8-5028_daily_bin1362.fits outfile=/scratch/kocevski/211685/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1362.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=592358401.0 tmax=592617601.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.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211685/ft2_4FGL_J2209.8-5028_daily_bin1362.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/211685/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1362.fits evtable="EVENTS" outfile="/scratch/kocevski/211685/ft1_filtered_4FGL_J2209.8-5028_daily_bin1362.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211685/ft1_filtered_4FGL_J2209.8-5028_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/211685/ft2_4FGL_J2209.8-5028_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/211685/ltcube_592358401_592617601_4FGL_J2209.8-5028_daily_bin1362.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/211685/ft2_4FGL_J2209.8-5028_daily_bin1362.fits
.....................!
real 11.71
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211685/ft1_filtered_4FGL_J2209.8-5028_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/211685/ft2_4FGL_J2209.8-5028_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/211685/ltcube_592358401_592617601_4FGL_J2209.8-5028_daily_bin1362.fits outfile=/scratch/kocevski/211685/expmap_592358401_592617601_4FGL_J2209.8-5028_daily_bin1362.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/211685/ltcube_592358401_592617601_4FGL_J2209.8-5028_daily_bin1362.fits
.....................!
real 189.14
user 184.51
sys 4.32

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/211685/ft1_filtered_4FGL_J2209.8-5028_daily_bin1362.fits scfile=/scratch/kocevski/211685/ft2_4FGL_J2209.8-5028_daily_bin1362.fits outfile=/scratch/kocevski/211685/cmap_592358401_592617601_4FGL_J2209.8-5028_daily_bin1362.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211685/ft1_filtered_4FGL_J2209.8-5028_daily_bin1362.fits scfile=/scratch/kocevski/211685/ft2_4FGL_J2209.8-5028_daily_bin1362.fits outfile=/scratch/kocevski/211685/cmap_HighResolution_592358401_592617601_4FGL_J2209.8-5028_daily_bin1362.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/211685/ft1_filtered_4FGL_J2209.8-5028_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/211685/ft2_4FGL_J2209.8-5028_daily_bin1362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211685/Model_4FGL_J2209.8-5028_daily_bin1362.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/211685/ft1_filtered_4FGL_J2209.8-5028_daily_bin1362.fits.....................!
real 44.35
user 43.18
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.271       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.879       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10777E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    70.748       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.728       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1536       1.0000         .10000E-03   10000.    
     7 'norm      '    12.012       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    108.29       1.0000         .10000E-03   10000.    
    13 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4633       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.123       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11379E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.8337       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.4268       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0396       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80460       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=   5524.318     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2894 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.272        34.765        .27056E-07    .39461E-04
   2  Prefactor     13.887        45.206        .63540E-05    .90773E-04
   3  Prefactor     .10000E-03    11.179        .73762E-08** at limit **
   4  Prefactor     70.745        45.849       -.12801E-05   -.76735E-04
   5  Prefactor     16.721        30.770       -.36424E-05   -.10499E-03
   6  Prefactor     5.1548        3.8051        .12900E-05   -.29870E-02
   7  norm          12.012        6.5451        .25782E-06    .75558E-04
   8  Prefactor     .10000E-03    5.0006        .11215E-07** at limit **
   9  Prefactor     .10000E-03    10.736       -.36454E-06** at limit **
  10  Prefactor     .10000E-03    10.907       -.36440E-06** at limit **
  11  Prefactor     5.0430        5.2112       -.12118E-06   -.32109E-03
  12  Prefactor     108.27        114.39       -.10524E-04   -.18119E-03
  13  norm          .10000E-03    8.9516       -.17750E-06** at limit **
  14  Prefactor     4.4637        4.0166       -.22400E-07   -.12573E-03
  15  Prefactor     .10000E-03    23.306       -.98203E-07** at limit **
  16  Prefactor     11.118        7.7252        .45041E-07   -.78987E-04
  17  Prefactor     .10000E-03    103.13       -.23133E-05** at limit **
  18  Prefactor     1.8224        12.513        .34096E-05    .43810E-04
  19  Prefactor     .10001E-03    54.147       -.74980E-05** at limit **
  20  Prefactor     .10000E-03    9.9761        .92506E-06** at limit **
  21  Prefactor     .10001E-03    58.599        .94665E-05** at limit **
  22  Prefactor     .10000E-03    3.2790        .30856E-08** at limit **
  23  norm          2.4268        4.2116       -.16315E-06   -.12688E-03
  24  Normalizat    1.0395        .20352        .60654E-06   -.77931E-04
  25  Prefactor     .80472        .15369       -.31183E-06   -.15089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.2724
  Prefactor  = 13.8872
  Prefactor  = 0.0001
  Prefactor  = 70.7449
  Prefactor  = 16.7209
  Prefactor  = 5.15482
  norm       = 12.0123
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.043
  Prefactor  = 108.269
  norm       = 0.0001
  Prefactor  = 4.46368
  Prefactor  = 0.0001
  Prefactor  = 11.1182
  Prefactor  = 0.000100002
  Prefactor  = 1.82238
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 2.42676
  Normalizat = 1.03947
  Prefactor  = 0.804719
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.318     FROM HESSE     STATUS=OK           421 CALLS     3315 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.272        34.761        .51261E-04   -1.4141    
   2  Prefactor     13.887        45.600        .10751E-03   -1.4962    
   3  Prefactor     .10000E-03    11.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     70.745        45.875        .47726E-04   -1.4024    
   5  Prefactor     16.721        30.738        .97926E-04   -1.4890    
   6  Prefactor     5.1548        5.7669        .87838E-03   -1.5254    
   7  norm          12.012        6.5452        .11558E-03   -1.5015    
   8  Prefactor     .10000E-03    5.0043        .16232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0430        5.2060        .15876E-03   -1.5259    
  12  Prefactor     108.27        115.34        .38648E-04   -1.3623    
  13  norm          .10000E-03    9.3013        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4637        4.0220        .13463E-03   -1.5285    
  15  Prefactor     .10000E-03    23.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.118        7.7680        .12013E-03   -1.5041    
  17  Prefactor     .10000E-03    106.45        .36319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.8224        12.515        .30816E-03   -1.5438    
  19  Prefactor     .10001E-03    54.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.261        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    59.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.2804        .13144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.4268        4.1920        .19637E-03   -1.5396    
  24  Normalizat    1.0395        .23612        .25553E-03   -.91720    
  25  Prefactor     .80472        .17665        .22912E-03   -.99555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69461e-09
Minuit parameter uncertainties:
  1  34.7727
  2  45.7142
  3  8.03474e-06
  4  45.8978
  5  30.7668
  6  5.76757
  7  6.54563
  8  5.92103e-07
  9  1.34645e-05
  10  0.000264834
  11  5.20643
  12  115.581
  13  1.46967e-07
  14  4.02222
  15  1.53428e-05
  16  7.76875
  17  0.000896388
  18  9.55388
  19  0.00124359
  20  4.09189e-05
  21  0.00145887
  22  1.09632e-06
  23  4.19253
  24  0.236355
  25  0.176777
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.083e+02  1.156e+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:  8.047e-01  1.768e-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:  1.039e+00  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 1.38e-05

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

Saving results to:
/scratch/kocevski/211685/likelihoodResults_592358401_592617601_4FGL_J2209.8-5028_daily_bin1362.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) = 5523.58525749
delta logL = 0.73290441659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5523.55118396
delta logL = 0.766977945335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.012       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3456       1.0000          .0000       10.000    
     3 'Normalizat'    .99275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82653       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=   5523.551     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      280 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.106        453.80        .18284E-02   -.65246E-03
   2  Index         3.3448        2.8195        .11128       -.23286E-03
   3  Normalizat    .99239        .71195E-01    .46076E-01   -.15948E-03
   4  Prefactor     .82682        .53730E-01    .44062E-01    .26429E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.1059
  Index      = 3.34477
  Normalizat = 0.992394
  Prefactor  = 0.826822
 **********
 **   18 **HESSE 
 **********

 FCN=   5523.551     FROM HESSE     STATUS=OK            29 CALLS      309 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.106        99.728        .73135E-04   -1.4610    
   2  Index         3.3448        1.5200        .41095E-02   -.33741    
   3  Normalizat    .99239        .22371        .26054E-03   -.93286    
   4  Prefactor     .82682        .17621        .22623E-03   -.98747    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26643e-09
Minuit parameter uncertainties:
  1  100.287
  2  1.54758
  3  0.223926
  4  0.176331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211685': 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) = 5523.5511804
delta logL = 0.766981507558

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.011e+01  1.003e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.345e+00  1.548e+00  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:  8.268e-01  1.763e-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.924e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.79
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.34 +/- 1.55
Photon Flux (Free Index): 7.82e-08 +/- 5.74e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/211685/cmap_HighResolution_592358401_592617601_4FGL_J2209.8-5028_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.59e-03', comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='1.36e-05', photon_flux_error='4.06e-08', dlogl='7.67e-01', energy_flux='1.30e-05', photon_flux2='7.82e-08', job_status='DONE', time_completed='2021-09-28 06:43:25.102700', photon_index_error2='1.55', photon_index2='3.34', ts='1.18', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.11e-05', EG='1.04', time_epoch_completed='1632836605.1', return_code='0', job_id='211685', GAL2='0.83', EG2='0.99', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='5.74e-08', ts2='2.79', photon_index='2.37' WHERE bin_id='1362' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:43:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 211685: <4FGL_J2209.8-5028_daily_bin1362> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1362> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:21 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:24 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:30:24 2021
Terminated at Tue Sep 28 06:43:25 2021
Results reported at Tue Sep 28 06:43:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1362 332.474 -50.4702 592358401 592617601 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 :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            784 sec.

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

