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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1011
RA = 330.832, Dec = -50.1512
tmin = 501379201, tmax = 501638401
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='149277', job_status='RUN', time_executed='2021-09-28 03:05:48.248768', time_epoch_executed='1632823548.25' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149277

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149277/ft1_4FGL_J2203.3-5009_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149277/ft2_4FGL_J2203.3-5009_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149277/ft1_4FGL_J2203.3-5009_daily_bin1011.fits outfile=/scratch/kocevski/149277/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1011.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=501379201.0 tmax=501638401.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.57
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149277/ft2_4FGL_J2203.3-5009_daily_bin1011.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/149277/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1011.fits evtable="EVENTS" outfile="/scratch/kocevski/149277/ft1_filtered_4FGL_J2203.3-5009_daily_bin1011.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149277/ft1_filtered_4FGL_J2203.3-5009_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/149277/ft2_4FGL_J2203.3-5009_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/149277/ltcube_501379201_501638401_4FGL_J2203.3-5009_daily_bin1011.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/149277/ft2_4FGL_J2203.3-5009_daily_bin1011.fits
.....................!
real 11.96
user 11.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149277/ft1_filtered_4FGL_J2203.3-5009_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/149277/ft2_4FGL_J2203.3-5009_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/149277/ltcube_501379201_501638401_4FGL_J2203.3-5009_daily_bin1011.fits outfile=/scratch/kocevski/149277/expmap_501379201_501638401_4FGL_J2203.3-5009_daily_bin1011.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/149277/ltcube_501379201_501638401_4FGL_J2203.3-5009_daily_bin1011.fits
.....................!
real 190.16
user 185.42
sys 4.42

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/149277/ft1_filtered_4FGL_J2203.3-5009_daily_bin1011.fits scfile=/scratch/kocevski/149277/ft2_4FGL_J2203.3-5009_daily_bin1011.fits outfile=/scratch/kocevski/149277/cmap_501379201_501638401_4FGL_J2203.3-5009_daily_bin1011.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149277/ft1_filtered_4FGL_J2203.3-5009_daily_bin1011.fits scfile=/scratch/kocevski/149277/ft2_4FGL_J2203.3-5009_daily_bin1011.fits outfile=/scratch/kocevski/149277/cmap_HighResolution_501379201_501638401_4FGL_J2203.3-5009_daily_bin1011.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1935       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.0583       1.0000         .10000E-03   10000.    
     3 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10857E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1072       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.696       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1866       1.0000         .10000E-03   10000.    
     9 'norm      '    4.7337       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73683       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .88686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11113E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4486       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.198       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11062E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0562       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10712E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6394       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98004       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0776       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=   6858.943     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3117 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1940        3.7532       -.88538E-07   -.86360E-04
   2  Prefactor     5.0481        18.330       -.86330E-06   -.72494E-05
   3  norm          .10000E-03    1.1177        .14690E-07** at limit **
   4  Prefactor     .10000E-03    73.416        .47674E-06** at limit **
   5  Prefactor     2.1073        1.9718        .43853E-07   -.87319E-03
   6  Prefactor     .10000E-03    6.9629        .21931E-07** at limit **
   7  Prefactor     28.661        26.933        .76036E-05    .11398E-04
   8  Prefactor     3.1875        3.3814       -.15688E-06   -.53585E-04
   9  norm          4.7340        3.5200        .51298E-07   -.13832E-05
  10  Prefactor     .10000E-03    5.9363        .48938E-07** at limit **
  11  Prefactor     .57438        30.921       -.28532E-06    .64251E-04
  12  Prefactor     .10000E-03    5.5353        .40280E-07** at limit **
  13  Prefactor     .88581        2.6752       -.68742E-07   -.16899E-03
  14  Prefactor     .10000E-03    34.876        .18090E-06** at limit **
  15  norm          .10000E-03    1.7241       -.42330E-08** at limit **
  16  Prefactor     2.4493        2.4073        .12911E-06    .32396E-05
  17  Prefactor     28.186        34.171       -.20890E-05   -.47141E-05
  18  Prefactor     .10000E-03    1.8693        .17953E-08** at limit **
  19  Prefactor     .10000E-03    7.8747        .88871E-07** at limit **
  20  Prefactor     2.0606        9.9116        .47415E-05   -.22691E-04
  21  Prefactor     .10000E-03    22.116        .31201E-06** at limit **
  22  Prefactor     3.6386        5.1667       -.45560E-06   -.33320E-04
  23  Prefactor     .10000E-03    14.245        .12052E-06** at limit **
  24  Prefactor     .10000E-03    3.5279        .53632E-07** at limit **
  25  Normalizat    .98020        .17414       -.10633E-05   -.15198E-04
  26  Prefactor     1.0776        .13705       -.28438E-06   -.46080E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.19397
  Prefactor  = 5.04812
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.10728
  Prefactor  = 0.0001
  Prefactor  = 28.6614
  Prefactor  = 3.18749
  norm       = 4.73397
  Prefactor  = 0.0001
  Prefactor  = 0.574377
  Prefactor  = 0.0001
  Prefactor  = 0.885806
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.4493
  Prefactor  = 28.1862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.06058
  Prefactor  = 0.0001
  Prefactor  = 3.63859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.980204
  Prefactor  = 1.07761
 **********
 **   18 **HESSE 
 **********

 FCN=   6858.943     FROM HESSE     STATUS=OK           466 CALLS     3583 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1940        3.7342        .20024E-03   -1.5412    
   2  Prefactor     5.0481        18.307        .17878E-03   -1.5259    
   3  norm          .10000E-03    1.1479        .17087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    74.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1073        8.0058        .14212E-02   -1.5418    
   6  Prefactor     .10000E-03    6.9687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.661        26.987        .74790E-04   -1.4637    
   8  Prefactor     3.1875        3.3771        .15049E-03   -1.5351    
   9  norm          4.7340        3.5200        .12999E-03   -1.5273    
  10  Prefactor     .10000E-03    5.9842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .57438        40.920        .12057       -1.5556    
  12  Prefactor     .10000E-03    5.6063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .88581        2.6331        .22563E-03   -1.5520    
  14  Prefactor     .10000E-03    34.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.7245        .10620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4493        2.4059        .12261E-03   -1.5395    
  17  Prefactor     28.186        34.168        .75445E-04   -1.4646    
  18  Prefactor     .10000E-03    1.8826        .11054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0606        10.006        .28823E-03   -1.5421    
  21  Prefactor     .10000E-03    22.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.6386        5.1598        .21176E-03   -1.5326    
  23  Prefactor     .10000E-03    14.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.5303        .15192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98020        .20020        .26412E-03   -.93697    
  26  Prefactor     1.0776        .15734        .20447E-03   -.90186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06687e-09
Minuit parameter uncertainties:
  1  3.73461
  2  18.3278
  3  2.82953e-06
  4  0.000287478
  5  8.00988
  6  3.61015e-06
  7  26.999
  8  3.37734
  9  3.52011
  10  7.37254e-06
  11  9.70215
  12  2.39652e-06
  13  2.6334
  14  2.57788e-06
  15  5.90168e-07
  16  2.40602
  17  34.1914
  18  4.60799e-07
  19  1.77554e-05
  20  9.08382
  21  1.4647e-05
  22  5.16039
  23  1.45962e-06
  24  4.35694e-07
  25  0.200349
  26  0.157405
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.397e-06  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.739e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
325        Scale:  5.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.078e+00  1.574e-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:  9.802e-01  2.003e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/149277/likelihoodResults_501379201_501638401_4FGL_J2203.3-5009_daily_bin1011.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) = 6858.94350134
delta logL = -0.000850216587423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6858.94265113
delta logL = -6.77027856e-09

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.7299       1.0000          .0000       10.000    
     3 'Normalizat'    .98021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0776       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.

 FCN=   6858.943     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      201 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    63.132        .90712E-02** at limit **
   2  Index         2.7205        7.7610        .50000        .15402E-04
   3  Normalizat    .98020        .16650        .45918E-01    .21050E-04
   4  Prefactor     1.0776        .13484        .38506E-01    .51485E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.72046
  Normalizat = 0.980204
  Prefactor  = 1.07761
 **********
 **   18 **HESSE 
 **********

 FCN=   6858.943     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7205        6.3488        .50000       -.47339    
   3  Normalizat    .98020        .18968        .26412E-03   -.93697    
   4  Prefactor     1.0776        .15406        .20447E-03   -.90186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41905e-10
Minuit parameter uncertainties:
  1  1.4147e-05
  2  4.45757
  3  0.18981
  4  0.15412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149277': 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) = 6858.94265106
delta logL = 6.50024958304e-08

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.415e-05  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.720e+00  4.458e+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:  1.078e+00  1.541e-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:  9.802e-01  1.898e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/149277/cmap_HighResolution_501379201_501638401_4FGL_J2203.3-5009_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-03', job_status='DONE', photon_flux_upper_limit='7.21e-08', time_completed='2021-09-28 03:18:37.709486', job_id='149277', GAL2='1.08', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1632824317.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1011' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:18:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 149277: <4FGL_J2203.3-5009_daily_bin1011> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1011> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:24 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:26 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:26 2021
Terminated at Tue Sep 28 03:18:38 2021
Results reported at Tue Sep 28 03:18:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1011 330.832 -50.1512 501379201 501638401 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 :                                   767.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             372.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            794 sec.

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

