/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 158 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 = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2203.3-5009_daily_bin474
RA = 330.832, Dec = -50.1512
tmin = 362188801, tmax = 362448001
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='146318', job_status='RUN', time_executed='2021-09-28 02:58:02.954345', time_epoch_executed='1632823082.95' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='474'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146318/ft1_4FGL_J2203.3-5009_daily_bin474.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146318/ft2_4FGL_J2203.3-5009_daily_bin474.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146318/ft1_4FGL_J2203.3-5009_daily_bin474.fits outfile=/scratch/kocevski/146318/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin474.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=362188801.0 tmax=362448001.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 4.17
user 3.92
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146318/ft2_4FGL_J2203.3-5009_daily_bin474.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/146318/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin474.fits evtable="EVENTS" outfile="/scratch/kocevski/146318/ft1_filtered_4FGL_J2203.3-5009_daily_bin474.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/146318/ft1_filtered_4FGL_J2203.3-5009_daily_bin474.fits" evtable="EVENTS" scfile=/scratch/kocevski/146318/ft2_4FGL_J2203.3-5009_daily_bin474.fits sctable="SC_DATA" outfile=/scratch/kocevski/146318/ltcube_362188801_362448001_4FGL_J2203.3-5009_daily_bin474.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/146318/ft2_4FGL_J2203.3-5009_daily_bin474.fits
.....................!
real 11.96
user 11.63
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146318/ft1_filtered_4FGL_J2203.3-5009_daily_bin474.fits evtable="EVENTS" scfile=/scratch/kocevski/146318/ft2_4FGL_J2203.3-5009_daily_bin474.fits sctable="SC_DATA" expcube=/scratch/kocevski/146318/ltcube_362188801_362448001_4FGL_J2203.3-5009_daily_bin474.fits outfile=/scratch/kocevski/146318/expmap_362188801_362448001_4FGL_J2203.3-5009_daily_bin474.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/146318/ltcube_362188801_362448001_4FGL_J2203.3-5009_daily_bin474.fits
.....................!
real 190.67
user 185.95
sys 4.38

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/146318/ft1_filtered_4FGL_J2203.3-5009_daily_bin474.fits scfile=/scratch/kocevski/146318/ft2_4FGL_J2203.3-5009_daily_bin474.fits outfile=/scratch/kocevski/146318/cmap_362188801_362448001_4FGL_J2203.3-5009_daily_bin474.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    23.311       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2006       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.418       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .83065E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.258       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13796       1.0000         .10000E-03   10000.    
     9 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10868E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22765       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.270       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.387       1.0000         .10000E-03   10000.    
    23 'Prefactor '    56.003       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.589       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5616       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78238       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=   5767.622     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3171 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.8753       -.30325E-06** at limit **
   2  Prefactor     23.314        24.344        .10377E-06    .17591E-04
   3  norm          4.2008        2.3119       -.75350E-08    .96561E-04
   4  Prefactor     .10000E-03    19.630        .15390E-05** at limit **
   5  Prefactor     12.422        10.752       -.24552E-06    .25949E-03
   6  Prefactor     .10005E-03    70.658       -.27606E-04** at limit **
   7  Prefactor     20.261        23.928       -.62914E-06   -.12539E-03
   8  Prefactor     .12844        14.309        .14034E-04   -.17516E-04
   9  norm          .10000E-03    7.9720        .15796E-06** at limit **
  10  Prefactor     .10000E-03    18.800        .74690E-07** at limit **
  11  Prefactor     .10016E-03    252.61        .51402E-05** at limit **
  12  Prefactor     .25170        13.961        .10655E-04    .42872E-05
  13  Prefactor     .10000E-03    .98125       -.87260E-07** at limit **
  14  Prefactor     .10000E-03    34.069        .94413E-06** at limit **
  15  norm          .10000E-03    2.5198       -.37350E-07** at limit **
  16  Prefactor     .10000E-03    4.0566        .13224E-07** at limit **
  17  Prefactor     .10000E-03    26.300       -.13351E-05** at limit **
  18  Prefactor     .10000E-03    10.734       -.70843E-06** at limit **
  19  Prefactor     45.259        37.178       -.30419E-06    .64351E-04
  20  Prefactor     .10000E-03    6.6394       -.33776E-06** at limit **
  21  Prefactor     .10000E-03    55.124       -.10668E-05** at limit **
  22  Prefactor     23.389        12.646        .84275E-07    .20516E-03
  23  Prefactor     56.003        41.816       -.66221E-07    .12215E-04
  24  Prefactor     18.595        30.213        .40399E-06    .11030E-03
  25  Normalizat    1.5614        .22120        .15066E-05    .10739E-02
  26  Prefactor     .78244        .16084       -.10397E-05    .10344E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.3139
  norm       = 4.20078
  Prefactor  = 0.000100001
  Prefactor  = 12.4219
  Prefactor  = 0.000100052
  Prefactor  = 20.2611
  Prefactor  = 0.128439
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100163
  Prefactor  = 0.2517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 45.2594
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.3892
  Prefactor  = 56.0027
  Prefactor  = 18.5951
  Normalizat = 1.56137
  Prefactor  = 0.782438
 **********
 **   18 **HESSE 
 **********

 FCN=   5767.622     FROM HESSE     STATUS=OK           452 CALLS     3623 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9004        .10167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.314        24.348        .82963E-04   -1.4742    
   3  norm          4.2008        2.3127        .82823E-04   -1.5298    
   4  Prefactor     .10000E-03    19.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.422        10.679        .11367E-03   -1.5003    
   6  Prefactor     .10005E-03    260.69        .75996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.261        23.939        .88990E-04   -1.4807    
   8  Prefactor     .12844        20.072        .22731E-02   -1.5636    
   9  norm          .10000E-03    8.2035        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10016E-03    256.85        .41414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25170        49.271        .37702E-02   -1.5608    
  13  Prefactor     .10000E-03    .98327        .73480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.5210        .11774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.1962        .29850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.198        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.259        37.508        .59589E-04   -1.4361    
  20  Prefactor     .10000E-03    6.6687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    55.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     23.389        12.657        .82828E-04   -1.4740    
  23  Prefactor     56.003        41.816        .53603E-04   -1.4210    
  24  Prefactor     18.595        30.308        .92894E-04   -1.4845    
  25  Normalizat    1.5614        .25936        .25344E-03   -.76068    
  26  Prefactor     .78244        .18692        .25327E-03   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53174e-08
Minuit parameter uncertainties:
  1  3.72905e-05
  2  24.3585
  3  2.31276
  4  0.000308187
  5  10.6802
  6  0.00738135
  7  23.9505
  8  3.21108
  9  8.4561e-05
  10  0.00020144
  11  0.01301
  12  7.04762
  13  8.57848e-06
  14  0.000256805
  15  5.6899e-06
  16  1.80718e-07
  17  0.000360309
  18  0.000219575
  19  37.5271
  20  7.79054e-05
  21  0.000467533
  22  12.6586
  23  41.8376
  24  30.3334
  25  0.259578
  26  0.187075
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  2.517e-01  7.048e+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:  7.824e-01  1.871e-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.561e+00  2.596e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/146318/likelihoodResults_362188801_362448001_4FGL_J2203.3-5009_daily_bin474.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) = 5767.39927632
delta logL = 0.222663868188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5766.97127933
delta logL = 0.650660857957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2061       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4841       1.0000          .0000       10.000    
     3 'Normalizat'    1.5735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76798       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=   5766.971     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      228 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2089        4.2187        .56568E-02    .34476E-03
   2  Index         1.4849        .43607        .26574       -.13564E-03
   3  Normalizat    1.5733        .20972        .57129E-01   -.82261E-04
   4  Prefactor     .76800        .15545        .43299E-01   -.14509E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.20886
  Index      = 1.48486
  Normalizat = 1.57327
  Prefactor  = 0.767999
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.971     FROM HESSE     STATUS=OK            29 CALLS      257 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2089        5.4802        .17450E-03   -1.5350    
   2  Index         1.4849        .73003        .91154E-02   -.77965    
   3  Normalizat    1.5733        .24243        .25261E-03   -.75740    
   4  Prefactor     .76800        .17965        .25513E-03   -1.0092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02123e-10
Minuit parameter uncertainties:
  1  5.48105
  2  0.735263
  3  0.242611
  4  0.179788
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146318': 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) = 5766.97127792
delta logL = 0.650662266843

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  3.209e+00  5.481e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.485e+00  7.353e-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:  7.680e-01  1.798e-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.573e+00  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 1.48 +/- 0.74
Photon Flux (Free Index): 7.12e-09 +/- 1.16e-08
Energy Flux (Free Index): 2.37e-05 +/- 4.75e-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/146318/cmap_HighResolution_362188801_362448001_4FGL_J2203.3-5009_daily_bin474.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-03', comment='SUCCESS', energy_flux2='2.37e-05', dlogl='6.51e-01', photon_flux2='7.12e-09', job_status='DONE', time_completed='2021-09-28 03:09:49.460614', photon_index_error2='0.74', photon_index2='1.48', ts='0.00', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='4.75e-05', EG='1.56', time_epoch_completed='1632823789.46', return_code='0', job_id='146318', GAL2='0.77', EG2='1.57', return_code2='0', photon_flux_error2='1.16e-08', ts2='1.31', photon_index='2.74' WHERE bin_id='474' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:09:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 146318: <4FGL_J2203.3-5009_daily_bin474> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin474> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 02:55:13 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 02:55:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 02:55:14 2021
Terminated at Tue Sep 28 03:09:50 2021
Results reported at Tue Sep 28 03:09:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin474 330.832 -50.1512 362188801 362448001 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 :                                   706.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            877 sec.

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

