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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1576
RA = 330.832, Dec = -50.1512
tmin = 647827201, tmax = 648086401
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='151183', job_status='RUN', time_executed='2021-09-28 03:12:32.675090', time_epoch_executed='1632823952.68' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151183

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151183/ft1_4FGL_J2203.3-5009_daily_bin1576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151183/ft2_4FGL_J2203.3-5009_daily_bin1576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151183/ft1_4FGL_J2203.3-5009_daily_bin1576.fits outfile=/scratch/kocevski/151183/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1576.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=647827201.0 tmax=648086401.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.02
user 3.78
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/151183/ft2_4FGL_J2203.3-5009_daily_bin1576.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/151183/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1576.fits evtable="EVENTS" outfile="/scratch/kocevski/151183/ft1_filtered_4FGL_J2203.3-5009_daily_bin1576.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/151183/ft1_filtered_4FGL_J2203.3-5009_daily_bin1576.fits" evtable="EVENTS" scfile=/scratch/kocevski/151183/ft2_4FGL_J2203.3-5009_daily_bin1576.fits sctable="SC_DATA" outfile=/scratch/kocevski/151183/ltcube_647827201_648086401_4FGL_J2203.3-5009_daily_bin1576.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/151183/ft2_4FGL_J2203.3-5009_daily_bin1576.fits
.....................!
real 11.40
user 11.06
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151183/ft1_filtered_4FGL_J2203.3-5009_daily_bin1576.fits evtable="EVENTS" scfile=/scratch/kocevski/151183/ft2_4FGL_J2203.3-5009_daily_bin1576.fits sctable="SC_DATA" expcube=/scratch/kocevski/151183/ltcube_647827201_648086401_4FGL_J2203.3-5009_daily_bin1576.fits outfile=/scratch/kocevski/151183/expmap_647827201_648086401_4FGL_J2203.3-5009_daily_bin1576.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/151183/ltcube_647827201_648086401_4FGL_J2203.3-5009_daily_bin1576.fits
.....................!
real 191.34
user 186.48
sys 4.47

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/151183/ft1_filtered_4FGL_J2203.3-5009_daily_bin1576.fits scfile=/scratch/kocevski/151183/ft2_4FGL_J2203.3-5009_daily_bin1576.fits outfile=/scratch/kocevski/151183/cmap_647827201_648086401_4FGL_J2203.3-5009_daily_bin1576.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/151183/ft1_filtered_4FGL_J2203.3-5009_daily_bin1576.fits scfile=/scratch/kocevski/151183/ft2_4FGL_J2203.3-5009_daily_bin1576.fits outfile=/scratch/kocevski/151183/cmap_HighResolution_647827201_648086401_4FGL_J2203.3-5009_daily_bin1576.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/151183/ft1_filtered_4FGL_J2203.3-5009_daily_bin1576.fits evtable="EVENTS" scfile=/scratch/kocevski/151183/ft2_4FGL_J2203.3-5009_daily_bin1576.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/151183/Model_4FGL_J2203.3-5009_daily_bin1576.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/151183/ft1_filtered_4FGL_J2203.3-5009_daily_bin1576.fits.....................!
real 50.27
user 48.91
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3683       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1705       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0930       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    7.1093       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3942       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.465       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4650       1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.552       1.0000         .10000E-03   10000.    
    15 'norm      '    .10786E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11743E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5006       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.367       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19622E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .83484       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.685       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .55556       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3228       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=   6965.053     FROM MIGRAD    STATUS=CONVERGED   1099 CALLS     3589 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3677        4.3206        .12037E-03    .47044E-03
   2  Prefactor     .10000E-03    7.2358        .18142E-02** at limit **
   3  norm          5.1705        2.2659        .80262E-04    .13046E-03
   4  Prefactor     .10000E-03    12.772        .18142E-02** at limit **
   5  Prefactor     4.0929        6.5838        .99636E-03   -.24203E-03
   6  Prefactor     .10000E-03    10.357        .18142E-02** at limit **
   7  Prefactor     .10000E-03    29.726        .18142E-02** at limit **
   8  Prefactor     .10000E-03    3.0252        .14020E-02** at limit **
   9  norm          7.1088        4.1058        .12425E-03   -.72632E-03
  10  Prefactor     6.3938        8.1907        .79363E-03   -.95175E-04
  11  Prefactor     .10000E-03    39.270        .18142E-02** at limit **
  12  Prefactor     16.469        9.9072        .98704E-04   -.31766E-03
  13  Prefactor     4.4648        3.4089        .12894E-03    .62158E-04
  14  Prefactor     46.544        76.884        .58766E-04   -.35596E-05
  15  norm          .10000E-03    14.910        .31164E-02** at limit **
  16  Prefactor     .10000E-03    5.5251        .20398E-02** at limit **
  17  Prefactor     .10000E-03    14.486        .18142E-02** at limit **
  18  Prefactor     1.4992        4.9806        .31161E-03   -.75484E-04
  19  Prefactor     13.357        24.683        .10956E-03    .43479E-04
  20  Prefactor     .10001E-03    30.232        .37328E-02** at limit **
  21  Prefactor     .92655        64.821        .21493        .12057E-03
  22  Prefactor     .10000E-03    2.6619        .13277E-02** at limit **
  23  Prefactor     10.689        22.193        .12257E-03   -.13514E-03
  24  Prefactor     .10001E-03    18.935        .18142E-02** at limit **
  25  Normalizat    .55558        .20393        .33901E-03   -.51027E-03
  26  Prefactor     1.3228        .16435        .19009E-03   -.81585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.36774
  Prefactor  = 0.0001
  norm       = 5.17047
  Prefactor  = 0.0001
  Prefactor  = 4.09286
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 7.10877
  Prefactor  = 6.39376
  Prefactor  = 0.000100001
  Prefactor  = 16.4687
  Prefactor  = 4.46479
  Prefactor  = 46.5443
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.49923
  Prefactor  = 13.3566
  Prefactor  = 0.00010001
  Prefactor  = 0.926553
  Prefactor  = 0.0001
  Prefactor  = 10.689
  Prefactor  = 0.000100007
  Normalizat = 0.555576
  Prefactor  = 1.32277
 **********
 **   18 **HESSE 
 **********

 FCN=   6965.053     FROM HESSE     STATUS=OK           442 CALLS     4031 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3677        4.3206        .48148E-05   -1.5129    
   2  Prefactor     .10000E-03    7.2362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1705        2.2659        .32105E-05   -1.5253    
   4  Prefactor     .10000E-03    12.772        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.0929        6.5813        .39855E-04   -1.5303    
   6  Prefactor     .10000E-03    10.359        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    29.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.0266        .28039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          7.1088        4.1057        .49700E-05   -1.5175    
  10  Prefactor     6.3938        8.1900        .31745E-04   -1.5202    
  11  Prefactor     .10000E-03    39.278        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.469        9.9063        .39482E-05   -1.4896    
  13  Prefactor     4.4648        3.4087        .51578E-05   -1.5285    
  14  Prefactor     46.544        76.879        .11753E-04   -1.4342    
  15  norm          .10000E-03    15.016        .62329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5470        .40795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4992        4.9772        .12465E-04   -1.5463    
  19  Prefactor     13.357        24.631        .43823E-05   -1.4977    
  20  Prefactor     .10001E-03    30.427        .74656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .92655        64.877        .21467       -1.5515    
  22  Prefactor     .10000E-03    2.6621        .26554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.689        22.193        .49028E-05   -1.5054    
  24  Prefactor     .10001E-03    18.951        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .55558        .20394        .13560E-04   -1.0990    
  26  Prefactor     1.3228        .16443        .38019E-04   -.82632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2055e-09
Minuit parameter uncertainties:
  1  4.32076
  2  1.22054e-05
  3  2.26593
  4  4.73087e-05
  5  6.58245
  6  0.000180519
  7  0.000452768
  8  6.27957e-05
  9  4.10585
  10  8.1914
  11  0.000311209
  12  9.90733
  13  3.40888
  14  77.0437
  15  0.000170501
  16  1.99772e-05
  17  9.10511e-06
  18  4.97862
  19  24.6493
  20  0.00110247
  21  15.5231
  22  6.68463e-06
  23  22.2097
  24  0.000716852
  25  0.204217
  26  0.164497
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.647e+01  9.907e+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.323e+00  1.645e-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:  5.556e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.68
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.10e-08 +/- 4.87e-08
Energy Flux (Fixed Index): 1.89e-05 +/- 1.14e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6962.75384352
delta logL = 2.29915629967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6962.45960891
delta logL = 2.59339090642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .64013E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.7792       1.0000          .0000       10.000    
     3 'Normalizat'    .46135       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3910       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=   6962.460     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      327 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63420E-02    .38665E-01    .61396E-03    .64551E-02
   2  Index         8.7852        2.7015        .14846        .65101E-04
   3  Normalizat    .46140        .65435E-01    .83362E-01    .44189E-04
   4  Prefactor     1.3910        .54806E-01    .31186E-01   -.18013E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00634204
  Index      = 8.78516
  Normalizat = 0.461399
  Prefactor  = 1.39103
 **********
 **   18 **HESSE 
 **********

 FCN=   6962.460     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      358 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63420E-02    .57309E-01    .26657E-05   -1.5692    
   2  Index         8.7852        7.7012        .65991E-03    .85876    
   3  Normalizat    .46140        .19687        .36925E-03   -1.1424    
   4  Prefactor     1.3910        .16243        .18606E-03   -.80639    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26329e-11
Minuit parameter uncertainties:
  1  0.0378274
  2  3.88148
  3  0.197165
  4  0.162489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151183': 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) = 6962.45960716
delta logL = 2.59339266174

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  6.342e-03  3.783e-02  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  8.785e+00  3.881e+00  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.391e+00  1.625e-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:  4.614e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.49
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 8.79 +/- 3.88
Photon Flux (Free Index): 1.31e-07 +/- 5.64e-08
Energy Flux (Free Index): 1.49e-05 +/- 6.90e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/151183/cmap_HighResolution_647827201_648086401_4FGL_J2203.3-5009_daily_bin1576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.10e-08', energy_flux2='1.49e-05', photon_flux_error='4.87e-08', dlogl='2.59e+00', energy_flux='1.89e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-28 03:24:39.430295', photon_index_error2='3.88', photon_index2='8.79', ts='5.68', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='6.90e-06', EG='0.56', time_epoch_completed='1632824679.43', return_code='0', job_id='151183', GAL2='1.39', EG2='0.46', return_code2='102', energy_flux_error='1.14e-05', photon_flux_error2='5.64e-08', ts2='11.49', photon_index='2.74' WHERE bin_id='1576' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:24:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 151183: <4FGL_J2203.3-5009_daily_bin1576> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1576> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:11:04 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:11:06 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:11:06 2021
Terminated at Tue Sep 28 03:24:40 2021
Results reported at Tue Sep 28 03:24:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1576 330.832 -50.1512 647827201 648086401 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 :                                   724.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            816 sec.

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

