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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin5
RA = 332.474, Dec = -50.4702
tmin = 240624001, tmax = 240883201
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='204770', job_status='RUN', time_executed='2021-09-28 06:10:03.674235', time_epoch_executed='1632834603.67' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204770

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204770/ft1_4FGL_J2209.8-5028_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204770/ft2_4FGL_J2209.8-5028_daily_bin5.fits


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

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

Done.
real 1.41
user 1.22
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204770/ft1_filtered_4FGL_J2209.8-5028_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/204770/ft2_4FGL_J2209.8-5028_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/204770/ltcube_240624001_240883201_4FGL_J2209.8-5028_daily_bin5.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/204770/ft2_4FGL_J2209.8-5028_daily_bin5.fits
.....................!
real 13.46
user 13.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204770/ft1_filtered_4FGL_J2209.8-5028_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/204770/ft2_4FGL_J2209.8-5028_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/204770/ltcube_240624001_240883201_4FGL_J2209.8-5028_daily_bin5.fits outfile=/scratch/kocevski/204770/expmap_240624001_240883201_4FGL_J2209.8-5028_daily_bin5.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/204770/ltcube_240624001_240883201_4FGL_J2209.8-5028_daily_bin5.fits
.....................!
real 191.46
user 186.07
sys 5.08

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/204770/ft1_filtered_4FGL_J2209.8-5028_daily_bin5.fits scfile=/scratch/kocevski/204770/ft2_4FGL_J2209.8-5028_daily_bin5.fits outfile=/scratch/kocevski/204770/cmap_240624001_240883201_4FGL_J2209.8-5028_daily_bin5.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204770/ft1_filtered_4FGL_J2209.8-5028_daily_bin5.fits scfile=/scratch/kocevski/204770/ft2_4FGL_J2209.8-5028_daily_bin5.fits outfile=/scratch/kocevski/204770/cmap_HighResolution_240624001_240883201_4FGL_J2209.8-5028_daily_bin5.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.085       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6781       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.475       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7062       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3328       1.0000         .10000E-03   10000.    
     7 'norm      '    26.909       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.027       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2123       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6102       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2601       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7955       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0285       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4473       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.093       1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1239       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .52480       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=   5330.506     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2883 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6310       -.15025E-06** at limit **
   2  Prefactor     24.041        45.241        .66221E-05    .22127E-04
   3  Prefactor     4.6776        8.5520        .23653E-05    .24176E-05
   4  Prefactor     10.476        32.093        .56530E-06   -.29728E-05
   5  Prefactor     1.6716        79.518        .11876E-04   -.17760E-04
   6  Prefactor     4.3330        4.3826       -.26072E-06   -.28063E-04
   7  norm          26.909        7.1326       -.33543E-07   -.25660E-04
   8  Prefactor     .10000E-03    12.814        .32350E-06** at limit **
   9  Prefactor     38.028        38.333        .12458E-06    .52320E-05
  10  Prefactor     4.2045        8.4707        .49994E-06    .55232E-04
  11  Prefactor     6.6097        4.3366        .85303E-07    .21448E-04
  12  Prefactor     .10000E-03    89.992       -.64845E-05** at limit **
  13  norm          4.2600        4.4995        .53348E-08    .73173E-06
  14  Prefactor     .10000E-03    1.2950        .10714E-06** at limit **
  15  Prefactor     .10000E-03    13.844       -.36019E-06** at limit **
  16  Prefactor     4.7945        4.9366        .27289E-06   -.18064E-05
  17  Prefactor     .10000E-03    34.134       -.40004E-07** at limit **
  18  Prefactor     4.0185        10.463        .58889E-06   -.24901E-04
  19  Prefactor     .10000E-03    103.85        .62640E-05** at limit **
  20  Prefactor     .10000E-03    2.4520        .37190E-08** at limit **
  21  Prefactor     3.4432        38.020        .68836E-06   -.20009E-05
  22  Prefactor     10.089        16.788        .25577E-06   -.47460E-05
  23  norm          .10000E-03    5.3666        .95082E-08** at limit **
  24  Normalizat    1.1240        .18368       -.77769E-06   -.17529E-05
  25  Prefactor     .52471        .13457       -.81282E-06    .21999E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.0408
  Prefactor  = 4.67761
  Prefactor  = 10.4759
  Prefactor  = 1.67159
  Prefactor  = 4.33299
  norm       = 26.9095
  Prefactor  = 0.0001
  Prefactor  = 38.0276
  Prefactor  = 4.20448
  Prefactor  = 6.60966
  Prefactor  = 0.0001
  norm       = 4.26004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.79447
  Prefactor  = 0.0001
  Prefactor  = 4.01853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.44323
  Prefactor  = 10.0891
  norm       = 0.0001
  Normalizat = 1.12403
  Prefactor  = 0.524705
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.506     FROM HESSE     STATUS=OK           435 CALLS     3318 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.6402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.041        45.304        .81622E-04   -1.4727    
   3  Prefactor     4.6776        8.5505        .93030E-03   -1.5275    
   4  Prefactor     10.476        31.991        .61899E-03   -1.5061    
   5  Prefactor     1.6716        80.035        .16096E-02   -1.5449    
   6  Prefactor     4.3330        4.3748        .14538E-03   -1.5292    
   7  norm          26.909        7.1238        .77227E-04   -1.4670    
   8  Prefactor     .10000E-03    12.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.028        38.288        .64995E-04   -1.4474    
  10  Prefactor     4.2045        8.4292        .19635E-03   -1.5298    
  11  Prefactor     6.6097        4.3321        .11675E-03   -1.5194    
  12  Prefactor     .10000E-03    90.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.2600        4.5027        .15517E-03   -1.5295    
  14  Prefactor     .10000E-03    2.2246        .16124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.7945        4.9362        .15662E-03   -1.5270    
  17  Prefactor     .10000E-03    34.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0185        10.451        .20091E-03   -1.5307    
  19  Prefactor     .10000E-03    103.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4661        .11164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4432        37.989        .21783E-03   -1.5337    
  22  Prefactor     10.089        16.822        .12613E-03   -1.5073    
  23  norm          .10000E-03    5.4488        .16517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1240        .20625        .22373E-03   -.88984    
  25  Prefactor     .52471        .15060        .24118E-03   -1.1086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85616e-11
Minuit parameter uncertainties:
  1  1.69131e-05
  2  45.3686
  3  8.55269
  4  32.0431
  5  23.1654
  6  4.37515
  7  7.12405
  8  8.64917e-06
  9  38.3124
  10  8.43153
  11  4.33233
  12  0.000187339
  13  4.50309
  14  6.79466e-06
  15  1.09249e-07
  16  4.93657
  17  6.79634e-05
  18  10.4561
  19  8.72314e-05
  20  1.53213e-06
  21  22.8922
  22  16.8299
  23  2.41584e-06
  24  0.206394
  25  0.150717
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.873e-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:  5.247e-01  1.507e-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.124e+00  2.064e-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.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204770/likelihoodResults_240624001_240883201_4FGL_J2209.8-5028_daily_bin5.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) = 5330.50654617
delta logL = -5.27596021129e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5330.50649358
delta logL = -1.72767613549e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6045       1.0000          .0000       10.000    
     3 'Normalizat'    1.1240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52470       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=   5330.506     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      236 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    64.938        .90712E-02** at limit **
   2  Index         2.5727        8.7124        .50000        .36772E-05
   3  Normalizat    1.1240        .41330E-02    .37097E-01   -.13667E-04
   4  Prefactor     .52470        .31593E-02    .40017E-01   -.63354E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  Index      = 2.57274
  Normalizat = 1.12403
  Prefactor  = 0.524705
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.506     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    356.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5727        5.0813        .50000       -.50688    
   3  Normalizat    1.1240        .97548E-02    .22373E-03   -.88984    
   4  Prefactor     .52470        .74530E-02    .24118E-03   -1.1086    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.15676e-08
Minuit parameter uncertainties:
  1  0.00607453
  2  366.518
  3  0.00975483
  4  0.00745301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204770': 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) = 5330.50649353
delta logL = -1.19372089102e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  6.075e-03  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.573e+00  3.665e+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:  5.247e-01  7.453e-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.124e+00  9.755e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/204770/cmap_HighResolution_240624001_240883201_4FGL_J2209.8-5028_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.46e-08', time_completed='2021-09-28 06:20:43.276927', job_id='204770', GAL2='0.52', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1632835243.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='-1.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='5' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:20:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 204770: <4FGL_J2209.8-5028_daily_bin5> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin5 332.474 -50.4702 240624001 240883201 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 :                                   639.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             229.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

