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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1074
RA = 330.832, Dec = -50.1512
tmin = 517708801, tmax = 517968001
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='149376', job_status='RUN', time_executed='2021-09-28 03:08:47.000032', time_epoch_executed='1632823727.0' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149376

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149376/ft1_4FGL_J2203.3-5009_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149376/ft2_4FGL_J2203.3-5009_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149376/ft1_4FGL_J2203.3-5009_daily_bin1074.fits outfile=/scratch/kocevski/149376/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1074.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=517708801.0 tmax=517968001.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.68
user 3.44
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149376/ft1_filtered_4FGL_J2203.3-5009_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/149376/ft2_4FGL_J2203.3-5009_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/149376/ltcube_517708801_517968001_4FGL_J2203.3-5009_daily_bin1074.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/149376/ft2_4FGL_J2203.3-5009_daily_bin1074.fits
.....................!
real 12.93
user 12.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149376/ft1_filtered_4FGL_J2203.3-5009_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/149376/ft2_4FGL_J2203.3-5009_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/149376/ltcube_517708801_517968001_4FGL_J2203.3-5009_daily_bin1074.fits outfile=/scratch/kocevski/149376/expmap_517708801_517968001_4FGL_J2203.3-5009_daily_bin1074.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/149376/ltcube_517708801_517968001_4FGL_J2203.3-5009_daily_bin1074.fits
.....................!
real 193.28
user 187.52
sys 5.39

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/149376/ft1_filtered_4FGL_J2203.3-5009_daily_bin1074.fits scfile=/scratch/kocevski/149376/ft2_4FGL_J2203.3-5009_daily_bin1074.fits outfile=/scratch/kocevski/149376/cmap_517708801_517968001_4FGL_J2203.3-5009_daily_bin1074.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149376/ft1_filtered_4FGL_J2203.3-5009_daily_bin1074.fits scfile=/scratch/kocevski/149376/ft2_4FGL_J2203.3-5009_daily_bin1074.fits outfile=/scratch/kocevski/149376/cmap_HighResolution_517708801_517968001_4FGL_J2203.3-5009_daily_bin1074.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=330.832 yref=-50.1512 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149376/ft1_filtered_4FGL_J2203.3-5009_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/149376/ft2_4FGL_J2203.3-5009_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149376/Model_4FGL_J2203.3-5009_daily_bin1074.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/149376/ft1_filtered_4FGL_J2203.3-5009_daily_bin1074.fits.....................!
real 50.55
user 49.23
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11991E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    32.695       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.361       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.332       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4863       1.0000         .10000E-03   10000.    
     9 'norm      '    13.659       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.192       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .55530       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.352       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11526E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8796       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0538       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .85688       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2567       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72202       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=   6432.390     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3182 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4678       -.71463E-07** at limit **
   2  Prefactor     .10000E-03    7.1402        .35013E-07** at limit **
   3  norm          .10000E-03    1.1734        .31244E-06** at limit **
   4  Prefactor     32.688        38.438        .53623E-07   -.10588E-04
   5  Prefactor     .10000E-03    7.5806        .21179E-06** at limit **
   6  Prefactor     39.357        33.666       -.12253E-06   -.11200E-04
   7  Prefactor     29.330        21.189        .50805E-07   -.69885E-05
   8  Prefactor     7.4857        4.7517        .12453E-06   -.95013E-05
   9  norm          13.659        5.9836        .26022E-06    .98901E-04
  10  Prefactor     .10000E-03    4.4234        .65567E-07** at limit **
  11  Prefactor     .10000E-03    58.670        .46129E-06** at limit **
  12  Prefactor     .10000E-03    2.9015        .67197E-08** at limit **
  13  Prefactor     11.191        4.8321        .10527E-06    .48217E-04
  14  Prefactor     .10000E-03    27.153        .29002E-07** at limit **
  15  norm          .10000E-03    6.8862        .16326E-06** at limit **
  16  Prefactor     .54244        2.9495       -.11967E-05    .61836E-03
  17  Prefactor     .10000E-03    41.454       -.78412E-07** at limit **
  18  Prefactor     11.351        7.3310        .16130E-05    .52450E-03
  19  Prefactor     .10000E-03    82.451       -.14073E-05** at limit **
  20  Prefactor     1.8760        10.972       -.30172E-06   -.38689E-06
  21  Prefactor     7.9333        106.06       -.12002E-05   -.20029E-04
  22  Prefactor     .85359        7.1268        .11333E-05   -.13683E-03
  23  Prefactor     .10000E-03    11.920       -.95627E-07** at limit **
  24  Prefactor     .10000E-03    5.2148       -.23240E-07** at limit **
  25  Normalizat    1.2567        .18659       -.39485E-06    .43475E-04
  26  Prefactor     .72206        .13054       -.48816E-06   -.42462E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.688
  Prefactor  = 0.0001
  Prefactor  = 39.3565
  Prefactor  = 29.3303
  Prefactor  = 7.48565
  norm       = 13.6591
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1912
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.542436
  Prefactor  = 0.0001
  Prefactor  = 11.3508
  Prefactor  = 0.000100001
  Prefactor  = 1.87598
  Prefactor  = 7.93325
  Prefactor  = 0.853589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25673
  Prefactor  = 0.722061
 **********
 **   18 **HESSE 
 **********

 FCN=   6432.390     FROM HESSE     STATUS=OK           464 CALLS     3646 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.649        .18778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.1537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0762        .16652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     32.688        38.451        .70077E-04   -1.4564    
   5  Prefactor     .10000E-03    7.7821        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     39.357        33.689        .63888E-04   -1.4452    
   7  Prefactor     29.330        21.197        .73977E-04   -1.4624    
   8  Prefactor     7.4857        4.7546        .13203E-03   -1.5161    
   9  norm          13.659        5.9892        .54188E-03   -1.4969    
  10  Prefactor     .10000E-03    4.5025        .16473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    59.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9114        .13339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.191        4.8469        .11010E-03   -1.5039    
  14  Prefactor     .10000E-03    27.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.0283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .54244        7.3749        .22573E-02   -1.5561    
  17  Prefactor     .10000E-03    41.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.351        7.5301        .59453E-03   -1.5034    
  19  Prefactor     .10000E-03    83.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8760        10.845        .30366E-03   -1.5434    
  21  Prefactor     7.9333        106.78        .14128E-03   -1.5145    
  22  Prefactor     .85359        16.160        .39586E-02   -1.5523    
  23  Prefactor     .10000E-03    11.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.2168        .17887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2567        .21710        .24359E-03   -.84867    
  26  Prefactor     .72206        .15115        .23190E-03   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60559e-08
Minuit parameter uncertainties:
  1  0.000590217
  2  3.92477e-07
  3  9.37986e-06
  4  38.4802
  5  1.4935e-05
  6  33.7051
  7  21.2025
  8  4.75488
  9  5.98942
  10  3.08061e-06
  11  9.72036e-05
  12  8.61227e-07
  13  4.84702
  14  1.2164e-05
  15  7.81129e-06
  16  4.00043
  17  1.53329e-05
  18  7.5307
  19  0.000467287
  20  9.02353
  21  58.3364
  22  7.42998
  23  8.3877e-06
  24  6.57255e-07
  25  0.21726
  26  0.151233
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  8.612e-07  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:  7.221e-01  1.512e-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.257e+00  2.173e-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: 6.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149376/likelihoodResults_517708801_517968001_4FGL_J2203.3-5009_daily_bin1074.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) = 6432.39172769
delta logL = -0.00162977983382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6432.39009794
delta logL = -2.15159161598e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7399       1.0000          .0000       10.000    
     3 'Normalizat'    1.2567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72207       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=   6431.877     FROM MIGRAD    STATUS=FAILED       205 CALLS      356 TOTAL
                     EDM=   .97E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59952E-03    .31643E-01    .44862E-03** at limit **
   2  Index         9.7335        9.2049        .50000        .96935E-04
   3  Normalizat    1.1983        .82530E-01    .24359E-03   -.26777E-03
   4  Prefactor     .75004        .56979E-01    .23190E-03   -.20649E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6431.877     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      440 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59952E-03    .31643E-01    .10141E-04** at limit **
   2  Index         9.7335        9.2049        .13568E-01    .96935E-04
   3  Normalizat    1.1983        .82530E-01    .59070E-04   -.26777E-03
   4  Prefactor     .75004        .56979E-01    .50016E-04   -.20649E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6431.877     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      485 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .59950E-03    .69474E-03   -.66270E-08** at limit **
   2  Index         9.7336        .27853       -.10235E-04   -.25799E-05
   3  Normalizat    1.1983        .20741       -.63528E-08   -.23341E-03
   4  Prefactor     .75004        .15193        .54841E-08   -.19007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000599502
  Index      = 9.73356
  Normalizat = 1.19825
  Prefactor  = 0.750038
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.877     FROM HESSE     STATUS=OK            27 CALLS      512 TOTAL
                     EDM=   .69E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .59950E-03    .46468E-02    .90534E-06   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.7336        7.7453        .11423E-01    1.8987    
   3  Normalizat    1.1983        .20732        .97435E-05   -.86657    
   4  Prefactor     .75004        .15195        .18552E-05   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93004e-11
Minuit parameter uncertainties:
  1  0.00304703
  2  3.30248
  3  0.207463
  4  0.152038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149376': 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) = 6431.87706876
delta logL = 0.513029158388

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  5.995e-04  3.047e-03  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  9.734e+00  3.302e+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:  7.500e-01  1.520e-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.198e+00  2.075e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.09
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 9.73 +/- 3.30
Photon Flux (Free Index): 5.17e-08 +/- 5.02e-07
Energy Flux (Free Index): 5.80e-06 +/- 5.64e-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/149376/cmap_HighResolution_517708801_517968001_4FGL_J2203.3-5009_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', comment='SUCCESS', energy_flux2='5.80e-06', dlogl='5.13e-01', photon_flux2='5.17e-08', job_status='DONE', time_completed='2021-09-28 03:21:56.240445', photon_index_error2='3.30', photon_index2='9.73', ts='-0.00', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='6.48e-08', energy_flux_error2='5.64e-05', EG='1.26', time_epoch_completed='1632824516.24', return_code='0', job_id='149376', GAL2='0.75', EG2='1.20', return_code2='0', photon_flux_error2='5.02e-07', ts2='1.09', photon_index='2.74' WHERE bin_id='1074' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:21:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 149376: <4FGL_J2203.3-5009_daily_bin1074> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1074> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:34 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:36 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:05:36 2021
Terminated at Tue Sep 28 03:21:57 2021
Results reported at Tue Sep 28 03:21:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1074 330.832 -50.1512 517708801 517968001 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 :                                   785.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

