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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1015
RA = 330.832, Dec = -50.1512
tmin = 502416001, tmax = 502675201
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='149283', job_status='RUN', time_executed='2021-09-28 03:08:24.827305', time_epoch_executed='1632823704.83' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149283/ft1_4FGL_J2203.3-5009_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149283/ft2_4FGL_J2203.3-5009_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149283/ft1_4FGL_J2203.3-5009_daily_bin1015.fits outfile=/scratch/kocevski/149283/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1015.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=502416001.0 tmax=502675201.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.30
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149283/ft1_filtered_4FGL_J2203.3-5009_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/149283/ft2_4FGL_J2203.3-5009_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/149283/ltcube_502416001_502675201_4FGL_J2203.3-5009_daily_bin1015.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/149283/ft2_4FGL_J2203.3-5009_daily_bin1015.fits
.....................!
real 12.09
user 11.74
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149283/ft1_filtered_4FGL_J2203.3-5009_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/149283/ft2_4FGL_J2203.3-5009_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/149283/ltcube_502416001_502675201_4FGL_J2203.3-5009_daily_bin1015.fits outfile=/scratch/kocevski/149283/expmap_502416001_502675201_4FGL_J2203.3-5009_daily_bin1015.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/149283/ltcube_502416001_502675201_4FGL_J2203.3-5009_daily_bin1015.fits
.....................!
real 191.84
user 185.30
sys 6.07

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/149283/ft1_filtered_4FGL_J2203.3-5009_daily_bin1015.fits scfile=/scratch/kocevski/149283/ft2_4FGL_J2203.3-5009_daily_bin1015.fits outfile=/scratch/kocevski/149283/cmap_502416001_502675201_4FGL_J2203.3-5009_daily_bin1015.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149283/ft1_filtered_4FGL_J2203.3-5009_daily_bin1015.fits scfile=/scratch/kocevski/149283/ft2_4FGL_J2203.3-5009_daily_bin1015.fits outfile=/scratch/kocevski/149283/cmap_HighResolution_502416001_502675201_4FGL_J2203.3-5009_daily_bin1015.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.2251       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32257E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    31.882       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9927       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6900       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.2315       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3836       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.371       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.534       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .61068       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1091       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=   8109.570     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     2648 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7425       -.84893E-08** at limit **
   2  Prefactor     .10000E-03    5.9494       -.10150E-06** at limit **
   3  norm          .10000E-03    .56158        .18955E-07** at limit **
   4  Prefactor     .10000E-03    20.077        .10178E-05** at limit **
   5  Prefactor     .10000E-03    1.9236       -.44777E-08** at limit **
   6  Prefactor     .10000E-03    6.2938        .17827E-06** at limit **
   7  Prefactor     8.2253        18.351        .34826E-07   -.22157E-04
   8  Prefactor     .10002E-03    1.4540        .22212E-06** at limit **
   9  norm          31.883        5.8305        .13368E-07   -.58018E-04
  10  Prefactor     .10000E-03    2.8114       -.78572E-08** at limit **
  11  Prefactor     .10000E-03    32.790        .15592E-05** at limit **
  12  Prefactor     3.9938        6.2359        .27570E-05   -.35797E-04
  13  Prefactor     1.6893        2.8059        .63593E-08   -.18666E-04
  14  Prefactor     .10000E-03    83.464        .19274E-05** at limit **
  15  norm          8.2314        6.3249       -.38519E-07   -.40938E-05
  16  Prefactor     1.3833        2.3339        .12263E-06   -.46135E-04
  17  Prefactor     .10000E-03    11.659        .15806E-05** at limit **
  18  Prefactor     12.371        5.2989        .87282E-08    .37752E-04
  19  Prefactor     12.524        17.252        .15996E-06    .51929E-04
  20  Prefactor     .10000E-03    8.4137       -.13009E-06** at limit **
  21  Prefactor     .10000E-03    38.142       -.29223E-05** at limit **
  22  Prefactor     .10000E-03    1.1661        .19399E-08** at limit **
  23  Prefactor     .10000E-03    13.536       -.19458E-05** at limit **
  24  Prefactor     .10000E-03    3.6246        .86874E-08** at limit **
  25  Normalizat    .61070        .15295       -.11012E-05   -.70626E-04
  26  Prefactor     1.1091        .11875        .14947E-06   -.12614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.22534
  Prefactor  = 0.000100016
  norm       = 31.8827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.99376
  Prefactor  = 1.68934
  Prefactor  = 0.0001
  norm       = 8.23142
  Prefactor  = 1.38334
  Prefactor  = 0.0001
  Prefactor  = 12.3712
  Prefactor  = 12.5235
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.610697
  Prefactor  = 1.10911
 **********
 **   18 **HESSE 
 **********

 FCN=   8109.570     FROM HESSE     STATUS=OK           452 CALLS     3100 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7726        .11604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.9626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .89411        .13122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.9348        .12194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.3023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.2253        18.312        .13979E-03   -1.5134    
   8  Prefactor     .10002E-03    22.778        .20448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          31.883        5.8291        .70963E-04   -1.4578    
  10  Prefactor     .10000E-03    2.8373        .14745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    33.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.9938        6.2423        .10092E-02   -1.5308    
  13  Prefactor     1.6893        2.7740        .18379E-03   -1.5448    
  14  Prefactor     .10000E-03    83.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.2314        6.3217        .13974E-03   -1.5134    
  16  Prefactor     1.3833        2.2986        .16979E-03   -1.5473    
  17  Prefactor     .10000E-03    11.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.371        5.3036        .11389E-03   -1.5004    
  19  Prefactor     12.524        17.239        .11314E-03   -1.5000    
  20  Prefactor     .10000E-03    8.6278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.1666        .94968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.6286        .16744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .61070        .17384        .29843E-03   -1.0753    
  26  Prefactor     1.1091        .13683        .18564E-03   -.89176    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03434e-10
Minuit parameter uncertainties:
  1  6.0342e-08
  2  1.43525e-06
  3  1.55115e-06
  4  2.38702e-05
  5  3.56929e-07
  6  2.18002e-06
  7  18.3247
  8  0.00121643
  9  5.8292
  10  8.69431e-08
  11  5.77975e-06
  12  6.24333
  13  2.77423
  14  6.56353e-05
  15  6.32221
  16  2.29871
  17  3.03797e-05
  18  5.3038
  19  17.2454
  20  2.09492e-05
  21  9.59603e-05
  22  7.68004e-09
  23  3.74091e-05
  24  6.45077e-07
  25  0.173999
  26  0.136878
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  3.994e+00  6.243e+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.109e+00  1.369e-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:  6.107e-01  1.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 8.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149283/likelihoodResults_502416001_502675201_4FGL_J2203.3-5009_daily_bin1015.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) = 8108.91091952
delta logL = 0.659233717688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8108.87732839
delta logL = 0.69282484799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5738       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4934       1.0000          .0000       10.000    
     3 'Normalizat'    .63165       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0988       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.

 FCN=   8108.877     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      222 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5712        3.1180        .63603E-02    .47888E-04
   2  Index         1.4928        .44254        .21210       -.12621E-03
   3  Normalizat    .63164        .14216        .66364E-01    .23071E-04
   4  Prefactor     1.0988        .11688        .37633E-01   -.30012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.57123
  Index      = 1.49281
  Normalizat = 0.63164
  Prefactor  = 1.09879
 **********
 **   18 **HESSE 
 **********

 FCN=   8108.877     FROM HESSE     STATUS=OK            31 CALLS      253 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5712        4.4559        .16664E-03   -1.5387    
   2  Index         1.4928        .75695        .10678E-01   -.77741    
   3  Normalizat    .63164        .16358        .29367E-03   -1.0666    
   4  Prefactor     1.0988        .13472        .18629E-03   -.89505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88445e-11
Minuit parameter uncertainties:
  1  4.45643
  2  0.762764
  3  0.163706
  4  0.13476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149283': 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) = 8108.87732811
delta logL = 0.692825130561

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  2.571e+00  4.456e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.493e+00  7.628e-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:  1.099e+00  1.348e-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:  6.316e-01  1.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 1.49 +/- 0.76
Photon Flux (Free Index): 5.69e-09 +/- 9.35e-09
Energy Flux (Free Index): 1.84e-05 +/- 3.41e-05

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/149283/cmap_HighResolution_502416001_502675201_4FGL_J2203.3-5009_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', comment='SUCCESS', energy_flux2='1.84e-05', dlogl='6.93e-01', photon_flux2='5.69e-09', job_status='DONE', time_completed='2021-09-28 03:21:48.918517', photon_index_error2='0.76', photon_index2='1.49', ts='0.54', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='8.87e-08', energy_flux_error2='3.41e-05', EG='0.61', time_epoch_completed='1632824508.92', return_code='0', job_id='149283', GAL2='1.10', EG2='0.63', return_code2='0', photon_flux_error2='9.35e-09', ts2='1.91', photon_index='2.74' WHERE bin_id='1015' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:21:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 149283: <4FGL_J2203.3-5009_daily_bin1015> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1015 330.832 -50.1512 502416001 502675201 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 :                                   801.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

