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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1697
RA = 330.832, Dec = -50.1512
tmin = 679190401, tmax = 679449601
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='857670', job_status='RUN', time_executed='2022-07-14 00:38:27.975148', time_epoch_executed='1657784307.98' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857670/ft1_4FGL_J2203.3-5009_daily_bin1697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857670/ft2_4FGL_J2203.3-5009_daily_bin1697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857670/ft1_4FGL_J2203.3-5009_daily_bin1697.fits outfile=/scratch/kocevski/857670/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1697.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=679190401.0 tmax=679449601.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.45
user 3.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857670/ft1_filtered_4FGL_J2203.3-5009_daily_bin1697.fits" evtable="EVENTS" scfile=/scratch/kocevski/857670/ft2_4FGL_J2203.3-5009_daily_bin1697.fits sctable="SC_DATA" outfile=/scratch/kocevski/857670/ltcube_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.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/857670/ft2_4FGL_J2203.3-5009_daily_bin1697.fits
.....................!
real 12.33
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857670/ft1_filtered_4FGL_J2203.3-5009_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857670/ft2_4FGL_J2203.3-5009_daily_bin1697.fits sctable="SC_DATA" expcube=/scratch/kocevski/857670/ltcube_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.fits outfile=/scratch/kocevski/857670/expmap_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.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/857670/ltcube_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.fits
.....................!
real 189.85
user 185.16
sys 4.33

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/857670/ft1_filtered_4FGL_J2203.3-5009_daily_bin1697.fits scfile=/scratch/kocevski/857670/ft2_4FGL_J2203.3-5009_daily_bin1697.fits outfile=/scratch/kocevski/857670/cmap_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857670/ft1_filtered_4FGL_J2203.3-5009_daily_bin1697.fits scfile=/scratch/kocevski/857670/ft2_4FGL_J2203.3-5009_daily_bin1697.fits outfile=/scratch/kocevski/857670/cmap_HighResolution_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857670/ft1_filtered_4FGL_J2203.3-5009_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857670/ft2_4FGL_J2203.3-5009_daily_bin1697.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857670/Model_4FGL_J2203.3-5009_daily_bin1697.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/857670/ft1_filtered_4FGL_J2203.3-5009_daily_bin1697.fits.....................!
real 43.05
user 41.56
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/857670/ft1_filtered_4FGL_J2203.3-5009_daily_bin1697.fits', '/scratch/kocevski/857670/ft2_4FGL_J2203.3-5009_daily_bin1697.fits', expMap='/scratch/kocevski/857670/expmap_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.fits', expCube='/scratch/kocevski/857670/ltcube_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/857670/Model_4FGL_J2203.3-5009_daily_bin1697.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/857670/ft1_filtered_4FGL_J2203.3-5009_daily_bin1697.fits
Spacecraft file(s): /scratch/kocevski/857670/ft2_4FGL_J2203.3-5009_daily_bin1697.fits
Exposure map: /scratch/kocevski/857670/expmap_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.fits
Exposure cube: /scratch/kocevski/857670/ltcube_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/857670/Model_4FGL_J2203.3-5009_daily_bin1697.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) = 5323.59570949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .91044E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.5477       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.185       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.5582       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .12052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9519       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.576       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.556       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6307       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10697E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .62590       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0459       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8022       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.2234       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81632       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0841       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=   5323.583     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3121 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2862        .82874E-07** at limit **
   2  Prefactor     .10000E-03    11.517        .72444E-06** at limit **
   3  norm          .10000E-03    .81589        .14285E-06** at limit **
   4  Prefactor     .10000E-03    22.561       -.62753E-07** at limit **
   5  Prefactor     9.5476        8.5546        .18638E-06   -.11378E-04
   6  Prefactor     15.177        35.320        .48195E-06   -.68312E-05
   7  Prefactor     2.5580        22.198        .63896E-05    .49358E-05
   8  Prefactor     .10000E-03    2.4495        .17448E-07** at limit **
   9  norm          .10000E-03    5.1681       -.42925E-07** at limit **
  10  Prefactor     1.9502        22.937        .17853E-05   -.79916E-07
  11  Prefactor     30.565        37.782        .48068E-06    .69648E-06
  12  Prefactor     11.554        10.938        .39925E-06    .26546E-04
  13  Prefactor     5.6316        4.4019        .19268E-06    .25580E-04
  14  Prefactor     .10000E-03    258.61       -.18605E-05** at limit **
  15  norm          .10000E-03    2.6681       -.68116E-08** at limit **
  16  Prefactor     .62599        2.0803        .35837E-06    .15644E-04
  17  Prefactor     .10000E-03    14.839       -.16066E-06** at limit **
  18  Prefactor     .10000E-03    1.8029       -.67148E-07** at limit **
  19  Prefactor     .10000E-03    15.831       -.70287E-06** at limit **
  20  Prefactor     5.0442        13.615       -.45142E-05   -.28176E-03
  21  Prefactor     9.6235        379.39        .58436E-04   -.25616E-04
  22  Prefactor     .10000E-03    6.7789        .32647E-07** at limit **
  23  Prefactor     .10000E-03    10.517       -.14163E-06** at limit **
  24  Prefactor     1.2264        34.982        .25495E-04    .52573E-05
  25  Normalizat    .81626        .19429       -.23288E-05   -.38218E-04
  26  Prefactor     1.0841        .14799        .17843E-06   -.35326E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.54761
  Prefactor  = 15.1765
  Prefactor  = 2.55801
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.9502
  Prefactor  = 30.565
  Prefactor  = 11.5541
  Prefactor  = 5.63162
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.625991
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.04417
  Prefactor  = 9.62352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.22641
  Normalizat = 0.816259
  Prefactor  = 1.08407
 **********
 **   18 **HESSE 
 **********

 FCN=   5323.583     FROM HESSE     STATUS=OK           458 CALLS     3579 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4155        .29466E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    78.537        .47633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.3369        .12806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.5476        8.5471        .12969E-03   -1.5090    
   6  Prefactor     15.177        35.000        .10278E-03   -1.4929    
   7  Prefactor     2.5580        22.271        .12763E-02   -1.5388    
   8  Prefactor     .10000E-03    2.4872        .11145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.2574        .32218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9502        22.783        .29702E-03   -1.5429    
  11  Prefactor     30.565        37.747        .72459E-04   -1.4602    
  12  Prefactor     11.554        10.920        .11785E-03   -1.5028    
  13  Prefactor     5.6316        4.3931        .12739E-03   -1.5233    
  14  Prefactor     .10000E-03    259.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.6701        .11639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .62599        2.1745        .18278E-02   -1.5550    
  17  Prefactor     .10000E-03    14.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8103        .95658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    15.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.0442        13.613        .17901E-03   -1.5259    
  21  Prefactor     9.6235        379.57        .12799E-03   -1.5087    
  22  Prefactor     .10000E-03    6.8698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.2264        34.999        .20371E-02   -1.5486    
  25  Normalizat    .81626        .21683        .27441E-03   -.99468    
  26  Prefactor     1.0841        .16701        .19417E-03   -.89977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53814e-10
Minuit parameter uncertainties:
  1  6.10492e-06
  2  0.00124769
  3  2.94201e-06
  4  6.32434e-06
  5  8.54816
  6  35.0471
  7  15.1029
  8  9.46406e-07
  9  4.52189e-06
  10  13.3374
  11  37.7764
  12  10.922
  13  4.39337
  14  9.15632e-05
  15  4.0171e-07
  16  2.17481
  17  4.03134e-06
  18  3.77947e-06
  19  0.000148855
  20  13.6209
  21  121.715
  22  5.97517e-06
  23  2.21624e-05
  24  13.111
  25  0.217061
  26  0.167092
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.155e+01  1.092e+01  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:  1.084e+00  1.671e-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:  8.163e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.68e-08 +/- 5.36e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.25e-05

TS (Fixed Index): 1.78
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 1.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.29e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/857670/likelihoodResults_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.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) = 5323.52394809
delta logL = 0.0589492779254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5323.52175783
delta logL = 0.0611395437509

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9785       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0495       1.0000          .0000       10.000    
     3 'Normalizat'    .80267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0906       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=   5323.522     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      302 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9852        11.455        .63425E-03    .10670E-03
   2  Index         3.0505        .97945        .80132E-02    .23686E-03
   3  Normalizat    .80238        .21079        .27672E-03   -.65734E-06
   4  Prefactor     1.0907        .16587        .19364E-03   -.22897E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.98518
  Index      = 3.05049
  Normalizat = 0.802376
  Prefactor  = 1.09068
 **********
 **   18 **HESSE 
 **********

 FCN=   5323.522     FROM HESSE     STATUS=OK            27 CALLS      329 TOTAL
                     EDM=   .12E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9852        10.788        .12685E-03   -1.5076    
   2  Index         3.0505        .92224        .16026E-02   -.40052    
   3  Normalizat    .80238        .21095        .11069E-04   -.99981    
   4  Prefactor     1.0907        .16592        .77456E-05   -.89765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20262e-14
Minuit parameter uncertainties:
  1  10.7898
  2  0.92852
  3  0.211162
  4  0.165993
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857670': 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) = 5323.52175454
delta logL = 0.0611428281163

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  9.985e+00  1.079e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  3.050e+00  9.285e-01  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:  1.091e+00  1.660e-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:  8.024e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 3.05 +/- 0.93
Photon Flux (Free Index): 6.91e-08 +/- 6.44e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.14e-05

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/857670/cmap_HighResolution_679190401_679449601_4FGL_J2203.3-5009_daily_bin1697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.29e-02', comment='SUCCESS', photon_flux='5.68e-08', energy_flux2='1.35e-05', photon_flux_error='5.36e-08', dlogl='6.11e-02', energy_flux='1.33e-05', photon_flux2='6.91e-08', job_status='DONE', time_completed='2022-07-14 00:49:22.510331', photon_index_error2='0.93', photon_index2='3.05', ts='1.78', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.14e-05', EG='0.82', time_epoch_completed='1657784962.51', return_code='0', job_id='857670', GAL2='1.09', EG2='0.80', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='6.44e-08', ts2='1.93', photon_index='2.74' WHERE bin_id='1697' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jul 14 00:49:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 857670: <4FGL_J2203.3-5009_daily_bin1697> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1697> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jul 14 00:35:49 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 14 00:35:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 14 00:35:50 2022
Terminated at Thu Jul 14 00:49:23 2022
Results reported at Thu Jul 14 00:49:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1697 330.832 -50.1512 679190401 679449601 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 :                                   656.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

