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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1595
RA = 330.832, Dec = -50.1512
tmin = 652752001, tmax = 653011201
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='151213', job_status='RUN', time_executed='2021-09-28 03:13:10.514598', time_epoch_executed='1632823990.51' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151213

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151213/ft1_4FGL_J2203.3-5009_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151213/ft2_4FGL_J2203.3-5009_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151213/ft1_4FGL_J2203.3-5009_daily_bin1595.fits outfile=/scratch/kocevski/151213/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1595.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=652752001.0 tmax=653011201.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.16
user 2.95
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/151213/ft2_4FGL_J2203.3-5009_daily_bin1595.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/151213/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1595.fits evtable="EVENTS" outfile="/scratch/kocevski/151213/ft1_filtered_4FGL_J2203.3-5009_daily_bin1595.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.48
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151213/ft1_filtered_4FGL_J2203.3-5009_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/151213/ft2_4FGL_J2203.3-5009_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/151213/ltcube_652752001_653011201_4FGL_J2203.3-5009_daily_bin1595.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/151213/ft2_4FGL_J2203.3-5009_daily_bin1595.fits
.....................!
real 12.34
user 11.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151213/ft1_filtered_4FGL_J2203.3-5009_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/151213/ft2_4FGL_J2203.3-5009_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/151213/ltcube_652752001_653011201_4FGL_J2203.3-5009_daily_bin1595.fits outfile=/scratch/kocevski/151213/expmap_652752001_653011201_4FGL_J2203.3-5009_daily_bin1595.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/151213/ltcube_652752001_653011201_4FGL_J2203.3-5009_daily_bin1595.fits
.....................!
real 190.86
user 186.51
sys 3.94

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/151213/ft1_filtered_4FGL_J2203.3-5009_daily_bin1595.fits scfile=/scratch/kocevski/151213/ft2_4FGL_J2203.3-5009_daily_bin1595.fits outfile=/scratch/kocevski/151213/cmap_652752001_653011201_4FGL_J2203.3-5009_daily_bin1595.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/151213/ft1_filtered_4FGL_J2203.3-5009_daily_bin1595.fits scfile=/scratch/kocevski/151213/ft2_4FGL_J2203.3-5009_daily_bin1595.fits outfile=/scratch/kocevski/151213/cmap_HighResolution_652752001_653011201_4FGL_J2203.3-5009_daily_bin1595.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/151213/ft1_filtered_4FGL_J2203.3-5009_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/151213/ft2_4FGL_J2203.3-5009_daily_bin1595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/151213/Model_4FGL_J2203.3-5009_daily_bin1595.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/151213/ft1_filtered_4FGL_J2203.3-5009_daily_bin1595.fits......................!
real 25.59
user 24.29
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    29.394       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8881       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.886       1.0000         .10000E-03   10000.    
     6 'Prefactor '    49.839       1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.499       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6006       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6776       1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.592       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    333.71       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.339       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1658       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2317       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84073       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=   1946.513     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3552 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6087       -.28383E-07** at limit **
   2  Prefactor     29.391        30.326        .11557E-06    .25619E-06
   3  norm          2.8873        4.2149        .71449E-07    .59136E-06
   4  Prefactor     .10000E-03    42.520       -.15618E-05** at limit **
   5  Prefactor     35.873        25.594        .12105E-06    .45620E-06
   6  Prefactor     49.842        67.674       -.35949E-06   -.66311E-05
   7  Prefactor     54.458        63.034        .20858E-05   -.58031E-05
   8  Prefactor     .10000E-03    15.067       -.25764E-06** at limit **
   9  norm          .10000E-03    8.1195        .61205E-06** at limit **
  10  Prefactor     9.5970        26.694        .14800E-06   -.33907E-05
  11  Prefactor     9.7236        531.65       -.98700E-05   -.20619E-06
  12  Prefactor     41.572        43.274        .11106E-05    .12190E-04
  13  Prefactor     .10000E-03    8.0596       -.59530E-06** at limit **
  14  Prefactor     .10000E-03    164.18        .22314E-06** at limit **
  15  norm          .10000E-03    9.5051        .17818E-06** at limit **
  16  Prefactor     .10000E-03    9.8293       -.18771E-06** at limit **
  17  Prefactor     333.45        413.27        .82277E-05   -.59125E-05
  18  Prefactor     13.341        18.223       -.11572E-07   -.13723E-06
  19  Prefactor     .10000E-03    48.643        .25275E-05** at limit **
  20  Prefactor     1.1751        297.52        .16648E-04    .45318E-05
  21  Prefactor     .10000E-03    183.71        .42144E-05** at limit **
  22  Prefactor     .10000E-03    70.013        .59018E-06** at limit **
  23  Prefactor     .10000E-03    84.375       -.28512E-05** at limit **
  24  Prefactor     .10000E-03    154.67       -.13859E-05** at limit **
  25  Normalizat    1.2326        .47229       -.15156E-06    .10878E-04
  26  Prefactor     .84030        .27962       -.75680E-06    .61650E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.3909
  norm       = 2.88732
  Prefactor  = 0.0001
  Prefactor  = 35.8726
  Prefactor  = 49.8422
  Prefactor  = 54.4581
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.59704
  Prefactor  = 9.7236
  Prefactor  = 41.5717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 333.452
  Prefactor  = 13.3412
  Prefactor  = 0.0001
  Prefactor  = 1.17506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23257
  Prefactor  = 0.840304
 **********
 **   18 **HESSE 
 **********

 FCN=   1946.513     FROM HESSE     STATUS=OK           454 CALLS     4006 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6106        .54648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.391        30.347        .73898E-04   -1.4623    
   3  norm          2.8873        4.2001        .10076E-03   -1.5368    
   4  Prefactor     .10000E-03    42.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.873        25.716        .66900E-04   -1.4509    
   6  Prefactor     49.842        67.653        .56805E-04   -1.4295    
   7  Prefactor     54.458        63.259        .54334E-04   -1.4231    
   8  Prefactor     .10000E-03    15.268        .16696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    8.1379        .12272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.5970        26.701        .12933E-03   -1.5088    
  11  Prefactor     9.7236        522.90        .12882E-03   -1.5084    
  12  Prefactor     41.572        43.429        .62157E-04   -1.4418    
  13  Prefactor     .10000E-03    8.1474        .12244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    164.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    9.5058        .13287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.8366        .13514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     333.45        412.68        .11136E-03   -1.2035    
  18  Prefactor     13.341        18.223        .10967E-03   -1.4977    
  19  Prefactor     .10000E-03    48.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1751        300.36        .21293E-02   -1.5491    
  21  Prefactor     .10000E-03    183.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    69.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    84.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    154.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2326        .57923        .30992E-03   -.85602    
  26  Prefactor     .84030        .33933        .23464E-03   -.98259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19042e-11
Minuit parameter uncertainties:
  1  3.97115e-07
  2  30.3626
  3  4.20057
  4  1.38095e-06
  5  25.7235
  6  67.7576
  7  63.337
  8  3.1205e-05
  9  1.47182e-06
  10  26.734
  11  143.956
  12  43.4624
  13  1.21113e-05
  14  5.70563e-05
  15  3.1148e-06
  16  1.0857e-05
  17  416.4
  18  18.2309
  19  7.69416e-05
  20  37.7645
  21  0.000221721
  22  5.6535e-05
  23  0.000100817
  24  6.53183e-05
  25  0.582296
  26  0.340177
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  4.157e+01  4.346e+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:  8.403e-01  3.402e-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:  1.233e+00  5.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.80
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 2.04e-07 +/- 2.13e-07
Energy Flux (Fixed Index): 4.78e-05 +/- 4.99e-05

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

Saving results to:
/scratch/kocevski/151213/likelihoodResults_652752001_653011201_4FGL_J2203.3-5009_daily_bin1595.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) = 1946.0344825
delta logL = 0.479005260074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1946.03312532
delta logL = 0.480362440146

Fit tolerance = 1e-08

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

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

 FCN=   1946.033     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      286 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.441        47.874        .93233E-04    .14023E-05
   2  Index         3.8967        2.0225        .42251E-02   -.13021E-04
   3  Normalizat    1.0523        .56972        .33122E-03   -.62005E-03
   4  Prefactor     .93257        .35525        .22417E-03   -.95107E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.4409
  Index      = 3.89667
  Normalizat = 1.05226
  Prefactor  = 0.932567
 **********
 **   18 **HESSE 
 **********

 FCN=   1946.033     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.441        34.631        .37293E-05   -1.4849    
   2  Index         3.8967        1.4816        .16900E-03   -.22250    
   3  Normalizat    1.0523        .56968        .66243E-04   -.91300    
   4  Prefactor     .93257        .35360        .44834E-04   -.95012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82274e-09
Minuit parameter uncertainties:
  1  34.6688
  2  1.50543
  3  0.57304
  4  0.354477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151213': 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) = 1946.03312357
delta logL = 0.480364194994

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.844e+01  3.467e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  3.897e+00  1.505e+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:  9.326e-01  3.545e-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:  1.052e+00  5.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.10
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 3.90 +/- 1.51
Photon Flux (Free Index): 3.57e-07 +/- 2.59e-07
Energy Flux (Free Index): 5.45e-05 +/- 3.87e-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/151213/cmap_HighResolution_652752001_653011201_4FGL_J2203.3-5009_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.50e-02', comment='SUCCESS', photon_flux='2.04e-07', energy_flux2='5.45e-05', photon_flux_error='2.13e-07', dlogl='4.80e-01', energy_flux='4.78e-05', photon_flux2='3.57e-07', job_status='DONE', time_completed='2021-09-28 03:20:45.998754', photon_index_error2='1.51', photon_index2='3.90', ts='1.80', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='5.70e-07', energy_flux_error2='3.87e-05', EG='1.23', time_epoch_completed='1632824446.0', return_code='0', job_id='151213', GAL2='0.93', EG2='1.05', return_code2='0', energy_flux_error='4.99e-05', photon_flux_error2='2.59e-07', ts2='3.10', photon_index='2.74' WHERE bin_id='1595' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:20:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 151213: <4FGL_J2203.3-5009_daily_bin1595> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1595> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:11:06 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:11:09 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:11:09 2021
Terminated at Tue Sep 28 03:20:46 2021
Results reported at Tue Sep 28 03:20:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1595 330.832 -50.1512 652752001 653011201 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 :                                   450.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            580 sec.

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

