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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1145
RA = 330.832, Dec = -50.1512
tmin = 536112001, tmax = 536371201
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='149488', job_status='RUN', time_executed='2021-09-28 03:09:27.331677', time_epoch_executed='1632823767.33' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149488

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149488/ft1_4FGL_J2203.3-5009_daily_bin1145.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149488/ft2_4FGL_J2203.3-5009_daily_bin1145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149488/ft1_4FGL_J2203.3-5009_daily_bin1145.fits outfile=/scratch/kocevski/149488/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1145.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=536112001.0 tmax=536371201.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.54
user 3.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149488/ft2_4FGL_J2203.3-5009_daily_bin1145.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/149488/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1145.fits evtable="EVENTS" outfile="/scratch/kocevski/149488/ft1_filtered_4FGL_J2203.3-5009_daily_bin1145.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149488/ft1_filtered_4FGL_J2203.3-5009_daily_bin1145.fits" evtable="EVENTS" scfile=/scratch/kocevski/149488/ft2_4FGL_J2203.3-5009_daily_bin1145.fits sctable="SC_DATA" outfile=/scratch/kocevski/149488/ltcube_536112001_536371201_4FGL_J2203.3-5009_daily_bin1145.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/149488/ft2_4FGL_J2203.3-5009_daily_bin1145.fits
.....................!
real 11.94
user 11.62
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149488/ft1_filtered_4FGL_J2203.3-5009_daily_bin1145.fits evtable="EVENTS" scfile=/scratch/kocevski/149488/ft2_4FGL_J2203.3-5009_daily_bin1145.fits sctable="SC_DATA" expcube=/scratch/kocevski/149488/ltcube_536112001_536371201_4FGL_J2203.3-5009_daily_bin1145.fits outfile=/scratch/kocevski/149488/expmap_536112001_536371201_4FGL_J2203.3-5009_daily_bin1145.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/149488/ltcube_536112001_536371201_4FGL_J2203.3-5009_daily_bin1145.fits
.....................!
real 190.03
user 185.17
sys 4.49

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/149488/ft1_filtered_4FGL_J2203.3-5009_daily_bin1145.fits scfile=/scratch/kocevski/149488/ft2_4FGL_J2203.3-5009_daily_bin1145.fits outfile=/scratch/kocevski/149488/cmap_536112001_536371201_4FGL_J2203.3-5009_daily_bin1145.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149488/ft1_filtered_4FGL_J2203.3-5009_daily_bin1145.fits scfile=/scratch/kocevski/149488/ft2_4FGL_J2203.3-5009_daily_bin1145.fits outfile=/scratch/kocevski/149488/cmap_HighResolution_536112001_536371201_4FGL_J2203.3-5009_daily_bin1145.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149488/ft1_filtered_4FGL_J2203.3-5009_daily_bin1145.fits evtable="EVENTS" scfile=/scratch/kocevski/149488/ft2_4FGL_J2203.3-5009_daily_bin1145.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149488/Model_4FGL_J2203.3-5009_daily_bin1145.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/149488/ft1_filtered_4FGL_J2203.3-5009_daily_bin1145.fits.....................!
real 48.38
user 46.93
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5139       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9317       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.106       1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.419       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.322       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.7621       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9491       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12378E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.2753       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6489       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.198       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7892       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10775E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11461E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.461       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1596       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91797       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=   6051.523     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3154 TOTAL
                     EDM=   .98E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .93332       -.41747E-07** at limit **
   2  Prefactor     .10000E-03    6.6773        .49614E-07** at limit **
   3  norm          3.5142        2.2613        .43051E-07   -.99261E-04
   4  Prefactor     2.8698        118.01        .24226E-04   -.30460E-04
   5  Prefactor     21.105        11.982        .34629E-06   -.37511E-04
   6  Prefactor     54.427        44.713       -.10029E-05   -.16056E-04
   7  Prefactor     21.336        30.776       -.25806E-05   -.11181E-03
   8  Prefactor     .10000E-03    3.0098       -.29343E-08** at limit **
   9  norm          4.7631        6.2248        .23055E-06    .81882E-05
  10  Prefactor     3.9528        11.201        .35901E-05    .20589E-05
  11  Prefactor     .10000E-03    45.473       -.18589E-06** at limit **
  12  Prefactor     .10000E-03    2.7299        .21507E-07** at limit **
  13  Prefactor     6.2763        4.9003        .10480E-06    .13044E-04
  14  Prefactor     .10000E-03    36.175       -.16235E-05** at limit **
  15  norm          1.6495        5.1117        .81242E-05   -.40290E-06
  16  Prefactor     14.198        5.5471        .11744E-06   -.62855E-04
  17  Prefactor     .10000E-03    31.437       -.59597E-06** at limit **
  18  Prefactor     1.7875        4.3053        .57835E-06    .22289E-04
  19  Prefactor     .10000E-03    12.845       -.14361E-05** at limit **
  20  Prefactor     .10000E-03    4.2120       -.87824E-07** at limit **
  21  Prefactor     35.442        60.917        .33578E-05    .24071E-05
  22  Prefactor     .10000E-03    9.9873        .10032E-05** at limit **
  23  Prefactor     .10000E-03    22.677        .19233E-05** at limit **
  24  Prefactor     .10000E-03    7.6758       -.50873E-06** at limit **
  25  Normalizat    1.1595        .20663       -.21585E-05   -.21816E-03
  26  Prefactor     .91788        .15131        .25538E-06   -.10253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.51417
  Prefactor  = 2.86982
  Prefactor  = 21.1047
  Prefactor  = 54.4272
  Prefactor  = 21.3355
  Prefactor  = 0.0001
  norm       = 4.7631
  Prefactor  = 3.95275
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.27632
  Prefactor  = 0.0001
  norm       = 1.6495
  Prefactor  = 14.198
  Prefactor  = 0.0001
  Prefactor  = 1.78751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.4423
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15952
  Prefactor  = 0.917882
 **********
 **   18 **HESSE 
 **********

 FCN=   6051.523     FROM HESSE     STATUS=OK           454 CALLS     3608 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .93533        .73389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.6870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5142        2.2583        .89962E-04   -1.5333    
   4  Prefactor     2.8698        118.68        .23724E-03   -1.5369    
   5  Prefactor     21.105        11.985        .87185E-04   -1.4789    
   6  Prefactor     54.427        44.579        .54374E-04   -1.4231    
   7  Prefactor     21.336        30.884        .86742E-04   -1.4784    
   8  Prefactor     .10000E-03    3.1034        .26338E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.7631        6.2012        .18437E-03   -1.5271    
  10  Prefactor     3.9528        11.185        .10149E-02   -1.5310    
  11  Prefactor     .10000E-03    45.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7341        .12551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.2763        4.9191        .14289E-03   -1.5207    
  14  Prefactor     .10000E-03    36.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6495        5.1287        .15217E-02   -1.5451    
  16  Prefactor     14.198        5.5720        .10630E-03   -1.4954    
  17  Prefactor     .10000E-03    31.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7875        4.2751        .24091E-03   -1.5441    
  19  Prefactor     .10000E-03    12.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2219        .15591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.442        60.947        .67297E-04   -1.4517    
  22  Prefactor     .10000E-03    10.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.6859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1595        .24358        .27074E-03   -.87863    
  26  Prefactor     .91788        .17794        .22676E-03   -.95519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.65018e-10
Minuit parameter uncertainties:
  1  1.85044e-06
  2  1.6083e-05
  3  2.25832
  4  36.9884
  5  11.9859
  6  44.6066
  7  30.9067
  8  3.24219e-06
  9  6.20201
  10  11.1907
  11  4.8232e-05
  12  2.65083e-06
  13  4.9194
  14  4.25003e-06
  15  5.13006
  16  5.57218
  17  3.26145e-06
  18  4.27588
  19  6.52108e-06
  20  6.64337e-06
  21  61.054
  22  5.4479e-06
  23  4.76952e-06
  24  4.69131e-07
  25  0.24382
  26  0.178048
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.651e-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:  9.179e-01  1.780e-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.160e+00  2.438e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149488/likelihoodResults_536112001_536371201_4FGL_J2203.3-5009_daily_bin1145.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) = 6051.52499262
delta logL = -0.00173108481704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6051.52326154
delta logL = -4.06635081163e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7342       1.0000          .0000       10.000    
     3 'Normalizat'    1.1595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91790       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=   6051.523     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    284.15        .12564E-02** at limit **
   2  Index         2.4219        8.4664        .50000       -.22283E-07
   3  Normalizat    1.1595        .58554E-01    .27074E-03    .13437E-04
   4  Prefactor     .91788        .44441E-01    .22676E-03    .24366E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42185
  Normalizat = 1.15952
  Prefactor  = 0.91788
 **********
 **   18 **HESSE 
 **********

 FCN=   6051.523     FROM HESSE     STATUS=OK            29 CALLS      280 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4072        .25128E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4219        7.2467        .50000       -.54174    
   3  Normalizat    1.1595        .22724        .10830E-04   -.87863    
   4  Prefactor     .91788        .17251        .90703E-05   -.95519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46675e-12
Minuit parameter uncertainties:
  1  2.12263e-06
  2  228.162
  3  0.227438
  4  0.172615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149488': 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) = 6051.5232609
delta logL = 6.34697244095e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.123e-06  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.422e+00  2.282e+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:  9.179e-01  1.726e-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.160e+00  2.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.832 -50.151

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/149488/cmap_HighResolution_536112001_536371201_4FGL_J2203.3-5009_daily_bin1145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.37e-03', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-28 03:21:35.050215', job_id='149488', GAL2='0.92', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1632824495.05', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='6.35e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1145' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:21:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 149488: <4FGL_J2203.3-5009_daily_bin1145> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1145 330.832 -50.1512 536112001 536371201 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 :                                   719.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             268.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            952 sec.

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

