/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 53 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 = 7474
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin562
RA = 332.474, Dec = -50.4702
tmin = 384998401, tmax = 385257601
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='207589', job_status='RUN', time_executed='2021-09-28 06:16:54.713715', time_epoch_executed='1632835014.71' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='562'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207589

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207589/ft1_4FGL_J2209.8-5028_daily_bin562.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207589/ft2_4FGL_J2209.8-5028_daily_bin562.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207589/ft1_4FGL_J2209.8-5028_daily_bin562.fits outfile=/scratch/kocevski/207589/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin562.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=384998401.0 tmax=385257601.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.53
user 3.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207589/ft1_filtered_4FGL_J2209.8-5028_daily_bin562.fits" evtable="EVENTS" scfile=/scratch/kocevski/207589/ft2_4FGL_J2209.8-5028_daily_bin562.fits sctable="SC_DATA" outfile=/scratch/kocevski/207589/ltcube_384998401_385257601_4FGL_J2209.8-5028_daily_bin562.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/207589/ft2_4FGL_J2209.8-5028_daily_bin562.fits
.....................!
real 12.18
user 11.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207589/ft1_filtered_4FGL_J2209.8-5028_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/207589/ft2_4FGL_J2209.8-5028_daily_bin562.fits sctable="SC_DATA" expcube=/scratch/kocevski/207589/ltcube_384998401_385257601_4FGL_J2209.8-5028_daily_bin562.fits outfile=/scratch/kocevski/207589/expmap_384998401_385257601_4FGL_J2209.8-5028_daily_bin562.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/207589/ltcube_384998401_385257601_4FGL_J2209.8-5028_daily_bin562.fits
.....................!
real 191.42
user 185.67
sys 5.36

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/207589/ft1_filtered_4FGL_J2209.8-5028_daily_bin562.fits scfile=/scratch/kocevski/207589/ft2_4FGL_J2209.8-5028_daily_bin562.fits outfile=/scratch/kocevski/207589/cmap_384998401_385257601_4FGL_J2209.8-5028_daily_bin562.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207589/ft1_filtered_4FGL_J2209.8-5028_daily_bin562.fits scfile=/scratch/kocevski/207589/ft2_4FGL_J2209.8-5028_daily_bin562.fits outfile=/scratch/kocevski/207589/cmap_HighResolution_384998401_385257601_4FGL_J2209.8-5028_daily_bin562.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/207589/ft1_filtered_4FGL_J2209.8-5028_daily_bin562.fits evtable="EVENTS" scfile=/scratch/kocevski/207589/ft2_4FGL_J2209.8-5028_daily_bin562.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207589/Model_4FGL_J2209.8-5028_daily_bin562.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/207589/ft1_filtered_4FGL_J2209.8-5028_daily_bin562.fits.....................!
real 41.79
user 40.36
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.213       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.582       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.550       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.379       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4999       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77027E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8786       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5747       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    80.603       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7032       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10809E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .34072E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10589E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.580       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.266       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.215       1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76466       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1523       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=   5214.982     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3008 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.224        31.569       -.61494E-06   -.33918E-04
   2  Prefactor     19.479        61.724        .21935E-05   -.32543E-05
   3  Prefactor     19.552        10.461        .37072E-07   -.11200E-03
   4  Prefactor     12.370        25.434       -.23478E-06   -.25278E-05
   5  Prefactor     2.5769        74.354       -.79128E-05   -.12444E-03
   6  Prefactor     .83836E-01    3.8678        .20215E-05   -.12090E-02
   7  norm          4.8778        4.5165       -.29729E-07    .56110E-05
   8  Prefactor     7.5750        9.3408       -.28210E-07    .11883E-04
   9  Prefactor     .10001E-03    122.93        .39361E-05** at limit **
  10  Prefactor     .10000E-03    5.8620        .21756E-05** at limit **
  11  Prefactor     .10000E-03    1.9487        .44668E-06** at limit **
  12  Prefactor     80.648        104.61        .70680E-07   -.50454E-04
  13  norm          .10000E-03    3.1279        .12115E-06** at limit **
  14  Prefactor     7.7033        4.9341        .25037E-07   -.17841E-03
  15  Prefactor     .10000E-03    41.562       -.22994E-07** at limit **
  16  Prefactor     .10002E-03    4.6257        .13727E-05** at limit **
  17  Prefactor     .10000E-03    44.886        .52475E-06** at limit **
  18  Prefactor     28.584        14.025       -.36051E-07   -.18369E-03
  19  Prefactor     .10000E-03    29.882        .32327E-07** at limit **
  20  Prefactor     .10000E-03    3.7047       -.85648E-08** at limit **
  21  Prefactor     10.269        21.998       -.10374E-06   -.25989E-04
  22  Prefactor     15.211        15.058        .18268E-07   -.23992E-04
  23  norm          .10000E-03    3.5819        .21225E-08** at limit **
  24  Normalizat    .76440        .22659       -.46540E-05   -.26378E-03
  25  Prefactor     1.1525        .18002        .35619E-05   -.92820E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.224
  Prefactor  = 19.4792
  Prefactor  = 19.5519
  Prefactor  = 12.37
  Prefactor  = 2.57691
  Prefactor  = 0.083836
  norm       = 4.87777
  Prefactor  = 7.57499
  Prefactor  = 0.000100006
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 80.6481
  norm       = 0.0001
  Prefactor  = 7.70326
  Prefactor  = 0.0001
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 28.5838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2687
  Prefactor  = 15.2108
  norm       = 0.0001
  Normalizat = 0.7644
  Prefactor  = 1.15246
 **********
 **   18 **HESSE 
 **********

 FCN=   5214.982     FROM HESSE     STATUS=OK           431 CALLS     3439 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.224        31.544        .76796E-04   -1.4664    
   2  Prefactor     19.479        61.867        .90510E-04   -1.4825    
   3  Prefactor     19.552        10.436        .90585E-04   -1.4823    
   4  Prefactor     12.370        25.402        .11385E-03   -1.5004    
   5  Prefactor     2.5769        76.090        .25848E-03   -1.5387    
   6  Prefactor     .83836E-01    21.189        .19909E-02   -1.5650    
   7  norm          4.8778        4.5122        .14068E-03   -1.5266    
   8  Prefactor     7.5750        9.3371        .14571E-03   -1.5157    
   9  Prefactor     .10001E-03    124.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0804        .17325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0120        .19719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     80.648        104.38        .22368E-03   -1.3909    
  13  norm          .10000E-03    3.1332        .12474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.7033        4.9357        .12246E-03   -1.5153    
  15  Prefactor     .10000E-03    41.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    22.060        .27164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    45.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.584        14.017        .74941E-04   -1.4638    
  19  Prefactor     .10000E-03    29.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7139        .13574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.269        21.982        .12505E-03   -1.5067    
  22  Prefactor     15.211        15.060        .10268E-03   -1.4928    
  23  norm          .10000E-03    3.5828        .13348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .76440        .24093        .30377E-03   -1.0140    
  25  Prefactor     1.1525        .19339        .20442E-03   -.87807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29681e-08
Minuit parameter uncertainties:
  1  31.5636
  2  62.0713
  3  10.4372
  4  25.4237
  5  28.0442
  6  2.66499
  7  4.51253
  8  9.33889
  9  0.00174021
  10  0.000210904
  11  2.45875e-05
  12  104.615
  13  8.13967e-06
  14  4.936
  15  2.32066e-05
  16  0.00135858
  17  0.000121654
  18  14.0187
  19  1.58058e-05
  20  7.02513e-07
  21  21.9994
  22  15.0642
  23  4.6617e-08
  24  0.241261
  25  0.193505
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  8.065e+01  1.046e+02  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.152e+00  1.935e-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:  7.644e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/207589/likelihoodResults_384998401_385257601_4FGL_J2209.8-5028_daily_bin562.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) = 5214.68416122
delta logL = 0.298297809065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5214.66473543
delta logL = 0.317723601519

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.275       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2381       1.0000          .0000       10.000    
     3 'Normalizat'    .73192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1688       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=   5214.665     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      311 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.276        1123.4        .79680E-04    .49510E-04
   2  Index         3.2381        6.5931        .54578E-02    .52177E-04
   3  Normalizat    .73160        .24006        .30990E-03    .36648E-04
   4  Prefactor     1.1691        .19655        .20314E-03    .51207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.2757
  Index      = 3.23814
  Normalizat = 0.731603
  Prefactor  = 1.16908
 **********
 **   18 **HESSE 
 **********

 FCN=   5214.665     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .96E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.276        72.102        .31872E-05   -1.4702    
   2  Index         3.2381        1.3142        .21831E-03   -.36010    
   3  Normalizat    .73160        .23731        .12396E-04   -1.0266    
   4  Prefactor     1.1691        .19052        .40629E-04   -.87288    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.64899e-12
Minuit parameter uncertainties:
  1  72.3522
  2  1.33216
  3  0.237641
  4  0.190631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207589': 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) = 5214.66473448
delta logL = 0.31772454862

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.528e+01  7.235e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.238e+00  1.332e+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.169e+00  1.906e-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:  7.316e-01  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 3.24 +/- 1.33
Photon Flux (Free Index): 5.21e-08 +/- 5.15e-08
Energy Flux (Free Index): 9.40e-06 +/- 9.56e-06

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/207589/cmap_HighResolution_384998401_385257601_4FGL_J2209.8-5028_daily_bin562.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.82e-03', comment='SUCCESS', energy_flux2='9.40e-06', dlogl='3.18e-01', photon_flux2='5.21e-08', job_status='DONE', time_completed='2021-09-28 06:28:05.277052', photon_index_error2='1.33', photon_index2='3.24', ts='0.81', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='9.56e-06', EG='0.76', time_epoch_completed='1632835685.28', return_code='0', job_id='207589', GAL2='1.17', EG2='0.73', return_code2='0', photon_flux_error2='5.15e-08', ts2='1.48', photon_index='2.37' WHERE bin_id='562' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:28:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 207589: <4FGL_J2209.8-5028_daily_bin562> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin562> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:15:44 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:15:46 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:15:46 2021
Terminated at Tue Sep 28 06:28:08 2021
Results reported at Tue Sep 28 06:28:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin562 332.474 -50.4702 384998401 385257601 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 :                                   667.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            744 sec.

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

