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


Performing analysis on: 4FGL_J2209.8-5028_weekly_bin754
RA = 332.474, Dec = -50.4702
tmin = 695001601, tmax = 695606401
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='979984', job_status='RUN', time_executed='2023-01-17 02:42:11.367028', time_epoch_executed='1673952131.37' WHERE source_name='4FGL J2209.8-5028' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/979984

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/979984/ft1_4FGL_J2209.8-5028_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/979984/ft2_4FGL_J2209.8-5028_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/979984/ft1_4FGL_J2209.8-5028_weekly_bin754.fits outfile=/scratch/kocevski/979984/ft1_filteredMKT_4FGL_J2209.8-5028_weekly_bin754.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=695001601.0 tmax=695606401.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 5.72
user 5.37
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/979984/ft2_4FGL_J2209.8-5028_weekly_bin754.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/979984/ft1_filteredMKT_4FGL_J2209.8-5028_weekly_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/979984/ft1_filtered_4FGL_J2209.8-5028_weekly_bin754.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.55
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 983

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/979984/ft1_filtered_4FGL_J2209.8-5028_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/979984/ft2_4FGL_J2209.8-5028_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/979984/ltcube_695001601_695606401_4FGL_J2209.8-5028_weekly_bin754.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/979984/ft2_4FGL_J2209.8-5028_weekly_bin754.fits
.....................!
real 34.22
user 33.75
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/979984/ft1_filtered_4FGL_J2209.8-5028_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/979984/ft2_4FGL_J2209.8-5028_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/979984/ltcube_695001601_695606401_4FGL_J2209.8-5028_weekly_bin754.fits outfile=/scratch/kocevski/979984/expmap_695001601_695606401_4FGL_J2209.8-5028_weekly_bin754.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/979984/ltcube_695001601_695606401_4FGL_J2209.8-5028_weekly_bin754.fits
.....................!
real 192.41
user 185.82
sys 5.42

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/979984/ft1_filtered_4FGL_J2209.8-5028_weekly_bin754.fits scfile=/scratch/kocevski/979984/ft2_4FGL_J2209.8-5028_weekly_bin754.fits outfile=/scratch/kocevski/979984/cmap_695001601_695606401_4FGL_J2209.8-5028_weekly_bin754.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.60
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/979984/ft1_filtered_4FGL_J2209.8-5028_weekly_bin754.fits scfile=/scratch/kocevski/979984/ft2_4FGL_J2209.8-5028_weekly_bin754.fits outfile=/scratch/kocevski/979984/cmap_HighResolution_695001601_695606401_4FGL_J2209.8-5028_weekly_bin754.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.65
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/979984/ft1_filtered_4FGL_J2209.8-5028_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/979984/ft2_4FGL_J2209.8-5028_weekly_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/979984/Model_4FGL_J2209.8-5028_weekly_bin754.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/979984/ft1_filtered_4FGL_J2209.8-5028_weekly_bin754.fits.....................!
real 74.39
user 72.88
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.007       1.0000          .0000       .10000E+07
     2 'Prefactor '    11.272       1.0000          .0000       .10000E+07
     3 'Prefactor '    .35993E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .22525E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.5941       1.0000          .0000       .10000E+07
     6 'norm      '    14.775       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.1348       1.0000          .0000       .10000E+07
     8 'Prefactor '    19.574       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.1947       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.5959       1.0000          .0000       .10000E+07
    11 'Prefactor '    .25439E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .15220E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.6360       1.0000          .0000       .10000E+07
    14 'Prefactor '    .14545E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18279E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .55178E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .19050E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .14719E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .18807E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .31530E-07   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2127       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1260       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=   10704.98     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1781 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.010        5.4059        .50057E-06    .34971E-01
   2  Prefactor     11.266        10.695       -.63990E-06   -.53431E-02
   3  Prefactor     .83267E-09    10.318        .87037E-06** at limit **
   4  Prefactor      .0000        42.039       -.31083E-06** at limit **
   5  Prefactor     1.5973        4.4208        .14901E-05   -.75091E-03
   6  norm          14.867        5.7196        .16954E-06    .35992E-02
   7  Prefactor     2.1492        9.3532       -.23547E-05   -.15838E-01
   8  Prefactor     19.869        39.568       -.36013E-05    .79390E-02
   9  Prefactor     3.1683        9.3472        .17238E-05   -.40707E-03
  10  Prefactor     6.6127        3.9605       -.39725E-08    .12059E-02
  11  Prefactor     .10547E-08    167.56       -.30959E-05** at limit **
  12  norm           .0000        4.4242        .14059E-05** at limit **
  13  Prefactor     1.6324        2.9491        .43941E-07   -.58449E-03
  14  Prefactor     .16653E-09    32.076       -.36898E-05** at limit **
  15  Prefactor      .0000        5.0525        .12760E-05** at limit **
  16  Prefactor     .29587E-07    4.9033       -.15974E-05** at limit **
  17  Prefactor      .0000        2.6130        .20007E-09** at limit **
  18  Prefactor     .76161E-07    6.4935        .48765E-06** at limit **
  19  Prefactor     .15155E-07    3.8851       -.10740E-05** at limit **
  20  norm           .0000        1.1659       -.64995E-06** at limit **
  21  Normalizat    1.2123        .19007        .72953E-05   -.97227E-04
  22  Prefactor     1.1259        .15318       -.93930E-05   -.14259E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0102
  Prefactor  = 11.2664
  Prefactor  = 8.32667e-10
  Prefactor  = 0
  Prefactor  = 1.59731
  norm       = 14.8669
  Prefactor  = 2.14918
  Prefactor  = 19.8686
  Prefactor  = 3.16826
  Prefactor  = 6.61265
  Prefactor  = 1.05471e-09
  norm       = 0
  Prefactor  = 1.63238
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 2.95874e-08
  Prefactor  = 0
  Prefactor  = 7.61613e-08
  Prefactor  = 1.51545e-08
  norm       = 0
  Normalizat = 1.21231
  Prefactor  = 1.1259
 **********
 **   18 **HESSE 
 **********

 FCN=   10704.98     FROM HESSE     STATUS=OK           388 CALLS     2169 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.010        27.573        .30174E-03   -1.5642    
   2  Prefactor     11.266        10.751        .29815E-03   -1.5641    
   3  Prefactor     .83267E-09    10.653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        40.224        .16876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5973        4.4543        .83984E-03   -1.5683    
   6  norm          14.867        5.8082        .26031E-03   -1.5631    
   7  Prefactor     2.1492        22.425        .70527E-03   -1.5679    
   8  Prefactor     19.869        41.276        .22610E-03   -1.5619    
   9  Prefactor     3.1683        9.5692        .56664E-03   -1.5672    
  10  Prefactor     6.6127        3.9771        .39050E-03   -1.5657    
  11  Prefactor     .10547E-08    167.60        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        4.3652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6324        2.9737        .82609E-03   -1.5682    
  14  Prefactor     .16653E-09    32.100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        5.0375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .29587E-07    9.2609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        2.6059        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .76161E-07    9.1056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .15155E-07    9.8123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        1.1672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2123        .15913        .62059E-01   -.86223    
  22  Prefactor     1.1259        .12804        .53403E-01   -.88643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2305e-06
Minuit parameter uncertainties:
  1  27.5735
  2  10.7508
  3  0.000188746
  4  4.97259e-05
  5  4.45436
  6  5.8082
  7  13.8845
  8  41.2761
  9  9.56926
  10  3.97707
  11  0.000832974
  12  2.14011e-05
  13  2.97367
  14  0.00013832
  15  1.41944e-05
  16  0.00104738
  17  6.15216e-06
  18  0.00166533
  19  0.000771844
  20  3.87724e-06
  21  0.159193
  22  0.128075
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.055e-09  8.330e-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.126e+00  1.281e-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.212e+00  1.592e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/979984/likelihoodResults_695001601_695606401_4FGL_J2209.8-5028_weekly_bin754.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10704.9819694
delta logL = -0.002910722862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10702.9532458
delta logL = 2.02581288984

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32395       1.0000          .0000       .10000E+07
     2 'Index     '    5.4213       1.0000          .0000       10.000    
     3 'Normalizat'    1.0987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1825       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=   10702.95     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      265 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32195        1.9067        .70476E-03    .17963E-01
   2  Index         5.4239        1.5956        .10304        .25483E-03
   3  Normalizat    1.0987        .37956E-01    .64624E-01    .14428E-04
   4  Prefactor     1.1825        .31726E-01    .52244E-01    .12667E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.321952
  Index      = 5.42387
  Normalizat = 1.09871
  Prefactor  = 1.18249
 **********
 **   18 **HESSE 
 **********

 FCN=   10702.95     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      300 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32195        4.8789        .32008E-04   -1.5697    
   2  Index         5.4239        3.0190        .37778E-02    .84876E-01
   3  Normalizat    1.0987        .14196        .28587E-03   -.89793    
   4  Prefactor     1.1825        .11669        .23098E-03   -.86872    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.30052e-07
Minuit parameter uncertainties:
  1  2.50661
  2  3.24326
  3  0.142005
  4  0.116711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/979984': 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) = 10702.9532448
delta logL = 2.02581391779

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  3.220e-01  2.507e+00  0.000e+00  1.000e+06 ( 1.000e-14)
348        Index:  5.424e+00  3.243e+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.182e+00  1.167e-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.099e+00  1.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 332.474 -50.470
Photon Index (Free Index): 5.42 +/- 3.24
Photon Flux (Free Index): 1.00e-07 +/- 5.36e-08
Energy Flux (Free Index): 1.29e-05 +/- 7.70e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/979984/cmap_HighResolution_695001601_695606401_4FGL_J2209.8-5028_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-03', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='2.03e+00', photon_flux2='1.00e-07', job_status='DONE', time_completed='2023-01-17 02:56:08.719130', photon_index_error2='3.24', photon_index2='5.42', ts='-0.00', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='6.53e-08', energy_flux_error2='7.70e-06', EG='1.21', time_epoch_completed='1673952968.72', return_code='0', job_id='979984', GAL2='1.18', EG2='1.10', return_code2='102', photon_flux_error2='5.36e-08', ts2='4.35', photon_index='2.37' WHERE bin_id='754' AND source_name='4FGL J2209.8-5028' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 02:56:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 979984: <4FGL_J2209.8-5028_weekly_bin754> in cluster <slac> Done

Job <4FGL_J2209.8-5028_weekly_bin754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jan 17 02:40:20 2023
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 02:40:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 02:40:23 2023
Terminated at Tue Jan 17 02:56:09 2023
Results reported at Tue Jan 17 02:56:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_weekly_bin754 332.474 -50.4702 695001601 695606401 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 :                                   837.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            949 sec.

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

