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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1152
RA = 330.832, Dec = -50.1512
tmin = 537926401, tmax = 538185601
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='149499', job_status='RUN', time_executed='2021-09-28 03:09:02.066123', time_epoch_executed='1632823742.07' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149499

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149499/ft1_4FGL_J2203.3-5009_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149499/ft2_4FGL_J2203.3-5009_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149499/ft1_4FGL_J2203.3-5009_daily_bin1152.fits outfile=/scratch/kocevski/149499/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1152.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=537926401.0 tmax=538185601.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 6.58
user 6.24
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149499/ft1_filtered_4FGL_J2203.3-5009_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/149499/ft2_4FGL_J2203.3-5009_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/149499/ltcube_537926401_538185601_4FGL_J2203.3-5009_daily_bin1152.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/149499/ft2_4FGL_J2203.3-5009_daily_bin1152.fits
.....................!
real 12.78
user 12.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149499/ft1_filtered_4FGL_J2203.3-5009_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/149499/ft2_4FGL_J2203.3-5009_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/149499/ltcube_537926401_538185601_4FGL_J2203.3-5009_daily_bin1152.fits outfile=/scratch/kocevski/149499/expmap_537926401_538185601_4FGL_J2203.3-5009_daily_bin1152.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/149499/ltcube_537926401_538185601_4FGL_J2203.3-5009_daily_bin1152.fits
.....................!
real 190.23
user 185.14
sys 4.77

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/149499/ft1_filtered_4FGL_J2203.3-5009_daily_bin1152.fits scfile=/scratch/kocevski/149499/ft2_4FGL_J2203.3-5009_daily_bin1152.fits outfile=/scratch/kocevski/149499/cmap_537926401_538185601_4FGL_J2203.3-5009_daily_bin1152.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149499/ft1_filtered_4FGL_J2203.3-5009_daily_bin1152.fits scfile=/scratch/kocevski/149499/ft2_4FGL_J2203.3-5009_daily_bin1152.fits outfile=/scratch/kocevski/149499/cmap_HighResolution_537926401_538185601_4FGL_J2203.3-5009_daily_bin1152.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149499/ft1_filtered_4FGL_J2203.3-5009_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/149499/ft2_4FGL_J2203.3-5009_daily_bin1152.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149499/Model_4FGL_J2203.3-5009_daily_bin1152.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/149499/ft1_filtered_4FGL_J2203.3-5009_daily_bin1152.fits.....................!
real 44.92
user 43.65
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9399       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.139       1.0000         .10000E-03   10000.    
     3 'norm      '    3.0975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37816E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.011       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9866       1.0000         .10000E-03   10000.    
     9 'norm      '    20.423       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8688       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9688       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12547E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8806       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9916       1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.467       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.9306       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99255       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88189       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=   5515.725     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3061 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9404        4.4106       -.19096E-06    .11218E-04
   2  Prefactor     15.140        15.984       -.44670E-07    .62904E-05
   3  norm          3.0975        2.0319       -.13895E-09    .32060E-04
   4  Prefactor     35.954        35.697       -.18542E-07    .45639E-05
   5  Prefactor     .10000E-03    42.029       -.36124E-05** at limit **
   6  Prefactor     .10000E-03    13.028       -.20889E-06** at limit **
   7  Prefactor     16.013        22.678       -.13120E-06    .17070E-04
   8  Prefactor     4.9860        4.6036       -.19886E-06    .98429E-04
   9  norm          20.423        7.4685       -.92859E-07    .46130E-04
  10  Prefactor     .10000E-03    4.3766       -.10662E-06** at limit **
  11  Prefactor     .10000E-03    41.520        .13646E-06** at limit **
  12  Prefactor     2.8592        7.4583       -.20442E-05    .29495E-04
  13  Prefactor     2.9685        3.1677       -.93553E-07    .52941E-04
  14  Prefactor     .10000E-03    266.26        .21875E-05** at limit **
  15  norm          .10000E-03    2.3753       -.27685E-07** at limit **
  16  Prefactor     5.8808        3.7062       -.34258E-07    .44396E-04
  17  Prefactor     .10000E-03    12.571        .23493E-07** at limit **
  18  Prefactor     .10000E-03    2.4640       -.68309E-07** at limit **
  19  Prefactor     .10000E-03    19.931       -.26792E-06** at limit **
  20  Prefactor     2.9978        10.661       -.17955E-05    .93266E-05
  21  Prefactor     22.431        52.287        .45472E-06    .35744E-04
  22  Prefactor     2.9311        6.0946       -.13393E-05   -.98305E-05
  23  Prefactor     .10000E-03    10.561       -.31598E-07** at limit **
  24  Prefactor     .10000E-03    8.6330       -.12354E-06** at limit **
  25  Normalizat    .99256        .19439        .88316E-06    .64245E-04
  26  Prefactor     .88182        .14887        .32840E-06    .96679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9404
  Prefactor  = 15.1399
  norm       = 3.09747
  Prefactor  = 35.954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0131
  Prefactor  = 4.98597
  norm       = 20.4227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.85915
  Prefactor  = 2.96849
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 5.88082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.99783
  Prefactor  = 22.4314
  Prefactor  = 2.93111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.992556
  Prefactor  = 0.88182
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.725     FROM HESSE     STATUS=OK           460 CALLS     3521 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9404        4.4112        .12899E-03   -1.5220    
   2  Prefactor     15.140        15.978        .10294E-03   -1.4930    
   3  norm          3.0975        2.0283        .83153E-04   -1.5356    
   4  Prefactor     35.954        35.710        .66838E-04   -1.4508    
   5  Prefactor     .10000E-03    41.319        .41127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.013        22.664        .10009E-03   -1.4907    
   8  Prefactor     4.9860        4.5621        .14534E-03   -1.5261    
   9  norm          20.423        7.4506        .88629E-04   -1.4804    
  10  Prefactor     .10000E-03    4.3847        .15175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    41.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8592        7.4424        .23999E-03   -1.5370    
  13  Prefactor     2.9685        3.1577        .13121E-03   -1.5363    
  14  Prefactor     .10000E-03    268.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3763        .11178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.8808        3.7109        .10910E-03   -1.5223    
  17  Prefactor     .10000E-03    12.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.4789        .11380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9978        10.627        .23470E-03   -1.5362    
  21  Prefactor     22.431        52.115        .84505E-04   -1.4760    
  22  Prefactor     2.9311        6.0769        .23728E-03   -1.5366    
  23  Prefactor     .10000E-03    10.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.7124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99256        .22600        .25879E-03   -.93280    
  26  Prefactor     .88182        .17434        .21396E-03   -.96779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.49389e-11
Minuit parameter uncertainties:
  1  4.41146
  2  15.9826
  3  2.02837
  4  35.7313
  5  4.97671e-05
  6  3.39537e-05
  7  22.6761
  8  4.56238
  9  7.45093
  10  1.98423e-06
  11  4.56173e-06
  12  7.44484
  13  3.15787
  14  0.000905573
  15  8.1249e-07
  16  3.71108
  17  3.59502e-05
  18  1.00388e-06
  19  4.15546e-05
  20  10.6339
  21  52.2207
  22  6.07819
  23  6.01653e-06
  24  3.97821e-06
  25  0.226223
  26  0.174446
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  2.859e+00  7.445e+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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  8.818e-01  1.744e-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.926e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149499/likelihoodResults_537926401_538185601_4FGL_J2203.3-5009_daily_bin1152.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) = 5515.69330511
delta logL = 0.032107152012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5515.68814611
delta logL = 0.0372661537285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6561       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2357       1.0000          .0000       10.000    
     3 'Normalizat'    .99866       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87768       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5515.688     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      272 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6522        8.3466        .10563E-02   -.16478E-04
   2  Index         2.2358        1.5352        .11548E-01    .65613E-05
   3  Normalizat    .99878        .21869        .25806E-03   -.15728E-04
   4  Prefactor     .87761        .17174        .21440E-03   -.27467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.65222
  Index      = 2.23583
  Normalizat = 0.998777
  Prefactor  = 0.877612
 **********
 **   18 **HESSE 
 **********

 FCN=   5515.688     FROM HESSE     STATUS=OK            27 CALLS      299 TOTAL
                     EDM=   .99E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6522        8.3507        .42252E-04   -1.5326    
   2  Index         2.2358        1.5366        .46193E-03   -.58576    
   3  Normalizat    .99878        .21887        .10322E-04   -.93071    
   4  Prefactor     .87761        .17188        .85760E-05   -.96928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.93565e-12
Minuit parameter uncertainties:
  1  8.35337
  2  1.57378
  3  0.219068
  4  0.171983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149499': 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) = 5515.68814584
delta logL = 0.0372664240267

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  3.652e+00  8.353e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.236e+00  1.574e+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:  8.776e-01  1.720e-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.988e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/149499/cmap_HighResolution_537926401_538185601_4FGL_J2203.3-5009_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.75e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-28 03:20:36.391237', job_id='149499', GAL2='0.88', fit_tolerance='1e-08', EG2='1.00', EG='0.99', time_epoch_completed='1632824436.39', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.73e-02', ts2='0.26', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1152' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:20:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 149499: <4FGL_J2203.3-5009_daily_bin1152> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1152> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:44 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:46 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:46 2021
Terminated at Tue Sep 28 03:20:37 2021
Results reported at Tue Sep 28 03:20:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1152 330.832 -50.1512 537926401 538185601 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 :                                   685.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

