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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin343
RA = 332.474, Dec = -50.4702
tmin = 328233601, tmax = 328492801
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='206198', job_status='RUN', time_executed='2021-09-28 06:12:25.916307', time_epoch_executed='1632834745.92' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='343'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206198

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206198/ft1_4FGL_J2209.8-5028_daily_bin343.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206198/ft2_4FGL_J2209.8-5028_daily_bin343.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206198/ft1_4FGL_J2209.8-5028_daily_bin343.fits outfile=/scratch/kocevski/206198/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin343.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=328233601.0 tmax=328492801.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.93
user 3.67
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206198/ft1_filtered_4FGL_J2209.8-5028_daily_bin343.fits" evtable="EVENTS" scfile=/scratch/kocevski/206198/ft2_4FGL_J2209.8-5028_daily_bin343.fits sctable="SC_DATA" outfile=/scratch/kocevski/206198/ltcube_328233601_328492801_4FGL_J2209.8-5028_daily_bin343.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/206198/ft2_4FGL_J2209.8-5028_daily_bin343.fits
.....................!
real 11.96
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206198/ft1_filtered_4FGL_J2209.8-5028_daily_bin343.fits evtable="EVENTS" scfile=/scratch/kocevski/206198/ft2_4FGL_J2209.8-5028_daily_bin343.fits sctable="SC_DATA" expcube=/scratch/kocevski/206198/ltcube_328233601_328492801_4FGL_J2209.8-5028_daily_bin343.fits outfile=/scratch/kocevski/206198/expmap_328233601_328492801_4FGL_J2209.8-5028_daily_bin343.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/206198/ltcube_328233601_328492801_4FGL_J2209.8-5028_daily_bin343.fits
.....................!
real 190.99
user 185.85
sys 4.81

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/206198/ft1_filtered_4FGL_J2209.8-5028_daily_bin343.fits scfile=/scratch/kocevski/206198/ft2_4FGL_J2209.8-5028_daily_bin343.fits outfile=/scratch/kocevski/206198/cmap_328233601_328492801_4FGL_J2209.8-5028_daily_bin343.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206198/ft1_filtered_4FGL_J2209.8-5028_daily_bin343.fits scfile=/scratch/kocevski/206198/ft2_4FGL_J2209.8-5028_daily_bin343.fits outfile=/scratch/kocevski/206198/cmap_HighResolution_328233601_328492801_4FGL_J2209.8-5028_daily_bin343.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.455       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.224       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.741       1.0000         .10000E-03   10000.    
     7 'norm      '    8.4585       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10462E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .82228       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8069       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5113       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4256       1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.027       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8105       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.637       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .54393       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2477       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=   7712.156     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2862 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.455        16.104       -.33085E-06   -.53173E-05
   2  Prefactor     .10000E-03    16.492       -.10431E-04** at limit **
   3  Prefactor     12.223        6.6505       -.37479E-06   -.72432E-04
   4  Prefactor     .10000E-03    5.8001       -.70463E-07** at limit **
   5  Prefactor     .10000E-03    13.250        .75361E-05** at limit **
   6  Prefactor     11.741        5.0282       -.14705E-05   -.35294E-04
   7  norm          8.4582        3.4265       -.20705E-06    .22923E-04
   8  Prefactor     .10000E-03    2.7494        .36232E-07** at limit **
   9  Prefactor     .10000E-03    29.813        .47789E-05** at limit **
  10  Prefactor     .10005E-03    3.8041       -.13983E-05** at limit **
  11  Prefactor     .82298        2.3004       -.54879E-06   -.12759E-02
  12  Prefactor     .10000E-03    30.607        .60081E-05** at limit **
  13  norm          2.8069        3.5256        .45269E-06    .62628E-04
  14  Prefactor     1.5113        2.0590       -.42613E-06   -.61131E-03
  15  Prefactor     .10000E-03    7.2739        .27988E-06** at limit **
  16  Prefactor     9.4277        6.0917        .32468E-05   -.62198E-04
  17  Prefactor     43.999        34.502       -.26415E-04   -.45826E-04
  18  Prefactor     6.8187        12.059        .13146E-04    .84271E-04
  19  Prefactor     .10000E-03    39.998       -.55970E-05** at limit **
  20  Prefactor     .10000E-03    1.5947       -.97569E-07** at limit **
  21  Prefactor     28.639        24.678        .21762E-05   -.33494E-05
  22  Prefactor     .10000E-03    11.369        .41398E-05** at limit **
  23  norm          .10000E-03    1.8801        .84178E-07** at limit **
  24  Normalizat    .54371        .17557        .71837E-05   -.35850E-04
  25  Prefactor     1.2479        .13911       -.17781E-05    .34756E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4546
  Prefactor  = 0.0001
  Prefactor  = 12.223
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.741
  norm       = 8.4582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100046
  Prefactor  = 0.822983
  Prefactor  = 0.0001
  norm       = 2.80687
  Prefactor  = 1.51133
  Prefactor  = 0.0001
  Prefactor  = 9.42767
  Prefactor  = 43.9986
  Prefactor  = 6.81871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6395
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.543715
  Prefactor  = 1.24792
 **********
 **   18 **HESSE 
 **********

 FCN=   7712.156     FROM HESSE     STATUS=OK           427 CALLS     3289 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.455        16.104        .98734E-04   -1.4896    
   2  Prefactor     .10000E-03    16.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.223        6.6481        .11457E-03   -1.5009    
   4  Prefactor     .10000E-03    5.8075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.741        5.0167        .11691E-03   -1.5023    
   7  norm          8.4582        3.4273        .10054E-03   -1.5126    
   8  Prefactor     .10000E-03    2.7628        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    29.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    10.586        .32722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .82298        2.2508        .21393E-03   -1.5527    
  12  Prefactor     .10000E-03    30.628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8069        3.5209        .18032E-03   -1.5373    
  14  Prefactor     1.5113        2.0342        .14142E-03   -1.5462    
  15  Prefactor     .10000E-03    7.2749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4277        6.0801        .13053E-03   -1.5094    
  17  Prefactor     43.999        34.262        .60421E-04   -1.4380    
  18  Prefactor     6.8187        11.991        .15375E-03   -1.5186    
  19  Prefactor     .10000E-03    40.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.5980        .10830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.639        24.674        .74866E-04   -1.4637    
  22  Prefactor     .10000E-03    11.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.8802        .11760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .54371        .19213        .33721E-03   -1.1043    
  25  Prefactor     1.2479        .15485        .19300E-03   -.84869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77798e-09
Minuit parameter uncertainties:
  1  16.1082
  2  1.58824e-05
  3  6.64853
  4  2.64904e-06
  5  6.41779e-06
  6  5.01687
  7  3.42739
  8  2.4947e-06
  9  4.51397e-05
  10  0.00139574
  11  2.25102
  12  6.79506e-05
  13  3.52113
  14  2.03433
  15  3.64898e-06
  16  6.0805
  17  34.2772
  18  11.9953
  19  0.000159398
  20  3.3124e-06
  21  24.6827
  22  2.46821e-05
  23  5.29129e-07
  24  0.192368
  25  0.15491
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  6.795e-05  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.248e+00  1.549e-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:  5.437e-01  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/206198/likelihoodResults_328233601_328492801_4FGL_J2209.8-5028_daily_bin343.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7712.15588876
delta logL = -0.000155483823619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7712.15573391
delta logL = -6.35710421193e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6317       1.0000          .0000       10.000    
     3 'Normalizat'    .54372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2479       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=   7712.156     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      280 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10203E-03    137.03        .18142E-02** at limit **
   2  Index         2.5657        8.6777        .50000        .11717E-04
   3  Normalizat    .54372        .93580E-02    .33720E-03    .10182E-04
   4  Prefactor     1.2479        .78984E-02    .19300E-03   -.29453E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010203
  Index      = 2.56572
  Normalizat = 0.543718
  Prefactor  = 1.24791
 **********
 **   18 **HESSE 
 **********

 FCN=   7712.156     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10203E-03    580.64        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5657        5.0495        .50000       -.50849    
   3  Normalizat    .54372        .19800E-01    .13488E-04   -1.1043    
   4  Prefactor     1.2479        .16711E-01    .77199E-05   -.84869    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.55852e-09
Minuit parameter uncertainties:
  1  0.0693527
  2  548.727
  3  0.0197998
  4  0.0167116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206198': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7712.15573371
delta logL = -4.39360519522e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.020e-04  6.935e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.566e+00  5.487e+02  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.248e+00  1.671e-02  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:  5.437e-01  1.980e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-03', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2021-09-28 06:26:01.177710', job_id='206198', GAL2='1.25', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1632835561.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='-4.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='343' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:26:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 206198: <4FGL_J2209.8-5028_daily_bin343> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin343> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:11:01 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:11:03 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:11:03 2021
Terminated at Tue Sep 28 06:26:01 2021
Results reported at Tue Sep 28 06:26:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin343 332.474 -50.4702 328233601 328492801 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 :                                   813.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

