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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1019
RA = 330.832, Dec = -50.1512
tmin = 503452801, tmax = 503712001
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='149289', job_status='RUN', time_executed='2021-09-28 03:08:48.114923', time_epoch_executed='1632823728.11' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149289

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149289/ft1_4FGL_J2203.3-5009_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149289/ft2_4FGL_J2203.3-5009_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149289/ft1_4FGL_J2203.3-5009_daily_bin1019.fits outfile=/scratch/kocevski/149289/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1019.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.79
user 7.45
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149289/ft2_4FGL_J2203.3-5009_daily_bin1019.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/149289/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/149289/ft1_filtered_4FGL_J2203.3-5009_daily_bin1019.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/149289/ft1_filtered_4FGL_J2203.3-5009_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/149289/ft2_4FGL_J2203.3-5009_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/149289/ltcube_503452801_503712001_4FGL_J2203.3-5009_daily_bin1019.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/149289/ft2_4FGL_J2203.3-5009_daily_bin1019.fits
.....................!
real 11.79
user 11.39
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149289/ft1_filtered_4FGL_J2203.3-5009_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/149289/ft2_4FGL_J2203.3-5009_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/149289/ltcube_503452801_503712001_4FGL_J2203.3-5009_daily_bin1019.fits outfile=/scratch/kocevski/149289/expmap_503452801_503712001_4FGL_J2203.3-5009_daily_bin1019.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/149289/ltcube_503452801_503712001_4FGL_J2203.3-5009_daily_bin1019.fits
.....................!
real 189.53
user 185.20
sys 4.01

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

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149289/ft1_filtered_4FGL_J2203.3-5009_daily_bin1019.fits scfile=/scratch/kocevski/149289/ft2_4FGL_J2203.3-5009_daily_bin1019.fits outfile=/scratch/kocevski/149289/cmap_HighResolution_503452801_503712001_4FGL_J2203.3-5009_daily_bin1019.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149289/ft1_filtered_4FGL_J2203.3-5009_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/149289/ft2_4FGL_J2203.3-5009_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149289/Model_4FGL_J2203.3-5009_daily_bin1019.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/149289/ft1_filtered_4FGL_J2203.3-5009_daily_bin1019.fits.....................!
real 46.70
user 45.33
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10689E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0338       1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.059       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18909E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11965E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.430       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    41.791       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11223E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .29268E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.3461       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8072       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12103E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.189       1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.208       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10598E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13526E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11615E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1282       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98240       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=   5795.199     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3100 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7411        .37539E-07** at limit **
   2  Prefactor     .10000E-03    11.276        .17877E-06** at limit **
   3  norm          1.0334        1.2614        .11580E-07    .73446E-05
   4  Prefactor     58.963        66.494        .32950E-05    .27701E-03
   5  Prefactor     .10000E-03    5.9038       -.35572E-05** at limit **
   6  Prefactor     .10000E-03    31.905       -.47574E-06** at limit **
   7  Prefactor     .10000E-03    15.076        .77418E-07** at limit **
   8  Prefactor     .10000E-03    6.8638       -.10184E-06** at limit **
   9  norm          11.424        4.7080        .62246E-07    .14900E-03
  10  Prefactor     .10000E-03    3.5731       -.11723E-06** at limit **
  11  Prefactor     41.711        44.625        .15004E-05    .19635E-03
  12  Prefactor     .10000E-03    4.4914        .13581E-06** at limit **
  13  Prefactor     .10000E-03    3.4680       -.26295E-06** at limit **
  14  Prefactor     .10000E-03    117.02       -.70868E-06** at limit **
  15  norm          6.3537        6.3469        .85690E-06   -.16112E-03
  16  Prefactor     4.7992        4.4793        .20188E-06    .24549E-04
  17  Prefactor     .10003E-03    169.97        .35333E-04** at limit **
  18  Prefactor     14.187        8.8751       -.43739E-06    .23056E-05
  19  Prefactor     33.177        36.539        .48771E-06    .42810E-04
  20  Prefactor     .10000E-03    8.0904       -.90822E-08** at limit **
  21  Prefactor     .10000E-03    57.604        .44768E-06** at limit **
  22  Prefactor     .10000E-03    1.7961       -.67185E-08** at limit **
  23  Prefactor     .10000E-03    30.184       -.24351E-06** at limit **
  24  Prefactor     .10000E-03    10.272       -.11122E-06** at limit **
  25  Normalizat    1.1290        .21079        .48657E-06    .45271E-04
  26  Prefactor     .98188        .15182       -.65006E-06   -.11972E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.03337
  Prefactor  = 58.9628
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.424
  Prefactor  = 0.0001
  Prefactor  = 41.7108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 6.35367
  Prefactor  = 4.79919
  Prefactor  = 0.000100028
  Prefactor  = 14.187
  Prefactor  = 33.1768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12899
  Prefactor  = 0.981885
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.199     FROM HESSE     STATUS=OK           450 CALLS     3550 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7436        .98085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0334        1.2609        .49705E-04   -1.5505    
   4  Prefactor     58.963        67.988        .26103E-03   -1.4171    
   5  Prefactor     .10000E-03    22.955        .30879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.1568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.424        4.7051        .10215E-03   -1.5032    
  10  Prefactor     .10000E-03    3.5873        .14052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     41.711        45.025        .62009E-04   -1.4415    
  12  Prefactor     .10000E-03    4.5105        .15743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.5210        .13849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    117.41        .21400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.3537        6.3628        .79667E-03   -1.5204    
  16  Prefactor     4.7992        4.4561        .14502E-03   -1.5270    
  17  Prefactor     .10003E-03    175.67        .72694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.187        8.9028        .53166E-03   -1.4954    
  19  Prefactor     33.177        36.673        .69536E-04   -1.4555    
  20  Prefactor     .10000E-03    8.2110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.7969        .99637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    30.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1290        .24801        .27682E-03   -.88826    
  26  Prefactor     .98188        .17892        .22275E-03   -.93336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3477e-09
Minuit parameter uncertainties:
  1  4.26767e-06
  2  8.98098e-07
  3  1.26094
  4  68.0781
  5  0.000452177
  6  7.50398e-05
  7  6.31055e-05
  8  0.000135367
  9  4.70526
  10  2.3851e-06
  11  45.0621
  12  2.58586e-05
  13  3.10069e-05
  14  0.000849579
  15  6.3635
  16  4.45645
  17  0.00442627
  18  8.90365
  19  36.6979
  20  1.75989e-05
  21  0.000230536
  22  5.75931e-07
  23  6.34387e-05
  24  1.18462e-05
  25  0.248265
  26  0.179027
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.586e-05  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.819e-01  1.790e-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.129e+00  2.483e-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: 8.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149289/likelihoodResults_503452801_503712001_4FGL_J2203.3-5009_daily_bin1019.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) = 5795.2003096
delta logL = -0.00105548764077

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5795.19925385
delta logL = 2.58879481407e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7107       1.0000          .0000       10.000    
     3 'Normalizat'    1.1290       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98192       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=   5795.199     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      262 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.1556        .68919E-01** at limit **
   2  Index         1.9915        5.4441        .50000       -.30884E-06
   3  Normalizat    1.1290        .62632E-02    .27682E-03    .10349E-03
   4  Prefactor     .98189        .47631E-02    .22275E-03    .14508E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 1.99151
  Normalizat = 1.12899
  Prefactor  = 0.981887
 **********
 **   18 **HESSE 
 **********

 FCN=   5795.199     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      293 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    253.92        .33300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9915        8.9649        .50000       -.64562    
   3  Normalizat    1.1290        .29798E-01    .11073E-04   -.88826    
   4  Prefactor     .98189        .22661E-01    .44549E-04   -.93336    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.82082e-08
Minuit parameter uncertainties:
  1  0.00163996
  2  492.292
  3  0.0297983
  4  0.0226614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149289': 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) = 5795.19924894
delta logL = 5.17396347277e-06

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.640e-03  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.992e+00  4.923e+02  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.819e-01  2.266e-02  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.129e+00  2.980e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/149289/cmap_HighResolution_503452801_503712001_4FGL_J2203.3-5009_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', job_status='DONE', photon_flux_upper_limit='8.55e-08', time_completed='2021-09-28 03:20:32.987899', job_id='149289', GAL2='0.98', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632824432.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.17e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1019' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:20:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 149289: <4FGL_J2203.3-5009_daily_bin1019> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1019> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:25 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:27 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:27 2021
Terminated at Tue Sep 28 03:20:33 2021
Results reported at Tue Sep 28 03:20:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1019 330.832 -50.1512 503452801 503712001 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 :                                   699.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            908 sec.

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

