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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin796
RA = 330.832, Dec = -50.1512
tmin = 445651201, tmax = 445910401
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='147847', job_status='RUN', time_executed='2021-09-28 03:02:58.606155', time_epoch_executed='1632823378.61' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='796'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147847

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147847/ft1_4FGL_J2203.3-5009_daily_bin796.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147847/ft2_4FGL_J2203.3-5009_daily_bin796.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147847/ft1_4FGL_J2203.3-5009_daily_bin796.fits outfile=/scratch/kocevski/147847/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin796.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=445651201.0 tmax=445910401.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.50
user 3.28
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147847/ft1_filtered_4FGL_J2203.3-5009_daily_bin796.fits" evtable="EVENTS" scfile=/scratch/kocevski/147847/ft2_4FGL_J2203.3-5009_daily_bin796.fits sctable="SC_DATA" outfile=/scratch/kocevski/147847/ltcube_445651201_445910401_4FGL_J2203.3-5009_daily_bin796.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/147847/ft2_4FGL_J2203.3-5009_daily_bin796.fits
.....................!
real 11.95
user 11.57
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147847/ft1_filtered_4FGL_J2203.3-5009_daily_bin796.fits evtable="EVENTS" scfile=/scratch/kocevski/147847/ft2_4FGL_J2203.3-5009_daily_bin796.fits sctable="SC_DATA" expcube=/scratch/kocevski/147847/ltcube_445651201_445910401_4FGL_J2203.3-5009_daily_bin796.fits outfile=/scratch/kocevski/147847/expmap_445651201_445910401_4FGL_J2203.3-5009_daily_bin796.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/147847/ltcube_445651201_445910401_4FGL_J2203.3-5009_daily_bin796.fits
.....................!
real 192.64
user 187.48
sys 4.81

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/147847/ft1_filtered_4FGL_J2203.3-5009_daily_bin796.fits scfile=/scratch/kocevski/147847/ft2_4FGL_J2203.3-5009_daily_bin796.fits outfile=/scratch/kocevski/147847/cmap_445651201_445910401_4FGL_J2203.3-5009_daily_bin796.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.53
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147847/ft1_filtered_4FGL_J2203.3-5009_daily_bin796.fits scfile=/scratch/kocevski/147847/ft2_4FGL_J2203.3-5009_daily_bin796.fits outfile=/scratch/kocevski/147847/cmap_HighResolution_445651201_445910401_4FGL_J2203.3-5009_daily_bin796.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.1901       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .79449       1.0000         .10000E-03   10000.    
     9 'norm      '    16.677       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2840       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9461       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.6099       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29832E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .82171       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8617       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1142       1.0000         .10000E-03   10000.    
    21 'Prefactor '    45.855       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    34.189       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0579       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0284       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=   5316.624     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3143 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.3108        .72849E-07** at limit **
   2  Prefactor     .10000E-03    19.309        .17931E-05** at limit **
   3  norm          7.1891        3.2683       -.14347E-07   -.71470E-04
   4  Prefactor     .10000E-03    40.856        .93615E-06** at limit **
   5  Prefactor     .10000E-03    4.2259       -.45281E-07** at limit **
   6  Prefactor     .10000E-03    20.333       -.14485E-05** at limit **
   7  Prefactor     .10000E-03    31.751        .23357E-05** at limit **
   8  Prefactor     .79485        2.6449        .49633E-06   -.22681E-03
   9  norm          16.675        7.2552        .10304E-06    .19146E-03
  10  Prefactor     .10000E-03    3.3461        .43072E-07** at limit **
  11  Prefactor     .10001E-03    81.728        .45239E-05** at limit **
  12  Prefactor     5.2746        8.7001       -.14017E-05   -.47142E-03
  13  Prefactor     5.9465        4.8302        .54979E-07    .94288E-05
  14  Prefactor     .10000E-03    41.997       -.61916E-06** at limit **
  15  norm          4.6096        8.6646       -.34479E-06   -.12604E-03
  16  Prefactor     .10149E-03    3.2889       -.90295E-06** at limit **
  17  Prefactor     21.217        44.902       -.62643E-05   -.22141E-03
  18  Prefactor     .82862        6.4573        .16997E-05   -.25081E-03
  19  Prefactor     2.7359        81.586       -.99111E-05   -.59614E-04
  20  Prefactor     6.1512        14.030        .45911E-05   -.53130E-03
  21  Prefactor     45.853        110.24       -.25377E-05   -.41372E-06
  22  Prefactor     .10000E-03    5.5524        .18139E-07** at limit **
  23  Prefactor     .10000E-03    30.146       -.13964E-05** at limit **
  24  Prefactor     34.192        22.616       -.42347E-07    .28072E-04
  25  Normalizat    1.0579        .22439        .73416E-06    .95321E-04
  26  Prefactor     1.0286        .16352       -.27818E-06    .14907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.1891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.794848
  norm       = 16.6749
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 5.27458
  Prefactor  = 5.94649
  Prefactor  = 0.0001
  norm       = 4.60956
  Prefactor  = 0.000101488
  Prefactor  = 21.2175
  Prefactor  = 0.82862
  Prefactor  = 2.73592
  Prefactor  = 6.15121
  Prefactor  = 45.8529
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 34.192
  Normalizat = 1.05793
  Prefactor  = 1.02856
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.624     FROM HESSE     STATUS=OK           456 CALLS     3599 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.3179        .81519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.1891        3.2677        .85207E-04   -1.5172    
   4  Prefactor     .10000E-03    40.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2789        .14637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .79485        2.6331        .20767E-03   -1.5530    
   9  norm          16.675        7.2577        .98076E-04   -1.4891    
  10  Prefactor     .10000E-03    3.3522        .13026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    84.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2746        8.8847        .17485E-03   -1.5249    
  13  Prefactor     5.9465        4.8286        .13663E-03   -1.5220    
  14  Prefactor     .10000E-03    41.997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.6096        8.6608        .18746E-03   -1.5279    
  16  Prefactor     .10149E-03    64.541        .23985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.217        46.878        .86901E-04   -1.4786    
  18  Prefactor     .82862        6.6508        .35850E-03   -1.5526    
  19  Prefactor     2.7359        81.970        .24031E-03   -1.5377    
  20  Prefactor     6.1512        15.233        .81183E-03   -1.5212    
  21  Prefactor     45.853        110.25        .59209E-04   -1.4353    
  22  Prefactor     .10000E-03    5.5752        .16779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     34.192        22.651        .68534E-04   -1.4538    
  25  Normalizat    1.0579        .25900        .27909E-03   -.91114    
  26  Prefactor     1.0286        .19310        .21852E-03   -.91783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43962e-08
Minuit parameter uncertainties:
  1  2.01545e-06
  2  0.000304102
  3  3.26777
  4  0.000223491
  5  7.85318e-06
  6  0.000295503
  7  0.000504859
  8  2.63353
  9  7.25807
  10  1.79962e-06
  11  0.00190111
  12  8.88693
  13  4.82891
  14  0.000104672
  15  8.6632
  16  0.0196233
  17  46.9599
  18  4.69555
  19  29.9955
  20  15.243
  21  110.749
  22  1.20256e-05
  23  0.000320935
  24  22.6564
  25  0.259305
  26  0.193232
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  5.275e+00  8.887e+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:  1.029e+00  1.932e-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.058e+00  2.593e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147847/likelihoodResults_445651201_445910401_4FGL_J2203.3-5009_daily_bin796.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) = 5316.62309672
delta logL = 0.000411676356634

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5316.62303786
delta logL = 0.000470533850603

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1835       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7765       1.0000          .0000       10.000    
     3 'Normalizat'    1.0572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0289       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=   5316.623     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      271 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1646        9.8878        .88285E-03    .14434E-03
   2  Index         2.7727        1.1216        .13088E-01    .15763E-03
   3  Normalizat    1.0575        .24453        .27914E-03   -.35026E-05
   4  Prefactor     1.0288        .18837        .21850E-03    .63476E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.16464
  Index      = 2.77271
  Normalizat = 1.05751
  Prefactor  = 1.02878
 **********
 **   18 **HESSE 
 **********

 FCN=   5316.623     FROM HESSE     STATUS=OK            27 CALLS      298 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1646        9.5047        .17657E-03   -1.5253    
   2  Index         2.7727        1.0794        .26177E-02   -.46169    
   3  Normalizat    1.0575        .24484        .11165E-04   -.91128    
   4  Prefactor     1.0288        .18857        .87402E-05   -.91776    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43638e-12
Minuit parameter uncertainties:
  1  9.50746
  2  1.09013
  3  0.245106
  4  0.18869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147847': 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) = 5316.62302419
delta logL = 0.000484204781969

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  5.165e+00  9.507e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.773e+00  1.090e+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.029e+00  1.887e-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.058e+00  2.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
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/147847/cmap_HighResolution_445651201_445910401_4FGL_J2203.3-5009_daily_bin796.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-28 03:13:59.205626', job_id='147847', GAL2='1.03', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632824039.21', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.84e-04', ts2='0.46', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='796' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:13:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 147847: <4FGL_J2203.3-5009_daily_bin796> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin796> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 03:00:24 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:00:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 03:00:26 2021
Terminated at Tue Sep 28 03:13:59 2021
Results reported at Tue Sep 28 03:13:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin796 330.832 -50.1512 445651201 445910401 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 :                                   661.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

