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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1360
RA = 330.832, Dec = -50.1512
tmin = 591840001, tmax = 592099201
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='150834', job_status='RUN', time_executed='2021-09-28 03:13:26.843734', time_epoch_executed='1632824006.84' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150834

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150834/ft1_4FGL_J2203.3-5009_daily_bin1360.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150834/ft2_4FGL_J2203.3-5009_daily_bin1360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150834/ft1_4FGL_J2203.3-5009_daily_bin1360.fits outfile=/scratch/kocevski/150834/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1360.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=591840001.0 tmax=592099201.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 5.24
user 4.97
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150834/ft2_4FGL_J2203.3-5009_daily_bin1360.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/150834/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1360.fits evtable="EVENTS" outfile="/scratch/kocevski/150834/ft1_filtered_4FGL_J2203.3-5009_daily_bin1360.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/150834/ft1_filtered_4FGL_J2203.3-5009_daily_bin1360.fits" evtable="EVENTS" scfile=/scratch/kocevski/150834/ft2_4FGL_J2203.3-5009_daily_bin1360.fits sctable="SC_DATA" outfile=/scratch/kocevski/150834/ltcube_591840001_592099201_4FGL_J2203.3-5009_daily_bin1360.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/150834/ft2_4FGL_J2203.3-5009_daily_bin1360.fits
.....................!
real 12.15
user 11.80
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150834/ft1_filtered_4FGL_J2203.3-5009_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/150834/ft2_4FGL_J2203.3-5009_daily_bin1360.fits sctable="SC_DATA" expcube=/scratch/kocevski/150834/ltcube_591840001_592099201_4FGL_J2203.3-5009_daily_bin1360.fits outfile=/scratch/kocevski/150834/expmap_591840001_592099201_4FGL_J2203.3-5009_daily_bin1360.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/150834/ltcube_591840001_592099201_4FGL_J2203.3-5009_daily_bin1360.fits
.....................!
real 190.84
user 184.92
sys 5.60

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/150834/ft1_filtered_4FGL_J2203.3-5009_daily_bin1360.fits scfile=/scratch/kocevski/150834/ft2_4FGL_J2203.3-5009_daily_bin1360.fits outfile=/scratch/kocevski/150834/cmap_591840001_592099201_4FGL_J2203.3-5009_daily_bin1360.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.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/150834/ft1_filtered_4FGL_J2203.3-5009_daily_bin1360.fits evtable="EVENTS" scfile=/scratch/kocevski/150834/ft2_4FGL_J2203.3-5009_daily_bin1360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150834/Model_4FGL_J2203.3-5009_daily_bin1360.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/150834/ft1_filtered_4FGL_J2203.3-5009_daily_bin1360.fits.....................!
real 43.61
user 42.37
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6041       1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.564       1.0000         .10000E-03   10000.    
     3 'norm      '    41.944       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3456       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.218       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0328       1.0000         .10000E-03   10000.    
     9 'norm      '    34.146       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.165       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12423E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.824       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .33369E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.865       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13113E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9457       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.003       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2977       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2339       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3630       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .53625       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=   5133.776     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3110 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6041        4.8895        .42786E-07   -.16641E-05
   2  Prefactor     48.563        28.966        .48844E-07    .43835E-05
   3  norm          41.944        6.4285        .83911E-07    .50592E-04
   4  Prefactor     .10000E-03    15.952        .62204E-06** at limit **
   5  Prefactor     4.3451        11.796        .19641E-06    .26615E-04
   6  Prefactor     28.222        42.439       -.32872E-06    .17113E-04
   7  Prefactor     .10000E-03    7.8300        .19287E-07** at limit **
   8  Prefactor     7.0330        6.5405        .44364E-06    .27629E-03
   9  norm          34.148        10.057        .42838E-07    .95071E-04
  10  Prefactor     .10000E-03    14.457       -.46924E-06** at limit **
  11  Prefactor     29.152        55.521        .59646E-05    .23584E-03
  12  Prefactor     .10003E-03    8.9966        .32924E-06** at limit **
  13  Prefactor     15.825        6.6680        .24700E-06    .72244E-03
  14  Prefactor     .10000E-03    126.49        .10142E-05** at limit **
  15  norm          .10000E-03    2.9940        .15493E-07** at limit **
  16  Prefactor     .10074E-03    3.8755        .19384E-05** at limit **
  17  Prefactor     46.841        56.860        .23648E-05    .34795E-05
  18  Prefactor     .10000E-03    5.7970       -.19265E-05** at limit **
  19  Prefactor     6.9619        25.854       -.32062E-06    .49186E-04
  20  Prefactor     11.005        11.002        .95397E-08    .50943E-04
  21  Prefactor     .10000E-03    32.150        .28103E-05** at limit **
  22  Prefactor     2.3010        12.789        .79645E-05   -.12723E-04
  23  Prefactor     .10000E-03    21.372       -.13122E-05** at limit **
  24  Prefactor     8.2362        20.663        .52910E-07    .65683E-05
  25  Normalizat    1.3623        .23436        .87083E-06    .50826E-03
  26  Prefactor     .53666        .16000       -.15482E-05    .23083E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.60407
  Prefactor  = 48.5631
  norm       = 41.944
  Prefactor  = 0.0001
  Prefactor  = 4.34506
  Prefactor  = 28.2217
  Prefactor  = 0.0001
  Prefactor  = 7.03302
  norm       = 34.1478
  Prefactor  = 0.0001
  Prefactor  = 29.1519
  Prefactor  = 0.000100029
  Prefactor  = 15.8252
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100739
  Prefactor  = 46.8413
  Prefactor  = 0.0001
  Prefactor  = 6.96186
  Prefactor  = 11.005
  Prefactor  = 0.0001
  Prefactor  = 2.30095
  Prefactor  = 0.0001
  Prefactor  = 8.23619
  Normalizat = 1.36234
  Prefactor  = 0.536655
 **********
 **   18 **HESSE 
 **********

 FCN=   5133.776     FROM HESSE     STATUS=OK           462 CALLS     3572 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6041        4.8864        .13051E-03   -1.5194    
   2  Prefactor     48.563        28.951        .57542E-04   -1.4313    
   3  norm          41.944        6.4163        .61897E-04   -1.4412    
   4  Prefactor     .10000E-03    15.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3451        11.745        .19323E-03   -1.5291    
   6  Prefactor     28.222        42.348        .75418E-04   -1.4645    
   7  Prefactor     .10000E-03    7.8332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.0330        6.5201        .15127E-03   -1.5178    
   9  norm          34.148        10.054        .68577E-04   -1.4539    
  10  Prefactor     .10000E-03    14.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.152        55.103        .74187E-04   -1.4628    
  12  Prefactor     .10003E-03    38.733        .37656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.825        6.6557        .10068E-03   -1.4912    
  14  Prefactor     .10000E-03    126.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9954        .12108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10074E-03    49.033        .23159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     46.841        56.333        .58571E-04   -1.4338    
  18  Prefactor     .10000E-03    15.627        .31670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9619        25.705        .15223E-03   -1.5180    
  20  Prefactor     11.005        10.986        .12078E-03   -1.5044    
  21  Prefactor     .10000E-03    31.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.3010        13.678        .13538E-02   -1.5405    
  23  Prefactor     .10000E-03    21.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.2362        20.727        .13971E-03   -1.5134    
  25  Normalizat    1.3623        .27583        .26156E-03   -.81724    
  26  Prefactor     .53666        .18643        .28936E-03   -1.1032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61434e-08
Minuit parameter uncertainties:
  1  4.88667
  2  28.9589
  3  6.41644
  4  6.39389e-06
  5  11.7515
  6  42.3934
  7  9.1211e-07
  8  6.52073
  9  10.0543
  10  5.63088e-05
  11  55.1994
  12  0.00211264
  13  6.65602
  14  0.000158208
  15  8.89594e-07
  16  0.012052
  17  56.3975
  18  8.06657e-05
  19  25.746
  20  10.9884
  21  2.01323e-05
  22  11.2236
  23  2.0716e-05
  24  20.7448
  25  0.276128
  26  0.186641
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.113e-03  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:  5.367e-01  1.866e-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.362e+00  2.761e-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: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150834/likelihoodResults_591840001_592099201_4FGL_J2203.3-5009_daily_bin1360.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) = 5133.77562314
delta logL = -0.000122295799883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5133.14462894
delta logL = 0.630871907

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38981       1.0000         .10000E-03   10000.    
     2 'Index     '    5.6975       1.0000          .0000       10.000    
     3 'Normalizat'    1.2689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57883       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=   5133.145     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      320 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39021        5.6255        .93888E-02    .29400E-02
   2  Index         5.6974        3.5654        .20346        .15874E-03
   3  Normalizat    1.2685        .47492E-01    .60815E-01    .23870E-03
   4  Prefactor     .57907        .34735E-01    .63127E-01    .22489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.390213
  Index      = 5.6974
  Normalizat = 1.26853
  Prefactor  = 0.579066
 **********
 **   18 **HESSE 
 **********

 FCN=   5133.145     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      353 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39021        18.247        .42820E-03   -1.5583    
   2  Index         5.6974        7.7796        .72563E-02    .13994    
   3  Normalizat    1.2685        .20092        .26896E-03   -.84511    
   4  Prefactor     .57907        .14354        .27932E-03   -1.0848    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.00083e-10
Minuit parameter uncertainties:
  1  5.33774
  2  9.63648
  3  0.201042
  4  0.143628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150834': 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) = 5133.14462788
delta logL = 0.630872964673

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  3.902e-01  5.338e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  5.697e+00  9.636e+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:  5.791e-01  1.436e-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.269e+00  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 5.70 +/- 9.64
Photon Flux (Free Index): 8.73e-08 +/- 8.14e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.23e-05

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/150834/cmap_HighResolution_591840001_592099201_4FGL_J2203.3-5009_daily_bin1360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='1.10e-05', dlogl='6.31e-01', photon_flux2='8.73e-08', job_status='DONE', time_completed='2021-09-28 03:24:59.887591', photon_index_error2='9.64', photon_index2='5.70', ts='-0.00', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.23e-05', EG='1.36', time_epoch_completed='1632824699.89', return_code='0', job_id='150834', GAL2='0.58', EG2='1.27', return_code2='102', photon_flux_error2='8.14e-08', ts2='1.35', photon_index='2.74' WHERE bin_id='1360' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:24:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 150834: <4FGL_J2203.3-5009_daily_bin1360> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1360> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:10:29 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:10:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 03:10:31 2021
Terminated at Tue Sep 28 03:25:00 2021
Results reported at Tue Sep 28 03:25:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1360 330.832 -50.1512 591840001 592099201 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 :                                   666.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             229.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

