/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 6 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 = 7487
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin319
RA = 332.474, Dec = -50.4702
tmin = 322012801, tmax = 322272001
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='206162', job_status='RUN', time_executed='2021-09-28 06:11:14.390819', time_epoch_executed='1632834674.39' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206162

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206162/ft1_4FGL_J2209.8-5028_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206162/ft2_4FGL_J2209.8-5028_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206162/ft1_4FGL_J2209.8-5028_daily_bin319.fits outfile=/scratch/kocevski/206162/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin319.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=322012801.0 tmax=322272001.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.38
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206162/ft1_filtered_4FGL_J2209.8-5028_daily_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/206162/ft2_4FGL_J2209.8-5028_daily_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/206162/ltcube_322012801_322272001_4FGL_J2209.8-5028_daily_bin319.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/206162/ft2_4FGL_J2209.8-5028_daily_bin319.fits
.....................!
real 11.84
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206162/ft1_filtered_4FGL_J2209.8-5028_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/206162/ft2_4FGL_J2209.8-5028_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/206162/ltcube_322012801_322272001_4FGL_J2209.8-5028_daily_bin319.fits outfile=/scratch/kocevski/206162/expmap_322012801_322272001_4FGL_J2209.8-5028_daily_bin319.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/206162/ltcube_322012801_322272001_4FGL_J2209.8-5028_daily_bin319.fits
.....................!
real 192.89
user 187.29
sys 5.23

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/206162/ft1_filtered_4FGL_J2209.8-5028_daily_bin319.fits scfile=/scratch/kocevski/206162/ft2_4FGL_J2209.8-5028_daily_bin319.fits outfile=/scratch/kocevski/206162/cmap_322012801_322272001_4FGL_J2209.8-5028_daily_bin319.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206162/ft1_filtered_4FGL_J2209.8-5028_daily_bin319.fits scfile=/scratch/kocevski/206162/ft2_4FGL_J2209.8-5028_daily_bin319.fits outfile=/scratch/kocevski/206162/cmap_HighResolution_322012801_322272001_4FGL_J2209.8-5028_daily_bin319.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/206162/ft1_filtered_4FGL_J2209.8-5028_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/206162/ft2_4FGL_J2209.8-5028_daily_bin319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/206162/Model_4FGL_J2209.8-5028_daily_bin319.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/206162/ft1_filtered_4FGL_J2209.8-5028_daily_bin319.fits.....................!
real 49.87
user 48.53
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6747       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.486       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.243       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.232       1.0000         .10000E-03   10000.    
     7 'norm      '    1.0101       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.857       1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.336       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7737       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.3649       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99774E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.617       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0229       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9148       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.732       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .99853       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83443       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1210       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=   6558.244     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2921 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.022       -.86756E-07** at limit **
   2  Prefactor     7.6263        44.768       -.14051E-05   -.90850E-04
   3  Prefactor     35.030        12.114        .31443E-07   -.13228E-03
   4  Prefactor     11.495        33.047       -.52157E-05   -.85822E-04
   5  Prefactor     27.244        22.368        .73879E-07   -.90404E-05
   6  Prefactor     18.232        6.4423        .69754E-07   -.18986E-03
   7  norm          1.0070        5.6461        .44050E-05    .51364E-04
   8  Prefactor     11.857        10.473       -.18090E-06   -.62938E-04
   9  Prefactor     51.330        46.265        .39546E-06   -.14003E-03
  10  Prefactor     .10003E-03    4.9116        .89015E-06** at limit **
  11  Prefactor     4.7740        4.2596        .26053E-06   -.15898E-03
  12  Prefactor     .10000E-03    49.634        .19573E-06** at limit **
  13  norm          4.3648        4.7561       -.90563E-07   -.65008E-04
  14  Prefactor     .10096E-03    1.8011       -.62740E-06** at limit **
  15  Prefactor     16.609        47.619        .18859E-06    .11108E-04
  16  Prefactor     5.0231        5.6333        .29777E-06    .30474E-04
  17  Prefactor     .10000E-03    12.994        .65227E-07** at limit **
  18  Prefactor     7.9168        12.594        .29333E-06   -.35626E-04
  19  Prefactor     .10000E-03    63.803        .86995E-07** at limit **
  20  Prefactor     10.732        7.6645        .44832E-07    .53339E-04
  21  Prefactor     .10000E-03    20.787       -.15919E-06** at limit **
  22  Prefactor     1.0176        10.437        .82568E-06   -.12291E-03
  23  norm          .10000E-03    2.4312        .10491E-08** at limit **
  24  Normalizat    .83411        .20298       -.17566E-05   -.10185E-03
  25  Prefactor     1.1212        .15657        .53586E-06   -.25213E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.62628
  Prefactor  = 35.0304
  Prefactor  = 11.4948
  Prefactor  = 27.2436
  Prefactor  = 18.2319
  norm       = 1.00698
  Prefactor  = 11.8571
  Prefactor  = 51.3297
  Prefactor  = 0.000100029
  Prefactor  = 4.77404
  Prefactor  = 0.0001
  norm       = 4.36481
  Prefactor  = 0.00010096
  Prefactor  = 16.6085
  Prefactor  = 5.02315
  Prefactor  = 0.0001
  Prefactor  = 7.91677
  Prefactor  = 0.0001
  Prefactor  = 10.7319
  Prefactor  = 0.0001
  Prefactor  = 1.01763
  norm       = 0.0001
  Normalizat = 0.834114
  Prefactor  = 1.1212
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.244     FROM HESSE     STATUS=OK           443 CALLS     3364 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.6263        45.154        .14475E-03   -1.5156    
   3  Prefactor     35.030        12.111        .67709E-04   -1.4524    
   4  Prefactor     11.495        33.333        .11820E-03   -1.5030    
   5  Prefactor     27.244        22.373        .76754E-04   -1.4664    
   6  Prefactor     18.232        6.4307        .93801E-04   -1.4854    
   7  norm          1.0070        5.7943        .34225E-03   -1.5507    
   8  Prefactor     11.857        10.474        .11634E-03   -1.5019    
   9  Prefactor     51.330        44.627        .55974E-04   -1.4274    
  10  Prefactor     .10003E-03    20.052        .32195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.7740        4.2395        .14877E-03   -1.5271    
  12  Prefactor     .10000E-03    49.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3648        4.7572        .17975E-03   -1.5290    
  14  Prefactor     .10096E-03    3.1639        .37433E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.609        47.607        .98253E-04   -1.4893    
  16  Prefactor     5.0231        5.6319        .17942E-03   -1.5260    
  17  Prefactor     .10000E-03    13.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.9168        12.608        .14252E-03   -1.5145    
  19  Prefactor     .10000E-03    63.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.732        7.6653        .12230E-03   -1.5053    
  21  Prefactor     .10000E-03    20.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.0176        76.087        .48859E-02   -1.5506    
  23  norm          .10000E-03    2.4314        .12332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83411        .22893        .30472E-03   -.98815    
  25  Prefactor     1.1212        .17783        .21928E-03   -.88792    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36218e-09
Minuit parameter uncertainties:
  1  6.59706e-05
  2  37.1556
  3  12.1116
  4  33.3867
  5  22.38
  6  6.43096
  7  4.83154
  8  10.4759
  9  44.6565
  10  0.00152114
  11  4.23977
  12  8.23883e-05
  13  4.75756
  14  0.00348491
  15  47.7157
  16  5.63254
  17  2.92235e-06
  18  12.6127
  19  3.7765e-05
  20  7.66595
  21  9.6436e-05
  22  17.6212
  23  2.44178e-07
  24  0.229197
  25  0.177923
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.121e+00  1.779e-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:  8.341e-01  2.292e-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.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/206162/likelihoodResults_322012801_322272001_4FGL_J2209.8-5028_daily_bin319.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) = 6558.24396086
delta logL = -9.58419677772e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6558.24386569
delta logL = -6.71733687341e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7915       1.0000          .0000       10.000    
     3 'Normalizat'    .83411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1212       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=   6558.244     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      279 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10542E-03    10.510        .18142E-01** at limit **
   2  Index         2.6722        6.1251        .50000        .87296E-05
   3  Normalizat    .83411        .25884E-02    .30472E-03    .67156E-06
   4  Prefactor     1.1212        .21417E-02    .21928E-03   -.14621E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105418
  Index      = 2.67223
  Normalizat = 0.834113
  Prefactor  = 1.1212
 **********
 **   18 **HESSE 
 **********

 FCN=   6558.244     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10542E-03    143.47        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6722        8.6577        .50000       -.48426    
   3  Normalizat    .83411        .96004E-02    .12189E-04   -.98816    
   4  Prefactor     1.1212        .79437E-02    .87711E-05   -.88792    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.57087e-09
Minuit parameter uncertainties:
  1  0.0558928
  2  435.454
  3  0.00960038
  4  0.0079437
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206162': 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) = 6558.24386551
delta logL = -4.9270420277e-07

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.054e-04  5.589e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.672e+00  4.355e+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.121e+00  7.944e-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:  8.341e-01  9.600e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/206162/cmap_HighResolution_322012801_322272001_4FGL_J2209.8-5028_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-03', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-09-28 06:23:40.738583', job_id='206162', GAL2='1.12', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632835420.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='-4.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='319' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:23:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 206162: <4FGL_J2209.8-5028_daily_bin319> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin319> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:58 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:59 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:10:59 2021
Terminated at Tue Sep 28 06:23:41 2021
Results reported at Tue Sep 28 06:23:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin319 332.474 -50.4702 322012801 322272001 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 :                                   738.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

