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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1226
RA = 330.832, Dec = -50.1512
tmin = 557107201, tmax = 557366401
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='149617', job_status='RUN', time_executed='2021-09-28 03:09:46.891023', time_epoch_executed='1632823786.89' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149617

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149617/ft1_4FGL_J2203.3-5009_daily_bin1226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149617/ft2_4FGL_J2203.3-5009_daily_bin1226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149617/ft1_4FGL_J2203.3-5009_daily_bin1226.fits outfile=/scratch/kocevski/149617/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1226.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=557107201.0 tmax=557366401.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.66
user 3.45
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149617/ft2_4FGL_J2203.3-5009_daily_bin1226.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/149617/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1226.fits evtable="EVENTS" outfile="/scratch/kocevski/149617/ft1_filtered_4FGL_J2203.3-5009_daily_bin1226.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149617/ft1_filtered_4FGL_J2203.3-5009_daily_bin1226.fits" evtable="EVENTS" scfile=/scratch/kocevski/149617/ft2_4FGL_J2203.3-5009_daily_bin1226.fits sctable="SC_DATA" outfile=/scratch/kocevski/149617/ltcube_557107201_557366401_4FGL_J2203.3-5009_daily_bin1226.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/149617/ft2_4FGL_J2203.3-5009_daily_bin1226.fits
.....................!
real 12.15
user 11.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149617/ft1_filtered_4FGL_J2203.3-5009_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/149617/ft2_4FGL_J2203.3-5009_daily_bin1226.fits sctable="SC_DATA" expcube=/scratch/kocevski/149617/ltcube_557107201_557366401_4FGL_J2203.3-5009_daily_bin1226.fits outfile=/scratch/kocevski/149617/expmap_557107201_557366401_4FGL_J2203.3-5009_daily_bin1226.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/149617/ltcube_557107201_557366401_4FGL_J2203.3-5009_daily_bin1226.fits
.....................!
real 190.74
user 185.15
sys 5.29

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149617/ft1_filtered_4FGL_J2203.3-5009_daily_bin1226.fits scfile=/scratch/kocevski/149617/ft2_4FGL_J2203.3-5009_daily_bin1226.fits outfile=/scratch/kocevski/149617/cmap_HighResolution_557107201_557366401_4FGL_J2203.3-5009_daily_bin1226.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/149617/ft1_filtered_4FGL_J2203.3-5009_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/149617/ft2_4FGL_J2203.3-5009_daily_bin1226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149617/Model_4FGL_J2203.3-5009_daily_bin1226.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/149617/ft1_filtered_4FGL_J2203.3-5009_daily_bin1226.fits.........................!
real 18.53
user 17.26
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1340       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.778       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    195.75       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27749E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.8820       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13786E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14878E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18864E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    318.25       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21269       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11246E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20712E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .11646E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .64271       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5212       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.3291       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7044       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.997       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2484       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1144       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3462       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8875       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2467       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   896.6763     FROM MIGRAD    STATUS=CONVERGED    704 CALLS     2766 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2749        4.7019        .23647E-05    .19559E-04
   2  Prefactor     32.959        44.409       -.38961E-05    .39156E-04
   3  norm          .10000E-03    2.2502       -.57386E-07** at limit **
   4  Prefactor     197.18        152.87        .63386E-05    .57272E-04
   5  Prefactor     .10000E-03    8.7408       -.22222E-06** at limit **
   6  Prefactor     .10000E-03    55.562       -.47987E-05** at limit **
   7  Prefactor     5.2402        299.55        .69961E-04   -.34836E-04
   8  Prefactor     .10000E-03    10.407       -.96945E-06** at limit **
   9  norm          .10006E-03    223.88        .53862E-04** at limit **
  10  Prefactor     .10000E-03    37.153        .22900E-06** at limit **
  11  Prefactor     311.22        321.78        .17012E-04    .30864E-03
  12  Prefactor     .10000E-03    109.31        .61049E-05** at limit **
  13  Prefactor     .10000E-03    7.4991        .11739E-05** at limit **
  14  Prefactor     .10000E-03    385.09        .72854E-05** at limit **
  15  norm          .10000E-03    44.223       -.51198E-05** at limit **
  16  Prefactor     .10003E-03    815.57        .14576E-04** at limit **
  17  Prefactor    10000.0        9913.7       -.96964E-04   -.29889E-03
  18  Prefactor     .10111E-03    1424.4        .28374E-04** at limit **
  19  Prefactor     1384.0        2822.6       -.25144E-04   -.66497E-04
  20  Prefactor     .13108E-03    1390.9       -.11452E-03** at limit **
  21  Prefactor     13.253        119.16       -.54353E-05    .51462E-02
  22  Prefactor    10000.0        7702.5        .37982E-05** at limit **
  23  Prefactor    10000.0        8326.5       -.12381E-03** at limit **
  24  Prefactor     .10049E-03    1799.1        .16117E-04** at limit **
  25  Normalizat    .10000E-01    .54557       -.88823E-05** at limit **
  26  Prefactor     1.1889        .22411        .92111E-05    .53522E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.27486
  Prefactor  = 32.9587
  norm       = 0.0001
  Prefactor  = 197.176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.24019
  Prefactor  = 0.0001
  norm       = 0.000100058
  Prefactor  = 0.0001
  Prefactor  = 311.218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 0.00010003
  Prefactor  = 9999.97
  Prefactor  = 0.000101112
  Prefactor  = 1384
  Prefactor  = 0.000131082
  Prefactor  = 13.2533
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.000100487
  Normalizat = 0.01
  Prefactor  = 1.18892
 **********
 **   18 **HESSE 
 **********

 FCN=   896.6763     FROM HESSE     STATUS=OK           502 CALLS     3268 TOTAL
                     EDM=   .38E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2749        4.7930        .70550E-02   -1.5406    
   2  Prefactor     32.959        44.417        .17237E-02   -1.4559    
   3  norm          .10000E-03    2.2059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     197.18        152.15        .72185E-03   -1.2890    
   5  Prefactor     .10000E-03    8.7138        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.233        .99557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2402        303.34        .31868E-02   -1.6166    
   8  Prefactor     .10000E-03    9.3805        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10006E-03    43.395        .62095E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    37.448        .10140E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     311.22        320.73        .56969E-03   -1.2161    
  12  Prefactor     .10000E-03    109.11        .10035E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.5027        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    368.39        .91261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    43.290        .10329E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    814.49        .11840E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        9928.4        .47335E-02    1.5674    
  18  Prefactor     .10111E-03    1457.9        .43524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1384.0        2874.7        .36118E-02   -.80843    
  20  Prefactor     .13108E-03    1422.7        .28914E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.253        9623.7        .48872E-02   -1.4980    
  22  Prefactor    10000.0        7691.5        .70920E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        8323.8        .34691E-02    1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10049E-03    1836.7        .75729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .48888        .19683       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.1889        .24033        .33609E-01   -.86673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000376807
Minuit parameter uncertainties:
  1  4.7938
  2  44.4618
  3  1.68637e-06
  4  152.457
  5  1.3238e-05
  6  0.000330849
  7  80.1677
  8  3.21596e-05
  9  0.00318576
  10  1.81632e-05
  11  322.584
  12  0.00041407
  13  2.12996e-06
  14  0.00112646
  15  0.000644649
  16  0.0100259
  17  57.6091
  18  0.0826144
  19  3396.37
  20  0.43124
  21  1369.8
  22  0.497265
  23  8.1679
  24  0.0618357
  25  4.33787e-06
  26  0.240547
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  4.141e-04  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.189e+00  2.405e-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.000e-02  4.338e-06  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.02e-06 ph cm-2 s-1
Energy Flux Upper Limit: 8.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149617/likelihoodResults_557107201_557366401_4FGL_J2203.3-5009_daily_bin1226.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) = 896.676374856
delta logL = -4.85475093228e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 896.676326505
delta logL = -1.96887299353e-07

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 'Index     '    2.8743       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1889       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=   896.6763     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      318 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50585E-03    120.94        .18142    ** at limit **
   2  Index         1.9748        5.9839        .50000       -.18987E-05
   3  Normalizat    .10000E-01    .98918E-03    .10833E-01** at limit **
   4  Prefactor     1.1889        .74388E-02    .16089E-03   -.11624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00050585
  Index      = 1.9748
  Normalizat = 0.01
  Prefactor  = 1.18892
 **********
 **   18 **HESSE 
 **********

 FCN=   896.6763     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      349 TOTAL
                     EDM=   .15E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50585E-03    7829.3        .69007E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9748        5.1072        .50000       -.64982    
   3  Normalizat    .10000E-01    .22573        .21666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1889        .17308        .64356E-05   -.86673    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000153596
Minuit parameter uncertainties:
  1  28.7473
  2  32.1269
  3  2.76715e-06
  4  0.17316
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149617': 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) = 896.676325634
delta logL = 6.74300395076e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  5.059e-04  2.875e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.975e+00  3.213e+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.189e+00  1.732e-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.000e-02  2.767e-06  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/149617/cmap_HighResolution_557107201_557366401_4FGL_J2203.3-5009_daily_bin1226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.02e-02', job_status='DONE', photon_flux_upper_limit='1.02e-06', time_completed='2021-09-28 03:16:03.184388', job_id='149617', GAL2='1.19', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632824163.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='6.74e-07', ts2='0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1226' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:16:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 149617: <4FGL_J2203.3-5009_daily_bin1226> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1226 330.832 -50.1512 557107201 557366401 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 :                                   373.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             225.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   605 sec.
    Turnaround time :                            607 sec.

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

