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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin959
RA = 332.474, Dec = -50.4702
tmin = 487900801, tmax = 488160001
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='210514', job_status='RUN', time_executed='2021-09-28 06:28:49.378657', time_epoch_executed='1632835729.38' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/210514

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/210514/ft1_4FGL_J2209.8-5028_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/210514/ft2_4FGL_J2209.8-5028_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/210514/ft1_4FGL_J2209.8-5028_daily_bin959.fits outfile=/scratch/kocevski/210514/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin959.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.08
user 5.85
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/210514/ft1_filtered_4FGL_J2209.8-5028_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/210514/ft2_4FGL_J2209.8-5028_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/210514/ltcube_487900801_488160001_4FGL_J2209.8-5028_daily_bin959.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/210514/ft2_4FGL_J2209.8-5028_daily_bin959.fits
.....................!
real 12.00
user 11.64
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/210514/ft1_filtered_4FGL_J2209.8-5028_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/210514/ft2_4FGL_J2209.8-5028_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/210514/ltcube_487900801_488160001_4FGL_J2209.8-5028_daily_bin959.fits outfile=/scratch/kocevski/210514/expmap_487900801_488160001_4FGL_J2209.8-5028_daily_bin959.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/210514/ltcube_487900801_488160001_4FGL_J2209.8-5028_daily_bin959.fits
.....................!
real 190.53
user 185.71
sys 4.52

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/210514/ft1_filtered_4FGL_J2209.8-5028_daily_bin959.fits scfile=/scratch/kocevski/210514/ft2_4FGL_J2209.8-5028_daily_bin959.fits outfile=/scratch/kocevski/210514/cmap_487900801_488160001_4FGL_J2209.8-5028_daily_bin959.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/210514/ft1_filtered_4FGL_J2209.8-5028_daily_bin959.fits scfile=/scratch/kocevski/210514/ft2_4FGL_J2209.8-5028_daily_bin959.fits outfile=/scratch/kocevski/210514/cmap_HighResolution_487900801_488160001_4FGL_J2209.8-5028_daily_bin959.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/210514/ft1_filtered_4FGL_J2209.8-5028_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/210514/ft2_4FGL_J2209.8-5028_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/210514/Model_4FGL_J2209.8-5028_daily_bin959.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/210514/ft1_filtered_4FGL_J2209.8-5028_daily_bin959.fits.....................!
real 48.20
user 46.96
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14501E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10755E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .97149E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.005       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .42124       1.0000         .10000E-03   10000.    
     7 'norm      '    11.158       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9130       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.956       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .61906E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.833       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.433       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.536       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10602E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68550       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1539       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=   5958.710     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3023 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4013        .27529E-07** at limit **
   2  Prefactor     .10000E-03    165.42       -.79289E-05** at limit **
   3  Prefactor     .10000E-03    10.416        .41346E-06** at limit **
   4  Prefactor     .38342E-03    21.803       -.16601E-07** at limit **
   5  Prefactor     11.001        16.917        .17412E-05    .70173E-04
   6  Prefactor     .44920        2.2965       -.67357E-06   -.10880E-03
   7  norm          11.164        5.2576        .61471E-06    .41257E-04
   8  Prefactor     4.9146        10.641       -.72661E-05   -.90484E-04
   9  Prefactor     37.937        35.298        .18770E-04    .51770E-04
  10  Prefactor     .10000E-03    2.8900       -.35800E-06** at limit **
  11  Prefactor     .10000E-03    2.2737       -.13521E-05** at limit **
  12  Prefactor     .10000E-03    30.608       -.22839E-05** at limit **
  13  norm          .10000E-03    3.3208       -.38855E-07** at limit **
  14  Prefactor     .10000E-03    2.6781        .12615E-06** at limit **
  15  Prefactor     .10000E-03    33.800        .63080E-05** at limit **
  16  Prefactor     .10000E-03    2.7928       -.47033E-06** at limit **
  17  Prefactor     11.792        42.534        .10060E-03    .13249E-03
  18  Prefactor     12.437        19.286       -.24630E-04   -.17453E-03
  19  Prefactor     .10000E-03    53.376        .23429E-05** at limit **
  20  Prefactor     14.537        11.465        .93446E-06   -.42007E-04
  21  Prefactor     .10000E-03    35.032       -.37852E-05** at limit **
  22  Prefactor     .10000E-03    42.982       -.17957E-05** at limit **
  23  norm          .10000E-03    3.9182       -.13665E-06** at limit **
  24  Normalizat    .68577        .20887       -.10298E-04    .52271E-03
  25  Prefactor     1.1536        .14854        .22330E-05    .17451E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000383416
  Prefactor  = 11.0014
  Prefactor  = 0.449203
  norm       = 11.1637
  Prefactor  = 4.91465
  Prefactor  = 37.9368
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.7924
  Prefactor  = 12.4368
  Prefactor  = 0.0001
  Prefactor  = 14.5371
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.685767
  Prefactor  = 1.15363
 **********
 **   18 **HESSE 
 **********

 FCN=   5958.710     FROM HESSE     STATUS=OK           429 CALLS     3452 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    169.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .38342E-03    27.863        .97185E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.001        16.902        .12077E-03   -1.5044    
   6  Prefactor     .44920        8.0021        .21639E-02   -1.5574    
   7  norm          11.164        5.2623        .11185E-03   -1.5040    
   8  Prefactor     4.9146        10.632        .18146E-03   -1.5265    
   9  Prefactor     37.937        35.236        .65056E-04   -1.4475    
  10  Prefactor     .10000E-03    2.8957        .12814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    27.904        .21923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    30.612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.3265        .13737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.7454        .24652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8128        .12599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.792        42.475        .11645E-03   -1.5021    
  18  Prefactor     12.437        19.295        .11360E-03   -1.5003    
  19  Prefactor     .10000E-03    53.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.537        11.464        .10505E-03   -1.4945    
  21  Prefactor     .10000E-03    35.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    3.9182        .14923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68577        .23544        .32163E-03   -1.0446    
  25  Prefactor     1.1536        .17229        .19084E-03   -.87771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61539e-08
Minuit parameter uncertainties:
  1  2.97451e-05
  2  0.000996998
  3  0.000103749
  4  0.17781
  5  16.9095
  6  3.79204
  7  5.26256
  8  10.6359
  9  35.2555
  10  4.69305e-05
  11  0.000429693
  12  0.000131049
  13  1.14658e-05
  14  1.66875e-07
  15  2.94676e-05
  16  7.62281e-05
  17  42.5843
  18  19.3052
  19  0.000172694
  20  11.4655
  21  0.000142298
  22  4.85842e-05
  23  7.08461e-07
  24  0.235791
  25  0.17237
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.310e-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:  1.154e+00  1.724e-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:  6.858e-01  2.358e-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: 5.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/210514/likelihoodResults_487900801_488160001_4FGL_J2209.8-5028_daily_bin959.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) = 5958.71057816
delta logL = -0.000155552075739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5958.7104237
delta logL = -1.08612039185e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8932       1.0000          .0000       10.000    
     3 'Normalizat'    .68576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1536       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=   5958.710     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10455E-03    8.4011        .18142E-01** at limit **
   2  Index         2.7820        6.1681        .50000        .12264E-04
   3  Normalizat    .68576        .30330E-02    .32164E-03   -.77761E-05
   4  Prefactor     1.1536        .22962E-02    .19084E-03    .36899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010455
  Index      = 2.78195
  Normalizat = 0.685757
  Prefactor  = 1.15363
 **********
 **   18 **HESSE 
 **********

 FCN=   5958.710     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10455E-03    100.16        .34399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7820        6.3710        .50000       -.45962    
   3  Normalizat    .68576        .10526E-01    .12866E-04   -1.0446    
   4  Prefactor     1.1536        .79690E-02    .38168E-04   -.87770    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.00596e-09
Minuit parameter uncertainties:
  1  0.0427677
  2  399.725
  3  0.0105259
  4  0.00796901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/210514': 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) = 5958.71042348
delta logL = -8.73514181876e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.046e-04  4.277e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.782e+00  3.997e+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:  1.154e+00  7.969e-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:  6.858e-01  1.053e-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/210514/cmap_HighResolution_487900801_488160001_4FGL_J2209.8-5028_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-03', job_status='DONE', photon_flux_upper_limit='5.62e-08', time_completed='2021-09-28 06:41:22.506062', job_id='210514', GAL2='1.15', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1632836482.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='-8.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='959' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:41:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 210514: <4FGL_J2209.8-5028_daily_bin959> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin959 332.474 -50.4702 487900801 488160001 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 :                                   707.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             235.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

