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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1055
RA = 332.474, Dec = -50.4702
tmin = 512784001, tmax = 513043201
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='210663', job_status='RUN', time_executed='2021-09-28 06:27:18.558431', time_epoch_executed='1632835638.56' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210663

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210663/ft1_4FGL_J2209.8-5028_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210663/ft2_4FGL_J2209.8-5028_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210663/ft1_4FGL_J2209.8-5028_daily_bin1055.fits outfile=/scratch/kocevski/210663/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1055.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=512784001.0 tmax=513043201.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 4.42
user 4.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/210663/ft2_4FGL_J2209.8-5028_daily_bin1055.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/210663/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1055.fits evtable="EVENTS" outfile="/scratch/kocevski/210663/ft1_filtered_4FGL_J2209.8-5028_daily_bin1055.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/210663/ft1_filtered_4FGL_J2209.8-5028_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/210663/ft2_4FGL_J2209.8-5028_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/210663/ltcube_512784001_513043201_4FGL_J2209.8-5028_daily_bin1055.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/210663/ft2_4FGL_J2209.8-5028_daily_bin1055.fits
.....................!
real 12.14
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210663/ft1_filtered_4FGL_J2209.8-5028_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/210663/ft2_4FGL_J2209.8-5028_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/210663/ltcube_512784001_513043201_4FGL_J2209.8-5028_daily_bin1055.fits outfile=/scratch/kocevski/210663/expmap_512784001_513043201_4FGL_J2209.8-5028_daily_bin1055.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/210663/ltcube_512784001_513043201_4FGL_J2209.8-5028_daily_bin1055.fits
.....................!
real 190.78
user 185.43
sys 4.96

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/210663/ft1_filtered_4FGL_J2209.8-5028_daily_bin1055.fits scfile=/scratch/kocevski/210663/ft2_4FGL_J2209.8-5028_daily_bin1055.fits outfile=/scratch/kocevski/210663/cmap_512784001_513043201_4FGL_J2209.8-5028_daily_bin1055.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210663/ft1_filtered_4FGL_J2209.8-5028_daily_bin1055.fits scfile=/scratch/kocevski/210663/ft2_4FGL_J2209.8-5028_daily_bin1055.fits outfile=/scratch/kocevski/210663/cmap_HighResolution_512784001_513043201_4FGL_J2209.8-5028_daily_bin1055.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.295       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.872       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.385       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1537       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46269       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.4950       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    61.406       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.015       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.909       1.0000         .10000E-03   10000.    
    23 'norm      '    .31351       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1093       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0941       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=   6898.489     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2958 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.641       -.12328E-04** at limit **
   2  Prefactor     .10000E-03    13.384        .52528E-05** at limit **
   3  Prefactor     1.5886        2.9792        .14457E-05   -.23339E-02
   4  Prefactor     15.288        32.997       -.63043E-05   -.29694E-04
   5  Prefactor     .10000E-03    17.356        .12318E-04** at limit **
   6  Prefactor     .10000E-03    1.8656       -.45614E-06** at limit **
   7  norm          10.872        5.8159       -.13138E-06   -.57286E-04
   8  Prefactor     .10000E-03    24.236        .22351E-05** at limit **
   9  Prefactor     50.379        38.725       -.32581E-05   -.48181E-04
  10  Prefactor     2.1430        7.8945        .39565E-05   -.29711E-04
  11  Prefactor     .44933        2.1843        .98305E-08   -.98870E-05
  12  Prefactor     .10000E-03    44.441        .10269E-04** at limit **
  13  norm          2.4961        7.4454       -.35309E-05   -.10666E-03
  14  Prefactor     .10000E-03    2.1463        .32147E-08** at limit **
  15  Prefactor     61.397        49.392       -.61822E-05   -.33754E-04
  16  Prefactor     .10000E-03    2.4345        .11196E-06** at limit **
  17  Prefactor     40.981        29.458       -.79688E-05   -.73790E-04
  18  Prefactor     .10000E-03    3.8915        .19320E-06** at limit **
  19  Prefactor     .10000E-03    113.51       -.13097E-05** at limit **
  20  Prefactor     .10000E-03    3.2951        .11458E-07** at limit **
  21  Prefactor     .10000E-03    14.684       -.12192E-04** at limit **
  22  Prefactor     10.905        12.486       -.37531E-06    .11095E-04
  23  norm          .31897        5.1603       -.19402E-06   -.14728E-04
  24  Normalizat    1.1099        .20046        .30011E-05   -.18371E-03
  25  Prefactor     1.0937        .15239       -.89044E-06    .97828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.58862
  Prefactor  = 15.2879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8721
  Prefactor  = 0.0001
  Prefactor  = 50.3793
  Prefactor  = 2.14304
  Prefactor  = 0.449334
  Prefactor  = 0.0001
  norm       = 2.49609
  Prefactor  = 0.0001
  Prefactor  = 61.3973
  Prefactor  = 0.0001
  Prefactor  = 40.981
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.9051
  norm       = 0.318969
  Normalizat = 1.10988
  Prefactor  = 1.09371
 **********
 **   18 **HESSE 
 **********

 FCN=   6898.489     FROM HESSE     STATUS=OK           427 CALLS     3385 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5886        10.247        .16806E-02   -1.5456    
   4  Prefactor     15.288        33.161        .10241E-03   -1.4926    
   5  Prefactor     .10000E-03    17.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8914        .11076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.872        5.8031        .12150E-03   -1.5048    
   8  Prefactor     .10000E-03    24.993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.379        38.640        .56497E-04   -1.4287    
  10  Prefactor     2.1430        7.8245        .28074E-03   -1.5415    
  11  Prefactor     .44933        11.655        .22413E-02   -1.5574    
  12  Prefactor     .10000E-03    44.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.4961        7.4410        .25875E-03   -1.5392    
  14  Prefactor     .10000E-03    2.2448        .23738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     61.397        49.456        .51204E-04   -1.4139    
  16  Prefactor     .10000E-03    2.4659        .12651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.981        29.671        .62592E-04   -1.4427    
  18  Prefactor     .10000E-03    3.9016        .15999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    113.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.3132        .14723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.905        12.477        .12130E-03   -1.5047    
  23  norm          .31897        21.925        .36658E-02   -1.5595    
  24  Normalizat    1.1099        .23834        .27385E-03   -.89435    
  25  Prefactor     1.0937        .18115        .22186E-03   -.89668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82999e-08
Minuit parameter uncertainties:
  1  0.000132758
  2  4.37658e-05
  3  8.07119
  4  33.2006
  5  7.57181e-05
  6  8.14723e-06
  7  5.8034
  8  2.931e-05
  9  38.6596
  10  7.82823
  11  4.57728
  12  9.99084e-05
  13  7.44377
  14  1.32863e-05
  15  49.4893
  16  2.26058e-05
  17  29.6813
  18  4.17102e-05
  19  0.000488214
  20  1.65829e-06
  21  9.75516e-05
  22  12.48
  23  5.29016
  24  0.238567
  25  0.181255
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  9.991e-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.094e+00  1.813e-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.110e+00  2.386e-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.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210663/likelihoodResults_512784001_513043201_4FGL_J2209.8-5028_daily_bin1055.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) = 6898.48903147
delta logL = -0.000107174960249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6898.48892479
delta logL = -4.93350853503e-07

Fit tolerance = 1e-08

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

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

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10260E-03    12.801        .18142E-01** at limit **
   2  Index         2.6579        7.4650        .50000        .73433E-05
   3  Normalizat    1.1099        .28828E-02    .27385E-03   -.53968E-06
   4  Prefactor     1.0937        .23331E-02    .22186E-03   -.69691E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102598
  Index      = 2.65795
  Normalizat = 1.10989
  Prefactor  = 1.0937
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10260E-03    121.62        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6579        7.6676        .50000       -.48749    
   3  Normalizat    1.1099        .89118E-02    .10954E-04   -.89435    
   4  Prefactor     1.0937        .72127E-02    .88743E-05   -.89668    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31367e-09
Minuit parameter uncertainties:
  1  0.0356253
  2  328.087
  3  0.00891185
  4  0.00721268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210663': 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) = 6898.48892466
delta logL = -3.67809661839e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.026e-04  3.563e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.658e+00  3.281e+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.094e+00  7.213e-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.110e+00  8.912e-03  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/210663/cmap_HighResolution_512784001_513043201_4FGL_J2209.8-5028_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-28 06:41:08.113124', job_id='210663', GAL2='1.09', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632836468.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='-3.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1055' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:41:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 210663: <4FGL_J2209.8-5028_daily_bin1055> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1055 332.474 -50.4702 512784001 513043201 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 :                                   776.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            936 sec.

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

