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 20 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1670
RA = 330.832, Dec = -50.1512
tmin = 672192001, tmax = 672451201
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='875902', job_status='RUN', time_executed='2022-04-24 00:48:34.547026', time_epoch_executed='1650786514.55' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875902

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875902/ft1_4FGL_J2203.3-5009_daily_bin1670.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875902/ft2_4FGL_J2203.3-5009_daily_bin1670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875902/ft1_4FGL_J2203.3-5009_daily_bin1670.fits outfile=/scratch/kocevski/875902/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1670.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=672192001.0 tmax=672451201.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.17
user 4.88
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/875902/ft2_4FGL_J2203.3-5009_daily_bin1670.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875902/ft2_4FGL_J2203.3-5009_daily_bin1670.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/875902/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1670.fits evtable="EVENTS" outfile="/scratch/kocevski/875902/ft1_filtered_4FGL_J2203.3-5009_daily_bin1670.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.33
sys 0.16

Number of photons that the gtmktime cut: 664

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875902/ft1_filtered_4FGL_J2203.3-5009_daily_bin1670.fits" evtable="EVENTS" scfile=/scratch/kocevski/875902/ft2_4FGL_J2203.3-5009_daily_bin1670.fits sctable="SC_DATA" outfile=/scratch/kocevski/875902/ltcube_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.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/875902/ft2_4FGL_J2203.3-5009_daily_bin1670.fits
.....................!
real 15.96
user 15.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875902/ft1_filtered_4FGL_J2203.3-5009_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/875902/ft2_4FGL_J2203.3-5009_daily_bin1670.fits sctable="SC_DATA" expcube=/scratch/kocevski/875902/ltcube_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.fits outfile=/scratch/kocevski/875902/expmap_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.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/875902/ltcube_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.fits
.....................!
real 195.24
user 189.53
sys 5.32

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J2203.3-5009 @ 330.832 -50.1512

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/875902/ft1_filtered_4FGL_J2203.3-5009_daily_bin1670.fits scfile=/scratch/kocevski/875902/ft2_4FGL_J2203.3-5009_daily_bin1670.fits outfile=/scratch/kocevski/875902/cmap_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.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=330.832 yref=-50.1512 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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875902/ft1_filtered_4FGL_J2203.3-5009_daily_bin1670.fits scfile=/scratch/kocevski/875902/ft2_4FGL_J2203.3-5009_daily_bin1670.fits outfile=/scratch/kocevski/875902/cmap_HighResolution_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.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=330.832 yref=-50.1512 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.57
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875902/ft1_filtered_4FGL_J2203.3-5009_daily_bin1670.fits evtable="EVENTS" scfile=/scratch/kocevski/875902/ft2_4FGL_J2203.3-5009_daily_bin1670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875902/Model_4FGL_J2203.3-5009_daily_bin1670.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/875902/ft1_filtered_4FGL_J2203.3-5009_daily_bin1670.fits.....................!
real 53.23
user 51.93
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875902/ft1_filtered_4FGL_J2203.3-5009_daily_bin1670.fits', '/scratch/kocevski/875902/ft2_4FGL_J2203.3-5009_daily_bin1670.fits', expMap='/scratch/kocevski/875902/expmap_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.fits', expCube='/scratch/kocevski/875902/ltcube_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875902/Model_4FGL_J2203.3-5009_daily_bin1670.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2203.3-5009'

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.433e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.739e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/875902/ft1_filtered_4FGL_J2203.3-5009_daily_bin1670.fits
Spacecraft file(s): /scratch/kocevski/875902/ft2_4FGL_J2203.3-5009_daily_bin1670.fits
Exposure map: /scratch/kocevski/875902/expmap_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.fits
Exposure cube: /scratch/kocevski/875902/ltcube_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875902/Model_4FGL_J2203.3-5009_daily_bin1670.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) = 7136.95870215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6736       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4245       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6622       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0539       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.708       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.3097       1.0000         .10000E-03   10000.    
     9 'norm      '    11.813       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10289E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8276       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7467       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11128E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.867       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    51.311       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8150       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.484       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96635       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79480       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7136.939     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3088 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6733        2.4769        .71953E-07   -.46626E-04
   2  Prefactor     2.4215        23.616        .55810E-06   -.30127E-03
   3  norm          2.6620        1.4913       -.63062E-08   -.10041E-03
   4  Prefactor     .10000E-03    18.765       -.64729E-06** at limit **
   5  Prefactor     5.0537        5.5649        .27981E-05   -.16234E-04
   6  Prefactor     27.708        19.963        .15337E-06   -.17242E-04
   7  Prefactor     .10000E-03    13.036       -.19362E-05** at limit **
   8  Prefactor     3.3100        2.9306       -.72762E-07   -.12931E-03
   9  norm          11.813        4.6329        .11765E-05    .82585E-06
  10  Prefactor     .10000E-03    1.6676        .81894E-08** at limit **
  11  Prefactor     .10000E-03    31.015        .13062E-04** at limit **
  12  Prefactor     1.8248        2.7370        .36178E-06   -.20034E-02
  13  Prefactor     3.7470        3.4140        .40413E-07   -.69129E-04
  14  Prefactor     .10000E-03    80.921       -.70315E-05** at limit **
  15  norm          10.866        7.9045       -.77829E-07   -.59071E-05
  16  Prefactor     .10000E-03    1.5948        .61013E-07** at limit **
  17  Prefactor     .10000E-03    17.213        .11600E-04** at limit **
  18  Prefactor     .10000E-03    4.9968       -.95108E-07** at limit **
  19  Prefactor     51.319        25.736        .24221E-05    .34638E-04
  20  Prefactor     .10000E-03    3.1146       -.44529E-07** at limit **
  21  Prefactor     .10000E-03    20.734       -.15060E-04** at limit **
  22  Prefactor     1.8143        6.0677       -.10389E-05   -.11179E-03
  23  Prefactor     18.486        24.439        .74134E-07    .45648E-05
  24  Prefactor     .10000E-03    28.257       -.36949E-05** at limit **
  25  Normalizat    .96626        .15691       -.13075E-05   -.43802E-04
  26  Prefactor     .79491        .11951       -.34962E-06   -.11303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.67331
  Prefactor  = 2.42151
  norm       = 2.66205
  Prefactor  = 0.0001
  Prefactor  = 5.05366
  Prefactor  = 27.7079
  Prefactor  = 0.0001
  Prefactor  = 3.30998
  norm       = 11.8129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.82485
  Prefactor  = 3.747
  Prefactor  = 0.0001
  norm       = 10.8658
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.3195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.81429
  Prefactor  = 18.4858
  Prefactor  = 0.0001
  Normalizat = 0.966257
  Prefactor  = 0.794913
 **********
 **   18 **HESSE 
 **********

 FCN=   7136.939     FROM HESSE     STATUS=OK           460 CALLS     3548 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6733        2.4485        .15539E-03   -1.5449    
   2  Prefactor     2.4215        26.349        .13142E-02   -1.5397    
   3  norm          2.6620        1.4891        .74650E-04   -1.5382    
   4  Prefactor     .10000E-03    18.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.0537        5.5560        .17886E-03   -1.5258    
   6  Prefactor     27.708        19.962        .76108E-04   -1.4655    
   7  Prefactor     .10000E-03    13.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.3100        2.9233        .13077E-03   -1.5344    
   9  norm          11.813        4.6320        .10722E-03   -1.5020    
  10  Prefactor     .10000E-03    1.6705        .10654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8248        6.8793        .15438E-02   -1.5438    
  13  Prefactor     3.7470        3.4062        .14157E-03   -1.5321    
  14  Prefactor     .10000E-03    81.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.866        7.9039        .12154E-03   -1.5049    
  16  Prefactor     .10000E-03    1.6360        .20818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     51.319        25.902        .55988E-04   -1.4274    
  20  Prefactor     .10000E-03    3.1257        .14553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.8143        6.0857        .31005E-03   -1.5439    
  23  Prefactor     18.486        24.443        .93159E-04   -1.4848    
  24  Prefactor     .10000E-03    28.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96626        .18413        .24350E-03   -.94170    
  26  Prefactor     .79491        .13928        .20744E-03   -.99916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13122e-08
Minuit parameter uncertainties:
  1  2.44862
  2  15.9842
  3  1.48912
  4  9.41602e-06
  5  5.5566
  6  19.9664
  7  1.38099e-05
  8  2.92342
  9  4.63218
  10  1.38444e-06
  11  4.15689e-05
  12  6.88225
  13  3.40636
  14  5.12984e-05
  15  7.90463
  16  4.82492e-06
  17  6.03001e-05
  18  1.9259e-05
  19  25.9081
  20  1.10706e-05
  21  7.39862e-05
  22  6.08779
  23  24.4559
  24  5.14527e-05
  25  0.184249
  26  0.13934
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.825e+00  6.882e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.739e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  7.949e-01  1.393e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  9.663e-01  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 8.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875902/likelihoodResults_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.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) = 7136.88397866
delta logL = 0.0547535233645

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7136.88156474
delta logL = 0.0571674452476

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5640       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2141       1.0000          .0000       10.000    
     3 'Normalizat'    .96871       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79120       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7136.882     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      322 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5511        8.6346        .10704E-02    .23799E-03
   2  Index         2.2115        1.1726        .16860E-01    .23426E-04
   3  Normalizat    .96916        .17455        .24316E-03   -.24167E-03
   4  Prefactor     .79094        .13660        .20790E-03   -.37770E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55107
  Index      = 2.21147
  Normalizat = 0.969162
  Prefactor  = 0.790936
 **********
 **   18 **HESSE 
 **********

 FCN=   7136.882     FROM HESSE     STATUS=OK            27 CALLS      349 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5511        8.5832        .21408E-03   -1.5331    
   2  Index         2.2115        1.1673        .67439E-03   -.59162    
   3  Normalizat    .96916        .17472        .97264E-05   -.94071    
   4  Prefactor     .79094        .13666        .41580E-04   -1.0006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60399e-10
Minuit parameter uncertainties:
  1  8.58615
  2  1.18329
  3  0.174822
  4  0.136721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875902': 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) = 7136.88155844
delta logL = 0.0571737452738

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  3.551e+00  8.586e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.211e+00  1.183e+00  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  5.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  7.909e-01  1.367e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  9.692e-01  1.748e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 330.832 -50.151

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/875902/cmap_HighResolution_672192001_672451201_4FGL_J2203.3-5009_daily_bin1670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', job_status='DONE', photon_flux_upper_limit='8.55e-08', time_completed='2022-04-24 01:02:13.622413', job_id='875902', GAL2='0.79', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1650787333.62', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='5.72e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1670' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr 24 01:02:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 875902: <4FGL_J2203.3-5009_daily_bin1670> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1670> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Apr 24 00:45:45 2022
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 00:48:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 00:48:04 2022
Terminated at Sun Apr 24 01:02:14 2022
Results reported at Sun Apr 24 01:02:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1670 330.832 -50.1512 672192001 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2203.3-5009 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   821.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            989 sec.

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

