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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1068
RA = 330.832, Dec = -50.1512
tmin = 516153601, tmax = 516412801
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='149367', job_status='RUN', time_executed='2021-09-28 03:05:47.885479', time_epoch_executed='1632823547.89' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149367

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149367/ft1_4FGL_J2203.3-5009_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149367/ft2_4FGL_J2203.3-5009_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149367/ft1_4FGL_J2203.3-5009_daily_bin1068.fits outfile=/scratch/kocevski/149367/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1068.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=516153601.0 tmax=516412801.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.63
user 3.35
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149367/ft1_filtered_4FGL_J2203.3-5009_daily_bin1068.fits" evtable="EVENTS" scfile=/scratch/kocevski/149367/ft2_4FGL_J2203.3-5009_daily_bin1068.fits sctable="SC_DATA" outfile=/scratch/kocevski/149367/ltcube_516153601_516412801_4FGL_J2203.3-5009_daily_bin1068.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/149367/ft2_4FGL_J2203.3-5009_daily_bin1068.fits
.....................!
real 16.73
user 16.27
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149367/ft1_filtered_4FGL_J2203.3-5009_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/149367/ft2_4FGL_J2203.3-5009_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/149367/ltcube_516153601_516412801_4FGL_J2203.3-5009_daily_bin1068.fits outfile=/scratch/kocevski/149367/expmap_516153601_516412801_4FGL_J2203.3-5009_daily_bin1068.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/149367/ltcube_516153601_516412801_4FGL_J2203.3-5009_daily_bin1068.fits
.....................!
real 195.38
user 189.70
sys 5.09

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/149367/ft1_filtered_4FGL_J2203.3-5009_daily_bin1068.fits scfile=/scratch/kocevski/149367/ft2_4FGL_J2203.3-5009_daily_bin1068.fits outfile=/scratch/kocevski/149367/cmap_516153601_516412801_4FGL_J2203.3-5009_daily_bin1068.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.38
sys 0.17

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

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149367/ft1_filtered_4FGL_J2203.3-5009_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/149367/ft2_4FGL_J2203.3-5009_daily_bin1068.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149367/Model_4FGL_J2203.3-5009_daily_bin1068.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/149367/ft1_filtered_4FGL_J2203.3-5009_daily_bin1068.fits.....................!
real 57.82
user 56.32
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.373       1.0000         .10000E-03   10000.    
     3 'norm      '    .43658       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.288       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.3296       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26121E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.1220       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.668       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.084       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12387E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6968       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22360E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .97705       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8394       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10509E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .27343E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    90.076       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17158E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13535E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11335E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12285E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .48897       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3402       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=   8179.678     FROM MIGRAD    STATUS=CONVERGED    677 CALLS     3214 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2979        .49086E-08** at limit **
   2  Prefactor     23.368        16.870       -.38974E-06    .16141E-03
   3  norm          .43627        1.1612       -.63648E-06   -.16947E-02
   4  Prefactor     24.233        39.188       -.57366E-05    .27875E-03
   5  Prefactor     5.3269        6.5154       -.13992E-05    .24680E-03
   6  Prefactor     .10001E-03    17.130        .36027E-06** at limit **
   7  Prefactor     .10000E-03    5.7242        .47803E-08** at limit **
   8  Prefactor     .10000E-03    1.4274        .33418E-07** at limit **
   9  norm          6.1241        3.8102       -.86100E-07   -.10470E-03
  10  Prefactor     10.668        6.9406       -.10494E-06    .17533E-04
  11  Prefactor     16.278        26.422        .89371E-06    .19733E-05
  12  Prefactor     .10000E-03    3.6226       -.48598E-06** at limit **
  13  Prefactor     5.6948        3.3125       -.78296E-07    .15444E-03
  14  Prefactor     .10000E-03    46.378       -.52208E-07** at limit **
  15  norm          .97777        3.0239       -.10746E-05   -.84913E-03
  16  Prefactor     3.8484        3.3476       -.15888E-06   -.26982E-03
  17  Prefactor     .10000E-03    9.7173        .79445E-06** at limit **
  18  Prefactor     .10000E-03    2.4057       -.46881E-06** at limit **
  19  Prefactor     89.948        32.614        .21926E-05   -.38958E-04
  20  Prefactor     .10000E-03    5.4547       -.10012E-05** at limit **
  21  Prefactor     .10000E-03    26.267       -.56958E-07** at limit **
  22  Prefactor     .10000E-03    2.4995       -.66510E-08** at limit **
  23  Prefactor     .10000E-03    12.452        .85513E-08** at limit **
  24  Prefactor     .10000E-03    5.2746        .12472E-07** at limit **
  25  Normalizat    .48915        .17473       -.96326E-06    .26296E-03
  26  Prefactor     1.3401        .13577        .97895E-06    .27859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.3683
  norm       = 0.436268
  Prefactor  = 24.2334
  Prefactor  = 5.32686
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.12407
  Prefactor  = 10.6678
  Prefactor  = 16.2778
  Prefactor  = 0.000100001
  Prefactor  = 5.69477
  Prefactor  = 0.0001
  norm       = 0.977775
  Prefactor  = 3.84841
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 89.9482
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.489151
  Prefactor  = 1.34008
 **********
 **   18 **HESSE 
 **********

 FCN=   8179.678     FROM HESSE     STATUS=OK           468 CALLS     3682 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3352        .20119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.368        16.844        .82854E-04   -1.4741    
   3  norm          .43627        1.2482        .16601E-03   -1.5576    
   4  Prefactor     24.233        37.844        .81281E-04   -1.4723    
   5  Prefactor     5.3269        6.4853        .17409E-03   -1.5246    
   6  Prefactor     .10001E-03    20.427        .10078       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.7306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.4549        .10547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.1241        3.8134        .13076E-03   -1.5213    
  10  Prefactor     10.668        6.9406        .12267E-03   -1.5055    
  11  Prefactor     16.278        25.982        .99868E-04   -1.4901    
  12  Prefactor     .10000E-03    9.6284        .32401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6948        3.2949        .11950E-03   -1.5231    
  14  Prefactor     .10000E-03    46.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .97777        3.3366        .28697E-02   -1.5510    
  16  Prefactor     3.8484        3.3502        .14472E-03   -1.5316    
  17  Prefactor     .10000E-03    9.6958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.6956        .26098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     89.948        30.731        .42338E-04   -1.3808    
  20  Prefactor     .10000E-03    37.435        .38823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.5098        .13962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.2819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .48915        .18391        .35824E-03   -1.1292    
  26  Prefactor     1.3401        .14695        .18680E-03   -.82123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53625e-09
Minuit parameter uncertainties:
  1  1.17705e-06
  2  16.8479
  3  1.24827
  4  37.8819
  5  6.48615
  6  0.000962752
  7  6.79087e-06
  8  3.36873e-06
  9  3.81352
  10  6.94115
  11  26.0003
  12  0.000186496
  13  3.29501
  14  1.24645e-06
  15  3.33723
  16  3.35036
  17  6.81515e-05
  18  0.000124719
  19  30.7365
  20  0.000623139
  21  5.492e-06
  22  8.19527e-09
  23  1.12189e-05
  24  5.0311e-06
  25  0.184134
  26  0.146996
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.865e-04  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.340e+00  1.470e-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:  4.892e-01  1.841e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149367/likelihoodResults_516153601_516412801_4FGL_J2203.3-5009_daily_bin1068.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) = 8179.67887
delta logL = -0.000493013664709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8179.67837775
delta logL = -7.60484908824e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11925E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7710       1.0000          .0000       10.000    
     3 'Normalizat'    .48917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8179.654     FROM MIGRAD    STATUS=FAILED       189 CALLS      358 TOTAL
                     EDM=   .29E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77353E-01    15.142        .32215E-02   -.78649E-02
   2  Index         5.1255        7.1453        .50000        .74462E-04
   3  Normalizat    .47986        .26224E-01    .35824E-03    .75560E-04
   4  Prefactor     1.3442        .21590E-01    .18680E-03    .37124E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8179.654     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      441 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77353E-01    15.142        .18680E-03   -.78649E-02
   2  Index         5.1255        7.1453        .69886E-02    .74462E-04
   3  Normalizat    .47986        .26224E-01    .85341E-04    .75560E-04
   4  Prefactor     1.3442        .21590E-01    .18990E-04    .37124E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8179.654     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      474 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .77344E-01    12.657        .10776E-03   -.19856E-03
   2  Index         5.1255        5.4354        .13973E-01    .31397E-04
   3  Normalizat    .47986        .17378        .14330E-04   -.56170E-04
   4  Prefactor     1.3442        .14218        .74722E-05   -.15671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.077344
  Index      = 5.12553
  Normalizat = 0.479857
  Prefactor  = 1.34421
 **********
 **   18 **HESSE 
 **********

 FCN=   8179.654     FROM HESSE     STATUS=OK            25 CALLS      499 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .77344E-01    1.9459        .43103E-05   -1.5764    
   2  Index         5.1255        7.4670        .55892E-03    .25108E-01
   3  Normalizat    .47986        .17404        .28659E-05   -1.1336    
   4  Prefactor     1.3442        .14236        .14944E-05   -.82002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10007e-09
Minuit parameter uncertainties:
  1  0.775417
  2  6.58903
  3  0.174235
  4  0.142397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149367': 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) = 8179.65391305
delta logL = 0.0244639375032

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  7.734e-02  7.754e-01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  5.126e+00  6.589e+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.344e+00  1.424e-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:  4.799e-01  1.742e-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/149367/cmap_HighResolution_516153601_516412801_4FGL_J2203.3-5009_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', job_status='DONE', photon_flux_upper_limit='6.34e-08', time_completed='2021-09-28 03:21:04.205555', job_id='149367', GAL2='1.34', fit_tolerance='1e-08', EG2='0.48', EG='0.49', time_epoch_completed='1632824464.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='2.45e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1068' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:21:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 149367: <4FGL_J2203.3-5009_daily_bin1068> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1068 330.832 -50.1512 516153601 516412801 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 :                                   914.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             328.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

