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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin676
RA = 332.474, Dec = -50.4702
tmin = 414547201, tmax = 414806401
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='208881', job_status='RUN', time_executed='2021-09-28 06:21:48.894487', time_epoch_executed='1632835308.89' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='676'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/208881

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/208881/ft1_4FGL_J2209.8-5028_daily_bin676.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/208881/ft2_4FGL_J2209.8-5028_daily_bin676.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/208881/ft1_4FGL_J2209.8-5028_daily_bin676.fits outfile=/scratch/kocevski/208881/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin676.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=414547201.0 tmax=414806401.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 6.05
user 5.76
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/208881/ft2_4FGL_J2209.8-5028_daily_bin676.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/208881/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin676.fits evtable="EVENTS" outfile="/scratch/kocevski/208881/ft1_filtered_4FGL_J2209.8-5028_daily_bin676.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.54
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/208881/ft1_filtered_4FGL_J2209.8-5028_daily_bin676.fits" evtable="EVENTS" scfile=/scratch/kocevski/208881/ft2_4FGL_J2209.8-5028_daily_bin676.fits sctable="SC_DATA" outfile=/scratch/kocevski/208881/ltcube_414547201_414806401_4FGL_J2209.8-5028_daily_bin676.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/208881/ft2_4FGL_J2209.8-5028_daily_bin676.fits
.....................!
real 18.83
user 17.44
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/208881/ft1_filtered_4FGL_J2209.8-5028_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/208881/ft2_4FGL_J2209.8-5028_daily_bin676.fits sctable="SC_DATA" expcube=/scratch/kocevski/208881/ltcube_414547201_414806401_4FGL_J2209.8-5028_daily_bin676.fits outfile=/scratch/kocevski/208881/expmap_414547201_414806401_4FGL_J2209.8-5028_daily_bin676.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/208881/ltcube_414547201_414806401_4FGL_J2209.8-5028_daily_bin676.fits
.....................!
real 193.70
user 188.05
sys 5.26

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/208881/ft1_filtered_4FGL_J2209.8-5028_daily_bin676.fits scfile=/scratch/kocevski/208881/ft2_4FGL_J2209.8-5028_daily_bin676.fits outfile=/scratch/kocevski/208881/cmap_414547201_414806401_4FGL_J2209.8-5028_daily_bin676.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.56
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/208881/ft1_filtered_4FGL_J2209.8-5028_daily_bin676.fits scfile=/scratch/kocevski/208881/ft2_4FGL_J2209.8-5028_daily_bin676.fits outfile=/scratch/kocevski/208881/cmap_HighResolution_414547201_414806401_4FGL_J2209.8-5028_daily_bin676.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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/208881/ft1_filtered_4FGL_J2209.8-5028_daily_bin676.fits evtable="EVENTS" scfile=/scratch/kocevski/208881/ft2_4FGL_J2209.8-5028_daily_bin676.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/208881/Model_4FGL_J2209.8-5028_daily_bin676.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/208881/ft1_filtered_4FGL_J2209.8-5028_daily_bin676.fits.....................!
real 51.61
user 50.14
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6387       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7801       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11298E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.843       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.665       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6589       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2425       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10991E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6393       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10304E-03   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      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1954       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82904       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=   6019.603     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2497 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1851        .10594E-06** at limit **
   2  Prefactor     .10000E-03    12.270       -.62888E-06** at limit **
   3  Prefactor     4.2974        8.4472        .25135E-05   -.22458E-03
   4  Prefactor     4.6312        25.131       -.32574E-06   -.46496E-04
   5  Prefactor     1.7350        64.043       -.28239E-07   -.96558E-04
   6  Prefactor     .10000E-03    2.4738       -.11975E-06** at limit **
   7  norm          .10000E-03    1.9811       -.91247E-07** at limit **
   8  Prefactor     21.843        14.098        .10609E-06   -.54938E-04
   9  Prefactor     19.657        33.006       -.14841E-08   -.12534E-03
  10  Prefactor     .10000E-03    4.8732       -.28278E-06** at limit **
  11  Prefactor     1.6594        3.3960        .40372E-05   -.68266E-03
  12  Prefactor     .10001E-03    45.080        .61475E-06** at limit **
  13  norm          .10000E-03    4.1741       -.29606E-07** at limit **
  14  Prefactor     1.2433        4.4277        .57560E-06   -.23280E-03
  15  Prefactor     .10003E-03    67.730       -.18705E-05** at limit **
  16  Prefactor     .10000E-03    2.1929       -.31464E-08** at limit **
  17  Prefactor     .10000E-03    55.965        .28565E-06** at limit **
  18  Prefactor     2.6367        15.271        .21517E-05    .20763E-03
  19  Prefactor     .10000E-03    64.026       -.34065E-06** at limit **
  20  Prefactor     .10000E-03    8.7787        .93189E-05** at limit **
  21  Prefactor     .10001E-03    20.486       -.61998E-06** at limit **
  22  Prefactor     .10000E-03    14.402        .58164E-06** at limit **
  23  norm          .10000E-03    4.2137        .75319E-07** at limit **
  24  Normalizat    1.1953        .19759       -.62363E-06   -.13839E-03
  25  Prefactor     .82912        .13670       -.12868E-05   -.35954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 4.29739
  Prefactor  = 4.6312
  Prefactor  = 1.73495
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.8434
  Prefactor  = 19.6571
  Prefactor  = 0.0001
  Prefactor  = 1.65939
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 1.24333
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 2.6367
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100006
  Prefactor  = 0.000100003
  norm       = 0.0001
  Normalizat = 1.19529
  Prefactor  = 0.829118
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.603     FROM HESSE     STATUS=OK           419 CALLS     2916 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.2974        8.6525        .97156E-03   -1.5293    
   4  Prefactor     4.6312        24.897        .18687E-03   -1.5278    
   5  Prefactor     1.7350        64.603        .31369E-03   -1.5445    
   6  Prefactor     .10000E-03    4.6237        .23336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0150        .10654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.843        14.099        .85703E-04   -1.4773    
   9  Prefactor     19.657        33.097        .90320E-04   -1.4821    
  10  Prefactor     .10000E-03    4.9219        .16723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6594        3.9342        .11254E-02   -1.5450    
  12  Prefactor     .10001E-03    45.409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.1868        .15483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2433        4.4453        .28978E-03   -1.5485    
  15  Prefactor     .10003E-03    69.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2018        .11219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    56.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6367        15.429        .25098E-03   -1.5383    
  19  Prefactor     .10000E-03    64.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.030        .32564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    20.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.2163        .15558E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1953        .23633        .25335E-03   -.86748    
  25  Prefactor     .82912        .16294        .21513E-03   -.98664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94389e-09
Minuit parameter uncertainties:
  1  5.77888e-05
  2  0.00045986
  3  8.65501
  4  21.4897
  5  21.1979
  6  9.53917e-06
  7  8.99935e-06
  8  14.101
  9  33.1283
  10  5.36509e-05
  11  3.93477
  12  0.00120516
  13  2.55617e-05
  14  4.44647
  15  0.00267033
  16  1.09645e-06
  17  0.000909364
  18  12.7612
  19  0.000527983
  20  0.000426347
  21  0.000720385
  22  0.000403603
  23  3.03282e-05
  24  0.236543
  25  0.163034
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.205e-03  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.291e-01  1.630e-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.365e-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: 6.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/208881/likelihoodResults_414547201_414806401_4FGL_J2209.8-5028_daily_bin676.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) = 6019.60318246
delta logL = -0.000104783159259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6019.60307802
delta logL = -3.39207872457e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6206       1.0000          .0000       10.000    
     3 'Normalizat'    1.1953       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82913       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=   6019.603     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      273 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10151E-03    192.20        .18142E-02** at limit **
   2  Index         2.5655        8.1418        .50000        .71752E-05
   3  Normalizat    1.1953        .11028E-01    .25335E-03    .61925E-05
   4  Prefactor     .82912        .79955E-02    .21513E-03    .17703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101508
  Index      = 2.56551
  Normalizat = 1.19529
  Prefactor  = 0.82912
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.603     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10151E-03    822.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5655        5.8844        .50000       -.50853    
   3  Normalizat    1.1953        .23495E-01    .10134E-04   -.86748    
   4  Prefactor     .82912        .17034E-01    .86054E-05   -.98664    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.58997e-09
Minuit parameter uncertainties:
  1  0.0714158
  2  605.831
  3  0.0234949
  4  0.017034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/208881': 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) = 6019.60307794
delta logL = -2.58285581367e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.015e-04  7.142e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.566e+00  6.058e+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:  8.291e-01  1.703e-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:  1.195e+00  2.349e-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/208881/cmap_HighResolution_414547201_414806401_4FGL_J2209.8-5028_daily_bin676.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.46e-08', time_completed='2021-09-28 06:33:35.488492', job_id='208881', GAL2='0.83', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1632836015.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-2.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='676' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:33:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 208881: <4FGL_J2209.8-5028_daily_bin676> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin676> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 06:20:15 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:20:17 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:20:17 2021
Terminated at Tue Sep 28 06:33:36 2021
Results reported at Tue Sep 28 06:33:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin676 332.474 -50.4702 414547201 414806401 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 :                                   701.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            801 sec.

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

