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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1509
RA = 330.832, Dec = -50.1512
tmin = 630460801, tmax = 630720001
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='151075', job_status='RUN', time_executed='2021-09-28 03:11:31.055239', time_epoch_executed='1632823891.06' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1509'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151075

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151075/ft1_4FGL_J2203.3-5009_daily_bin1509.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151075/ft2_4FGL_J2203.3-5009_daily_bin1509.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151075/ft1_4FGL_J2203.3-5009_daily_bin1509.fits outfile=/scratch/kocevski/151075/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1509.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=630460801.0 tmax=630720001.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 2.81
user 2.61
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/151075/ft2_4FGL_J2203.3-5009_daily_bin1509.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/151075/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1509.fits evtable="EVENTS" outfile="/scratch/kocevski/151075/ft1_filtered_4FGL_J2203.3-5009_daily_bin1509.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151075/ft1_filtered_4FGL_J2203.3-5009_daily_bin1509.fits" evtable="EVENTS" scfile=/scratch/kocevski/151075/ft2_4FGL_J2203.3-5009_daily_bin1509.fits sctable="SC_DATA" outfile=/scratch/kocevski/151075/ltcube_630460801_630720001_4FGL_J2203.3-5009_daily_bin1509.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/151075/ft2_4FGL_J2203.3-5009_daily_bin1509.fits
.....................!
real 12.05
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151075/ft1_filtered_4FGL_J2203.3-5009_daily_bin1509.fits evtable="EVENTS" scfile=/scratch/kocevski/151075/ft2_4FGL_J2203.3-5009_daily_bin1509.fits sctable="SC_DATA" expcube=/scratch/kocevski/151075/ltcube_630460801_630720001_4FGL_J2203.3-5009_daily_bin1509.fits outfile=/scratch/kocevski/151075/expmap_630460801_630720001_4FGL_J2203.3-5009_daily_bin1509.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/151075/ltcube_630460801_630720001_4FGL_J2203.3-5009_daily_bin1509.fits
.....................!
real 189.80
user 185.31
sys 4.19

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/151075/ft1_filtered_4FGL_J2203.3-5009_daily_bin1509.fits scfile=/scratch/kocevski/151075/ft2_4FGL_J2203.3-5009_daily_bin1509.fits outfile=/scratch/kocevski/151075/cmap_630460801_630720001_4FGL_J2203.3-5009_daily_bin1509.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=330.832 yref=-50.1512 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/151075/ft1_filtered_4FGL_J2203.3-5009_daily_bin1509.fits scfile=/scratch/kocevski/151075/ft2_4FGL_J2203.3-5009_daily_bin1509.fits outfile=/scratch/kocevski/151075/cmap_HighResolution_630460801_630720001_4FGL_J2203.3-5009_daily_bin1509.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/151075/ft1_filtered_4FGL_J2203.3-5009_daily_bin1509.fits evtable="EVENTS" scfile=/scratch/kocevski/151075/ft2_4FGL_J2203.3-5009_daily_bin1509.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/151075/Model_4FGL_J2203.3-5009_daily_bin1509.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/151075/ft1_filtered_4FGL_J2203.3-5009_daily_bin1509.fits.....................!
real 42.56
user 41.29
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.051       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0666       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .78890E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.2041       1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.506       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.828       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0221       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.967       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.3373       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4184       1.0000         .10000E-03   10000.    
    14 'Prefactor '    168.98       1.0000         .10000E-03   10000.    
    15 'norm      '    7.3835       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14528E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.508       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81291       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95036       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=   5458.476     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3115 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.999        28.984        .30473E-05    .51843E-04
   2  Prefactor     .10000E-03    39.069        .75019E-05** at limit **
   3  norm          2.0666        3.5137       -.56902E-06   -.51207E-03
   4  Prefactor     .10000E-03    246.70       -.35441E-04** at limit **
   5  Prefactor     8.2041        9.9657       -.28283E-07   -.92578E-04
   6  Prefactor     41.509        37.735       -.22707E-06   -.74043E-05
   7  Prefactor     24.767        31.407       -.67546E-05    .46700E-04
   8  Prefactor     7.0180        6.7211        .97859E-06   -.19426E-03
   9  norm          .10000E-03    2.9798       -.27638E-07** at limit **
  10  Prefactor     13.968        12.856       -.75472E-08   -.45017E-04
  11  Prefactor     .10000E-03    18.702        .16836E-04** at limit **
  12  Prefactor     7.3360        8.6577       -.97165E-07   -.17783E-03
  13  Prefactor     2.4174        4.3683       -.13930E-05   -.65751E-03
  14  Prefactor     168.97        112.72       -.33589E-05   -.16489E-04
  15  norm          7.3836        5.9162       -.12838E-05    .23813E-04
  16  Prefactor     .10046E-03    1.1684        .58273E-06** at limit **
  17  Prefactor     .10000E-03    25.848       -.12080E-04** at limit **
  18  Prefactor     .10000E-03    1.3516        .93979E-08** at limit **
  19  Prefactor     .10000E-03    5.9394        .11672E-07** at limit **
  20  Prefactor     .10000E-03    2.6629        .14960E-07** at limit **
  21  Prefactor     .10000E-03    17.770       -.14458E-04** at limit **
  22  Prefactor     .10000E-03    1.8458        .13787E-07** at limit **
  23  Prefactor     19.505        24.633       -.97754E-06   -.23477E-05
  24  Prefactor     .10000E-03    3.9722        .10110E-07** at limit **
  25  Normalizat    .81292        .17532        .36223E-06   -.70253E-04
  26  Prefactor     .95032        .15104        .49261E-06   -.58589E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.9993
  Prefactor  = 0.0001
  norm       = 2.06659
  Prefactor  = 0.000100001
  Prefactor  = 8.20406
  Prefactor  = 41.5087
  Prefactor  = 24.7668
  Prefactor  = 7.01799
  norm       = 0.0001
  Prefactor  = 13.9677
  Prefactor  = 0.0001
  Prefactor  = 7.336
  Prefactor  = 2.41743
  Prefactor  = 168.975
  norm       = 7.38363
  Prefactor  = 0.000100461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.5049
  Prefactor  = 0.0001
  Normalizat = 0.812921
  Prefactor  = 0.950318
 **********
 **   18 **HESSE 
 **********

 FCN=   5458.476     FROM HESSE     STATUS=OK           464 CALLS     3579 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.999        28.991        .60404E-04   -1.4380    
   2  Prefactor     .10000E-03    39.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0666        3.5077        .17482E-03   -1.5420    
   4  Prefactor     .10000E-03    248.09        .20910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.2041        9.9452        .13997E-03   -1.5135    
   6  Prefactor     41.509        37.680        .62222E-04   -1.4419    
   7  Prefactor     24.767        31.309        .80394E-04   -1.4712    
   8  Prefactor     7.0180        6.7007        .15139E-03   -1.5178    
   9  norm          .10000E-03    3.0005        .12437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.968        12.851        .10717E-03   -1.4960    
  11  Prefactor     .10000E-03    18.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.3360        8.6246        .14807E-03   -1.5166    
  13  Prefactor     2.4174        4.3845        .19286E-03   -1.5397    
  14  Prefactor     168.97        112.36        .31035E-04   -1.3101    
  15  norm          7.3836        5.9112        .14760E-03   -1.5164    
  16  Prefactor     .10046E-03    1.7995        .29838E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.3599        .83855E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9489        .17584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6770        .11773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.8534        .98021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.505        24.641        .90682E-04   -1.4824    
  24  Prefactor     .10000E-03    3.9831        .14380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .81292        .20182        .25665E-03   -.99591    
  26  Prefactor     .95032        .17497        .20874E-03   -.94404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80939e-09
Minuit parameter uncertainties:
  1  29.0008
  2  9.96363e-05
  3  3.508
  4  0.00074803
  5  9.94716
  6  37.7011
  7  31.3299
  8  6.70143
  9  2.73607e-06
  10  12.854
  11  5.04424e-06
  12  8.62609
  13  4.38509
  14  112.507
  15  5.9117
  16  0.00182228
  17  8.76959e-06
  18  5.02987e-07
  19  5.35521e-06
  20  2.41084e-06
  21  1.14324e-06
  22  1.00934e-06
  23  24.6536
  24  9.20161e-07
  25  0.202005
  26  0.175069
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  7.336e+00  8.626e+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:  9.503e-01  1.751e-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:  8.129e-01  2.020e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 4.24e-08
Energy Flux (Fixed Index): 8.43e-06 +/- 9.91e-06

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

Saving results to:
/scratch/kocevski/151075/likelihoodResults_630460801_630720001_4FGL_J2203.3-5009_daily_bin1509.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) = 5457.22876544
delta logL = 1.24743348884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5457.22022154
delta logL = 1.25597738959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5877       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7477       1.0000          .0000       10.000    
     3 'Normalizat'    .83599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93566       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=   5457.220     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5768        7.7056        .34197E-02   -.54341E-04
   2  Index         1.7470        .39231        .19360       -.47403E-04
   3  Normalizat    .83588        .16930        .44078E-01    .31982E-04
   4  Prefactor     .93574        .14850        .45458E-01   -.18636E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.57676
  Index      = 1.74705
  Normalizat = 0.835876
  Prefactor  = 0.935738
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.220     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5768        9.6294        .13679E-03   -1.5122    
   2  Index         1.7470        .56337        .74480E-02   -.70836    
   3  Normalizat    .83588        .19588        .25351E-03   -.98751    
   4  Prefactor     .93574        .17185        .20997E-03   -.94903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10166e-09
Minuit parameter uncertainties:
  1  9.63112
  2  0.565453
  3  0.19605
  4  0.171948
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151075': 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) = 5457.22022055
delta logL = 1.25597837985

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  8.577e+00  9.631e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.747e+00  5.655e-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:  9.357e-01  1.719e-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:  8.359e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.78
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 1.75 +/- 0.57
Photon Flux (Free Index): 1.95e-08 +/- 2.42e-08
Energy Flux (Free Index): 2.74e-05 +/- 3.49e-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/151075/cmap_HighResolution_630460801_630720001_4FGL_J2203.3-5009_daily_bin1509.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='2.74e-05', photon_flux_error='4.24e-08', dlogl='1.26e+00', energy_flux='8.43e-06', photon_flux2='1.95e-08', job_status='DONE', time_completed='2021-09-28 03:22:50.115280', photon_index_error2='0.57', photon_index2='1.75', ts='1.26', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='3.49e-05', EG='0.81', time_epoch_completed='1632824570.12', return_code='0', job_id='151075', GAL2='0.94', EG2='0.84', return_code2='0', energy_flux_error='9.91e-06', photon_flux_error2='2.42e-08', ts2='3.78', photon_index='2.74' WHERE bin_id='1509' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:22:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 151075: <4FGL_J2203.3-5009_daily_bin1509> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1509> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:10:54 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:10:55 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:10:55 2021
Terminated at Tue Sep 28 03:22:50 2021
Results reported at Tue Sep 28 03:22:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1509 330.832 -50.1512 630460801 630720001 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 :                                   665.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   715 sec.
    Turnaround time :                            716 sec.

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

