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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1767
RA = 332.474, Dec = -50.4702
tmin = 697334401, tmax = 697593601
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='90120', job_status='RUN', time_executed='2023-02-09 01:57:08.166059', time_epoch_executed='1675936628.17' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/90120

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/90120/ft1_4FGL_J2209.8-5028_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/90120/ft2_4FGL_J2209.8-5028_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/90120/ft1_4FGL_J2209.8-5028_daily_bin1767.fits outfile=/scratch/kocevski/90120/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1767.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=697334401.0 tmax=697593601.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.62
user 3.34
sys 0.24

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

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

Number of photons that the gtmktime cut: 553

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/90120/ft1_filtered_4FGL_J2209.8-5028_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/90120/ft2_4FGL_J2209.8-5028_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/90120/ltcube_697334401_697593601_4FGL_J2209.8-5028_daily_bin1767.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/90120/ft2_4FGL_J2209.8-5028_daily_bin1767.fits
.....................!
real 14.60
user 14.12
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/90120/ft1_filtered_4FGL_J2209.8-5028_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/90120/ft2_4FGL_J2209.8-5028_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/90120/ltcube_697334401_697593601_4FGL_J2209.8-5028_daily_bin1767.fits outfile=/scratch/kocevski/90120/expmap_697334401_697593601_4FGL_J2209.8-5028_daily_bin1767.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/90120/ltcube_697334401_697593601_4FGL_J2209.8-5028_daily_bin1767.fits
.....................!
real 194.11
user 188.03
sys 5.40

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/90120/ft1_filtered_4FGL_J2209.8-5028_daily_bin1767.fits scfile=/scratch/kocevski/90120/ft2_4FGL_J2209.8-5028_daily_bin1767.fits outfile=/scratch/kocevski/90120/cmap_697334401_697593601_4FGL_J2209.8-5028_daily_bin1767.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.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/90120/ft1_filtered_4FGL_J2209.8-5028_daily_bin1767.fits scfile=/scratch/kocevski/90120/ft2_4FGL_J2209.8-5028_daily_bin1767.fits outfile=/scratch/kocevski/90120/cmap_HighResolution_697334401_697593601_4FGL_J2209.8-5028_daily_bin1767.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/90120/ft1_filtered_4FGL_J2209.8-5028_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/90120/ft2_4FGL_J2209.8-5028_daily_bin1767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/90120/Model_4FGL_J2209.8-5028_daily_bin1767.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/90120/ft1_filtered_4FGL_J2209.8-5028_daily_bin1767.fits.....................!
real 45.72
user 44.16
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.012       1.0000          .0000       .10000E+07
     2 'Prefactor '    .10175E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .54076E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    35.040       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13240E-03   1.0000          .0000       .10000E+07
     6 'norm      '    16.833       1.0000          .0000       .10000E+07
     7 'Prefactor '    15.487       1.0000          .0000       .10000E+07
     8 'Prefactor '    101.16       1.0000          .0000       .10000E+07
     9 'Prefactor '    4.3458       1.0000          .0000       .10000E+07
    10 'Prefactor '    .78604E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .45853E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .46343E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.9869       1.0000          .0000       .10000E+07
    14 'Prefactor '    .66492E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .92649       1.0000          .0000       .10000E+07
    16 'Prefactor '    14.333       1.0000          .0000       .10000E+07
    17 'Prefactor '    14.995       1.0000          .0000       .10000E+07
    18 'Prefactor '    43.763       1.0000          .0000       .10000E+07
    19 'Prefactor '    .51411E-05   1.0000          .0000       .10000E+07
    20 'norm      '    9.6167       1.0000          .0000       .10000E+07
    21 'Normalizat'    .68590       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2027       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=   5979.220     FROM MIGRAD    STATUS=CONVERGED    186 CALLS     1796 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.100        29.608        .12769E-05    .12410    
   2  Prefactor      .0000        7.1461        .32400E-06** at limit **
   3  Prefactor     .21760E-07    24.380       -.94131E-07** at limit **
   4  Prefactor     35.278        6.7847       -.65506E-06   -.12647E-01
   5  Prefactor      .0000        3.8036       -.12077E-06** at limit **
   6  norm          16.856        6.6929        .82816E-07   -.67584E-03
   7  Prefactor     15.657        15.599        .23671E-06    .30459E-02
   8  Prefactor     103.52        41.121       -.20280E-05    .17471    
   9  Prefactor     4.2445        9.0343       -.51540E-06    .17968E-04
  10  Prefactor      .0000        1.7988       -.75406E-07** at limit **
  11  Prefactor     .16152E-04    201.03        .21530E-06** at limit **
  12  norm          .55511E-10    2.4480        .52225E-06** at limit **
  13  Prefactor     2.9895        3.6488       -.16748E-06    .14260E-02
  14  Prefactor     .38858E-09    16.418       -.71335E-06** at limit **
  15  Prefactor     .93135        2.7822       -.21167E-06    .68004E-03
  16  Prefactor     13.417        22.832        .27720E-05    .47260E-01
  17  Prefactor     15.094        10.963        .10783E-06    .20002E-02
  18  Prefactor     45.782        36.191       -.38415E-06   -.12445    
  19  Prefactor     .11102E-09    5.3155       -.63974E-06** at limit **
  20  norm          9.6244        7.0557        .42293E-07   -.19503E-03
  21  Normalizat    .68531        .22380       -.85249E-05    .11739E-04
  22  Prefactor     1.2015        .17922        .68368E-05   -.15450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.1005
  Prefactor  = 0
  Prefactor  = 2.17604e-08
  Prefactor  = 35.2777
  Prefactor  = 0
  norm       = 16.8562
  Prefactor  = 15.6567
  Prefactor  = 103.525
  Prefactor  = 4.2445
  Prefactor  = 0
  Prefactor  = 1.61521e-05
  norm       = 5.55112e-11
  Prefactor  = 2.9895
  Prefactor  = 3.88578e-10
  Prefactor  = 0.931355
  Prefactor  = 13.417
  Prefactor  = 15.0942
  Prefactor  = 45.7823
  Prefactor  = 1.11022e-10
  norm       = 9.62441
  Normalizat = 0.685305
  Prefactor  = 1.20155
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.220     FROM HESSE     STATUS=OK           386 CALLS     2182 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.100        34.298        .17149E-03   -1.5589    
   2  Prefactor      .0000        7.1343        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .21760E-07    24.450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.278        28.970        .16895E-03   -1.5589    
   5  Prefactor      .0000        3.7693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.856        6.7039        .24384E-03   -1.5626    
   7  Prefactor     15.657        15.623        .25424E-03   -1.5629    
   8  Prefactor     103.52        52.108        .99429E-04   -1.5504    
   9  Prefactor     4.2445        9.2312        .48294E-03   -1.5667    
  10  Prefactor      .0000        1.7969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .16152E-04    209.66        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    2.4535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9895        3.6622        .58715E-03   -1.5673    
  14  Prefactor     .38858E-09    16.427        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .93135        2.8010        .43946E-03   -1.5689    
  16  Prefactor     13.417        24.727        .26430E-03   -1.5635    
  17  Prefactor     15.094        10.972        .25839E-03   -1.5630    
  18  Prefactor     45.782        42.502        .15118E-03   -1.5573    
  19  Prefactor     .11102E-09    5.3176        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          9.6244        7.0566        .32291E-03   -1.5646    
  21  Normalizat    .68531        .20169        .71625E-01   -1.0448    
  22  Prefactor     1.2015        .15864        .34568E-01   -.86284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16144e-06
Minuit parameter uncertainties:
  1  34.2983
  2  1.60137e-05
  3  0.00145817
  4  28.97
  5  8.8986e-06
  6  6.70394
  7  15.6227
  8  52.1079
  9  9.23119
  10  3.56406e-06
  11  0.11639
  12  2.49796e-05
  13  3.66215
  14  0.000155697
  15  2.80096
  16  24.7271
  17  10.9717
  18  42.5023
  19  5.22691e-05
  20  7.0566
  21  0.201906
  22  0.158703
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.615e-05  1.164e-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.202e+00  1.587e-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:  6.853e-01  2.019e-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: 8.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/90120/likelihoodResults_697334401_697593601_4FGL_J2209.8-5028_daily_bin1767.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) = 5979.22210319
delta logL = -0.00231141275708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5979.21823225
delta logL = 0.00155952376008

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3489       1.0000          .0000       .10000E+07
     2 'Index     '    3.1997       1.0000          .0000       10.000    
     3 'Normalizat'    .68318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2022       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=   5979.218     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      302 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3485        277.12        .94195E-03    .15544E-02
   2  Index         3.1968        .67932        .50000        .58725E-05
   3  Normalizat    .68287        .79508E-02    .71741E-01   -.11298E-04
   4  Prefactor     1.2023        .66730E-02    .34579E-01   -.52161E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34849
  Index      = 3.19677
  Normalizat = 0.682873
  Prefactor  = 1.20231
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.218     FROM HESSE     STATUS=OK            31 CALLS      333 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3485        183.42        .37678E-04   -1.5685    
   2  Index         3.1968        6.5847        .65512E-02   -.36896    
   3  Normalizat    .68287        .21420        .31753E-03   -1.0457    
   4  Prefactor     1.2023        .17702        .20516E-03   -.86260    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74891e-10
Minuit parameter uncertainties:
  1  31.4553
  2  6.09273
  3  0.214462
  4  0.177105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/90120': 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) = 5979.21822967
delta logL = 0.00156210600653

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.348e+00  3.146e+01  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  3.197e+00  6.093e+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.202e+00  1.771e-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:  6.829e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/90120/cmap_HighResolution_697334401_697593601_4FGL_J2209.8-5028_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.50e-03', job_status='DONE', photon_flux_upper_limit='8.43e-08', time_completed='2023-02-09 02:07:39.453490', job_id='90120', GAL2='1.20', fit_tolerance='1e-08', EG2='0.68', EG='0.69', time_epoch_completed='1675937259.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.56e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1767' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 02:07:39 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 90120: <4FGL_J2209.8-5028_daily_bin1767> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1767> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Feb  9 01:55:20 2023
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 01:56:48 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 01:56:48 2023
Terminated at Thu Feb  9 02:07:39 2023
Results reported at Thu Feb  9 02:07:39 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1767 332.474 -50.4702 697334401 697593601 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 :                                   629.57 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   651 sec.
    Turnaround time :                            739 sec.

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

