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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1254
RA = 330.832, Dec = -50.1512
tmin = 564364801, tmax = 564624001
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='149661', job_status='RUN', time_executed='2021-09-28 03:08:23.384472', time_epoch_executed='1632823703.38' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1254'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149661

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149661/ft1_4FGL_J2203.3-5009_daily_bin1254.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149661/ft2_4FGL_J2203.3-5009_daily_bin1254.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149661/ft1_4FGL_J2203.3-5009_daily_bin1254.fits outfile=/scratch/kocevski/149661/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1254.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=564364801.0 tmax=564624001.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.64
user 3.40
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149661/ft1_filtered_4FGL_J2203.3-5009_daily_bin1254.fits" evtable="EVENTS" scfile=/scratch/kocevski/149661/ft2_4FGL_J2203.3-5009_daily_bin1254.fits sctable="SC_DATA" outfile=/scratch/kocevski/149661/ltcube_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.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/149661/ft2_4FGL_J2203.3-5009_daily_bin1254.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149661/ft1_filtered_4FGL_J2203.3-5009_daily_bin1254.fits evtable="EVENTS" scfile=/scratch/kocevski/149661/ft2_4FGL_J2203.3-5009_daily_bin1254.fits sctable="SC_DATA" expcube=/scratch/kocevski/149661/ltcube_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.fits outfile=/scratch/kocevski/149661/expmap_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.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/149661/ltcube_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.fits
.....................!
real 190.38
user 185.19
sys 4.87

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/149661/ft1_filtered_4FGL_J2203.3-5009_daily_bin1254.fits scfile=/scratch/kocevski/149661/ft2_4FGL_J2203.3-5009_daily_bin1254.fits outfile=/scratch/kocevski/149661/cmap_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.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/149661/ft1_filtered_4FGL_J2203.3-5009_daily_bin1254.fits scfile=/scratch/kocevski/149661/ft2_4FGL_J2203.3-5009_daily_bin1254.fits outfile=/scratch/kocevski/149661/cmap_HighResolution_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149661/ft1_filtered_4FGL_J2203.3-5009_daily_bin1254.fits evtable="EVENTS" scfile=/scratch/kocevski/149661/ft2_4FGL_J2203.3-5009_daily_bin1254.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149661/Model_4FGL_J2203.3-5009_daily_bin1254.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/149661/ft1_filtered_4FGL_J2203.3-5009_daily_bin1254.fits.....................!
real 15.32
user 14.17
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/149661/ft1_filtered_4FGL_J2203.3-5009_daily_bin1254.fits', '/scratch/kocevski/149661/ft2_4FGL_J2203.3-5009_daily_bin1254.fits', expMap='/scratch/kocevski/149661/expmap_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.fits', expCube='/scratch/kocevski/149661/ltcube_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/149661/Model_4FGL_J2203.3-5009_daily_bin1254.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/149661/ft1_filtered_4FGL_J2203.3-5009_daily_bin1254.fits
Spacecraft file(s): /scratch/kocevski/149661/ft2_4FGL_J2203.3-5009_daily_bin1254.fits
Exposure map: /scratch/kocevski/149661/expmap_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.fits
Exposure cube: /scratch/kocevski/149661/ltcube_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/149661/Model_4FGL_J2203.3-5009_daily_bin1254.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 284.954674683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 283.94416988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5403       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .55043E-01   1.0000         .10000E-03   10000.    
     3 'norm      '    10.665       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4682       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3124       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28603       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .16847       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20162E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .32054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12468       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57574       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .31914       1.0000         .10000E-03   10000.    
    15 'norm      '    .83121E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.683       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15235E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    513.90       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .60442       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .47728E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10410E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.3475       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .26538       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79063       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .47876       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=   283.9292     FROM MIGRAD    STATUS=CONVERGED    279 CALLS      528 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5403        1.0658         .0000         .0000    
   2  Prefactor     .10000E-03    270.69        .56082E-06** at limit **
   3  norm          10.612        16.879       -.39313E-06   -.34656E-05
   4  Prefactor     .10000E-03    592.51        .24702E-05** at limit **
   5  Prefactor     3.2336        117.53       -.19689E-04    .32729E-04
   6  Prefactor     .10000E-03    77.821        .13911E-05** at limit **
   7  Prefactor     .10000E-03    874.53        .55768E-05** at limit **
   8  Prefactor     .10000E-03    30.983       -.30679E-07** at limit **
   9  norm          .10000E-03    16.697        .12437E-06** at limit **
  10  Prefactor     .10000E-03    42.227       -.32663E-05** at limit **
  11  Prefactor     .10000E-03    153.56        .14810E-05** at limit **
  12  Prefactor     .10000E-03    47.581        .71456E-06** at limit **
  13  Prefactor     .10000E-03    104.31        .74791E-06** at limit **
  14  Prefactor     .10000E-03    609.29        .73536E-05** at limit **
  15  norm          .10000E-03    161.67        .10808E-05** at limit **
  16  Prefactor     .10000E-03    11.461       -.90914E-07** at limit **
  17  Prefactor     41.850        229.25       -.17405E-04   -.96031E-05
  18  Prefactor     .10000E-03    24.511        .45853E-07** at limit **
  19  Prefactor     566.00        954.42       -.30818E-05    .85939E-05
  20  Prefactor     .10000E-03    176.79       -.84491E-07** at limit **
  21  Prefactor     .10001E-03    1750.1       -.73028E-05** at limit **
  22  Prefactor     .10000E-03    33.784        .18620E-05** at limit **
  23  Prefactor     .10000E-03    285.31       -.15194E-05** at limit **
  24  Prefactor     .10000E-03    359.83       -.31206E-05** at limit **
  25  Normalizat    .79037        .93025        .24766E-04    .79635E-05
  26  Prefactor     .48216        .59235       -.14839E-04   -.82742E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54032
  Prefactor  = 0.0001
  norm       = 10.6123
  Prefactor  = 0.0001
  Prefactor  = 3.23364
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.8501
  Prefactor  = 0.0001
  Prefactor  = 566.001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.790368
  Prefactor  = 0.482159
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   283.9292     FROM HESSE     STATUS=FAILED         9 CALLS      537 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     577.04        575.32         .0000       -1.5460    
   2  Prefactor     .10000E-03    .21598        .56082E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.612        .99863       -.39313E-06   -1.5056    
   4  Prefactor     .10000E-03    .19665        .24702E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2336        .99976       -.19689E-04   -1.5348    
   6  Prefactor     .10000E-03    .26851        .13911E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    .24171        .55768E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .25557       -.30679E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .28520        .12437E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .20571       -.32663E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .23176        .14810E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .20571        .71456E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .33502        .74791E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .27608        .73536E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .21184        .10808E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20571       -.90914E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     41.850        .92754       -.17405E-04   -1.4413    
  18  Prefactor     .10000E-03    .20571        .45853E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     566.00        1.0466       -.30818E-05   -1.0904    
  20  Prefactor     .10000E-03    .34163       -.84491E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    .21432       -.73028E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .20571        .18620E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .11186       -.15194E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    .26379       -.31206E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .79037        1.1294        .24766E-04   -1.0043    
  26  Prefactor     .48216        .82185       -.14839E-04   -1.1280    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.89227e-11
Minuit parameter uncertainties:
  1  1.06583
  2  3.18075e-06
  3  0.998633
  4  9.71643e-07
  5  0.999768
  6  4.36302e-06
  7  4.63398e-05
  8  1.92552e-07
  9  7.27957e-07
  10  2.50705e-05
  11  4.16145e-06
  12  2.40223e-06
  13  3.82214e-06
  14  1.70279e-05
  15  2.84864e-06
  16  2.0765e-06
  17  0.927538
  18  1.7536e-07
  19  1.04659
  20  6.83594e-07
  21  8.00438e-05
  22  5.99602e-06
  23  1.78446e-06
  24  9.3908e-06
  25  1.16584
  26  0.843478
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 283.929159737

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.402e-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:  4.822e-01  8.435e-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.904e-01  1.166e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 1.32e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149661/likelihoodResults_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.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) = 283.929236956
delta logL = -7.72185968572e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 283.929160831
delta logL = -1.09377691615e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.9153       1.0000          .0000       10.000    
     3 'Normalizat'    .78998       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48243       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=   283.9292     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      291 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    935.78        .82343E-02** at limit **
   2  Index         2.3111        8.6991        .50000        .57383E-08
   3  Normalizat    .79036        .75093E-01    .23183E-03   -.48487E-05
   4  Prefactor     .48216        .51224E-01    .19792E-03   -.56364E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.31107
  Normalizat = 0.790364
  Prefactor  = 0.482161
 **********
 **   18 **HESSE 
 **********

 FCN=   283.9292     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7291.0        .11720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3111        5.5204        .50000       -.56781    
   3  Normalizat    .79036        .20544        .92732E-05   -1.0043    
   4  Prefactor     .48216        .14017        .79168E-05   -1.1280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.8871e-10
Minuit parameter uncertainties:
  1  0.00359541
  2  6816.38
  3  0.205646
  4  0.140274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149661': 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) = 283.929159668
delta logL = 6.96260826771e-08

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.595e-03  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.311e+00  6.816e+03  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:  4.822e-01  1.403e-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.904e-01  2.056e-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/149661/cmap_HighResolution_564364801_564624001_4FGL_J2203.3-5009_daily_bin1254.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-01', job_status='DONE', photon_flux_upper_limit='1.32e-06', time_completed='2021-09-28 03:13:47.945790', job_id='149661', GAL2='0.48', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632824027.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.48', dlogl='6.96e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1254' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:13:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 149661: <4FGL_J2203.3-5009_daily_bin1254> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1254> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:06:00 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:06:02 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:06:02 2021
Terminated at Tue Sep 28 03:13:48 2021
Results reported at Tue Sep 28 03:13:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1254 330.832 -50.1512 564364801 564624001 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 :                                   321.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   466 sec.
    Turnaround time :                            468 sec.

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

