aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 122 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 17354
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_weekly_bin760
RA = 332.474, Dec = -50.4702
tmin = 698630401, tmax = 699235201
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='42566', job_status='RUN', time_executed='2023-02-28 02:32:39.310752', time_epoch_executed='1677580359.31' WHERE source_name='4FGL J2209.8-5028' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/42566

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/42566/ft1_4FGL_J2209.8-5028_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/42566/ft2_4FGL_J2209.8-5028_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/42566/ft1_4FGL_J2209.8-5028_weekly_bin760.fits outfile=/scratch/kocevski/42566/ft1_filteredMKT_4FGL_J2209.8-5028_weekly_bin760.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=698630401.0 tmax=699235201.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.33
user 5.98
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/42566/ft2_4FGL_J2209.8-5028_weekly_bin760.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/42566/ft1_filteredMKT_4FGL_J2209.8-5028_weekly_bin760.fits evtable="EVENTS" outfile="/scratch/kocevski/42566/ft1_filtered_4FGL_J2209.8-5028_weekly_bin760.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.56
user 0.40
sys 0.13

Number of photons that the gtmktime cut: 254

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/42566/ft1_filtered_4FGL_J2209.8-5028_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/42566/ft2_4FGL_J2209.8-5028_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/42566/ltcube_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.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/42566/ft2_4FGL_J2209.8-5028_weekly_bin760.fits
.....................!
real 35.47
user 34.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/42566/ft1_filtered_4FGL_J2209.8-5028_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/42566/ft2_4FGL_J2209.8-5028_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/42566/ltcube_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.fits outfile=/scratch/kocevski/42566/expmap_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.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/42566/ltcube_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.fits
.....................!
real 193.63
user 187.88
sys 5.04

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/42566/ft1_filtered_4FGL_J2209.8-5028_weekly_bin760.fits scfile=/scratch/kocevski/42566/ft2_4FGL_J2209.8-5028_weekly_bin760.fits outfile=/scratch/kocevski/42566/cmap_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.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.58
user 0.43
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/42566/ft1_filtered_4FGL_J2209.8-5028_weekly_bin760.fits scfile=/scratch/kocevski/42566/ft2_4FGL_J2209.8-5028_weekly_bin760.fits outfile=/scratch/kocevski/42566/cmap_HighResolution_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/42566/ft1_filtered_4FGL_J2209.8-5028_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/42566/ft2_4FGL_J2209.8-5028_weekly_bin760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/42566/Model_4FGL_J2209.8-5028_weekly_bin760.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/42566/ft1_filtered_4FGL_J2209.8-5028_weekly_bin760.fits......................!
real 30.23
user 28.33
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/42566/ft1_filtered_4FGL_J2209.8-5028_weekly_bin760.fits', '/scratch/kocevski/42566/ft2_4FGL_J2209.8-5028_weekly_bin760.fits', expMap='/scratch/kocevski/42566/expmap_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.fits', expCube='/scratch/kocevski/42566/ltcube_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/42566/Model_4FGL_J2209.8-5028_weekly_bin760.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  0.000e+00  1.000e+06 ( 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/42566/ft1_filtered_4FGL_J2209.8-5028_weekly_bin760.fits
Spacecraft file(s): /scratch/kocevski/42566/ft2_4FGL_J2209.8-5028_weekly_bin760.fits
Exposure map: /scratch/kocevski/42566/expmap_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.fits
Exposure cube: /scratch/kocevski/42566/ltcube_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/42566/Model_4FGL_J2209.8-5028_weekly_bin760.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) = 2803.89844911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10827E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    8.6398       1.0000          .0000       .10000E+07
     3 'Prefactor '    .52502E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    55.019       1.0000          .0000       .10000E+07
     5 'Prefactor '    7.7363       1.0000          .0000       .10000E+07
     6 'norm      '    16.481       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20260E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    .48663E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    45.426       1.0000          .0000       .10000E+07
    10 'Prefactor '    .22813E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.8227       1.0000          .0000       .10000E+07
    12 'norm      '    .31267E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    144.02       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.4543       1.0000          .0000       .10000E+07
    15 'Prefactor '    46.855       1.0000          .0000       .10000E+07
    16 'Prefactor '    14.695       1.0000          .0000       .10000E+07
    17 'Prefactor '    .29488E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .81091E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    12.501       1.0000          .0000       .10000E+07
    20 'norm      '    .69454E-05   1.0000          .0000       .10000E+07
    21 'Normalizat'    .25628       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2405       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2803.303     FROM MIGRAD    STATUS=CONVERGED    202 CALLS     1803 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.841        .48465E-07** at limit **
   2  Prefactor     8.7346        11.967       -.26432E-06    .12234E-02
   3  Prefactor      .0000        12.431        .66863E-07** at limit **
   4  Prefactor     54.151        8.7015       -.15954E-05   -.26489E-01
   5  Prefactor     7.7775        6.9208        .45844E-06    .17970E-02
   6  norm          16.491        9.7880       -.30565E-07    .50840E-03
   7  Prefactor     .11102E-09    20.207        .21352E-08** at limit **
   8  Prefactor     .12140E-06    62.086       -.66543E-06** at limit **
   9  Prefactor     44.056        26.486       -.11106E-04   -.15036    
  10  Prefactor     .55511E-10    10.883        .10150E-06** at limit **
  11  Prefactor     .29514E-03    318.43       -.19887E-04** at limit **
  12  norm           .0000        9.5268        .98561E-07** at limit **
  13  Prefactor     163.32        120.80        .24783E-05   -.37661E-01
  14  Prefactor     .12100E-03    444.06       -.22718E-04** at limit **
  15  Prefactor     43.119        36.865       -.27415E-05   -.45504E-01
  16  Prefactor     19.986        62.534       -.29368E-04    .55521E-01
  17  Prefactor     .55511E-10    14.323        .62691E-07** at limit **
  18  Prefactor     .99581E-06    52.275        .66375E-05** at limit **
  19  Prefactor     12.341        23.479        .70656E-06    .24694E-03
  20  norm           .0000        3.9576        .40788E-07** at limit **
  21  Normalizat    .24697        .31915        .14996E-03   -.71472E-05
  22  Prefactor     1.2453        .23269       -.26926E-04   -.34335E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 8.7346
  Prefactor  = 0
  Prefactor  = 54.151
  Prefactor  = 7.77752
  norm       = 16.4907
  Prefactor  = 1.11022e-10
  Prefactor  = 1.21403e-07
  Prefactor  = 44.056
  Prefactor  = 5.55112e-11
  Prefactor  = 0.000295139
  norm       = 0
  Prefactor  = 163.322
  Prefactor  = 0.000120998
  Prefactor  = 43.1188
  Prefactor  = 19.9859
  Prefactor  = 5.55112e-11
  Prefactor  = 9.95815e-07
  Prefactor  = 12.3409
  norm       = 0
  Normalizat = 0.246969
  Prefactor  = 1.24529
 **********
 **   18 **HESSE 
 **********

 FCN=   2803.303     FROM HESSE     STATUS=OK           382 CALLS     2185 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.840        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7346        12.030        .34078E-03   -1.5649    
   3  Prefactor      .0000        12.425        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     54.151        38.120        .13483E-03   -1.5561    
   5  Prefactor     7.7775        6.9761        .36029E-03   -1.5652    
   6  norm          16.491        9.7743        .24644E-03   -1.5627    
   7  Prefactor     .11102E-09    20.114        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12140E-06    64.357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     44.056        38.402        .14838E-03   -1.5575    
  10  Prefactor     .55511E-10    10.957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29514E-03    423.22        .60510E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        9.5348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     163.32        123.28        .83335E-04   -1.5452    
  14  Prefactor     .12100E-03    569.16        .89259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.119        54.581        .14610E-03   -1.5577    
  16  Prefactor     19.986        91.414        .26102E-03   -1.5619    
  17  Prefactor     .55511E-10    14.272        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .99581E-06    52.728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.341        24.009        .28305E-03   -1.5638    
  20  norm           .0000        3.9636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .24697        .38592        .11207       -1.2615    
  22  Prefactor     1.2453        .27057        .33737E-01   -.84949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27439e-06
Minuit parameter uncertainties:
  1  3.93344e-05
  2  12.0298
  3  2.07899e-05
  4  38.1201
  5  6.97613
  6  9.77428
  7  0.000102751
  8  0.0055907
  9  38.4022
  10  4.80882e-05
  11  0.706902
  12  1.62372e-05
  13  123.286
  14  0.5249
  15  54.5816
  16  85.4886
  17  5.96149e-05
  18  0.0144927
  19  24.0096
  20  6.97926e-06
  21  0.390185
  22  0.270871
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  2.951e-04  7.069e-01  0.000e+00  1.000e+06 ( 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.245e+00  2.709e-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:  2.470e-01  3.902e-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: 3.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.59e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/42566/likelihoodResults_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.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): 0
logL (Free Index) = 2803.30444007
delta logL = -0.00112842301041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2803.30331136
delta logL = 2.86129306915e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79947E-06   1.0000          .0000       .10000E+07
     2 'Index     '    2.1717       1.0000          .0000       10.000    
     3 'Normalizat'    .24701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2453       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=   2802.177     FROM MIGRAD    STATUS=CONVERGED    151 CALLS      330 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31746        5.9831        .42118E-04   -.13607E-01
   2  Index         6.0630        3.0878        .73147E-01   -.43772E-05
   3  Normalizat    .10322        .10731        .17503       -.49148E-04
   4  Prefactor     1.3108        .80339E-01    .33639E-01   -.45149E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.31746
  Index      = 6.06298
  Normalizat = 0.103218
  Prefactor  = 1.31076
 **********
 **   18 **HESSE 
 **********

 FCN=   2802.177     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      363 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31746        8.8114        .16847E-05   -1.5697    
   2  Index         6.0630        3.8554        .29790E-02    .21423    
   3  Normalizat    .10322        .28255        .73589E-02   -1.3773    
   4  Prefactor     1.3108        .21456        .17007E-03   -.82988    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.0647e-10
Minuit parameter uncertainties:
  1  3.345
  2  4.44288
  3  0.286791
  4  0.214708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/42566': 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) = 2802.17705279
delta logL = 1.12625885287

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.175e-01  3.345e+00  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  6.063e+00  4.443e+00  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.311e+00  2.147e-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.032e-01  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 6.06 +/- 4.44
Photon Flux (Free Index): 4.57e-07 +/- 3.54e-07
Energy Flux (Free Index): 5.68e-05 +/- 4.29e-05

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/42566/cmap_HighResolution_698630401_699235201_4FGL_J2209.8-5028_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-02', comment='SUCCESS', energy_flux2='5.68e-05', dlogl='1.13e+00', photon_flux2='4.57e-07', job_status='DONE', time_completed='2023-02-28 02:41:08.976286', photon_index_error2='4.44', photon_index2='6.06', ts='-0.00', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='3.36e-07', energy_flux_error2='4.29e-05', EG='0.25', time_epoch_completed='1677580868.98', return_code='0', job_id='42566', GAL2='1.31', EG2='0.10', return_code2='102', photon_flux_error2='3.54e-07', ts2='2.49', photon_index='2.37' WHERE bin_id='760' AND source_name='4FGL J2209.8-5028' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 02:41:09 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 42566: <4FGL_J2209.8-5028_weekly_bin760> in cluster <slac> Done

Job <4FGL_J2209.8-5028_weekly_bin760> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Feb 28 02:30:20 2023
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 02:30:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 02:30:21 2023
Terminated at Tue Feb 28 02:41:09 2023
Results reported at Tue Feb 28 02:41:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_weekly_bin760 332.474 -50.4702 698630401 699235201 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 :                                   507.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            649 sec.

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

