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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin885
RA = 332.474, Dec = -50.4702
tmin = 468720001, tmax = 468979201
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='209193', job_status='RUN', time_executed='2021-09-28 06:23:16.511230', time_epoch_executed='1632835396.51' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='885'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209193

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209193/ft1_4FGL_J2209.8-5028_daily_bin885.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209193/ft2_4FGL_J2209.8-5028_daily_bin885.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209193/ft1_4FGL_J2209.8-5028_daily_bin885.fits outfile=/scratch/kocevski/209193/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin885.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=468720001.0 tmax=468979201.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.43
user 3.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/209193/ft2_4FGL_J2209.8-5028_daily_bin885.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/209193/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin885.fits evtable="EVENTS" outfile="/scratch/kocevski/209193/ft1_filtered_4FGL_J2209.8-5028_daily_bin885.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/209193/ft1_filtered_4FGL_J2209.8-5028_daily_bin885.fits" evtable="EVENTS" scfile=/scratch/kocevski/209193/ft2_4FGL_J2209.8-5028_daily_bin885.fits sctable="SC_DATA" outfile=/scratch/kocevski/209193/ltcube_468720001_468979201_4FGL_J2209.8-5028_daily_bin885.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/209193/ft2_4FGL_J2209.8-5028_daily_bin885.fits
.....................!
real 11.97
user 11.62
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209193/ft1_filtered_4FGL_J2209.8-5028_daily_bin885.fits evtable="EVENTS" scfile=/scratch/kocevski/209193/ft2_4FGL_J2209.8-5028_daily_bin885.fits sctable="SC_DATA" expcube=/scratch/kocevski/209193/ltcube_468720001_468979201_4FGL_J2209.8-5028_daily_bin885.fits outfile=/scratch/kocevski/209193/expmap_468720001_468979201_4FGL_J2209.8-5028_daily_bin885.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/209193/ltcube_468720001_468979201_4FGL_J2209.8-5028_daily_bin885.fits
.....................!
real 190.41
user 185.24
sys 4.77

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/209193/ft1_filtered_4FGL_J2209.8-5028_daily_bin885.fits scfile=/scratch/kocevski/209193/ft2_4FGL_J2209.8-5028_daily_bin885.fits outfile=/scratch/kocevski/209193/cmap_468720001_468979201_4FGL_J2209.8-5028_daily_bin885.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209193/ft1_filtered_4FGL_J2209.8-5028_daily_bin885.fits scfile=/scratch/kocevski/209193/ft2_4FGL_J2209.8-5028_daily_bin885.fits outfile=/scratch/kocevski/209193/cmap_HighResolution_468720001_468979201_4FGL_J2209.8-5028_daily_bin885.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.56
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209193/ft1_filtered_4FGL_J2209.8-5028_daily_bin885.fits evtable="EVENTS" scfile=/scratch/kocevski/209193/ft2_4FGL_J2209.8-5028_daily_bin885.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209193/Model_4FGL_J2209.8-5028_daily_bin885.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/209193/ft1_filtered_4FGL_J2209.8-5028_daily_bin885.fits....................!
real 43.24
user 41.85
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    117.16       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.4560       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.9286       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5850       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4227       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.5250       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.295       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.876       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.2037       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11700E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    70.998       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.221       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10960E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.540       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9018       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5757       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67539       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0621       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=   5201.052     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2934 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.739       -.34960E-06** at limit **
   2  Prefactor     117.17        78.706        .58783E-05    .13532E-04
   3  Prefactor     7.4556        12.116       -.10565E-05    .54217E-04
   4  Prefactor     .10000E-03    86.853       -.34169E-04** at limit **
   5  Prefactor     4.9270        41.799       -.40806E-05   -.22839E-04
   6  Prefactor     8.5847        6.3028       -.83140E-06   -.92899E-04
   7  norm          1.4223        4.0637       -.45811E-06   -.41152E-03
   8  Prefactor     4.5245        14.362       -.16334E-06   -.20803E-04
   9  Prefactor     53.295        46.852       -.68902E-06    .97304E-05
  10  Prefactor     16.876        12.182        .27264E-06   -.70782E-04
  11  Prefactor     .10000E-03    1.8521        .51288E-07** at limit **
  12  Prefactor     .10000E-03    68.005        .34317E-04** at limit **
  13  norm          3.2034        5.8070       -.50755E-05   -.25283E-03
  14  Prefactor     .10000E-03    3.8368       -.31999E-06** at limit **
  15  Prefactor     71.004        59.376        .63843E-05    .18028E-04
  16  Prefactor     15.219        8.1745        .34649E-05   -.84813E-05
  17  Prefactor     .10000E-03    54.052       -.17461E-04** at limit **
  18  Prefactor     32.537        15.057       -.51870E-06    .26157E-03
  19  Prefactor     .10000E-03    85.054       -.20502E-04** at limit **
  20  Prefactor     2.9021        8.1769       -.43399E-05   -.29974E-03
  21  Prefactor     .10000E-03    70.795        .30882E-04** at limit **
  22  Prefactor     3.5749        13.754       -.11073E-05   -.10324E-03
  23  norm          .10000E-03    2.3423        .20369E-08** at limit **
  24  Normalizat    .67546        .21660       -.21226E-05    .17744E-03
  25  Prefactor     1.0620        .16631        .11655E-05    .12073E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 117.168
  Prefactor  = 7.45556
  Prefactor  = 0.000100005
  Prefactor  = 4.92697
  Prefactor  = 8.58468
  norm       = 1.42228
  Prefactor  = 4.52448
  Prefactor  = 53.2948
  Prefactor  = 16.8761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.20344
  Prefactor  = 0.0001
  Prefactor  = 71.0044
  Prefactor  = 15.2194
  Prefactor  = 0.0001
  Prefactor  = 32.5372
  Prefactor  = 0.0001
  Prefactor  = 2.90207
  Prefactor  = 0.000100001
  Prefactor  = 3.57486
  norm       = 0.0001
  Normalizat = 0.675463
  Prefactor  = 1.06201
 **********
 **   18 **HESSE 
 **********

 FCN=   5201.052     FROM HESSE     STATUS=OK           427 CALLS     3361 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     117.17        78.536        .37173E-04   -1.3539    
   3  Prefactor     7.4556        12.100        .14688E-03   -1.5162    
   4  Prefactor     .10000E-03    87.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.9270        41.508        .18117E-03   -1.5264    
   6  Prefactor     8.5847        6.2961        .13681E-03   -1.5122    
   7  norm          1.4223        4.0289        .23475E-03   -1.5469    
   8  Prefactor     4.5245        14.338        .18926E-03   -1.5283    
   9  Prefactor     53.295        46.843        .54941E-04   -1.4247    
  10  Prefactor     16.876        12.186        .97495E-04   -1.4886    
  11  Prefactor     .10000E-03    1.8759        .95784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    67.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.2034        5.8284        .22636E-03   -1.5350    
  14  Prefactor     .10000E-03    4.0008        .27521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     71.004        59.314        .47643E-04   -1.4021    
  16  Prefactor     15.219        8.1718        .10266E-03   -1.4928    
  17  Prefactor     .10000E-03    54.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.537        15.055        .70244E-04   -1.4567    
  19  Prefactor     .10000E-03    85.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9021        8.2216        .23853E-03   -1.5367    
  21  Prefactor     .10000E-03    70.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.5749        13.787        .21372E-03   -1.5330    
  23  norm          .10000E-03    2.3423        .10779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .67546        .24863        .31046E-03   -1.0487    
  25  Prefactor     1.0620        .19308        .20445E-03   -.90690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.61069e-10
Minuit parameter uncertainties:
  1  1.77183e-05
  2  78.6057
  3  12.1039
  4  0.00126746
  5  28.628
  6  6.29663
  7  4.02964
  8  14.3492
  9  46.8753
  10  12.1879
  11  3.04003e-06
  12  4.08063e-05
  13  5.82945
  14  5.47425e-05
  15  59.3632
  16  8.1724
  17  0.000203984
  18  15.0563
  19  3.77128e-05
  20  8.22483
  21  0.000537517
  22  13.799
  23  4.91884e-07
  24  0.24904
  25  0.193202
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  4.081e-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.062e+00  1.932e-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:  6.755e-01  2.490e-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.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209193/likelihoodResults_468720001_468979201_4FGL_J2209.8-5028_daily_bin885.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) = 5201.05183006
delta logL = -7.01051549186e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5201.05175996
delta logL = -7.70887709223e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3204       1.0000          .0000       10.000    
     3 'Normalizat'    .67546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0620       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5201.052     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7808.0        .90712E-02** at limit **
   2  Index         2.3173        8.8379        .50000        .37819E-06
   3  Normalizat    .67546        .58972E-01    .70151E-01    .23506E-04
   4  Prefactor     1.0620        .48051E-01    .39253E-01    .21286E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31731
  Normalizat = 0.67546
  Prefactor  = 1.06201
 **********
 **   18 **HESSE 
 **********

 FCN=   5201.052     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .39E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    241.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3173        5.1967        .50000       -.56633    
   3  Normalizat    .67546        .22490        .31047E-03   -1.0487    
   4  Prefactor     1.0620        .18375        .20445E-03   -.90690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93018e-13
Minuit parameter uncertainties:
  1  1.60006e-05
  2  8.06995
  3  0.225208
  4  0.183857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209193': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5201.05175995
delta logL = 5.28052623849e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.062e+00  1.839e-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:  6.755e-01  2.252e-01  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/209193/cmap_HighResolution_468720001_468979201_4FGL_J2209.8-5028_daily_bin885.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.58e-03', job_status='DONE', photon_flux_upper_limit='8.53e-08', time_completed='2021-09-28 06:34:08.698353', job_id='209193', GAL2='1.06', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632836048.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.28e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='885' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:34:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 209193: <4FGL_J2209.8-5028_daily_bin885> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin885 332.474 -50.4702 468720001 468979201 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 :                                   648.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            813 sec.

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

