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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1128
RA = 332.474, Dec = -50.4702
tmin = 531705601, tmax = 531964801
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='210774', job_status='RUN', time_executed='2021-09-28 06:27:24.717685', time_epoch_executed='1632835644.72' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1128'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210774/ft1_4FGL_J2209.8-5028_daily_bin1128.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210774/ft2_4FGL_J2209.8-5028_daily_bin1128.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210774/ft1_4FGL_J2209.8-5028_daily_bin1128.fits outfile=/scratch/kocevski/210774/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1128.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=531705601.0 tmax=531964801.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.99
user 3.74
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210774/ft2_4FGL_J2209.8-5028_daily_bin1128.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/210774/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1128.fits evtable="EVENTS" outfile="/scratch/kocevski/210774/ft1_filtered_4FGL_J2209.8-5028_daily_bin1128.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/210774/ft1_filtered_4FGL_J2209.8-5028_daily_bin1128.fits" evtable="EVENTS" scfile=/scratch/kocevski/210774/ft2_4FGL_J2209.8-5028_daily_bin1128.fits sctable="SC_DATA" outfile=/scratch/kocevski/210774/ltcube_531705601_531964801_4FGL_J2209.8-5028_daily_bin1128.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/210774/ft2_4FGL_J2209.8-5028_daily_bin1128.fits
.....................!
real 11.81
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210774/ft1_filtered_4FGL_J2209.8-5028_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/210774/ft2_4FGL_J2209.8-5028_daily_bin1128.fits sctable="SC_DATA" expcube=/scratch/kocevski/210774/ltcube_531705601_531964801_4FGL_J2209.8-5028_daily_bin1128.fits outfile=/scratch/kocevski/210774/expmap_531705601_531964801_4FGL_J2209.8-5028_daily_bin1128.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/210774/ltcube_531705601_531964801_4FGL_J2209.8-5028_daily_bin1128.fits
.....................!
real 191.49
user 185.61
sys 5.49

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/210774/ft1_filtered_4FGL_J2209.8-5028_daily_bin1128.fits scfile=/scratch/kocevski/210774/ft2_4FGL_J2209.8-5028_daily_bin1128.fits outfile=/scratch/kocevski/210774/cmap_531705601_531964801_4FGL_J2209.8-5028_daily_bin1128.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210774/ft1_filtered_4FGL_J2209.8-5028_daily_bin1128.fits scfile=/scratch/kocevski/210774/ft2_4FGL_J2209.8-5028_daily_bin1128.fits outfile=/scratch/kocevski/210774/cmap_HighResolution_531705601_531964801_4FGL_J2209.8-5028_daily_bin1128.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/210774/ft1_filtered_4FGL_J2209.8-5028_daily_bin1128.fits evtable="EVENTS" scfile=/scratch/kocevski/210774/ft2_4FGL_J2209.8-5028_daily_bin1128.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210774/Model_4FGL_J2209.8-5028_daily_bin1128.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/210774/ft1_filtered_4FGL_J2209.8-5028_daily_bin1128.fits.....................!
real 44.16
user 42.73
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .72023       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1326       1.0000         .10000E-03   10000.    
     7 'norm      '    26.075       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9970       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.160       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8362       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7077       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.8213       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .59674       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8192       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.7394       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1952       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0090       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=   5241.058     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2925 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6185       -.13444E-06** at limit **
   2  Prefactor     .10000E-03    43.888       -.22250E-05** at limit **
   3  Prefactor     .72079        6.9539        .69023E-07    .70138E-05
   4  Prefactor     .10000E-03    67.943        .48037E-05** at limit **
   5  Prefactor     .10000E-03    93.853        .13048E-04** at limit **
   6  Prefactor     4.1328        6.2738       -.64797E-06   -.25170E-03
   7  norm          26.074        8.5351        .52342E-07   -.74648E-04
   8  Prefactor     .10000E-03    4.0164        .95848E-07** at limit **
   9  Prefactor     5.9967        31.506       -.66168E-07   -.69732E-05
  10  Prefactor     10.160        10.252       -.70870E-07   -.28042E-04
  11  Prefactor     2.8361        3.4711        .43961E-09   -.59538E-04
  12  Prefactor     .10000E-03    59.707       -.53150E-05** at limit **
  13  norm          .10000E-03    3.2379        .73149E-07** at limit **
  14  Prefactor     4.7073        4.4125       -.32023E-06   -.13117E-03
  15  Prefactor     .10000E-03    26.936        .59640E-05** at limit **
  16  Prefactor     2.8201        8.1798        .14198E-05    .40330E-05
  17  Prefactor     .10000E-03    25.930       -.50809E-05** at limit **
  18  Prefactor     .59735        11.397        .26906E-08   -.19990E-04
  19  Prefactor     .10001E-03    118.59       -.19577E-04** at limit **
  20  Prefactor     4.8191        6.4856        .20014E-06   -.72426E-06
  21  Prefactor     .10000E-03    15.659        .19214E-06** at limit **
  22  Prefactor     .10000E-03    4.7101        .63378E-07** at limit **
  23  norm          2.7389        3.7322        .11882E-05   -.17670E-02
  24  Normalizat    1.1953        .22761       -.51537E-06   -.67595E-04
  25  Prefactor     1.0089        .17071        .10517E-06   -.10911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.720795
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 4.13281
  norm       = 26.0745
  Prefactor  = 0.0001
  Prefactor  = 5.99675
  Prefactor  = 10.1598
  Prefactor  = 2.83613
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 4.70734
  Prefactor  = 0.000100001
  Prefactor  = 2.82011
  Prefactor  = 0.000100001
  Prefactor  = 0.597347
  Prefactor  = 0.000100009
  Prefactor  = 4.81909
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.73895
  Normalizat = 1.19534
  Prefactor  = 1.00891
 **********
 **   18 **HESSE 
 **********

 FCN=   5241.058     FROM HESSE     STATUS=OK           431 CALLS     3356 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    43.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .72079        45.810        .34838E-02   -1.5538    
   4  Prefactor     .10000E-03    68.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    95.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1328        6.2595        .19829E-03   -1.5301    
   7  norm          26.074        8.5200        .78451E-04   -1.4686    
   8  Prefactor     .10000E-03    4.0175        .14170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.9967        31.435        .16397E-03   -1.5218    
  10  Prefactor     10.160        10.243        .12571E-03   -1.5070    
  11  Prefactor     2.8361        3.4616        .14342E-03   -1.5371    
  12  Prefactor     .10000E-03    59.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.2419        .12722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7073        4.4240        .14090E-03   -1.5274    
  15  Prefactor     .10000E-03    27.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.8201        8.2156        .24214E-03   -1.5372    
  17  Prefactor     .10000E-03    26.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .59735        67.887        .46143E-02   -1.5553    
  19  Prefactor     .10001E-03    119.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8191        6.4814        .18326E-03   -1.5269    
  21  Prefactor     .10000E-03    15.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7116        .15345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.7389        6.8029        .12300E-02   -1.5377    
  24  Normalizat    1.1953        .26931        .27156E-03   -.86747    
  25  Prefactor     1.0089        .20123        .23019E-03   -.92433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32825e-08
Minuit parameter uncertainties:
  1  2.39146e-06
  2  0.000134779
  3  11.5009
  4  0.000355802
  5  0.00116208
  6  6.26045
  7  8.52035
  8  1.93623e-06
  9  27.4822
  10  10.2449
  11  3.46186
  12  0.000396266
  13  1.46033e-06
  14  4.42434
  15  0.000306032
  16  8.21886
  17  0.000262595
  18  12.7499
  19  0.00205107
  20  6.48235
  21  5.30895e-06
  22  1.43996e-06
  23  6.80478
  24  0.26962
  25  0.201376
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.963e-04  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.009e+00  2.014e-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.195e+00  2.696e-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: 8.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210774/likelihoodResults_531705601_531964801_4FGL_J2209.8-5028_daily_bin1128.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) = 5241.05841214
delta logL = -7.95807827672e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5241.05833386
delta logL = -1.3010640032e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17321E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6800       1.0000          .0000       10.000    
     3 'Normalizat'    1.1953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0089       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=   5241.058     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      276 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10391E-03    23.502        .18142E-01** at limit **
   2  Index         2.5860        6.2930        .50000        .66571E-05
   3  Normalizat    1.1953        .39559E-02    .27156E-03   -.72844E-05
   4  Prefactor     1.0089        .31280E-02    .23019E-03   -.14817E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103908
  Index      = 2.58597
  Normalizat = 1.19534
  Prefactor  = 1.00891
 **********
 **   18 **HESSE 
 **********

 FCN=   5241.058     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10391E-03    169.11        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5860        6.6650        .50000       -.50386    
   3  Normalizat    1.1953        .10662E-01    .10862E-04   -.86747    
   4  Prefactor     1.0089        .84309E-02    .92075E-05   -.92433    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19938e-09
Minuit parameter uncertainties:
  1  0.0515624
  2  382.152
  3  0.0106621
  4  0.00843088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210774': 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) = 5241.05833284
delta logL = -2.88942828774e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.039e-04  5.156e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.586e+00  3.822e+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.009e+00  8.431e-03  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.195e+00  1.066e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/210774/cmap_HighResolution_531705601_531964801_4FGL_J2209.8-5028_daily_bin1128.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-03', job_status='DONE', photon_flux_upper_limit='8.64e-08', time_completed='2021-09-28 06:41:18.303285', job_id='210774', GAL2='1.01', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632836478.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='-2.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1128' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:41:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 210774: <4FGL_J2209.8-5028_daily_bin1128> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1128 332.474 -50.4702 531705601 531964801 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 :                             253.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            938 sec.

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

