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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin858
RA = 330.832, Dec = -50.1512
tmin = 461721601, tmax = 461980801
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='147936', job_status='RUN', time_executed='2021-09-28 03:01:22.007396', time_epoch_executed='1632823282.01' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147936

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147936/ft1_4FGL_J2203.3-5009_daily_bin858.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147936/ft2_4FGL_J2203.3-5009_daily_bin858.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147936/ft1_4FGL_J2203.3-5009_daily_bin858.fits outfile=/scratch/kocevski/147936/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin858.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=461721601.0 tmax=461980801.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 4.17
user 3.92
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147936/ft2_4FGL_J2203.3-5009_daily_bin858.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/147936/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin858.fits evtable="EVENTS" outfile="/scratch/kocevski/147936/ft1_filtered_4FGL_J2203.3-5009_daily_bin858.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147936/ft1_filtered_4FGL_J2203.3-5009_daily_bin858.fits" evtable="EVENTS" scfile=/scratch/kocevski/147936/ft2_4FGL_J2203.3-5009_daily_bin858.fits sctable="SC_DATA" outfile=/scratch/kocevski/147936/ltcube_461721601_461980801_4FGL_J2203.3-5009_daily_bin858.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/147936/ft2_4FGL_J2203.3-5009_daily_bin858.fits
.....................!
real 15.52
user 15.11
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147936/ft1_filtered_4FGL_J2203.3-5009_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/147936/ft2_4FGL_J2203.3-5009_daily_bin858.fits sctable="SC_DATA" expcube=/scratch/kocevski/147936/ltcube_461721601_461980801_4FGL_J2203.3-5009_daily_bin858.fits outfile=/scratch/kocevski/147936/expmap_461721601_461980801_4FGL_J2203.3-5009_daily_bin858.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/147936/ltcube_461721601_461980801_4FGL_J2203.3-5009_daily_bin858.fits
.....................!
real 193.88
user 189.20
sys 4.29

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/147936/ft1_filtered_4FGL_J2203.3-5009_daily_bin858.fits scfile=/scratch/kocevski/147936/ft2_4FGL_J2203.3-5009_daily_bin858.fits outfile=/scratch/kocevski/147936/cmap_461721601_461980801_4FGL_J2203.3-5009_daily_bin858.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147936/ft1_filtered_4FGL_J2203.3-5009_daily_bin858.fits scfile=/scratch/kocevski/147936/ft2_4FGL_J2203.3-5009_daily_bin858.fits outfile=/scratch/kocevski/147936/cmap_HighResolution_461721601_461980801_4FGL_J2203.3-5009_daily_bin858.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.63
user 0.44
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147936/ft1_filtered_4FGL_J2203.3-5009_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/147936/ft2_4FGL_J2203.3-5009_daily_bin858.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147936/Model_4FGL_J2203.3-5009_daily_bin858.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/147936/ft1_filtered_4FGL_J2203.3-5009_daily_bin858.fits.....................!
real 55.14
user 53.73
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3250       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.529       1.0000         .10000E-03   10000.    
     3 'norm      '    .84078       1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.158       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15454E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.036       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .62751       1.0000         .10000E-03   10000.    
     9 'norm      '    5.5241       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8133       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8325       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.885       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.309       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13696E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2650       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0649       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75100       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=   7271.087     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3119 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3252        3.0668        .97123E-08    .71310E-04
   2  Prefactor     12.530        15.188        .42043E-06    .66146E-04
   3  norm          .84092        1.3237       -.25896E-06   -.37545E-03
   4  Prefactor     47.159        32.355       -.22021E-06    .24487E-04
   5  Prefactor     .10000E-03    5.4684        .75599E-06** at limit **
   6  Prefactor     .10000E-03    84.860        .28822E-04** at limit **
   7  Prefactor     10.036        16.257        .23073E-06    .37471E-04
   8  Prefactor     .62808        2.0302       -.61308E-06   -.69134E-04
   9  norm          5.5224        3.3165        .88966E-06    .69233E-03
  10  Prefactor     7.8130        5.8987        .15008E-06    .10078E-03
  11  Prefactor     .10000E-03    13.971       -.13160E-05** at limit **
  12  Prefactor     .10000E-03    2.3578        .60782E-08** at limit **
  13  Prefactor     1.8332        3.5815        .28913E-06   -.99045E-05
  14  Prefactor     21.883        51.175        .12894E-05   -.66115E-05
  15  norm          .10000E-03    3.9286       -.38946E-07** at limit **
  16  Prefactor     .10000E-03    1.9524       -.29639E-06** at limit **
  17  Prefactor     31.299        43.705        .70521E-05    .82917E-04
  18  Prefactor     .10000E-03    1.2921       -.79032E-07** at limit **
  19  Prefactor     .10001E-03    90.183        .14130E-04** at limit **
  20  Prefactor     6.2645        5.5879       -.23308E-08   -.72355E-03
  21  Prefactor     .10000E-03    20.513        .17762E-05** at limit **
  22  Prefactor     .10000E-03    6.4551       -.11668E-05** at limit **
  23  Prefactor     .10000E-03    8.3138        .83096E-06** at limit **
  24  Prefactor     .10000E-03    4.8208       -.17624E-06** at limit **
  25  Normalizat    1.0649        .14965        .27013E-06    .16598E-03
  26  Prefactor     .75090        .11417        .23743E-06    .10078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.32522
  Prefactor  = 12.5299
  norm       = 0.840921
  Prefactor  = 47.159
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 10.0358
  Prefactor  = 0.628078
  norm       = 5.52237
  Prefactor  = 7.81295
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.83317
  Prefactor  = 21.8833
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.2994
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 6.26452
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.06495
  Prefactor  = 0.750899
 **********
 **   18 **HESSE 
 **********

 FCN=   7271.087     FROM HESSE     STATUS=OK           460 CALLS     3579 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3252        3.0661        .10046E-03   -1.5205    
   2  Prefactor     12.530        15.193        .11317E-03   -1.5000    
   3  norm          .84092        1.2635        .11978E-02   -1.5525    
   4  Prefactor     47.159        32.351        .58389E-04   -1.4333    
   5  Prefactor     .10000E-03    5.6306        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    84.184        .60287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.036        16.245        .12649E-03   -1.5074    
   8  Prefactor     .62808        2.0747        .22056E-03   -1.5549    
   9  norm          5.5224        3.2636        .11439E-03   -1.5238    
  10  Prefactor     7.8130        5.8958        .14345E-03   -1.5149    
  11  Prefactor     .10000E-03    14.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.3694        .12774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8332        3.6556        .21521E-03   -1.5437    
  14  Prefactor     21.883        51.099        .85620E-04   -1.4772    
  15  norm          .10000E-03    3.9848        .16504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.0203        .23262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.299        44.388        .71608E-04   -1.4588    
  18  Prefactor     .10000E-03    1.2982        .94648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    91.325        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2645        5.7461        .80187E-03   -1.5207    
  21  Prefactor     .10000E-03    20.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.3186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.8285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0649        .17035        .22837E-03   -.90885    
  26  Prefactor     .75090        .13073        .20794E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.595e-09
Minuit parameter uncertainties:
  1  3.06615
  2  15.198
  3  1.26356
  4  32.3635
  5  2.93457e-06
  6  0.0010464
  7  16.2524
  8  2.07489
  9  3.26371
  10  5.89619
  11  4.20007e-05
  12  9.04683e-06
  13  3.65601
  14  51.2014
  15  1.17929e-05
  16  5.11218e-05
  17  44.4349
  18  6.63707e-06
  19  0.00199859
  20  5.74659
  21  3.11098e-05
  22  7.31927e-05
  23  7.59778e-06
  24  6.25593e-06
  25  0.17044
  26  0.130781
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  9.047e-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:  7.509e-01  1.308e-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.065e+00  1.704e-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: 4.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147936/likelihoodResults_461721601_461980801_4FGL_J2203.3-5009_daily_bin858.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) = 7271.08912448
delta logL = -0.00200851459158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7271.08711586
delta logL = 1.04861101136e-07

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 'Index     '    2.7282       1.0000          .0000       10.000    
     3 'Normalizat'    1.0649       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75090       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=   7271.087     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      249 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.677        .12838E-01** at limit **
   2  Index         2.3329        8.3940        .50000        .52978E-07
   3  Normalizat    1.0649        .86951E-02    .22837E-03    .92742E-04
   4  Prefactor     .75090        .67943E-02    .20794E-03    .11831E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.33294
  Normalizat = 1.06495
  Prefactor  = 0.7509
 **********
 **   18 **HESSE 
 **********

 FCN=   7271.087     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    136.93        .13394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3329        8.8335        .50000       -.56263    
   3  Normalizat    1.0649        .29031E-01    .91349E-05   -.90885    
   4  Prefactor     .75090        .22685E-01    .83177E-05   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.94991e-10
Minuit parameter uncertainties:
  1  0.000163742
  2  735.018
  3  0.0290317
  4  0.0226854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147936': 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) = 7271.08711405
delta logL = 1.91679737327e-06

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.637e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.333e+00  7.350e+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:  7.509e-01  2.269e-02  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.065e+00  2.903e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/147936/cmap_HighResolution_461721601_461980801_4FGL_J2203.3-5009_daily_bin858.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.89e-03', job_status='DONE', photon_flux_upper_limit='4.94e-08', time_completed='2021-09-28 03:15:15.480324', job_id='147936', GAL2='0.75', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632824115.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.92e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='858' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:15:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 147936: <4FGL_J2203.3-5009_daily_bin858> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin858> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 03:00:31 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:00:33 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:33 2021
Terminated at Tue Sep 28 03:15:16 2021
Results reported at Tue Sep 28 03:15:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin858 330.832 -50.1512 461721601 461980801 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 :                                   830.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            885 sec.

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

