/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 107 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 = 7384
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2203.3-5009_daily_bin898
RA = 330.832, Dec = -50.1512
tmin = 472089601, tmax = 472348801
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='147994', job_status='RUN', time_executed='2021-09-28 03:02:34.516790', time_epoch_executed='1632823354.52' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147994

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147994/ft1_4FGL_J2203.3-5009_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147994/ft2_4FGL_J2203.3-5009_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147994/ft1_4FGL_J2203.3-5009_daily_bin898.fits outfile=/scratch/kocevski/147994/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin898.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=472089601.0 tmax=472348801.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.48
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147994/ft1_filtered_4FGL_J2203.3-5009_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/147994/ft2_4FGL_J2203.3-5009_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/147994/ltcube_472089601_472348801_4FGL_J2203.3-5009_daily_bin898.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/147994/ft2_4FGL_J2203.3-5009_daily_bin898.fits
.....................!
real 12.12
user 11.77
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147994/ft1_filtered_4FGL_J2203.3-5009_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/147994/ft2_4FGL_J2203.3-5009_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/147994/ltcube_472089601_472348801_4FGL_J2203.3-5009_daily_bin898.fits outfile=/scratch/kocevski/147994/expmap_472089601_472348801_4FGL_J2203.3-5009_daily_bin898.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/147994/ltcube_472089601_472348801_4FGL_J2203.3-5009_daily_bin898.fits
.....................!
real 190.14
user 185.00
sys 4.77

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/147994/ft1_filtered_4FGL_J2203.3-5009_daily_bin898.fits scfile=/scratch/kocevski/147994/ft2_4FGL_J2203.3-5009_daily_bin898.fits outfile=/scratch/kocevski/147994/cmap_472089601_472348801_4FGL_J2203.3-5009_daily_bin898.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147994/ft1_filtered_4FGL_J2203.3-5009_daily_bin898.fits scfile=/scratch/kocevski/147994/ft2_4FGL_J2203.3-5009_daily_bin898.fits outfile=/scratch/kocevski/147994/cmap_HighResolution_472089601_472348801_4FGL_J2203.3-5009_daily_bin898.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147994/ft1_filtered_4FGL_J2203.3-5009_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/147994/ft2_4FGL_J2203.3-5009_daily_bin898.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147994/Model_4FGL_J2203.3-5009_daily_bin898.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/147994/ft1_filtered_4FGL_J2203.3-5009_daily_bin898.fits.....................!
real 45.62
user 44.30
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1824       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1590       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.666       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.658       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    29.772       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.525       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9965       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11145E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.307       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.1789       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3238       1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.373       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.396       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .74825E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .35683       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4929       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=   5813.816     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3187 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1831        4.7818        .20858E-07   -.21830E-04
   2  Prefactor     .10000E-03    54.247       -.17378E-05** at limit **
   3  norm          1.1591        1.9581        .30571E-06    .12487E-03
   4  Prefactor     31.648        59.779       -.36312E-06   -.33203E-04
   5  Prefactor     .10012E-03    11.114        .44874E-05** at limit **
   6  Prefactor     .10000E-03    18.931       -.18993E-06** at limit **
   7  Prefactor     22.655        19.882       -.15590E-06   -.51040E-04
   8  Prefactor     .10000E-03    1.5763       -.82262E-07** at limit **
   9  norm          29.772        8.0866       -.96058E-07   -.44228E-03
  10  Prefactor     .10000E-03    8.0788       -.19065E-06** at limit **
  11  Prefactor     30.553        41.851       -.51618E-06   -.50951E-04
  12  Prefactor     .10000E-03    3.4031        .17992E-06** at limit **
  13  Prefactor     2.9969        3.7518       -.92888E-07   -.10774E-04
  14  Prefactor     .10000E-03    32.674       -.18202E-07** at limit **
  15  norm          .10000E-03    2.8649       -.54892E-07** at limit **
  16  Prefactor     .10000E-03    2.0569       -.16726E-06** at limit **
  17  Prefactor     24.309        39.251       -.20646E-06   -.10212E-04
  18  Prefactor     .10000E-03    1.2693       -.18564E-07** at limit **
  19  Prefactor     8.1812        16.452       -.49399E-06   -.39295E-04
  20  Prefactor     5.3173        13.481        .47658E-05    .39745E-03
  21  Prefactor     37.584        145.22       -.17955E-04   -.58111E-04
  22  Prefactor     12.397        10.432       -.13286E-06   -.19947E-04
  23  Prefactor     .10000E-03    15.647        .41702E-06** at limit **
  24  Prefactor     .10001E-03    17.549       -.21697E-06** at limit **
  25  Normalizat    .35668        .23359        .48543E-05   -.31928E-04
  26  Prefactor     1.4930        .18143       -.17331E-05   -.38893E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.18306
  Prefactor  = 0.000100001
  norm       = 1.15914
  Prefactor  = 31.6479
  Prefactor  = 0.000100118
  Prefactor  = 0.0001
  Prefactor  = 22.6552
  Prefactor  = 0.0001
  norm       = 29.7725
  Prefactor  = 0.0001
  Prefactor  = 30.553
  Prefactor  = 0.0001
  Prefactor  = 2.9969
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3089
  Prefactor  = 0.0001
  Prefactor  = 8.18115
  Prefactor  = 5.31726
  Prefactor  = 37.5841
  Prefactor  = 12.3968
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Normalizat = 0.356678
  Prefactor  = 1.49299
 **********
 **   18 **HESSE 
 **********

 FCN=   5813.816     FROM HESSE     STATUS=OK           456 CALLS     3643 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1831        4.7735        .12961E-03   -1.5172    
   2  Prefactor     .10000E-03    55.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1591        1.9205        .13186E-03   -1.5493    
   4  Prefactor     31.648        59.703        .71205E-04   -1.4582    
   5  Prefactor     .10012E-03    20.424        .33659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    18.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.655        19.866        .84148E-04   -1.4756    
   8  Prefactor     .10000E-03    1.5888        .93470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          29.772        8.0779        .73429E-04   -1.4616    
  10  Prefactor     .10000E-03    8.1511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.553        41.653        .72519E-04   -1.4602    
  12  Prefactor     .10000E-03    3.4161        .13728E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9969        3.7207        .15623E-03   -1.5362    
  14  Prefactor     .10000E-03    32.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.8714        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1198        .21354E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.309        39.221        .81249E-04   -1.4721    
  18  Prefactor     .10000E-03    1.2728        .83887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.1812        16.403        .14019E-03   -1.5136    
  20  Prefactor     5.3173        13.952        .17418E-03   -1.5247    
  21  Prefactor     37.584        149.45        .32780E-03   -1.4481    
  22  Prefactor     12.397        10.411        .11377E-03   -1.5004    
  23  Prefactor     .10000E-03    15.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    115.36        .60871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .35668        .22517        .43611E-03   -1.1960    
  26  Prefactor     1.4930        .18243        .18475E-03   -.77736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1743e-09
Minuit parameter uncertainties:
  1  4.77374
  2  0.000513021
  3  1.92056
  4  59.8157
  5  0.00310188
  6  7.07049e-05
  7  19.8722
  8  6.26998e-06
  9  8.0782
  10  2.45879e-05
  11  41.6923
  12  9.08574e-06
  13  3.72099
  14  2.30738e-05
  15  4.00574e-06
  16  1.10683e-05
  17  39.2626
  18  1.71708e-06
  19  16.412
  20  13.961
  21  150.556
  22  10.412
  23  6.43755e-05
  24  0.00189153
  25  0.225741
  26  0.182512
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  9.086e-06  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.493e+00  1.825e-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:  3.567e-01  2.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/147994/likelihoodResults_472089601_472348801_4FGL_J2203.3-5009_daily_bin898.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) = 5813.81707351
delta logL = -0.00138390459415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5813.81568959
delta logL = 2.33931132243e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7313       1.0000          .0000       10.000    
     3 'Normalizat'    .35668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4930       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5813.816     FROM MIGRAD    STATUS=FAILED        88 CALLS      240 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10101E-03    150.19        .13764E-02** at limit **
   2  Index         2.6433        6.0770        .50000        .15836E-04
   3  Normalizat    .35668        .32820E-01    .43612E-03   -.60217E-05
   4  Prefactor     1.4930        .27176E-01    .18475E-03   -.13169E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5813.816     FROM SIMPLEX   STATUS=UNCHANGED    134 CALLS      374 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10101E-03    150.19        .28565E-03** at limit **
   2  Index         2.6433        6.0770        .69207E-04    .15836E-04
   3  Normalizat    .35668        .32820E-01    .19199E-05   -.60217E-05
   4  Prefactor     1.4930        .27176E-01    .74560E-06   -.13169E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5813.816     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      414 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    784.59        .27528E-03** at limit **
   2  Index         2.3888        7.8251        .50000       -.44952E-07
   3  Normalizat    .35668        .13206        .17445E-04    .36886E-04
   4  Prefactor     1.4930        .10941        .73898E-05    .94459E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.38876
  Normalizat = 0.356676
  Prefactor  = 1.493
 **********
 **   18 **HESSE 
 **********

 FCN=   5813.816     FROM HESSE     STATUS=OK            29 CALLS      443 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.8742        .55055E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3888        5.5757        .50000       -.54948    
   3  Normalizat    .35668        .21643        .34890E-05   -1.1960    
   4  Prefactor     1.4930        .17951        .14780E-05   -.77736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17207e-12
Minuit parameter uncertainties:
  1  3.87244e-06
  2  135.246
  3  0.216941
  4  0.179582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147994': 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) = 5813.81568875
delta logL = 8.62094566401e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.872e-06  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.389e+00  1.352e+02  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.493e+00  1.796e-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:  3.567e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/147994/cmap_HighResolution_472089601_472348801_4FGL_J2203.3-5009_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', job_status='DONE', photon_flux_upper_limit='7.00e-08', time_completed='2021-09-28 03:14:20.531229', job_id='147994', GAL2='1.49', fit_tolerance='1e-08', EG2='0.36', EG='0.36', time_epoch_completed='1632824060.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.49', dlogl='8.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='898' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:14:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 147994: <4FGL_J2203.3-5009_daily_bin898> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin898> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 03:00:36 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:00:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 03:00:39 2021
Terminated at Tue Sep 28 03:14:21 2021
Results reported at Tue Sep 28 03:14:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin898 330.832 -50.1512 472089601 472348801 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 :                                   704.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            825 sec.

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

