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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin545
RA = 332.474, Dec = -50.4702
tmin = 380592001, tmax = 380851201
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='207561', job_status='RUN', time_executed='2021-09-28 06:16:45.415681', time_epoch_executed='1632835005.42' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='545'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207561

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207561/ft1_4FGL_J2209.8-5028_daily_bin545.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207561/ft2_4FGL_J2209.8-5028_daily_bin545.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207561/ft1_4FGL_J2209.8-5028_daily_bin545.fits outfile=/scratch/kocevski/207561/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin545.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=380592001.0 tmax=380851201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.82
user 4.57
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/207561/ft2_4FGL_J2209.8-5028_daily_bin545.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/207561/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin545.fits evtable="EVENTS" outfile="/scratch/kocevski/207561/ft1_filtered_4FGL_J2209.8-5028_daily_bin545.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.51
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207561/ft1_filtered_4FGL_J2209.8-5028_daily_bin545.fits" evtable="EVENTS" scfile=/scratch/kocevski/207561/ft2_4FGL_J2209.8-5028_daily_bin545.fits sctable="SC_DATA" outfile=/scratch/kocevski/207561/ltcube_380592001_380851201_4FGL_J2209.8-5028_daily_bin545.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/207561/ft2_4FGL_J2209.8-5028_daily_bin545.fits
.....................!
real 12.01
user 11.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207561/ft1_filtered_4FGL_J2209.8-5028_daily_bin545.fits evtable="EVENTS" scfile=/scratch/kocevski/207561/ft2_4FGL_J2209.8-5028_daily_bin545.fits sctable="SC_DATA" expcube=/scratch/kocevski/207561/ltcube_380592001_380851201_4FGL_J2209.8-5028_daily_bin545.fits outfile=/scratch/kocevski/207561/expmap_380592001_380851201_4FGL_J2209.8-5028_daily_bin545.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/207561/ltcube_380592001_380851201_4FGL_J2209.8-5028_daily_bin545.fits
.....................!
real 190.75
user 185.83
sys 4.60

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/207561/ft1_filtered_4FGL_J2209.8-5028_daily_bin545.fits scfile=/scratch/kocevski/207561/ft2_4FGL_J2209.8-5028_daily_bin545.fits outfile=/scratch/kocevski/207561/cmap_380592001_380851201_4FGL_J2209.8-5028_daily_bin545.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207561/ft1_filtered_4FGL_J2209.8-5028_daily_bin545.fits scfile=/scratch/kocevski/207561/ft2_4FGL_J2209.8-5028_daily_bin545.fits outfile=/scratch/kocevski/207561/cmap_HighResolution_380592001_380851201_4FGL_J2209.8-5028_daily_bin545.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/207561/ft1_filtered_4FGL_J2209.8-5028_daily_bin545.fits evtable="EVENTS" scfile=/scratch/kocevski/207561/ft2_4FGL_J2209.8-5028_daily_bin545.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207561/Model_4FGL_J2209.8-5028_daily_bin545.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/207561/ft1_filtered_4FGL_J2209.8-5028_daily_bin545.fits.....................!
real 44.17
user 42.95
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    42.709       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.789       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4221       1.0000         .10000E-03   10000.    
     7 'norm      '    12.562       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10858E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .42337       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4325       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4086       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79869       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=   5448.237     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2849 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9420       -.52110E-05** at limit **
   2  Prefactor     42.708        39.581       -.25116E-05    .86650E-05
   3  Prefactor     .10000E-03    8.9934        .29307E-05** at limit **
   4  Prefactor     .10000E-03    10.060       -.32553E-05** at limit **
   5  Prefactor     37.783        30.562       -.15627E-05    .91116E-05
   6  Prefactor     6.4216        4.7845       -.19093E-06   -.11006E-03
   7  norm          12.562        6.3823       -.28799E-08   -.44133E-05
   8  Prefactor     .10000E-03    6.8371       -.13675E-06** at limit **
   9  Prefactor     4.9671        114.75       -.29354E-04   -.10865E-04
  10  Prefactor     .10000E-03    5.5544        .26737E-06** at limit **
  11  Prefactor     .10000E-03    1.2747        .25434E-07** at limit **
  12  Prefactor     .10000E-03    51.917        .28713E-04** at limit **
  13  norm          .10000E-03    2.8513       -.14343E-07** at limit **
  14  Prefactor     .10000E-03    1.6671       -.11751E-07** at limit **
  15  Prefactor     .10000E-03    38.791       -.56453E-04** at limit **
  16  Prefactor     .41968        3.5193       -.48540E-06   -.12278E-03
  17  Prefactor     .10000E-03    10.424        .49828E-05** at limit **
  18  Prefactor     6.4280        11.095        .49860E-06   -.12701E-03
  19  Prefactor     .10000E-03    33.316        .32656E-04** at limit **
  20  Prefactor     .10000E-03    3.6855       -.33834E-07** at limit **
  21  Prefactor     .10000E-03    13.308        .71631E-05** at limit **
  22  Prefactor     .10000E-03    14.426       -.76370E-05** at limit **
  23  norm          .10000E-03    3.4531       -.22851E-07** at limit **
  24  Normalizat    1.4091        .21288        .20378E-05    .53393E-04
  25  Prefactor     .79841        .15931       -.36123E-07    .15018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 42.7077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.7826
  Prefactor  = 6.42165
  norm       = 12.5622
  Prefactor  = 0.0001
  Prefactor  = 4.96713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.419676
  Prefactor  = 0.0001
  Prefactor  = 6.42796
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.40905
  Prefactor  = 0.798414
 **********
 **   18 **HESSE 
 **********

 FCN=   5448.237     FROM HESSE     STATUS=OK           417 CALLS     3266 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     42.708        39.585        .61342E-04   -1.4400    
   3  Prefactor     .10000E-03    9.1158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     37.783        30.574        .65199E-04   -1.4478    
   6  Prefactor     6.4216        4.7825        .13324E-03   -1.5201    
   7  norm          12.562        6.3827        .11302E-03   -1.4999    
   8  Prefactor     .10000E-03    6.8461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9671        115.92        .17690E-03   -1.5262    
  10  Prefactor     .10000E-03    5.5836        .16971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2798        .81369E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8551        .12172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6741        .93051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    38.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .41968        16.632        .26338E-02   -1.5578    
  17  Prefactor     .10000E-03    10.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.4280        11.095        .15825E-03   -1.5201    
  19  Prefactor     .10000E-03    33.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7001        .13839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.4541        .13396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4091        .25048        .24686E-03   -.80367    
  25  Prefactor     .79841        .18661        .24375E-03   -.99787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.53663e-10
Minuit parameter uncertainties:
  1  7.9639e-07
  2  39.6095
  3  9.22953e-06
  4  1.53924e-06
  5  30.587
  6  4.78275
  7  6.38302
  8  2.60426e-06
  9  48.0962
  10  6.07499e-05
  11  4.54655e-07
  12  6.56954e-05
  13  1.27002e-06
  14  1.29748e-06
  15  1.53788e-05
  16  5.28495
  17  9.17657e-06
  18  11.0981
  19  1.0762e-05
  20  1.95512e-06
  21  3.6459e-06
  22  6.78634e-06
  23  3.17928e-07
  24  0.250703
  25  0.186757
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  6.570e-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:  7.984e-01  1.868e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.409e+00  2.507e-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: 7.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207561/likelihoodResults_380592001_380851201_4FGL_J2209.8-5028_daily_bin545.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) = 5448.23673254
delta logL = -9.15860873647e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5448.23664138
delta logL = -4.35341462435e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0598       1.0000          .0000       10.000    
     3 'Normalizat'    1.4091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79841       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=   5448.237     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.354        .90712E-02** at limit **
   2  Index         3.0441        7.2521        .50000        .41048E-05
   3  Normalizat    1.4091        .39728E-02    .55829E-01    .46200E-05
   4  Prefactor     .79841        .30668E-02    .43697E-01    .95746E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.04414
  Normalizat = 1.40905
  Prefactor  = 0.798412
 **********
 **   18 **HESSE 
 **********

 FCN=   5448.237     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    246.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0441        6.5351        .50000       -.40190    
   3  Normalizat    1.4091        .13918E-01    .24686E-03   -.80367    
   4  Prefactor     .79841        .10744E-01    .24375E-03   -.99787    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8902e-07
Minuit parameter uncertainties:
  1  8.16615e-05
  2  488.631
  3  0.0139184
  4  0.0107442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207561': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5448.23664136
delta logL = -4.08110281569e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  7.984e-01  1.074e-02  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.409e+00  1.392e-02  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/207561/cmap_HighResolution_380592001_380851201_4FGL_J2209.8-5028_daily_bin545.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-09-28 06:27:55.646770', job_id='207561', GAL2='0.80', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632835675.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-4.08e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='545' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:27:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 207561: <4FGL_J2209.8-5028_daily_bin545> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin545 332.474 -50.4702 380592001 380851201 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 :                                   666.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            734 sec.

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

