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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1148
RA = 330.832, Dec = -50.1512
tmin = 536889601, tmax = 537148801
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='149493', job_status='RUN', time_executed='2021-09-28 03:07:05.785873', time_epoch_executed='1632823625.79' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149493

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149493/ft1_4FGL_J2203.3-5009_daily_bin1148.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149493/ft2_4FGL_J2203.3-5009_daily_bin1148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149493/ft1_4FGL_J2203.3-5009_daily_bin1148.fits outfile=/scratch/kocevski/149493/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1148.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=536889601.0 tmax=537148801.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.65
user 3.43
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149493/ft2_4FGL_J2203.3-5009_daily_bin1148.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/149493/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1148.fits evtable="EVENTS" outfile="/scratch/kocevski/149493/ft1_filtered_4FGL_J2203.3-5009_daily_bin1148.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/149493/ft1_filtered_4FGL_J2203.3-5009_daily_bin1148.fits" evtable="EVENTS" scfile=/scratch/kocevski/149493/ft2_4FGL_J2203.3-5009_daily_bin1148.fits sctable="SC_DATA" outfile=/scratch/kocevski/149493/ltcube_536889601_537148801_4FGL_J2203.3-5009_daily_bin1148.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/149493/ft2_4FGL_J2203.3-5009_daily_bin1148.fits
.....................!
real 11.67
user 11.32
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149493/ft1_filtered_4FGL_J2203.3-5009_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/149493/ft2_4FGL_J2203.3-5009_daily_bin1148.fits sctable="SC_DATA" expcube=/scratch/kocevski/149493/ltcube_536889601_537148801_4FGL_J2203.3-5009_daily_bin1148.fits outfile=/scratch/kocevski/149493/expmap_536889601_537148801_4FGL_J2203.3-5009_daily_bin1148.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/149493/ltcube_536889601_537148801_4FGL_J2203.3-5009_daily_bin1148.fits
.....................!
real 190.70
user 184.55
sys 5.85

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/149493/ft1_filtered_4FGL_J2203.3-5009_daily_bin1148.fits scfile=/scratch/kocevski/149493/ft2_4FGL_J2203.3-5009_daily_bin1148.fits outfile=/scratch/kocevski/149493/cmap_536889601_537148801_4FGL_J2203.3-5009_daily_bin1148.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.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149493/ft1_filtered_4FGL_J2203.3-5009_daily_bin1148.fits evtable="EVENTS" scfile=/scratch/kocevski/149493/ft2_4FGL_J2203.3-5009_daily_bin1148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149493/Model_4FGL_J2203.3-5009_daily_bin1148.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/149493/ft1_filtered_4FGL_J2203.3-5009_daily_bin1148.fits.....................!
real 44.86
user 43.57
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .84602E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13620E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1194       1.0000         .10000E-03   10000.    
     9 'norm      '    2.7775       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.325       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22883E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8556       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.722       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8545       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.093       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12868E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9462       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.913       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2309       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1276       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=   5625.963     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3109 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4786        .59079E-07** at limit **
   2  Prefactor     .10056E-03    26.481       -.16208E-05** at limit **
   3  norm          2.3350        2.4171        .11674E-06    .57949E-04
   4  Prefactor     .10000E-03    71.681        .21440E-05** at limit **
   5  Prefactor     .10000E-03    12.189        .10082E-05** at limit **
   6  Prefactor     .10000E-03    14.908       -.16264E-05** at limit **
   7  Prefactor     .10000E-03    14.373        .41431E-05** at limit **
   8  Prefactor     1.1208        4.4354        .29126E-06   -.21160E-04
   9  norm          2.7795        4.4276       -.32092E-07   -.33855E-05
  10  Prefactor     .10000E-03    6.3218        .78358E-06** at limit **
  11  Prefactor     .10000E-03    47.181       -.62667E-06** at limit **
  12  Prefactor     17.316        13.808        .58247E-06   -.28531E-04
  13  Prefactor     .10000E-03    3.5080       -.49567E-06** at limit **
  14  Prefactor     .10000E-03    173.85        .84362E-05** at limit **
  15  norm          1.8566        4.2608       -.19183E-07   -.17694E-03
  16  Prefactor     15.718        6.3839        .52062E-07   -.15703E-04
  17  Prefactor     .10000E-03    21.456        .29430E-06** at limit **
  18  Prefactor     4.8515        5.9175       -.11474E-06   -.21091E-04
  19  Prefactor     25.099        35.560        .21858E-05   -.15641E-04
  20  Prefactor     .10000E-03    9.0941        .63450E-06** at limit **
  21  Prefactor     .10000E-03    72.262        .34663E-05** at limit **
  22  Prefactor     1.9472        4.7896        .20787E-08   -.15768E-03
  23  Prefactor     22.902        34.132       -.26584E-05   -.31130E-05
  24  Prefactor     .10000E-03    8.1432        .51554E-06** at limit **
  25  Normalizat    1.2318        .23769       -.10978E-05    .81635E-04
  26  Prefactor     1.1268        .17321        .74021E-06    .19453E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100561
  norm       = 2.33501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.12084
  norm       = 2.77948
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85656
  Prefactor  = 15.7183
  Prefactor  = 0.0001
  Prefactor  = 4.85154
  Prefactor  = 25.0995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.94721
  Prefactor  = 22.9018
  Prefactor  = 0.0001
  Normalizat = 1.23183
  Prefactor  = 1.12679
 **********
 **   18 **HESSE 
 **********

 FCN=   5625.963     FROM HESSE     STATUS=OK           458 CALLS     3567 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5991        .27302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10056E-03    250.20        .71566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3350        2.4116        .11415E-03   -1.5402    
   4  Prefactor     .10000E-03    71.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1208        4.4260        .29889E-03   -1.5496    
   9  norm          2.7795        4.4130        .19262E-03   -1.5375    
  10  Prefactor     .10000E-03    6.3465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    47.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.316        13.798        .96224E-04   -1.4875    
  13  Prefactor     .10000E-03    3.5842        .13720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    173.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8566        6.2823        .15299E-02   -1.5435    
  16  Prefactor     15.718        6.4040        .10101E-03   -1.4915    
  17  Prefactor     .10000E-03    21.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.8515        5.9090        .18257E-03   -1.5267    
  19  Prefactor     25.099        35.708        .79967E-04   -1.4706    
  20  Prefactor     .10000E-03    9.0965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    72.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9472        6.4073        .14876E-02   -1.5429    
  23  Prefactor     22.902        34.203        .83681E-04   -1.4750    
  24  Prefactor     .10000E-03    8.1569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2318        .27748        .28802E-03   -.85625    
  26  Prefactor     1.1268        .20141        .22765E-03   -.88615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1855e-09
Minuit parameter uncertainties:
  1  3.32333e-06
  2  0.0237914
  3  2.41174
  4  1.42904e-06
  5  1.03345e-05
  6  2.46839e-07
  7  2.37189e-06
  8  4.4273
  9  4.4135
  10  5.74712e-07
  11  4.02181e-05
  12  13.8001
  13  3.67566e-06
  14  0.000218304
  15  6.28453
  16  6.40429
  17  7.88528e-07
  18  5.90973
  19  35.738
  20  2.69741e-05
  21  3.90387e-05
  22  6.40951
  23  34.2327
  24  7.07432e-07
  25  0.277811
  26  0.201547
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.732e+01  1.380e+01  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.127e+00  2.015e-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.232e+00  2.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.07
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.51e-08 +/- 6.78e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.58e-05

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

Saving results to:
/scratch/kocevski/149493/likelihoodResults_536889601_537148801_4FGL_J2203.3-5009_daily_bin1148.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) = 5625.83957672
delta logL = 0.123636817979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5625.82349473
delta logL = 0.139718804022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.792       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3005       1.0000          .0000       10.000    
     3 'Normalizat'    1.2628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1081       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=   5625.823     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      283 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.788        16.363        .87840E-04    .76102E-04
   2  Index         2.3001        .72187        .88219E-02   -.16259E-04
   3  Normalizat    1.2629        .26261        .28499E-03   -.12047E-04
   4  Prefactor     1.1081        .19603        .22917E-03    .28276E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.7876
  Index      = 2.30015
  Normalizat = 1.26288
  Prefactor  = 1.10815
 **********
 **   18 **HESSE 
 **********

 FCN=   5625.823     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.788        16.378        .35136E-05   -1.4796    
   2  Index         2.3001        .72204        .35288E-03   -.57040    
   3  Normalizat    1.2629        .26296        .11400E-04   -.84681    
   4  Prefactor     1.1081        .19617        .91670E-05   -.89207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35e-11
Minuit parameter uncertainties:
  1  16.3811
  2  0.725628
  3  0.263238
  4  0.1963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149493': 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) = 5625.82349425
delta logL = 0.139719289317

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  2.079e+01  1.638e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.300e+00  7.256e-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.108e+00  1.963e-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.263e+00  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 2.30 +/- 0.73
Photon Flux (Free Index): 6.70e-08 +/- 6.85e-08
Energy Flux (Free Index): 2.54e-05 +/- 2.35e-05

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/149493/cmap_HighResolution_536889601_537148801_4FGL_J2203.3-5009_daily_bin1148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.72e-02', comment='SUCCESS', photon_flux='8.51e-08', energy_flux2='2.54e-05', photon_flux_error='6.78e-08', dlogl='1.40e-01', energy_flux='1.99e-05', photon_flux2='6.70e-08', job_status='DONE', time_completed='2021-09-28 03:18:26.254306', photon_index_error2='0.73', photon_index2='2.30', ts='2.07', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='2.18e-07', energy_flux_error2='2.35e-05', EG='1.23', time_epoch_completed='1632824306.25', return_code='0', job_id='149493', GAL2='1.11', EG2='1.26', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='6.85e-08', ts2='2.31', photon_index='2.74' WHERE bin_id='1148' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:18:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 149493: <4FGL_J2203.3-5009_daily_bin1148> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1148> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:43 2021
Job was executed on host(s) <bullet0303>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 03:05:45 2021
Terminated at Tue Sep 28 03:18:26 2021
Results reported at Tue Sep 28 03:18:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1148 330.832 -50.1512 536889601 537148801 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 :                                   677.28 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

