/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 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin438
RA = 332.474, Dec = -50.4702
tmin = 352857601, tmax = 353116801
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='207390', job_status='RUN', time_executed='2021-09-28 06:15:41.177250', time_epoch_executed='1632834941.18' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/207390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/207390/ft1_4FGL_J2209.8-5028_daily_bin438.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/207390/ft2_4FGL_J2209.8-5028_daily_bin438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/207390/ft1_4FGL_J2209.8-5028_daily_bin438.fits outfile=/scratch/kocevski/207390/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin438.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=352857601.0 tmax=353116801.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.41
user 3.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/207390/ft1_filtered_4FGL_J2209.8-5028_daily_bin438.fits" evtable="EVENTS" scfile=/scratch/kocevski/207390/ft2_4FGL_J2209.8-5028_daily_bin438.fits sctable="SC_DATA" outfile=/scratch/kocevski/207390/ltcube_352857601_353116801_4FGL_J2209.8-5028_daily_bin438.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/207390/ft2_4FGL_J2209.8-5028_daily_bin438.fits
.....................!
real 11.71
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/207390/ft1_filtered_4FGL_J2209.8-5028_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/207390/ft2_4FGL_J2209.8-5028_daily_bin438.fits sctable="SC_DATA" expcube=/scratch/kocevski/207390/ltcube_352857601_353116801_4FGL_J2209.8-5028_daily_bin438.fits outfile=/scratch/kocevski/207390/expmap_352857601_353116801_4FGL_J2209.8-5028_daily_bin438.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/207390/ltcube_352857601_353116801_4FGL_J2209.8-5028_daily_bin438.fits
.....................!
real 196.60
user 191.21
sys 5.06

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/207390/ft1_filtered_4FGL_J2209.8-5028_daily_bin438.fits scfile=/scratch/kocevski/207390/ft2_4FGL_J2209.8-5028_daily_bin438.fits outfile=/scratch/kocevski/207390/cmap_352857601_353116801_4FGL_J2209.8-5028_daily_bin438.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/207390/ft1_filtered_4FGL_J2209.8-5028_daily_bin438.fits scfile=/scratch/kocevski/207390/ft2_4FGL_J2209.8-5028_daily_bin438.fits outfile=/scratch/kocevski/207390/cmap_HighResolution_352857601_353116801_4FGL_J2209.8-5028_daily_bin438.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/207390/ft1_filtered_4FGL_J2209.8-5028_daily_bin438.fits evtable="EVENTS" scfile=/scratch/kocevski/207390/ft2_4FGL_J2209.8-5028_daily_bin438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/207390/Model_4FGL_J2209.8-5028_daily_bin438.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/207390/ft1_filtered_4FGL_J2209.8-5028_daily_bin438.fits....................!
real 24.51
user 23.29
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6013       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    89.795       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.326       1.0000         .10000E-03   10000.    
     7 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.928       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    116.32       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14464E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    41.035       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.123       1.0000         .10000E-03   10000.    
    19 'Prefactor '    423.82       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27857E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9690       1.0000         .10000E-03   10000.    
    23 'norm      '    18.004       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .17977       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.7568       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=   1951.708     FROM MIGRAD    STATUS=CONVERGED   1009 CALLS     3811 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6066        100.78        .14546E-03    .60378E-05
   2  Prefactor     .10000E-03    55.223        .18142E-02** at limit **
   3  Prefactor     .10000E-03    12.253        .15065E-02** at limit **
   4  Prefactor     89.798        71.030        .42403E-04   -.14853E-04
   5  Prefactor     .10000E-03    290.64        .18142E-02** at limit **
   6  Prefactor     15.327        11.019        .10231E-03    .40448E-04
   7  norm          .10000E-03    6.1026        .10639E-02** at limit **
   8  Prefactor     .10000E-03    11.559        .14669E-02** at limit **
   9  Prefactor     .10000E-03    134.59        .18142E-02** at limit **
  10  Prefactor     .10000E-03    16.564        .17532E-02** at limit **
  11  Prefactor     18.933        13.511        .92060E-04   -.17280E-03
  12  Prefactor     .10000E-03    622.42        .18142E-02** at limit **
  13  norm          .10000E-03    9.0058        .12948E-02** at limit **
  14  Prefactor     .10000E-03    5.1838        .97887E-03** at limit **
  15  Prefactor     116.34        118.08        .18653E-03   -.11275E-04
  16  Prefactor     .10155E-03    34.501        .56634E-01** at limit **
  17  Prefactor     41.046        79.736        .62576E-04   -.72498E-04
  18  Prefactor     28.124        32.917        .75546E-04   -.54250E-04
  19  Prefactor     423.81        372.06        .99276E-04   -.12402E-04
  20  Prefactor     .10000E-03    13.151        .15620E-02** at limit **
  21  Prefactor     .10000E-03    391.73        .21421E-02** at limit **
  22  Prefactor     3.9659        84.007        .20246E-03   -.81422E-06
  23  norm          18.004        18.418        .94391E-04   -.40950E-05
  24  Normalizat    .17933        .47493        .68263E-03   -.18232E-04
  25  Prefactor     1.7570        .37725        .19827E-03   -.53181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.60664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 89.7976
  Prefactor  = 0.0001
  Prefactor  = 15.3272
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9328
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 116.337
  Prefactor  = 0.000101546
  Prefactor  = 41.0456
  Prefactor  = 28.1236
  Prefactor  = 423.808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.9659
  norm       = 18.0039
  Normalizat = 0.179334
  Prefactor  = 1.75704
 **********
 **   18 **HESSE 
 **********

 FCN=   1951.708     FROM HESSE     STATUS=OK           411 CALLS     4222 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6066        100.73        .58182E-05   -1.5156    
   2  Prefactor     .10000E-03    55.224        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.254        .30130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     89.798        71.023        .84807E-05   -1.3810    
   5  Prefactor     .10000E-03    290.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.327        11.018        .40923E-05   -1.4925    
   7  norm          .10000E-03    6.1028        .21278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.559        .29338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    134.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.566        .35065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.933        13.507        .36824E-05   -1.4837    
  12  Prefactor     .10000E-03    622.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.0059        .25897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1841        .19577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     116.34        118.06        .74613E-05   -1.3547    
  16  Prefactor     .10155E-03    30.431        .61254E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.046        79.734        .12515E-04   -1.4426    
  18  Prefactor     28.124        32.914        .30218E-05   -1.4647    
  19  Prefactor     423.81        372.04        .19855E-04   -1.1561    
  20  Prefactor     .10000E-03    13.152        .31241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    391.84        .42841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.9659        83.944        .80984E-05   -1.5310    
  23  norm          18.004        18.418        .37756E-05   -1.4859    
  24  Normalizat    .17933        .47348        .27305E-04   -1.3097    
  25  Prefactor     1.7570        .37618        .79310E-05   -.70573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88436e-10
Minuit parameter uncertainties:
  1  55.4758
  2  1.07511e-05
  3  7.83523e-07
  4  71.0904
  5  5.75718e-05
  6  11.0195
  7  1.09718e-05
  8  3.60624e-06
  9  0.000330958
  10  0.000130545
  11  13.509
  12  0.00219686
  13  1.34992e-05
  14  1.2306e-05
  15  118.302
  16  0.0137245
  17  79.9423
  18  32.9352
  19  374.19
  20  1.63886e-05
  21  0.000557861
  22  36.55
  23  18.4234
  24  0.484822
  25  0.3768
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  2.197e-03  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.757e+00  3.768e-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.793e-01  4.848e-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: 2.33e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/207390/likelihoodResults_352857601_353116801_4FGL_J2209.8-5028_daily_bin438.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) = 1951.70821357
delta logL = -7.49992432247e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1951.70820607
delta logL = -7.5897332863e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3535       1.0000          .0000       10.000    
     3 'Normalizat'    .17934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7570       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=   1951.708     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      242 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9863.2        .90712E-02** at limit **
   2  Index         2.3597        5.9490        .50000       -.92956E-07
   3  Normalizat    .17933        .74789E-01    .15660        .49073E-04
   4  Prefactor     1.7570        .64861E-01    .44863E-01    .91549E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.35967
  Normalizat = 0.179334
  Prefactor  = 1.75704
 **********
 **   18 **HESSE 
 **********

 FCN=   1951.708     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      273 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5010.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3597        6.1355        .50000       -.55632    
   3  Normalizat    .17933        .18731        .68258E-03   -1.3097    
   4  Prefactor     1.7570        .16062        .19827E-03   -.70573    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.69298e-10
Minuit parameter uncertainties:
  1  0.0186254
  2  58.4652
  3  0.187976
  4  0.160663
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/207390': 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) = 1951.70820607
delta logL = -2.62161847786e-10

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.863e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.360e+00  5.847e+01  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.757e+00  1.607e-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.793e-01  1.880e-01  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/207390/cmap_HighResolution_352857601_353116801_4FGL_J2209.8-5028_daily_bin438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-02', job_status='DONE', photon_flux_upper_limit='2.33e-07', time_completed='2021-09-28 06:23:46.976646', job_id='207390', GAL2='1.76', fit_tolerance='1e-08', EG2='0.18', EG='0.18', time_epoch_completed='1632835426.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.76', dlogl='-2.62e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='438' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:23:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 207390: <4FGL_J2209.8-5028_daily_bin438> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin438 332.474 -50.4702 352857601 353116801 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 :                                   482.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   502 sec.
    Turnaround time :                            504 sec.

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

