/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 136 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin80
RA = 332.474, Dec = -50.4702
tmin = 260064001, tmax = 260323201
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='205788', job_status='RUN', time_executed='2021-09-28 06:12:52.491973', time_epoch_executed='1632834772.49' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='80'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205788

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205788/ft1_4FGL_J2209.8-5028_daily_bin80.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205788/ft2_4FGL_J2209.8-5028_daily_bin80.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205788/ft1_4FGL_J2209.8-5028_daily_bin80.fits outfile=/scratch/kocevski/205788/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin80.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=260064001.0 tmax=260323201.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 1.46
user 1.29
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205788/ft1_filtered_4FGL_J2209.8-5028_daily_bin80.fits" evtable="EVENTS" scfile=/scratch/kocevski/205788/ft2_4FGL_J2209.8-5028_daily_bin80.fits sctable="SC_DATA" outfile=/scratch/kocevski/205788/ltcube_260064001_260323201_4FGL_J2209.8-5028_daily_bin80.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/205788/ft2_4FGL_J2209.8-5028_daily_bin80.fits
.....................!
real 12.57
user 12.17
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205788/ft1_filtered_4FGL_J2209.8-5028_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/205788/ft2_4FGL_J2209.8-5028_daily_bin80.fits sctable="SC_DATA" expcube=/scratch/kocevski/205788/ltcube_260064001_260323201_4FGL_J2209.8-5028_daily_bin80.fits outfile=/scratch/kocevski/205788/expmap_260064001_260323201_4FGL_J2209.8-5028_daily_bin80.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/205788/ltcube_260064001_260323201_4FGL_J2209.8-5028_daily_bin80.fits
.....................!
real 192.00
user 185.74
sys 5.95

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/205788/ft1_filtered_4FGL_J2209.8-5028_daily_bin80.fits scfile=/scratch/kocevski/205788/ft2_4FGL_J2209.8-5028_daily_bin80.fits outfile=/scratch/kocevski/205788/cmap_260064001_260323201_4FGL_J2209.8-5028_daily_bin80.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205788/ft1_filtered_4FGL_J2209.8-5028_daily_bin80.fits scfile=/scratch/kocevski/205788/ft2_4FGL_J2209.8-5028_daily_bin80.fits outfile=/scratch/kocevski/205788/cmap_HighResolution_260064001_260323201_4FGL_J2209.8-5028_daily_bin80.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.60
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/205788/ft1_filtered_4FGL_J2209.8-5028_daily_bin80.fits evtable="EVENTS" scfile=/scratch/kocevski/205788/ft2_4FGL_J2209.8-5028_daily_bin80.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/205788/Model_4FGL_J2209.8-5028_daily_bin80.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/205788/ft1_filtered_4FGL_J2209.8-5028_daily_bin80.fits.....................!
real 47.67
user 46.33
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.224       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2225       1.0000         .10000E-03   10000.    
     7 'norm      '    6.3964       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.656       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11639E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    107.06       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.856       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8338       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.069       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7922       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8177       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4369       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.962       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83280       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0680       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=   6150.563     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2869 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.413        .15118E-07** at limit **
   2  Prefactor     .10000E-03    23.001        .55831E-07** at limit **
   3  Prefactor     15.222        9.5552        .10896E-06    .23101E-04
   4  Prefactor     .10000E-03    42.833       -.11905E-06** at limit **
   5  Prefactor     .10000E-03    10.490       -.12058E-06** at limit **
   6  Prefactor     7.2224        4.8330        .74206E-07    .75777E-04
   7  norm          6.3952        4.0790        .47890E-08    .26754E-04
   8  Prefactor     .10000E-03    3.5579        .16198E-08** at limit **
   9  Prefactor     64.646        42.304        .70150E-06    .13504E-04
  10  Prefactor     .10000E-03    5.5929       -.10289E-05** at limit **
  11  Prefactor     .10000E-03    2.9515       -.15493E-05** at limit **
  12  Prefactor     107.02        85.249        .29133E-05    .17731E-04
  13  norm          .10000E-03    2.8641       -.31380E-07** at limit **
  14  Prefactor     .10000E-03    2.5144       -.14449E-07** at limit **
  15  Prefactor     38.851        43.016        .23246E-06   -.89353E-05
  16  Prefactor     4.8331        5.8794        .10211E-05   -.43693E-05
  17  Prefactor     15.062        23.503       -.53637E-06    .36421E-04
  18  Prefactor     2.7920        9.5606        .59736E-05    .11842E-03
  19  Prefactor     6.8999        245.71       -.30849E-04    .97561E-05
  20  Prefactor     3.4366        6.2995        .20122E-05   -.36403E-04
  21  Prefactor     .10000E-03    9.0123        .10453E-06** at limit **
  22  Prefactor     10.961        12.344        .44667E-07    .51711E-05
  23  norm          .10000E-03    2.6379        .46349E-08** at limit **
  24  Normalizat    .83293        .18834       -.71390E-06    .23531E-03
  25  Prefactor     1.0679        .14468       -.13407E-06    .19698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.22242
  norm       = 6.39516
  Prefactor  = 0.0001
  Prefactor  = 64.6456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 107.023
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.8512
  Prefactor  = 4.83313
  Prefactor  = 15.0617
  Prefactor  = 2.79195
  Prefactor  = 6.89988
  Prefactor  = 3.43658
  Prefactor  = 0.0001
  Prefactor  = 10.961
  norm       = 0.0001
  Normalizat = 0.832933
  Prefactor  = 1.06787
 **********
 **   18 **HESSE 
 **********

 FCN=   6150.563     FROM HESSE     STATUS=OK           427 CALLS     3296 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.222        9.5433        .10265E-03   -1.4927    
   4  Prefactor     .10000E-03    43.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2224        4.8293        .13373E-03   -1.5170    
   7  norm          6.3952        4.0774        .12229E-03   -1.5202    
   8  Prefactor     .10000E-03    3.5613        .14447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     64.646        42.366        .49909E-04   -1.4098    
  10  Prefactor     .10000E-03    5.6647        .18140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6138        .25083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     107.02        85.197        .19433E-03   -1.3635    
  13  norm          .10000E-03    2.8700        .12962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.5772        .24247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.851        42.998        .64300E-04   -1.4461    
  16  Prefactor     4.8331        5.8818        .91486E-03   -1.5268    
  17  Prefactor     15.062        23.545        .10318E-03   -1.4932    
  18  Prefactor     2.7920        9.6236        .12174E-02   -1.5374    
  19  Prefactor     6.8999        245.23        .15366E-03   -1.5183    
  20  Prefactor     3.4366        6.3015        .10909E-02   -1.5337    
  21  Prefactor     .10000E-03    9.0125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.961        12.354        .12101E-03   -1.5046    
  23  norm          .10000E-03    2.6383        .12440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83293        .21531        .28668E-03   -.98858    
  25  Prefactor     1.0679        .16638        .20798E-03   -.90500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96769e-10
Minuit parameter uncertainties:
  1  4.69055e-07
  2  2.94739e-06
  3  9.54426
  4  3.52423e-05
  5  3.72325e-06
  6  4.82958
  7  4.07753
  8  2.26138e-07
  9  42.386
  10  6.01604e-05
  11  0.000103615
  12  85.295
  13  1.78483e-06
  14  3.58175e-06
  15  43.0321
  16  5.88255
  17  23.56
  18  9.62897
  19  82.6375
  20  6.30269
  21  4.12477e-07
  22  12.3573
  23  9.62287e-08
  24  0.215528
  25  0.16646
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.070e+02  8.529e+01  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.068e+00  1.665e-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:  8.329e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.34
Ra Dec: 332.474 -50.470
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 3.00e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.02e-05

TS (Fixed Index): 3.34
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/205788/likelihoodResults_260064001_260323201_4FGL_J2209.8-5028_daily_bin80.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): 0
logL (Free Index) = 6150.55796623
delta logL = 0.00485294819828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6150.55193841
delta logL = 0.0108807757279

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    120.85       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2582       1.0000          .0000       10.000    
     3 'Normalizat'    .83684       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0659       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=   6150.552     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      280 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     120.85        141.01        .36609E-04   -.41427E-04
   2  Index         2.2582        .80353        .82122E-02    .32431E-03
   3  Normalizat    .83688        .20329        .28607E-03   -.18400E-04
   4  Prefactor     1.0659        .16457        .20815E-03   -.10487E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 120.852
  Index      = 2.25816
  Normalizat = 0.836882
  Prefactor  = 1.0659
 **********
 **   18 **HESSE 
 **********

 FCN=   6150.552     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     120.85        133.49        .73217E-05   -1.3505    
   2  Index         2.2582        .76054        .16424E-02   -.58041    
   3  Normalizat    .83688        .20317        .11443E-04   -.98715    
   4  Prefactor     1.0659        .16459        .83259E-05   -.90564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48369e-11
Minuit parameter uncertainties:
  1  133.823
  2  0.764795
  3  0.203355
  4  0.164664
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205788': 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) = 6150.55193838
delta logL = 0.0108808037821

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.209e+02  1.338e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.258e+00  7.648e-01  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.066e+00  1.647e-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:  8.369e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.36
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 2.26 +/- 0.76
Photon Flux (Free Index): 3.44e-08 +/- 3.48e-08
Energy Flux (Free Index): 1.40e-05 +/- 1.46e-05

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/205788/cmap_HighResolution_260064001_260323201_4FGL_J2209.8-5028_daily_bin80.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.44e-03', comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='1.40e-05', photon_flux_error='3.00e-08', dlogl='1.09e-02', energy_flux='1.28e-05', photon_flux2='3.44e-08', job_status='DONE', time_completed='2021-09-28 06:24:37.128407', photon_index_error2='0.76', photon_index2='2.26', ts='3.34', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.46e-05', EG='0.83', time_epoch_completed='1632835477.13', return_code='0', job_id='205788', GAL2='1.07', EG2='0.84', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='3.48e-08', ts2='3.36', photon_index='2.37' WHERE bin_id='80' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:24:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 205788: <4FGL_J2209.8-5028_daily_bin80> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin80> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:25 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:27 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:10:27 2021
Terminated at Tue Sep 28 06:24:38 2021
Results reported at Tue Sep 28 06:24:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin80 332.474 -50.4702 260064001 260323201 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 :                                   700.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

