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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin905
RA = 332.474, Dec = -50.4702
tmin = 473904001, tmax = 474163201
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='209227', job_status='RUN', time_executed='2021-09-28 06:24:37.016286', time_epoch_executed='1632835477.02' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='905'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/209227

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/209227/ft1_4FGL_J2209.8-5028_daily_bin905.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/209227/ft2_4FGL_J2209.8-5028_daily_bin905.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/209227/ft1_4FGL_J2209.8-5028_daily_bin905.fits outfile=/scratch/kocevski/209227/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin905.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=473904001.0 tmax=474163201.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 5.26
user 4.92
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/209227/ft2_4FGL_J2209.8-5028_daily_bin905.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/209227/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin905.fits evtable="EVENTS" outfile="/scratch/kocevski/209227/ft1_filtered_4FGL_J2209.8-5028_daily_bin905.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.60
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/209227/ft1_filtered_4FGL_J2209.8-5028_daily_bin905.fits" evtable="EVENTS" scfile=/scratch/kocevski/209227/ft2_4FGL_J2209.8-5028_daily_bin905.fits sctable="SC_DATA" outfile=/scratch/kocevski/209227/ltcube_473904001_474163201_4FGL_J2209.8-5028_daily_bin905.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/209227/ft2_4FGL_J2209.8-5028_daily_bin905.fits
.....................!
real 11.93
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/209227/ft1_filtered_4FGL_J2209.8-5028_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/209227/ft2_4FGL_J2209.8-5028_daily_bin905.fits sctable="SC_DATA" expcube=/scratch/kocevski/209227/ltcube_473904001_474163201_4FGL_J2209.8-5028_daily_bin905.fits outfile=/scratch/kocevski/209227/expmap_473904001_474163201_4FGL_J2209.8-5028_daily_bin905.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/209227/ltcube_473904001_474163201_4FGL_J2209.8-5028_daily_bin905.fits
.....................!
real 193.73
user 187.58
sys 5.83

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/209227/ft1_filtered_4FGL_J2209.8-5028_daily_bin905.fits scfile=/scratch/kocevski/209227/ft2_4FGL_J2209.8-5028_daily_bin905.fits outfile=/scratch/kocevski/209227/cmap_473904001_474163201_4FGL_J2209.8-5028_daily_bin905.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/209227/ft1_filtered_4FGL_J2209.8-5028_daily_bin905.fits scfile=/scratch/kocevski/209227/ft2_4FGL_J2209.8-5028_daily_bin905.fits outfile=/scratch/kocevski/209227/cmap_HighResolution_473904001_474163201_4FGL_J2209.8-5028_daily_bin905.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/209227/ft1_filtered_4FGL_J2209.8-5028_daily_bin905.fits evtable="EVENTS" scfile=/scratch/kocevski/209227/ft2_4FGL_J2209.8-5028_daily_bin905.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/209227/Model_4FGL_J2209.8-5028_daily_bin905.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/209227/ft1_filtered_4FGL_J2209.8-5028_daily_bin905.fits.....................!
real 48.69
user 47.35
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.762       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.341       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.098       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    50.558       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.976       1.0000         .10000E-03   10000.    
     7 'norm      '    14.826       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.730       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.460       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5557       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.2295       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.460       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91932       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0567       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=   6280.306     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2841 TOTAL
                     EDM=   .35E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.760        27.231       -.75794E-07   -.49691E-05
   2  Prefactor     16.302        57.625       -.14266E-05   -.42579E-04
   3  Prefactor     14.098        9.9874       -.12996E-06   -.78211E-05
   4  Prefactor     .10000E-03    19.840        .28205E-06** at limit **
   5  Prefactor     50.556        31.528       -.28794E-06   -.15462E-04
   6  Prefactor     11.975        6.3699        .11865E-05   -.66162E-04
   7  norm          14.827        5.9995        .53950E-07   -.74459E-05
   8  Prefactor     .10000E-03    5.7881        .51088E-07** at limit **
   9  Prefactor     51.723        43.838       -.30151E-06   -.17129E-04
  10  Prefactor     .10000E-03    5.5644       -.58643E-06** at limit **
  11  Prefactor     .10000E-03    1.1671       -.22922E-07** at limit **
  12  Prefactor     24.442        63.550       -.33689E-06   -.17189E-04
  13  norm          .10000E-03    2.9655       -.21696E-08** at limit **
  14  Prefactor     .10000E-03    1.1445        .45090E-07** at limit **
  15  Prefactor     .10000E-03    19.509        .49122E-07** at limit **
  16  Prefactor     6.5564        5.8530        .13937E-06   -.11508E-04
  17  Prefactor     .10000E-03    8.4885       -.65675E-08** at limit **
  18  Prefactor     5.2282        10.514        .35507E-06   -.51905E-05
  19  Prefactor     .10000E-03    75.495        .26473E-07** at limit **
  20  Prefactor     .10000E-03    1.8705        .29036E-07** at limit **
  21  Prefactor     .10000E-03    19.353       -.74276E-07** at limit **
  22  Prefactor     35.462        19.694        .90725E-07   -.49703E-05
  23  norm          .10000E-03    2.4401        .34497E-08** at limit **
  24  Normalizat    .91912        .20180       -.13219E-05    .39728E-04
  25  Prefactor     1.0568        .16026        .59249E-06   -.51005E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7602
  Prefactor  = 16.3015
  Prefactor  = 14.0979
  Prefactor  = 0.0001
  Prefactor  = 50.5564
  Prefactor  = 11.9752
  norm       = 14.8266
  Prefactor  = 0.0001
  Prefactor  = 51.723
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4415
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.55637
  Prefactor  = 0.0001
  Prefactor  = 5.22823
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.4615
  norm       = 0.0001
  Normalizat = 0.91912
  Prefactor  = 1.05683
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.306     FROM HESSE     STATUS=OK           427 CALLS     3268 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.760        27.225        .97828E-04   -1.4889    
   2  Prefactor     16.302        57.894        .99079E-04   -1.4900    
   3  Prefactor     14.098        9.9853        .10667E-03   -1.4957    
   4  Prefactor     .10000E-03    19.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     50.556        31.516        .56401E-04   -1.4285    
   6  Prefactor     11.975        6.4074        .57879E-03   -1.5016    
   7  norm          14.827        5.9985        .10402E-03   -1.4938    
   8  Prefactor     .10000E-03    5.8013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     51.723        43.901        .55761E-04   -1.4268    
  10  Prefactor     .10000E-03    5.6201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.1730        .83583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.442        63.545        .80994E-04   -1.4719    
  13  norm          .10000E-03    2.9769        .13328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1548        .82785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.5564        5.8668        .15674E-03   -1.5196    
  17  Prefactor     .10000E-03    8.4961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.2282        10.508        .17578E-03   -1.5251    
  19  Prefactor     .10000E-03    75.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8724        .10585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     35.462        19.756        .67299E-04   -1.4516    
  23  norm          .10000E-03    2.4403        .12090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91912        .23100        .28629E-03   -.95792    
  25  Prefactor     1.0568        .18496        .22076E-03   -.90858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85171e-11
Minuit parameter uncertainties:
  1  27.2455
  2  58.0947
  3  9.98649
  4  6.63923e-05
  5  31.5261
  6  6.40781
  7  5.99878
  8  8.6723e-07
  9  43.9283
  10  1.5032e-08
  11  2.23023e-07
  12  63.7218
  13  9.154e-09
  14  7.45511e-07
  15  1.01906e-05
  16  5.86733
  17  1.22092e-06
  18  10.5121
  19  8.32463e-06
  20  4.7254e-07
  21  5.07852e-05
  22  19.76
  23  3.24362e-08
  24  0.231247
  25  0.185069
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.444e+01  6.372e+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.057e+00  1.851e-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:  9.191e-01  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/209227/likelihoodResults_473904001_474163201_4FGL_J2209.8-5028_daily_bin905.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) = 6280.2834436
delta logL = 0.0221715810685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6280.2720312
delta logL = 0.0335839819572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.180       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0460       1.0000          .0000       10.000    
     3 'Normalizat'    .92089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0557       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=   6280.272     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      279 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.184        92.167        .65729E-04   -.56386E-04
   2  Index         2.0453        1.1764        .15041E-01   -.57849E-04
   3  Normalizat    .92174        .21787        .28591E-03    .91614E-04
   4  Prefactor     1.0550        .18005        .22092E-03    .16487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.1836
  Index      = 2.04527
  Normalizat = 0.92174
  Prefactor  = 1.055
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.272     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.184        89.374        .13146E-04   -1.4488    
   2  Index         2.0453        1.1422        .60164E-03   -.63223    
   3  Normalizat    .92174        .21802        .11436E-04   -.95700    
   4  Prefactor     1.0550        .18018        .44184E-04   -.90918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42606e-10
Minuit parameter uncertainties:
  1  89.6981
  2  1.1581
  3  0.218225
  4  0.18028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/209227': 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) = 6280.27202311
delta logL = 0.0335920693369

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.718e+01  8.970e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.045e+00  1.158e+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.055e+00  1.803e-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:  9.217e-01  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/209227/cmap_HighResolution_473904001_474163201_4FGL_J2209.8-5028_daily_bin905.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-28 06:36:58.448859', job_id='209227', GAL2='1.06', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632836218.45', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.36e-02', ts2='0.25', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='905' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:36:58 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin905 332.474 -50.4702 473904001 474163201 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 :                                   735.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

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

