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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1745
RA = 332.474, Dec = -50.4702
tmin = 691632001, tmax = 691891201
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='657647', job_status='RUN', time_executed='2022-12-05 01:26:21.517625', time_epoch_executed='1670232381.52' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/657647

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/657647/ft1_4FGL_J2209.8-5028_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/657647/ft2_4FGL_J2209.8-5028_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/657647/ft1_4FGL_J2209.8-5028_daily_bin1745.fits outfile=/scratch/kocevski/657647/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1745.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.36
user 2.15
sys 0.19

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

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

Number of photons that the gtmktime cut: 595

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/657647/ft1_filtered_4FGL_J2209.8-5028_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/657647/ft2_4FGL_J2209.8-5028_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/657647/ltcube_691632001_691891201_4FGL_J2209.8-5028_daily_bin1745.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/657647/ft2_4FGL_J2209.8-5028_daily_bin1745.fits
.....................!
real 12.65
user 12.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/657647/ft1_filtered_4FGL_J2209.8-5028_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/657647/ft2_4FGL_J2209.8-5028_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/657647/ltcube_691632001_691891201_4FGL_J2209.8-5028_daily_bin1745.fits outfile=/scratch/kocevski/657647/expmap_691632001_691891201_4FGL_J2209.8-5028_daily_bin1745.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/657647/ltcube_691632001_691891201_4FGL_J2209.8-5028_daily_bin1745.fits
.....................!
real 190.73
user 185.16
sys 5.22

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/657647/ft1_filtered_4FGL_J2209.8-5028_daily_bin1745.fits scfile=/scratch/kocevski/657647/ft2_4FGL_J2209.8-5028_daily_bin1745.fits outfile=/scratch/kocevski/657647/cmap_691632001_691891201_4FGL_J2209.8-5028_daily_bin1745.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/657647/ft1_filtered_4FGL_J2209.8-5028_daily_bin1745.fits scfile=/scratch/kocevski/657647/ft2_4FGL_J2209.8-5028_daily_bin1745.fits outfile=/scratch/kocevski/657647/cmap_HighResolution_691632001_691891201_4FGL_J2209.8-5028_daily_bin1745.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/657647/ft1_filtered_4FGL_J2209.8-5028_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/657647/ft2_4FGL_J2209.8-5028_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/657647/Model_4FGL_J2209.8-5028_daily_bin1745.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/657647/ft1_filtered_4FGL_J2209.8-5028_daily_bin1745.fits.....................!
real 51.58
user 48.81
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.041       1.0000          .0000       .10000E+07
     2 'Prefactor '    2.6515       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.850       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.4906       1.0000          .0000       .10000E+07
     5 'Prefactor '    .30080E-02   1.0000          .0000       .10000E+07
     6 'norm      '    24.286       1.0000          .0000       .10000E+07
     7 'Prefactor '    8.1331       1.0000          .0000       .10000E+07
     8 'Prefactor '    18.233       1.0000          .0000       .10000E+07
     9 'Prefactor '    .36568E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    15.798       1.0000          .0000       .10000E+07
    11 'Prefactor '    .83980E-01   1.0000          .0000       .10000E+07
    12 'norm      '    .88294E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    7.7349       1.0000          .0000       .10000E+07
    14 'Prefactor '    .52384E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .58842E-08   1.0000          .0000       .10000E+07
    16 'Prefactor '    8.0288       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12002E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .39755E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    3.9812       1.0000          .0000       .10000E+07
    20 'norm      '    .32705E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    .87222       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2034       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=   6492.638     FROM MIGRAD    STATUS=CONVERGED    183 CALLS     1766 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.169        24.232        .68157E-07    .34734E-01
   2  Prefactor     2.6866        7.4143       -.23363E-07    .33467E-03
   3  Prefactor     21.325        31.693        .44663E-06   -.94316E-01
   4  Prefactor     5.1031        10.113        .17000E-06   -.84818E-03
   5  Prefactor     .42322E-06    20.066        .47544E-07** at limit **
   6  norm          24.340        7.6997       -.66785E-08    .85344E-02
   7  Prefactor     8.3262        12.386       -.22928E-08   -.33194E-03
   8  Prefactor     17.088        19.852       -.58943E-07    .15754E-01
   9  Prefactor     .83611E-04    350.32        .30613E-05** at limit **
  10  Prefactor     15.754        6.7296       -.34961E-07   -.33524E-02
  11  Prefactor     .11102E-09    97.747        .44982E-07** at limit **
  12  norm          .18558E-04    22.353        .13005E-07** at limit **
  13  Prefactor     7.7190        5.0388        .58928E-07    .17815E-02
  14  Prefactor     .26726E-05    23.242        .68218E-07** at limit **
  15  Prefactor      .0000        1.2378        .37865E-07** at limit **
  16  Prefactor     8.2237        17.746       -.12267E-06   -.24792E-01
  17  Prefactor      .0000        2.2120       -.14407E-07** at limit **
  18  Prefactor     .77716E-09    56.699        .27176E-06** at limit **
  19  Prefactor     3.9709        11.814       -.53427E-07   -.95498E-04
  20  norm          .16653E-09    2.9124        .16340E-07** at limit **
  21  Normalizat    .87363        .23920        .10463E-05   -.76645E-04
  22  Prefactor     1.2038        .18831       -.15697E-05   -.17005E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1689
  Prefactor  = 2.68662
  Prefactor  = 21.3255
  Prefactor  = 5.10311
  Prefactor  = 4.23217e-07
  norm       = 24.3397
  Prefactor  = 8.32624
  Prefactor  = 17.0884
  Prefactor  = 8.36115e-05
  Prefactor  = 15.7542
  Prefactor  = 1.11022e-10
  norm       = 1.85582e-05
  Prefactor  = 7.71898
  Prefactor  = 2.67258e-06
  Prefactor  = 0
  Prefactor  = 8.22372
  Prefactor  = 0
  Prefactor  = 7.77156e-10
  Prefactor  = 3.97094
  norm       = 1.66533e-10
  Normalizat = 0.873627
  Prefactor  = 1.20376
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.638     FROM HESSE     STATUS=OK           402 CALLS     2168 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.169        31.477        .28844E-03   -1.5641    
   2  Prefactor     2.6866        7.4775        .62579E-03   -1.5675    
   3  Prefactor     21.325        44.500        .21399E-03   -1.5616    
   4  Prefactor     5.1031        64.554        .42856E-03   -1.5663    
   5  Prefactor     .42322E-06    20.085        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          24.340        8.0611        .20297E-03   -1.5609    
   7  Prefactor     8.3262        12.438        .35132E-03   -1.5650    
   8  Prefactor     17.088        31.292        .23428E-03   -1.5625    
   9  Prefactor     .83611E-04    7.5781        .63369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.754        6.7728        .25172E-03   -1.5629    
  11  Prefactor     .11102E-09    97.932        .14381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .18558E-04    33.321        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.7190        5.0255        .36032E-03   -1.5652    
  14  Prefactor     .26726E-05    24.873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        1.2402        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.2237        17.901        .35361E-03   -1.5651    
  17  Prefactor      .0000        2.2141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .77716E-09    55.210        .15975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9709        11.825        .50524E-03   -1.5668    
  20  norm          .16653E-09    2.9183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .87363        .20571        .69763E-01   -.97393    
  22  Prefactor     1.2038        .15982        .49425E-01   -.86216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65911e-06
Minuit parameter uncertainties:
  1  31.4779
  2  7.47755
  3  44.5012
  4  36.3008
  5  0.00583102
  6  8.06108
  7  12.4376
  8  31.2927
  9  0.0503434
  10  6.77284
  11  0.000221432
  12  0.0497345
  13  5.02547
  14  0.0163066
  15  7.06431e-06
  16  17.9012
  17  1.29663e-05
  18  0.000416794
  19  11.8253
  20  4.44818e-05
  21  0.205899
  22  0.159881
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.110e-10  2.214e-04  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.204e+00  1.599e-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.736e-01  2.059e-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: 7.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/657647/likelihoodResults_691632001_691891201_4FGL_J2209.8-5028_daily_bin1745.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) = 6492.64331101
delta logL = -0.00488689752819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6492.63842593
delta logL = -1.81454743142e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13433E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.4629       1.0000          .0000       10.000    
     3 'Normalizat'    .87371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2035       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=   6492.638     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      268 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60507E-08    6.5842        .42118E-03** at limit **
   2  Index         .68559        9.5801        .23668       -.15371E-08
   3  Normalizat    .87362        .34902E-02    .69763E-01   -.12944E-03
   4  Prefactor     1.2038        .28635E-02    .49425E-01   -.14215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.05072e-09
  Index      = 0.685592
  Normalizat = 0.873625
  Prefactor  = 1.20376
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.638     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      295 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60507E-08    21.946        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .68559        5.9948        .94673E-01   -1.0409    
   3  Normalizat    .87362        .63671E-02    .30867E-03   -.97393    
   4  Prefactor     1.2038        .52311E-02    .21849E-03   -.86216    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.51672e-11
Minuit parameter uncertainties:
  1  0.000728761
  2  33135.6
  3  0.00636712
  4  0.00523109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/657647': 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) = 6492.63842412
delta logL = -2.37378117163e-10

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.051e-09  7.288e-04  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  6.856e-01  3.314e+04  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.204e+00  5.231e-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.736e-01  6.367e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/657647/cmap_HighResolution_691632001_691891201_4FGL_J2209.8-5028_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.12e-03', job_status='DONE', photon_flux_upper_limit='7.94e-08', time_completed='2022-12-05 01:36:42.739535', job_id='657647', GAL2='1.20', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1670233002.74', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-2.37e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1745' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:36:42 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 657647: <4FGL_J2209.8-5028_daily_bin1745> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1745> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec  5 01:25:15 2022
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 01:25:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 01:25:17 2022
Terminated at Mon Dec  5 01:36:43 2022
Results reported at Mon Dec  5 01:36:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1745 332.474 -50.4702 691632001 691891201 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 :                                   622.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   686 sec.
    Turnaround time :                            688 sec.

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

