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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1053
RA = 332.474, Dec = -50.4702
tmin = 512265601, tmax = 512524801
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='210661', job_status='RUN', time_executed='2021-09-28 06:27:18.035651', time_epoch_executed='1632835638.04' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1053'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210661/ft1_4FGL_J2209.8-5028_daily_bin1053.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210661/ft2_4FGL_J2209.8-5028_daily_bin1053.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210661/ft1_4FGL_J2209.8-5028_daily_bin1053.fits outfile=/scratch/kocevski/210661/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1053.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=512265601.0 tmax=512524801.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.55
user 3.34
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210661/ft1_filtered_4FGL_J2209.8-5028_daily_bin1053.fits" evtable="EVENTS" scfile=/scratch/kocevski/210661/ft2_4FGL_J2209.8-5028_daily_bin1053.fits sctable="SC_DATA" outfile=/scratch/kocevski/210661/ltcube_512265601_512524801_4FGL_J2209.8-5028_daily_bin1053.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/210661/ft2_4FGL_J2209.8-5028_daily_bin1053.fits
.....................!
real 11.87
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210661/ft1_filtered_4FGL_J2209.8-5028_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/210661/ft2_4FGL_J2209.8-5028_daily_bin1053.fits sctable="SC_DATA" expcube=/scratch/kocevski/210661/ltcube_512265601_512524801_4FGL_J2209.8-5028_daily_bin1053.fits outfile=/scratch/kocevski/210661/expmap_512265601_512524801_4FGL_J2209.8-5028_daily_bin1053.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/210661/ltcube_512265601_512524801_4FGL_J2209.8-5028_daily_bin1053.fits
.....................!
real 190.58
user 185.69
sys 4.58

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/210661/ft1_filtered_4FGL_J2209.8-5028_daily_bin1053.fits scfile=/scratch/kocevski/210661/ft2_4FGL_J2209.8-5028_daily_bin1053.fits outfile=/scratch/kocevski/210661/cmap_512265601_512524801_4FGL_J2209.8-5028_daily_bin1053.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/210661/ft1_filtered_4FGL_J2209.8-5028_daily_bin1053.fits scfile=/scratch/kocevski/210661/ft2_4FGL_J2209.8-5028_daily_bin1053.fits outfile=/scratch/kocevski/210661/cmap_HighResolution_512265601_512524801_4FGL_J2209.8-5028_daily_bin1053.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/210661/ft1_filtered_4FGL_J2209.8-5028_daily_bin1053.fits evtable="EVENTS" scfile=/scratch/kocevski/210661/ft2_4FGL_J2209.8-5028_daily_bin1053.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210661/Model_4FGL_J2209.8-5028_daily_bin1053.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/210661/ft1_filtered_4FGL_J2209.8-5028_daily_bin1053.fits.....................!
real 50.96
user 49.71
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.970       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3984       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12712       1.0000         .10000E-03   10000.    
     7 'norm      '    9.1831       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7265       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .66181E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .38329       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.6740       1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.863       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12513E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.013       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.5908       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0763       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96714       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=   6938.522     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2887 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0727       -.81391E-07** at limit **
   2  Prefactor     14.944        35.023        .22802E-05   -.31566E-04
   3  Prefactor     .10000E-03    3.4933       -.13886E-07** at limit **
   4  Prefactor     2.3970        28.398        .58323E-05    .57949E-04
   5  Prefactor     .10000E-03    15.686       -.99316E-06** at limit **
   6  Prefactor     .12871        2.1399        .12799E-06   -.18585E-03
   7  norm          9.1827        4.0529       -.61149E-07   -.27225E-04
   8  Prefactor     7.7260        8.2180       -.33224E-07   -.68736E-06
   9  Prefactor     .10000E-03    11.596        .36587E-06** at limit **
  10  Prefactor     .10000E-03    3.3651        .12756E-06** at limit **
  11  Prefactor     .10000E-03    3.2372       -.14602E-06** at limit **
  12  Prefactor     .10000E-03    102.47       -.35312E-05** at limit **
  13  norm          .38586        5.6972        .31762E-07   -.30842E-04
  14  Prefactor     9.6764        4.6580       -.95484E-07   -.28443E-03
  15  Prefactor     41.868        38.345       -.24998E-06    .24230E-05
  16  Prefactor     .10000E-03    5.1577        .22657E-05** at limit **
  17  Prefactor     13.058        29.296       -.28966E-05   -.14280E-03
  18  Prefactor     5.5865        11.006        .10924E-05   -.65057E-04
  19  Prefactor     .10000E-03    26.620       -.63050E-06** at limit **
  20  Prefactor     .10000E-03    1.8879       -.19260E-08** at limit **
  21  Prefactor     .10000E-03    21.307        .13337E-05** at limit **
  22  Prefactor     .10000E-03    3.5430       -.29313E-07** at limit **
  23  norm          .10000E-03    2.9111       -.93109E-08** at limit **
  24  Normalizat    1.0766        .17899       -.12258E-05   -.27844E-03
  25  Prefactor     .96702        .13830        .11287E-05   -.16235E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.9436
  Prefactor  = 0.0001
  Prefactor  = 2.39702
  Prefactor  = 0.0001
  Prefactor  = 0.128712
  norm       = 9.1827
  Prefactor  = 7.72598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.385863
  Prefactor  = 9.67643
  Prefactor  = 41.8676
  Prefactor  = 0.000100003
  Prefactor  = 13.0581
  Prefactor  = 5.58647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.07663
  Prefactor  = 0.967016
 **********
 **   18 **HESSE 
 **********

 FCN=   6938.522     FROM HESSE     STATUS=OK           427 CALLS     3314 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.944        35.068        .10352E-03   -1.4935    
   3  Prefactor     .10000E-03    3.5261        .15199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.3970        30.401        .13220E-02   -1.5398    
   5  Prefactor     .10000E-03    15.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12871        39.185        .22650E-02   -1.5636    
   7  norm          9.1827        4.0556        .10673E-03   -1.5102    
   8  Prefactor     7.7260        8.2147        .14426E-03   -1.5152    
   9  Prefactor     .10000E-03    11.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.3814        .14918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.3737        .29220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    102.40        .21011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .38586        27.634        .38379E-02   -1.5584    
  14  Prefactor     9.6764        4.6801        .11643E-03   -1.5086    
  15  Prefactor     41.868        38.334        .61956E-04   -1.4413    
  16  Prefactor     .10000E-03    9.7749        .31324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.058        29.712        .11104E-03   -1.4985    
  18  Prefactor     5.5865        10.968        .16990E-03   -1.5235    
  19  Prefactor     .10000E-03    26.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8935        .11177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.5458        .15312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9248        .13880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0766        .21095        .25301E-03   -.90506    
  25  Prefactor     .96702        .16318        .21559E-03   -.93837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.63122e-08
Minuit parameter uncertainties:
  1  6.48891e-06
  2  35.116
  3  5.3228e-06
  4  17.0832
  5  1.79677e-05
  6  4.4928
  7  4.05573
  8  8.21588
  9  2.17245e-05
  10  3.79184e-06
  11  3.43385e-06
  12  0.000549692
  13  6.53307
  14  4.68023
  15  38.3565
  16  0.000364733
  17  29.7456
  18  10.9722
  19  6.35727e-05
  20  1.79816e-08
  21  7.85187e-05
  22  5.85762e-07
  23  2.8878e-07
  24  0.211118
  25  0.163262
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.497e-04  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:  9.670e-01  1.633e-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.077e+00  2.111e-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: 6.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210661/likelihoodResults_512265601_512524801_4FGL_J2209.8-5028_daily_bin1053.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) = 6938.52225723
delta logL = -4.64053027827e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6938.5222112
delta logL = -3.7510835682e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7007       1.0000          .0000       10.000    
     3 'Normalizat'    1.0766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96702       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=   6938.522     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      285 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10702E-03    17.217        .18142E-01** at limit **
   2  Index         2.5804        7.5685        .50000        .56026E-05
   3  Normalizat    1.0766        .21096E-02    .25301E-03    .93014E-05
   4  Prefactor     .96701        .17228E-02    .21559E-03    .13289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107015
  Index      = 2.58037
  Normalizat = 1.07663
  Prefactor  = 0.967015
 **********
 **   18 **HESSE 
 **********

 FCN=   6938.522     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10702E-03    248.94        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5804        6.2019        .50000       -.50513    
   3  Normalizat    1.0766        .80358E-02    .10120E-04   -.90506    
   4  Prefactor     .96701        .65626E-02    .86235E-05   -.93837    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06351e-09
Minuit parameter uncertainties:
  1  0.0839295
  2  470.867
  3  0.00803576
  4  0.0065626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210661': 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) = 6938.52221108
delta logL = -2.58101863437e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.070e-04  8.393e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.580e+00  4.709e+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:  9.670e-01  6.563e-03  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.077e+00  8.036e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/210661/cmap_HighResolution_512265601_512524801_4FGL_J2209.8-5028_daily_bin1053.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-28 06:40:24.162359', job_id='210661', GAL2='0.97', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632836424.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='-2.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1053' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:40:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 210661: <4FGL_J2209.8-5028_daily_bin1053> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1053> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 06:25:31 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:25:33 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:25:33 2021
Terminated at Tue Sep 28 06:40:24 2021
Results reported at Tue Sep 28 06:40:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1053 332.474 -50.4702 512265601 512524801 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 :                                   771.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

