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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1464
RA = 330.832, Dec = -50.1512
tmin = 618796801, tmax = 619056001
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='151005', job_status='RUN', time_executed='2021-09-28 03:12:19.227107', time_epoch_executed='1632823939.23' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1464'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151005/ft1_4FGL_J2203.3-5009_daily_bin1464.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151005/ft2_4FGL_J2203.3-5009_daily_bin1464.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151005/ft1_4FGL_J2203.3-5009_daily_bin1464.fits outfile=/scratch/kocevski/151005/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1464.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=618796801.0 tmax=619056001.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.74
user 3.50
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151005/ft1_filtered_4FGL_J2203.3-5009_daily_bin1464.fits" evtable="EVENTS" scfile=/scratch/kocevski/151005/ft2_4FGL_J2203.3-5009_daily_bin1464.fits sctable="SC_DATA" outfile=/scratch/kocevski/151005/ltcube_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.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/151005/ft2_4FGL_J2203.3-5009_daily_bin1464.fits
.....................!
real 12.11
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151005/ft1_filtered_4FGL_J2203.3-5009_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/151005/ft2_4FGL_J2203.3-5009_daily_bin1464.fits sctable="SC_DATA" expcube=/scratch/kocevski/151005/ltcube_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.fits outfile=/scratch/kocevski/151005/expmap_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.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/151005/ltcube_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.fits
.....................!
real 190.68
user 185.44
sys 4.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/151005/ft1_filtered_4FGL_J2203.3-5009_daily_bin1464.fits scfile=/scratch/kocevski/151005/ft2_4FGL_J2203.3-5009_daily_bin1464.fits outfile=/scratch/kocevski/151005/cmap_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/151005/ft1_filtered_4FGL_J2203.3-5009_daily_bin1464.fits scfile=/scratch/kocevski/151005/ft2_4FGL_J2203.3-5009_daily_bin1464.fits outfile=/scratch/kocevski/151005/cmap_HighResolution_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/151005/ft1_filtered_4FGL_J2203.3-5009_daily_bin1464.fits evtable="EVENTS" scfile=/scratch/kocevski/151005/ft2_4FGL_J2203.3-5009_daily_bin1464.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/151005/Model_4FGL_J2203.3-5009_daily_bin1464.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/151005/ft1_filtered_4FGL_J2203.3-5009_daily_bin1464.fits.....................!
real 43.01
user 41.69
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/151005/ft1_filtered_4FGL_J2203.3-5009_daily_bin1464.fits', '/scratch/kocevski/151005/ft2_4FGL_J2203.3-5009_daily_bin1464.fits', expMap='/scratch/kocevski/151005/expmap_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.fits', expCube='/scratch/kocevski/151005/ltcube_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/151005/Model_4FGL_J2203.3-5009_daily_bin1464.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/151005/ft1_filtered_4FGL_J2203.3-5009_daily_bin1464.fits
Spacecraft file(s): /scratch/kocevski/151005/ft2_4FGL_J2203.3-5009_daily_bin1464.fits
Exposure map: /scratch/kocevski/151005/expmap_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.fits
Exposure cube: /scratch/kocevski/151005/ltcube_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/151005/Model_4FGL_J2203.3-5009_daily_bin1464.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5119.26939862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2448       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.063       1.0000         .10000E-03   10000.    
     3 'norm      '    16.824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    89.793       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12170E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.905       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.706       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15847E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0156       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.749       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7018       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0904       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.5106       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71568       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2835       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=   5119.232     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3153 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2448        5.1353       -.31780E-07   -.39058E-05
   2  Prefactor     14.062        24.715        .14631E-06    .16805E-05
   3  norm          16.824        4.1192        .27866E-07   -.22700E-05
   4  Prefactor     89.766        80.028        .32572E-05    .15964E-04
   5  Prefactor     .10000E-03    11.711        .60622E-06** at limit **
   6  Prefactor     23.881        36.169        .27377E-05    .63504E-05
   7  Prefactor     14.695        32.741        .10833E-05    .10265E-04
   8  Prefactor     .10000E-03    4.4536       -.35043E-06** at limit **
   9  norm          1.0100        4.3450       -.99787E-07   -.49407E-04
  10  Prefactor     .10000E-03    5.3515        .18805E-07** at limit **
  11  Prefactor     29.703        51.773        .58724E-05    .15251E-04
  12  Prefactor     2.7038        8.5328        .31757E-05   -.57168E-04
  13  Prefactor     8.0894        6.1414        .83015E-08   -.17707E-04
  14  Prefactor     .10000E-03    97.456        .19237E-05** at limit **
  15  norm          .10000E-03    5.9203        .13946E-07** at limit **
  16  Prefactor     .10000E-03    1.4930        .21952E-07** at limit **
  17  Prefactor     .10000E-03    17.884       -.16542E-05** at limit **
  18  Prefactor     4.5123        6.8443        .56508E-07   -.28131E-04
  19  Prefactor     .10000E-03    23.536        .41077E-05** at limit **
  20  Prefactor     .10000E-03    17.972       -.64559E-06** at limit **
  21  Prefactor     .10000E-03    35.156       -.15692E-06** at limit **
  22  Prefactor     .10000E-03    3.4892        .50305E-07** at limit **
  23  Prefactor     .10000E-03    37.235       -.22351E-05** at limit **
  24  Prefactor     .10000E-03    6.8812        .10972E-06** at limit **
  25  Normalizat    .71573        .23777       -.15211E-05    .26248E-04
  26  Prefactor     1.2835        .18045       -.40914E-06    .21507E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24478
  Prefactor  = 14.0624
  norm       = 16.8236
  Prefactor  = 89.7655
  Prefactor  = 0.0001
  Prefactor  = 23.881
  Prefactor  = 14.6949
  Prefactor  = 0.0001
  norm       = 1.01002
  Prefactor  = 0.0001
  Prefactor  = 29.7031
  Prefactor  = 2.70377
  Prefactor  = 8.08941
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.51232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.715725
  Prefactor  = 1.28345
 **********
 **   18 **HESSE 
 **********

 FCN=   5119.232     FROM HESSE     STATUS=OK           454 CALLS     3607 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2448        5.1312        .13010E-03   -1.5170    
   2  Prefactor     14.062        24.705        .10681E-03   -1.4958    
   3  norm          16.824        4.1185        .69038E-04   -1.4887    
   4  Prefactor     89.766        80.076        .42404E-04   -1.3810    
   5  Prefactor     .10000E-03    11.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.881        35.907        .81928E-04   -1.4730    
   7  Prefactor     14.695        32.675        .10444E-03   -1.4941    
   8  Prefactor     .10000E-03    9.6261        .28894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0100        4.1705        .27925E-03   -1.5507    
  10  Prefactor     .10000E-03    5.3705        .16164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.703        51.919        .73457E-04   -1.4617    
  12  Prefactor     2.7038        8.5631        .12391E-02   -1.5379    
  13  Prefactor     8.0894        6.1465        .14096E-03   -1.5139    
  14  Prefactor     .10000E-03    97.493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.9618        .17002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4975        .85358E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.5123        6.8523        .18957E-03   -1.5283    
  19  Prefactor     .10000E-03    23.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.569        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.4951        .13053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    37.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.8861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .71573        .26636        .33683E-03   -1.0328    
  26  Prefactor     1.2835        .20385        .20541E-03   -.83800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34578e-11
Minuit parameter uncertainties:
  1  5.13153
  2  24.7226
  3  4.1186
  4  80.1728
  5  3.1617e-05
  6  35.94
  7  32.7143
  8  0.000104121
  9  4.10509
  10  1.8742e-07
  11  51.998
  12  8.56693
  13  6.14694
  14  7.51535e-05
  15  2.75627e-06
  16  6.04627e-09
  17  9.89533e-06
  18  6.85347
  19  4.75151e-05
  20  3.79344e-05
  21  2.81763e-06
  22  2.22534e-06
  23  3.8845e-06
  24  3.49e-06
  25  0.266844
  26  0.203981
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  2.704e+00  8.567e+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.283e+00  2.040e-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:  7.157e-01  2.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/151005/likelihoodResults_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.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): 102
logL (Free Index) = 5119.15048798
delta logL = 0.0811599571543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5118.97853618
delta logL = 0.253111756947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85504E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.4815       1.0000          .0000       10.000    
     3 'Normalizat'    .66454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3131       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=   5118.979     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      354 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .81175E-03    .40284E-01    .63318E-03** at limit **
   2  Index         9.5143        8.2466        .39931E-01   -.18741E-04
   3  Normalizat    .66469        .63027E-01    .78730E-01   -.33901E-04
   4  Prefactor     1.3130        .49109E-01    .32386E-01   -.53508E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000811746
  Index      = 9.51425
  Normalizat = 0.664687
  Prefactor  = 1.31304
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.979     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      385 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .81175E-03    .83521E-01    .28752E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.5143        5.2218        .15972E-02    1.1264    
   3  Normalizat    .66469        .19689        .34860E-03   -1.0530    
   4  Prefactor     1.3130        .15314        .20343E-03   -.82920    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03253e-09
Minuit parameter uncertainties:
  1  0.0154202
  2  12.2724
  3  0.1971
  4  0.153192
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151005': 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): 102
logL (Free Index) = 5118.97852977
delta logL = 0.253118164786

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  8.117e-04  1.542e-02  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  9.514e+00  1.227e+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.313e+00  1.532e-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.647e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 330.832 -50.151

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/151005/cmap_HighResolution_618796801_619056001_4FGL_J2203.3-5009_daily_bin1464.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-28 03:23:39.171627', job_id='151005', GAL2='1.31', fit_tolerance='1e-08', EG2='0.66', EG='0.72', time_epoch_completed='1632824619.17', return_code2='102', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='2.53e-01', ts2='0.71', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1464' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:23:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 151005: <4FGL_J2203.3-5009_daily_bin1464> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1464> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:10:47 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:10:49 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:49 2021
Terminated at Tue Sep 28 03:23:39 2021
Results reported at Tue Sep 28 03:23:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1464 330.832 -50.1512 618796801 619056001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2203.3-5009 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   661.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            772 sec.

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

