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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1091
RA = 330.832, Dec = -50.1512
tmin = 522115201, tmax = 522374401
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='149403', job_status='RUN', time_executed='2021-09-28 03:07:14.518595', time_epoch_executed='1632823634.52' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149403

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149403/ft1_4FGL_J2203.3-5009_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149403/ft2_4FGL_J2203.3-5009_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149403/ft1_4FGL_J2203.3-5009_daily_bin1091.fits outfile=/scratch/kocevski/149403/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1091.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=522115201.0 tmax=522374401.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.72
user 3.46
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149403/ft1_filtered_4FGL_J2203.3-5009_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/149403/ft2_4FGL_J2203.3-5009_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/149403/ltcube_522115201_522374401_4FGL_J2203.3-5009_daily_bin1091.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/149403/ft2_4FGL_J2203.3-5009_daily_bin1091.fits
.....................!
real 11.83
user 11.50
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149403/ft1_filtered_4FGL_J2203.3-5009_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/149403/ft2_4FGL_J2203.3-5009_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/149403/ltcube_522115201_522374401_4FGL_J2203.3-5009_daily_bin1091.fits outfile=/scratch/kocevski/149403/expmap_522115201_522374401_4FGL_J2203.3-5009_daily_bin1091.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/149403/ltcube_522115201_522374401_4FGL_J2203.3-5009_daily_bin1091.fits
.....................!
real 191.18
user 186.53
sys 4.34

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/149403/ft1_filtered_4FGL_J2203.3-5009_daily_bin1091.fits scfile=/scratch/kocevski/149403/ft2_4FGL_J2203.3-5009_daily_bin1091.fits outfile=/scratch/kocevski/149403/cmap_522115201_522374401_4FGL_J2203.3-5009_daily_bin1091.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149403/ft1_filtered_4FGL_J2203.3-5009_daily_bin1091.fits scfile=/scratch/kocevski/149403/ft2_4FGL_J2203.3-5009_daily_bin1091.fits outfile=/scratch/kocevski/149403/cmap_HighResolution_522115201_522374401_4FGL_J2203.3-5009_daily_bin1091.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.53
user 0.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149403/ft1_filtered_4FGL_J2203.3-5009_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/149403/ft2_4FGL_J2203.3-5009_daily_bin1091.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149403/Model_4FGL_J2203.3-5009_daily_bin1091.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/149403/ft1_filtered_4FGL_J2203.3-5009_daily_bin1091.fits.....................!
real 48.93
user 47.70
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0042       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.432       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6933       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.897       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.0341       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2716       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7661       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7724       1.0000         .10000E-03   10000.    
    11 'Prefactor '    56.100       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6486       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .21913E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3860       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1647       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2982       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82522       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=   6193.291     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3084 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4278        .88169E-08** at limit **
   2  Prefactor     .10000E-03    6.8648        .10023E-06** at limit **
   3  norm          1.0042        1.5023        .22778E-06    .23102E-03
   4  Prefactor     54.459        50.877        .29625E-05    .20595E-03
   5  Prefactor     2.6922        7.4719        .69105E-06   -.12742E-03
   6  Prefactor     12.898        25.723       -.30143E-06   -.37139E-04
   7  Prefactor     3.0353        56.363       -.22561E-05   -.72370E-04
   8  Prefactor     4.2717        3.8348        .84869E-07   -.10199E-03
   9  norm          1.7662        2.9728        .13397E-06   -.88656E-04
  10  Prefactor     5.7720        9.1052        .23705E-05   -.41087E-03
  11  Prefactor     56.090        42.320       -.25111E-06   -.34965E-04
  12  Prefactor     .10000E-03    10.268       -.22827E-07** at limit **
  13  Prefactor     4.6486        3.2575        .49773E-07   -.11704E-04
  14  Prefactor     .10000E-03    289.66       -.23292E-05** at limit **
  15  norm          .10000E-03    1.9561        .64498E-08** at limit **
  16  Prefactor     .10000E-03    1.6626       -.49769E-07** at limit **
  17  Prefactor     .10001E-03    25.830       -.39632E-05** at limit **
  18  Prefactor     6.3849        7.0578        .28597E-05   -.86766E-03
  19  Prefactor     .10001E-03    15.992       -.41621E-05** at limit **
  20  Prefactor     .10000E-03    2.6815       -.43715E-07** at limit **
  21  Prefactor     .10000E-03    32.701        .31139E-05** at limit **
  22  Prefactor     1.1635        9.2054        .22838E-05   -.19339E-03
  23  Prefactor     .10001E-03    17.025        .51571E-05** at limit **
  24  Prefactor     .10000E-03    7.3171       -.54623E-07** at limit **
  25  Normalizat    1.2982        .19490       -.10821E-05   -.99795E-05
  26  Prefactor     .82523        .14247       -.70094E-06   -.53944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.00416
  Prefactor  = 54.4594
  Prefactor  = 2.69223
  Prefactor  = 12.8984
  Prefactor  = 3.03528
  Prefactor  = 4.27173
  norm       = 1.7662
  Prefactor  = 5.77203
  Prefactor  = 56.0898
  Prefactor  = 0.0001
  Prefactor  = 4.64855
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 6.38491
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.16347
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Normalizat = 1.29824
  Prefactor  = 0.825234
 **********
 **   18 **HESSE 
 **********

 FCN=   6193.291     FROM HESSE     STATUS=OK           456 CALLS     3540 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.4386        .91818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.8785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0042        1.3017        .11396E-02   -1.5508    
   4  Prefactor     54.459        51.334        .54367E-04   -1.4231    
   5  Prefactor     2.6922        7.4582        .24825E-03   -1.5380    
   6  Prefactor     12.898        25.603        .11154E-03   -1.4990    
   7  Prefactor     3.0353        57.419        .23296E-03   -1.5360    
   8  Prefactor     4.2717        3.8269        .13986E-03   -1.5295    
   9  norm          1.7662        2.9345        .16766E-03   -1.5442    
  10  Prefactor     5.7720        9.2273        .83585E-03   -1.5227    
  11  Prefactor     56.090        42.430        .53557E-04   -1.4209    
  12  Prefactor     .10000E-03    10.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6486        3.2565        .11476E-03   -1.5277    
  14  Prefactor     .10000E-03    291.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9563        .10749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6793        .99061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    26.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3849        7.3912        .79415E-03   -1.5203    
  19  Prefactor     .10001E-03    16.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6838        .12585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1635        9.3726        .42626E-03   -1.5492    
  23  Prefactor     .10001E-03    18.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.3249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2982        .23098        .24693E-03   -.83619    
  26  Prefactor     .82523        .16756        .22825E-03   -.98805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.87405e-09
Minuit parameter uncertainties:
  1  8.11283e-07
  2  5.53106e-06
  3  1.30169
  4  51.3754
  5  7.46079
  6  25.6252
  7  26.4322
  8  3.82714
  9  2.93474
  10  9.22961
  11  42.4533
  12  1.55031e-05
  13  3.25664
  14  0.00140401
  15  4.73079e-07
  16  2.8139e-06
  17  0.000795782
  18  7.39225
  19  0.000666759
  20  2.63149e-06
  21  0.00070442
  22  6.60561
  23  0.000856471
  24  7.14708e-06
  25  0.231167
  26  0.167659
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.550e-05  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.252e-01  1.677e-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.298e+00  2.312e-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: 9.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149403/likelihoodResults_522115201_522374401_4FGL_J2203.3-5009_daily_bin1091.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) = 6193.29185271
delta logL = -0.000456041540019

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6193.29139664
delta logL = 3.09919414576e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7599       1.0000          .0000       10.000    
     3 'Normalizat'    1.2983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82522       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=   6193.291     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      308 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65131E-01    5.4224        .36285E-01   -.63147E-03
   2  Index         4.3070        7.0783        .50000        .13306E-04
   3  Normalizat    1.2957        .11311E-01    .24693E-03   -.93462E-05
   4  Prefactor     .82632        .85932E-02    .22825E-03   -.17134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0651311
  Index      = 4.30701
  Normalizat = 1.29574
  Prefactor  = 0.826317
 **********
 **   18 **HESSE 
 **********

 FCN=   6193.291     FROM HESSE     STATUS=OK            31 CALLS      339 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65131E-01    12.691        .15286E-02   -1.5759    
   2  Index         4.3070        6.6900        .38921E-01   -.13905    
   3  Normalizat    1.2957        .22219        .98772E-05   -.83694    
   4  Prefactor     .82632        .16568        .91300E-05   -.98765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95278e-11
Minuit parameter uncertainties:
  1  1.81732
  2  10.1537
  3  0.222356
  4  0.165784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149403': 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) = 6193.29057418
delta logL = 0.000822491308099

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  6.513e-02  1.817e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  4.307e+00  1.015e+01  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.263e-01  1.658e-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.296e+00  2.224e-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/149403/cmap_HighResolution_522115201_522374401_4FGL_J2203.3-5009_daily_bin1091.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.57e-03', job_status='DONE', photon_flux_upper_limit='9.60e-08', time_completed='2021-09-28 03:19:23.648153', job_id='149403', GAL2='0.83', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632824363.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='8.22e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1091' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:19:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 149403: <4FGL_J2203.3-5009_daily_bin1091> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1091 330.832 -50.1512 522115201 522374401 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 :                                   727.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            828 sec.

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

