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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1746
RA = 332.474, Dec = -50.4702
tmin = 691891201, tmax = 692150401
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='740658', job_status='RUN', time_executed='2022-12-08 01:46:46.786388', time_epoch_executed='1670492806.79' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/740658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/740658/ft1_4FGL_J2209.8-5028_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/740658/ft2_4FGL_J2209.8-5028_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/740658/ft1_4FGL_J2209.8-5028_daily_bin1746.fits outfile=/scratch/kocevski/740658/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1746.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.75
user 4.48
sys 0.23

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

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

Number of photons that the gtmktime cut: 463

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/740658/ft1_filtered_4FGL_J2209.8-5028_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/740658/ft2_4FGL_J2209.8-5028_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/740658/ltcube_691891201_692150401_4FGL_J2209.8-5028_daily_bin1746.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/740658/ft2_4FGL_J2209.8-5028_daily_bin1746.fits
.....................!
real 12.20
user 11.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/740658/ft1_filtered_4FGL_J2209.8-5028_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/740658/ft2_4FGL_J2209.8-5028_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/740658/ltcube_691891201_692150401_4FGL_J2209.8-5028_daily_bin1746.fits outfile=/scratch/kocevski/740658/expmap_691891201_692150401_4FGL_J2209.8-5028_daily_bin1746.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/740658/ltcube_691891201_692150401_4FGL_J2209.8-5028_daily_bin1746.fits
.....................!
real 192.58
user 186.10
sys 5.11

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/740658/ft1_filtered_4FGL_J2209.8-5028_daily_bin1746.fits scfile=/scratch/kocevski/740658/ft2_4FGL_J2209.8-5028_daily_bin1746.fits outfile=/scratch/kocevski/740658/cmap_691891201_692150401_4FGL_J2209.8-5028_daily_bin1746.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.65
user 0.35
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/740658/ft1_filtered_4FGL_J2209.8-5028_daily_bin1746.fits scfile=/scratch/kocevski/740658/ft2_4FGL_J2209.8-5028_daily_bin1746.fits outfile=/scratch/kocevski/740658/cmap_HighResolution_691891201_692150401_4FGL_J2209.8-5028_daily_bin1746.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.59
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/740658/ft1_filtered_4FGL_J2209.8-5028_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/740658/ft2_4FGL_J2209.8-5028_daily_bin1746.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/740658/Model_4FGL_J2209.8-5028_daily_bin1746.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/740658/ft1_filtered_4FGL_J2209.8-5028_daily_bin1746.fits.....................!
real 43.73
user 42.15
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10834       1.0000          .0000       .10000E+07
     2 'Prefactor '    .16597E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    126.04       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.9969       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.7685       1.0000          .0000       .10000E+07
     6 'norm      '    28.050       1.0000          .0000       .10000E+07
     7 'Prefactor '    22.391       1.0000          .0000       .10000E+07
     8 'Prefactor '    .69374       1.0000          .0000       .10000E+07
     9 'Prefactor '    .85654E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    13.962       1.0000          .0000       .10000E+07
    11 'Prefactor '    10.869       1.0000          .0000       .10000E+07
    12 'norm      '    2.2082       1.0000          .0000       .10000E+07
    13 'Prefactor '    .25968E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    43.492       1.0000          .0000       .10000E+07
    15 'Prefactor '    .22969E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.9391       1.0000          .0000       .10000E+07
    17 'Prefactor '    .41245E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    29.209       1.0000          .0000       .10000E+07
    19 'Prefactor '    3.1673       1.0000          .0000       .10000E+07
    20 'norm      '    .10986E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    .78189       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1933       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=   5181.163     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1840 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49960E-08    43.798       -.77538E-06** at limit **
   2  Prefactor     .13822E-07    20.916       -.44653E-06** at limit **
   3  Prefactor     125.50        36.170       -.42119E-05    .11027    
   4  Prefactor     3.8466        41.458       -.92498E-05   -.12753E-01
   5  Prefactor     2.7497        5.6394       -.21507E-06   -.18027E-02
   6  norm          28.069        9.5684        .57877E-06   -.32320E-02
   7  Prefactor     22.394        19.606        .45237E-05    .24818E-01
   8  Prefactor     .28630E-04    258.03        .21573E-05** at limit **
   9  Prefactor     .10381E-07    15.308       -.28822E-06** at limit **
  10  Prefactor     14.024        6.9366        .11491E-06   -.11037E-02
  11  Prefactor     10.543        22.369       -.98725E-05    .48769E-01
  12  norm          2.2266        5.8614       -.36224E-07    .35546E-03
  13  Prefactor      .0000        2.3712        .10561E-06** at limit **
  14  Prefactor     43.385        2.1172        .16656E-06    .25857E-02
  15  Prefactor     .55511E-10    3.8859        .43423E-06** at limit **
  16  Prefactor     4.9533        9.0325       -.73789E-06   -.31953E-02
  17  Prefactor      .0000        2.1645        .21043E-06** at limit **
  18  Prefactor     28.867        32.819        .69984E-05    .10606    
  19  Prefactor     3.1792        11.900       -.79945E-06    .53784E-03
  20  norm          .55511E-10    3.0068       -.14028E-07** at limit **
  21  Normalizat    .78235        .27032       -.91747E-06   -.42986E-03
  22  Prefactor     1.1934        .21372        .10272E-04   -.55872E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.996e-09
  Prefactor  = 1.38223e-08
  Prefactor  = 125.498
  Prefactor  = 3.84656
  Prefactor  = 2.74971
  norm       = 28.069
  Prefactor  = 22.3942
  Prefactor  = 2.86295e-05
  Prefactor  = 1.03806e-08
  Prefactor  = 14.0236
  Prefactor  = 10.5427
  norm       = 2.22663
  Prefactor  = 0
  Prefactor  = 43.3851
  Prefactor  = 5.55112e-11
  Prefactor  = 4.95333
  Prefactor  = 0
  Prefactor  = 28.8665
  Prefactor  = 3.1792
  norm       = 5.55112e-11
  Normalizat = 0.782355
  Prefactor  = 1.19339
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.163     FROM HESSE     STATUS=OK           396 CALLS     2236 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49960E-08    43.116        .13711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .13822E-07    6.0717        .93736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     125.50        65.443        .89080E-04   -1.5484    
   4  Prefactor     3.8466        45.883        .50422E-03   -1.5669    
   5  Prefactor     2.7497        5.6853        .61141E-03   -1.5675    
   6  norm          28.069        10.035        .18885E-03   -1.5602    
   7  Prefactor     22.394        19.672        .21139E-03   -1.5613    
   8  Prefactor     .28630E-04    269.31        .61218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10381E-07    15.308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.024        6.9691        .26780E-03   -1.5633    
  11  Prefactor     10.543        267.57        .30364E-03   -1.5643    
  12  norm          2.2266        5.8921        .69196E-03   -1.5678    
  13  Prefactor      .0000        2.3629        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     43.385        45.289        .15165E-03   -1.5576    
  15  Prefactor     .55511E-10    3.8741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9533        43.952        .45231E-03   -1.5663    
  17  Prefactor      .0000        2.1628        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.867        39.681        .18506E-03   -1.5601    
  19  Prefactor     3.1792        11.927        .56922E-03   -1.5672    
  20  norm          .55511E-10    3.0128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .78235        .24265        .73583E-01   -1.0073    
  22  Prefactor     1.1934        .18503        .34792E-01   -.86535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03941e-06
Minuit parameter uncertainties:
  1  0.000927628
  2  0.000579236
  3  65.4432
  4  26.5703
  5  5.68533
  6  10.0354
  7  19.6718
  8  0.175623
  9  0.000797617
  10  6.96915
  11  106.229
  12  5.89207
  13  3.05525e-06
  14  45.2893
  15  3.14396e-05
  16  29.5102
  17  4.03779e-06
  18  39.6811
  19  11.927
  20  2.62496e-05
  21  0.242981
  22  0.18513
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.054e+01  1.062e+02  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.193e+00  1.851e-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:  7.824e-01  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/740658/likelihoodResults_691891201_692150401_4FGL_J2209.8-5028_daily_bin1746.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) = 5181.16179314
delta logL = 0.0014707460241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5181.16127659
delta logL = 0.00198729542444

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.0506       1.0000          .0000       .10000E+07
     2 'Index     '    2.5894       1.0000          .0000       10.000    
     3 'Normalizat'    .78066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1939       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=   5181.161     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      261 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6451        1064.3        .33291E-03   -.44701E-04
   2  Index         2.6219        .96219        .50000       -.26113E-05
   3  Normalizat    .78109        .14738E-01    .73637E-01    .88154E-05
   4  Prefactor     1.1939        .11856E-01    .34776E-01   -.12006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.64509
  Index      = 2.6219
  Normalizat = 0.781089
  Prefactor  = 1.1939
 **********
 **   18 **HESSE 
 **********

 FCN=   5181.161     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6451        252.65        .13317E-04   -1.5649    
   2  Index         2.6219        3.4062        .58549E-02   -.49567    
   3  Normalizat    .78109        .26376        .32592E-03   -1.0077    
   4  Prefactor     1.1939        .21110        .21567E-03   -.86519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18292e-11
Minuit parameter uncertainties:
  1  93.4745
  2  3.89618
  3  0.264192
  4  0.21125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/740658': 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): 0
logL (Free Index) = 5181.16123089
delta logL = 0.00203299883378

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  8.645e+00  9.347e+01  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  2.622e+00  3.896e+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.194e+00  2.112e-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:  7.811e-01  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/740658/cmap_HighResolution_691891201_692150401_4FGL_J2209.8-5028_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.22e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2022-12-08 01:56:17.345606', job_id='740658', GAL2='1.19', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1670493377.35', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.03e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1746' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:56:17 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 740658: <4FGL_J2209.8-5028_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1746> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Dec  8 01:45:25 2022
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:45:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:45:28 2022
Terminated at Thu Dec  8 01:56:18 2022
Results reported at Thu Dec  8 01:56:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1746 332.474 -50.4702 691891201 692150401 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 :                                   569.63 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             276.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            653 sec.

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

