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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1729
RA = 330.832, Dec = -50.1512
tmin = 687484801, tmax = 687744001
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='378685', job_status='RUN', time_executed='2022-10-18 00:36:57.800658', time_epoch_executed='1666078617.8' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378685/ft1_4FGL_J2203.3-5009_daily_bin1729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378685/ft2_4FGL_J2203.3-5009_daily_bin1729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378685/ft1_4FGL_J2203.3-5009_daily_bin1729.fits outfile=/scratch/kocevski/378685/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1729.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=687484801.0 tmax=687744001.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.60
user 3.36
sys 0.22

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

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

Number of photons that the gtmktime cut: 621

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/378685/ft1_filtered_4FGL_J2203.3-5009_daily_bin1729.fits" evtable="EVENTS" scfile=/scratch/kocevski/378685/ft2_4FGL_J2203.3-5009_daily_bin1729.fits sctable="SC_DATA" outfile=/scratch/kocevski/378685/ltcube_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.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/378685/ft2_4FGL_J2203.3-5009_daily_bin1729.fits
.....................!
real 12.10
user 11.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378685/ft1_filtered_4FGL_J2203.3-5009_daily_bin1729.fits evtable="EVENTS" scfile=/scratch/kocevski/378685/ft2_4FGL_J2203.3-5009_daily_bin1729.fits sctable="SC_DATA" expcube=/scratch/kocevski/378685/ltcube_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.fits outfile=/scratch/kocevski/378685/expmap_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.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/378685/ltcube_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.fits
.....................!
real 190.56
user 185.18
sys 5.04

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/378685/ft1_filtered_4FGL_J2203.3-5009_daily_bin1729.fits scfile=/scratch/kocevski/378685/ft2_4FGL_J2203.3-5009_daily_bin1729.fits outfile=/scratch/kocevski/378685/cmap_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378685/ft1_filtered_4FGL_J2203.3-5009_daily_bin1729.fits scfile=/scratch/kocevski/378685/ft2_4FGL_J2203.3-5009_daily_bin1729.fits outfile=/scratch/kocevski/378685/cmap_HighResolution_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/378685/ft1_filtered_4FGL_J2203.3-5009_daily_bin1729.fits evtable="EVENTS" scfile=/scratch/kocevski/378685/ft2_4FGL_J2203.3-5009_daily_bin1729.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/378685/Model_4FGL_J2203.3-5009_daily_bin1729.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/378685/ft1_filtered_4FGL_J2203.3-5009_daily_bin1729.fits.....................!
real 50.43
user 49.17
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/378685/ft1_filtered_4FGL_J2203.3-5009_daily_bin1729.fits', '/scratch/kocevski/378685/ft2_4FGL_J2203.3-5009_daily_bin1729.fits', expMap='/scratch/kocevski/378685/expmap_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.fits', expCube='/scratch/kocevski/378685/ltcube_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/378685/Model_4FGL_J2203.3-5009_daily_bin1729.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  0.000e+00  1.000e+06 ( 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/378685/ft1_filtered_4FGL_J2203.3-5009_daily_bin1729.fits
Spacecraft file(s): /scratch/kocevski/378685/ft2_4FGL_J2203.3-5009_daily_bin1729.fits
Exposure map: /scratch/kocevski/378685/expmap_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.fits
Exposure cube: /scratch/kocevski/378685/ltcube_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/378685/Model_4FGL_J2203.3-5009_daily_bin1729.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) = 6874.17006069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50570E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.8482       1.0000          .0000       .10000E+07
     3 'norm      '    1.2819       1.0000          .0000       .10000E+07
     4 'Prefactor '    .23296E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    13.409       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10259E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .85052E-04   1.0000          .0000       .10000E+07
     8 'norm      '    32.279       1.0000          .0000       .10000E+07
     9 'Prefactor '    .20174E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    133.41       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.5654       1.0000          .0000       .10000E+07
    12 'Prefactor '    6.2987       1.0000          .0000       .10000E+07
    13 'Prefactor '    52.880       1.0000          .0000       .10000E+07
    14 'norm      '    .47511E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18774E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    37.726       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.2755       1.0000          .0000       .10000E+07
    18 'Prefactor '    .14864E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    7.8343       1.0000          .0000       .10000E+07
    20 'Prefactor '    13.637       1.0000          .0000       .10000E+07
    21 'Prefactor '    .15304E-02   1.0000          .0000       .10000E+07
    22 'Normalizat'    .73953       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1528       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6874.122     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     2692 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4711        .11411E-06** at limit **
   2  Prefactor     3.6604        23.229       -.58422E-05   -.22037E-01
   3  norm          1.2840        1.9138        .98636E-07    .45005E-04
   4  Prefactor      .0000        3.7251       -.13662E-06** at limit **
   5  Prefactor     13.180        27.547        .29493E-05   -.11210E-01
   6  Prefactor     .13878E-08    19.738       -.42971E-06** at limit **
   7  Prefactor      .0000        2.3996        .19228E-08** at limit **
   8  norm          32.318        7.9313       -.29069E-07    .19079E-03
   9  Prefactor      .0000        6.6007       -.19266E-06** at limit **
  10  Prefactor     135.17        50.937       -.85372E-06    .53564E-02
  11  Prefactor     3.5222        12.040       -.50348E-05   -.12726E-02
  12  Prefactor     6.3063        4.1430        .15160E-07   -.10347E-02
  13  Prefactor     51.418        115.00        .49778E-05    .18369E-02
  14  norm           .0000        1.9728       -.42962E-07** at limit **
  15  Prefactor      .0000        8.0495        .50835E-06** at limit **
  16  Prefactor     38.053        39.694        .43347E-05   -.12366E-01
  17  Prefactor     1.2754        3.1771       -.41169E-06   -.18512E-04
  18  Prefactor      .0000        7.6528        .10993E-06** at limit **
  19  Prefactor     7.7700        6.3447       -.11261E-06   -.13969E-03
  20  Prefactor     13.662        14.670       -.89472E-06    .59600E-01
  21  Prefactor      .0000        4.7334       -.70944E-07** at limit **
  22  Normalizat    .73891        .21182        .11016E-04   -.49278E-04
  23  Prefactor     1.1532        .16343       -.34611E-05   -.40018E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 3.66036
  norm       = 1.28398
  Prefactor  = 0
  Prefactor  = 13.1804
  Prefactor  = 1.38778e-09
  Prefactor  = 0
  norm       = 32.3177
  Prefactor  = 0
  Prefactor  = 135.166
  Prefactor  = 3.52221
  Prefactor  = 6.30626
  Prefactor  = 51.4175
  norm       = 0
  Prefactor  = 0
  Prefactor  = 38.0527
  Prefactor  = 1.27535
  Prefactor  = 0
  Prefactor  = 7.77001
  Prefactor  = 13.6624
  Prefactor  = 0
  Normalizat = 0.73891
  Prefactor  = 1.15315
 **********
 **   18 **HESSE 
 **********

 FCN=   6874.122     FROM HESSE     STATUS=OK           418 CALLS     3110 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.6604        31.230        .51420E-03   -1.5670    
   3  norm          1.2840        1.9419        .97963E-03   -1.5685    
   4  Prefactor      .0000        3.7196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.180        28.073        .27328E-03   -1.5635    
   6  Prefactor     .13878E-08    19.724        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.3831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          32.318        7.9458        .17604E-03   -1.5594    
   9  Prefactor      .0000        6.5876        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     135.17        51.351        .86584E-04   -1.5475    
  11  Prefactor     3.5222        12.525        .53500E-03   -1.5670    
  12  Prefactor     6.3063        4.1491        .39972E-03   -1.5658    
  13  Prefactor     51.418        118.65        .13753E-03   -1.5565    
  14  norm           .0000        1.9729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        7.8884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.053        40.260        .16283E-03   -1.5585    
  17  Prefactor     1.2754        3.2412        .98359E-03   -1.5685    
  18  Prefactor      .0000        7.6511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.7700        6.3450        .35801E-03   -1.5652    
  20  Prefactor     13.662        25.265        .27098E-03   -1.5634    
  21  Prefactor      .0000        4.7345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .73891        .18637        .71285E-01   -1.0238    
  23  Prefactor     1.1532        .14298        .35856E-01   -.87785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5799e-07
Minuit parameter uncertainties:
  1  3.03392e-06
  2  21.3834
  3  1.94187
  4  4.13073e-06
  5  28.0732
  6  0.000329994
  7  2.70537e-06
  8  7.94583
  9  6.50056e-06
  10  51.3507
  11  12.5249
  12  4.14907
  13  118.653
  14  2.62623e-06
  15  7.99902e-06
  16  40.2601
  17  3.24123
  18  1.4601e-06
  19  6.34499
  20  25.2648
  21  2.67053e-06
  22  0.186534
  23  0.143025
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  3.522e+00  1.252e+01  0.000e+00  1.000e+06 ( 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.153e+00  1.430e-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:  7.389e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/378685/likelihoodResults_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.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) = 6873.62726154
delta logL = 0.495141069191

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6873.59928787
delta logL = 0.523114734666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0118       1.0000          .0000       .10000E+07
     2 'Index     '    4.6797       1.0000          .0000       10.000    
     3 'Normalizat'    .69727       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1743       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.

 FCN=   6873.599     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      298 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0051        21.896        .44183E-03    .14793E-01
   2  Index         4.6834        4.1818        .20180        .13192E-03
   3  Normalizat    .69785        .48215E-01    .73072E-01    .23857E-03
   4  Prefactor     1.1739        .38083E-01    .35268E-01    .12865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00513
  Index      = 4.68337
  Normalizat = 0.697848
  Prefactor  = 1.17393
 **********
 **   18 **HESSE 
 **********

 FCN=   6873.599     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      331 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0051        52.816        .80452E-05   -1.5688    
   2  Index         4.6834        7.0062        .85396E-02   -.63368E-01
   3  Normalizat    .69785        .18962        .32344E-03   -1.0398    
   4  Prefactor     1.1739        .14831        .20194E-03   -.87137    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.22219e-10
Minuit parameter uncertainties:
  1  14.5723
  2  10.1371
  3  0.189799
  4  0.148363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378685': 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) = 6873.59928204
delta logL = 0.523120569113

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.005e+00  1.457e+01  0.000e+00  1.000e+06 ( 1.000e-12)
324        Index:  4.683e+00  1.014e+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.174e+00  1.484e-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:  6.978e-01  1.898e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 4.68 +/- 10.14
Photon Flux (Free Index): 5.51e-08 +/- 6.90e-08
Energy Flux (Free Index): 7.54e-06 +/- 1.54e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/378685/cmap_HighResolution_687484801_687744001_4FGL_J2203.3-5009_daily_bin1729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', comment='SUCCESS', energy_flux2='7.54e-06', dlogl='5.23e-01', photon_flux2='5.51e-08', job_status='DONE', time_completed='2022-10-18 00:48:12.552079', photon_index_error2='10.14', photon_index2='4.68', ts='0.16', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='1.54e-05', EG='0.74', time_epoch_completed='1666079292.55', return_code='0', job_id='378685', GAL2='1.17', EG2='0.70', return_code2='102', photon_flux_error2='6.90e-08', ts2='1.27', photon_index='2.74' WHERE bin_id='1729' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct 18 00:48:12 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 378685: <4FGL_J2203.3-5009_daily_bin1729> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1729> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Oct 18 00:35:25 2022
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 00:35:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 00:35:26 2022
Terminated at Tue Oct 18 00:48:13 2022
Results reported at Tue Oct 18 00:48:13 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1729 330.832 -50.1512 687484801 687744001 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 :                                   677.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            768 sec.

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

