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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1623
RA = 330.832, Dec = -50.1512
tmin = 660009601, tmax = 660268801
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='481483', job_status='RUN', time_executed='2021-12-08 08:22:43.716702', time_epoch_executed='1638980563.72' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481483

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481483/ft1_4FGL_J2203.3-5009_daily_bin1623.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481483/ft2_4FGL_J2203.3-5009_daily_bin1623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481483/ft1_4FGL_J2203.3-5009_daily_bin1623.fits outfile=/scratch/kocevski/481483/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1623.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=660009601.0 tmax=660268801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.85
user 4.59
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481483/ft1_filtered_4FGL_J2203.3-5009_daily_bin1623.fits" evtable="EVENTS" scfile=/scratch/kocevski/481483/ft2_4FGL_J2203.3-5009_daily_bin1623.fits sctable="SC_DATA" outfile=/scratch/kocevski/481483/ltcube_660009601_660268801_4FGL_J2203.3-5009_daily_bin1623.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/481483/ft2_4FGL_J2203.3-5009_daily_bin1623.fits
.....................!
real 12.75
user 12.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481483/ft1_filtered_4FGL_J2203.3-5009_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/481483/ft2_4FGL_J2203.3-5009_daily_bin1623.fits sctable="SC_DATA" expcube=/scratch/kocevski/481483/ltcube_660009601_660268801_4FGL_J2203.3-5009_daily_bin1623.fits outfile=/scratch/kocevski/481483/expmap_660009601_660268801_4FGL_J2203.3-5009_daily_bin1623.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/481483/ltcube_660009601_660268801_4FGL_J2203.3-5009_daily_bin1623.fits
.....................!
real 191.16
user 185.18
sys 5.53

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/481483/ft1_filtered_4FGL_J2203.3-5009_daily_bin1623.fits scfile=/scratch/kocevski/481483/ft2_4FGL_J2203.3-5009_daily_bin1623.fits outfile=/scratch/kocevski/481483/cmap_660009601_660268801_4FGL_J2203.3-5009_daily_bin1623.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.40
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/481483/ft1_filtered_4FGL_J2203.3-5009_daily_bin1623.fits evtable="EVENTS" scfile=/scratch/kocevski/481483/ft2_4FGL_J2203.3-5009_daily_bin1623.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/481483/Model_4FGL_J2203.3-5009_daily_bin1623.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/481483/ft1_filtered_4FGL_J2203.3-5009_daily_bin1623.fits.....................!
real 43.12
user 41.76
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5433       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .83509E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5076       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0087       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.984       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.722       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    85.989       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.156       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3097       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.531       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.614       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.282       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3758       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .76296       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2650       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=   5080.017     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3144 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5425        4.5222       -.14821E-06   -.18713E-04
   2  Prefactor     .10000E-03    5.2667        .22924E-07** at limit **
   3  norm          .69049E-01    29.166        .13681E-04   -.67035E-05
   4  Prefactor     .10000E-03    62.965        .13675E-05** at limit **
   5  Prefactor     3.5133        12.535       -.17262E-05    .26831E-04
   6  Prefactor     .94330        57.863        .12397E-04   -.46445E-05
   7  Prefactor     11.980        26.060        .90215E-06   -.18934E-04
   8  Prefactor     .10000E-03    2.9954        .32894E-06** at limit **
   9  norm          10.723        7.0136       -.13128E-05   -.35094E-04
  10  Prefactor     .10000E-03    14.799        .27226E-06** at limit **
  11  Prefactor     85.986        52.431       -.17447E-06   -.14426E-04
  12  Prefactor     .10000E-03    3.4248        .10169E-06** at limit **
  13  Prefactor     1.8096        3.9226       -.61122E-09    .44330E-04
  14  Prefactor     32.148        80.297       -.18887E-05    .36353E-05
  15  norm          .10000E-03    3.4615        .13032E-07** at limit **
  16  Prefactor     7.3090        4.9383       -.57482E-06    .88758E-04
  17  Prefactor     20.535        44.624        .86872E-06    .48756E-05
  18  Prefactor     .10000E-03    2.6934        .51317E-07** at limit **
  19  Prefactor     33.626        42.934        .99535E-06    .36321E-04
  20  Prefactor     18.286        18.674        .28785E-07    .84112E-04
  21  Prefactor     .10000E-03    274.67       -.38779E-05** at limit **
  22  Prefactor     3.3755        7.3595       -.26070E-05    .79450E-06
  23  Prefactor     .10000E-03    28.039       -.17669E-05** at limit **
  24  Prefactor     .10000E-03    7.5036        .25058E-07** at limit **
  25  Normalizat    .76295        .24282       -.12041E-05   -.11698E-03
  26  Prefactor     1.2651        .18322       -.11999E-05   -.71039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54249
  Prefactor  = 0.0001
  norm       = 0.0690486
  Prefactor  = 0.0001
  Prefactor  = 3.51334
  Prefactor  = 0.943297
  Prefactor  = 11.9799
  Prefactor  = 0.0001
  norm       = 10.7235
  Prefactor  = 0.0001
  Prefactor  = 85.986
  Prefactor  = 0.0001
  Prefactor  = 1.80956
  Prefactor  = 32.1481
  norm       = 0.0001
  Prefactor  = 7.30897
  Prefactor  = 20.5351
  Prefactor  = 0.0001
  Prefactor  = 33.6259
  Prefactor  = 18.2861
  Prefactor  = 0.000100001
  Prefactor  = 3.37548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.762949
  Prefactor  = 1.26512
 **********
 **   18 **HESSE 
 **********

 FCN=   5080.017     FROM HESSE     STATUS=OK           462 CALLS     3606 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5425        4.5219        .19315E-03   -1.5389    
   2  Prefactor     .10000E-03    5.2679        .15975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .69049E-01    29.425        .15686E-02   -1.5655    
   4  Prefactor     .10000E-03    63.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5133        13.053        .21587E-03   -1.5333    
   6  Prefactor     .94330        639.74        .82237E-02   -1.5514    
   7  Prefactor     11.980        26.071        .11572E-03   -1.5016    
   8  Prefactor     .10000E-03    3.0372        .12053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.723        7.6094        .12236E-03   -1.5053    
  10  Prefactor     .10000E-03    15.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     85.986        52.493        .43323E-04   -1.3851    
  12  Prefactor     .10000E-03    3.4311        .12879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.8096        3.8945        .19748E-03   -1.5439    
  14  Prefactor     32.148        80.259        .70661E-04   -1.4573    
  15  norm          .10000E-03    3.4742        .12950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3090        4.9321        .12391E-03   -1.5167    
  17  Prefactor     20.535        44.621        .88396E-04   -1.4801    
  18  Prefactor     .10000E-03    2.7030        .11420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.626        43.047        .69116E-04   -1.4548    
  20  Prefactor     18.286        18.631        .93671E-04   -1.4852    
  21  Prefactor     .10000E-03    274.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3755        7.3649        .11012E-02   -1.5340    
  23  Prefactor     .10000E-03    28.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.5107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .76295        .28027        .32989E-03   -1.0146    
  26  Prefactor     1.2651        .21071        .20397E-03   -.84350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25753e-08
Minuit parameter uncertainties:
  1  4.52255
  2  4.79283e-06
  3  2.85014
  4  6.55011e-05
  5  13.0637
  6  49.6705
  7  26.0962
  8  3.04802e-06
  9  7.61004
  10  0.000124559
  11  52.5209
  12  3.7075e-05
  13  3.89505
  14  80.5308
  15  9.58623e-06
  16  4.9324
  17  44.6939
  18  2.34077e-05
  19  43.087
  20  18.6365
  21  0.000823857
  22  7.36686
  23  9.17598e-05
  24  8.67769e-06
  25  0.2808
  26  0.210853
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.707e-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:  1.265e+00  2.109e-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.629e-01  2.808e-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.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481483/likelihoodResults_660009601_660268801_4FGL_J2203.3-5009_daily_bin1623.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) = 5080.01835677
delta logL = -0.00137314804488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5080.01698355
delta logL = 7.01147655491e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7255       1.0000          .0000       10.000    
     3 'Normalizat'    .76299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2651       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=   5080.017     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      251 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.872        .12979E-01** at limit **
   2  Index         2.2289        5.6258        .50000        .36896E-06
   3  Normalizat    .76295        .17250E-01    .32989E-03    .12372E-04
   4  Prefactor     1.2651        .13472E-01    .20397E-03    .54500E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.22888
  Normalizat = 0.762951
  Prefactor  = 1.26512
 **********
 **   18 **HESSE 
 **********

 FCN=   5080.017     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    321.66        .13981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2289        8.8790        .50000       -.58743    
   3  Normalizat    .76295        .55260E-01    .13196E-04   -1.0146    
   4  Prefactor     1.2651        .43159E-01    .40793E-04   -.84350    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.89984e-10
Minuit parameter uncertainties:
  1  0.00064917
  2  1089.6
  3  0.055264
  4  0.0431607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481483': 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) = 5080.0169814
delta logL = 2.22631751967e-06

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  6.492e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.229e+00  1.090e+03  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.265e+00  4.316e-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:  7.630e-01  5.526e-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/481483/cmap_HighResolution_660009601_660268801_4FGL_J2203.3-5009_daily_bin1623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.44e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-12-08 08:33:39.939838', job_id='481483', GAL2='1.27', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1638981219.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='2.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1623' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:33:39 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 481483: <4FGL_J2203.3-5009_daily_bin1623> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1623> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 08:20:22 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:21:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:21:04 2021
Terminated at Wed Dec  8 08:33:40 2021
Results reported at Wed Dec  8 08:33:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1623 330.832 -50.1512 660009601 660268801 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 :                                   655.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            798 sec.

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

