/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 113 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2203.3-5009_daily_bin323
RA = 330.832, Dec = -50.1512
tmin = 323049601, tmax = 323308801
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='145056', job_status='RUN', time_executed='2021-09-28 02:52:32.574872', time_epoch_executed='1632822752.57' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/145056

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/145056/ft1_4FGL_J2203.3-5009_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/145056/ft2_4FGL_J2203.3-5009_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/145056/ft1_4FGL_J2203.3-5009_daily_bin323.fits outfile=/scratch/kocevski/145056/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin323.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=323049601.0 tmax=323308801.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.34
user 3.11
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/145056/ft2_4FGL_J2203.3-5009_daily_bin323.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/145056/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin323.fits evtable="EVENTS" outfile="/scratch/kocevski/145056/ft1_filtered_4FGL_J2203.3-5009_daily_bin323.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/145056/ft1_filtered_4FGL_J2203.3-5009_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/145056/ft2_4FGL_J2203.3-5009_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/145056/ltcube_323049601_323308801_4FGL_J2203.3-5009_daily_bin323.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/145056/ft2_4FGL_J2203.3-5009_daily_bin323.fits
.....................!
real 11.78
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/145056/ft1_filtered_4FGL_J2203.3-5009_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/145056/ft2_4FGL_J2203.3-5009_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/145056/ltcube_323049601_323308801_4FGL_J2203.3-5009_daily_bin323.fits outfile=/scratch/kocevski/145056/expmap_323049601_323308801_4FGL_J2203.3-5009_daily_bin323.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/145056/ltcube_323049601_323308801_4FGL_J2203.3-5009_daily_bin323.fits
.....................!
real 195.72
user 189.67
sys 5.61

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/145056/ft1_filtered_4FGL_J2203.3-5009_daily_bin323.fits scfile=/scratch/kocevski/145056/ft2_4FGL_J2203.3-5009_daily_bin323.fits outfile=/scratch/kocevski/145056/cmap_323049601_323308801_4FGL_J2203.3-5009_daily_bin323.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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/145056/ft1_filtered_4FGL_J2203.3-5009_daily_bin323.fits scfile=/scratch/kocevski/145056/ft2_4FGL_J2203.3-5009_daily_bin323.fits outfile=/scratch/kocevski/145056/cmap_HighResolution_323049601_323308801_4FGL_J2203.3-5009_daily_bin323.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/145056/ft1_filtered_4FGL_J2203.3-5009_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/145056/ft2_4FGL_J2203.3-5009_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/145056/Model_4FGL_J2203.3-5009_daily_bin323.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/145056/ft1_filtered_4FGL_J2203.3-5009_daily_bin323.fits.....................!
real 57.14
user 55.83
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37631E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.0891       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.760       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8936       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3841       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.6210       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0288       1.0000         .10000E-03   10000.    
     9 'norm      '    3.3924       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3112       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.017       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0829       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.222       1.0000         .10000E-03   10000.    
    15 'norm      '    14.204       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6711       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9551       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .39259       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .16496E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.563       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .79398       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0090       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=   7792.078     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3106 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    1.6666        .35108E-06** at limit **
   2  Prefactor     .10000E-03    21.153        .39571E-06** at limit **
   3  norm          8.0892        2.3651       -.14519E-10   -.66276E-04
   4  Prefactor     33.760        33.471       -.22246E-06   -.19777E-04
   5  Prefactor     9.8934        7.6688       -.91520E-07   -.39334E-04
   6  Prefactor     5.3830        13.766        .51485E-05    .12551E-04
   7  Prefactor     5.6189        19.335        .52317E-06   -.12445E-04
   8  Prefactor     5.0282        3.7235        .19172E-06   -.32899E-04
   9  norm          3.3924        3.2391       -.12879E-06   -.56552E-04
  10  Prefactor     9.3109        7.4132       -.15034E-07   -.14286E-04
  11  Prefactor     .10000E-03    15.188        .11249E-05** at limit **
  12  Prefactor     14.042        11.926        .79191E-06   -.32902E-04
  13  Prefactor     3.0839        3.3652        .91655E-07   -.17533E-04
  14  Prefactor     52.549        131.12       -.74217E-05   -.12212E-04
  15  norm          14.205        7.7059       -.15624E-06   -.16255E-04
  16  Prefactor     3.6707        3.6020        .18778E-06   -.52412E-04
  17  Prefactor     .10000E-03    11.301        .52312E-07** at limit **
  18  Prefactor     5.9549        4.7892        .18796E-06   -.30640E-04
  19  Prefactor     .10000E-03    15.360       -.77726E-06** at limit **
  20  Prefactor     .41640        5.1748        .24640E-06   -.16229E-04
  21  Prefactor     .10000E-03    49.746        .10132E-06** at limit **
  22  Prefactor     .10000E-03    4.0111        .28524E-06** at limit **
  23  Prefactor     .10000E-03    8.5796        .16611E-07** at limit **
  24  Prefactor     17.561        14.694        .15694E-06   -.98531E-05
  25  Normalizat    .79387        .16743       -.34713E-06   -.15048E-03
  26  Prefactor     1.0091        .12412       -.45226E-06   -.17798E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 8.08916
  Prefactor  = 33.7601
  Prefactor  = 9.89341
  Prefactor  = 5.38305
  Prefactor  = 5.61887
  Prefactor  = 5.02822
  norm       = 3.39242
  Prefactor  = 9.31093
  Prefactor  = 0.0001
  Prefactor  = 14.0424
  Prefactor  = 3.08394
  Prefactor  = 52.5493
  norm       = 14.2047
  Prefactor  = 3.67066
  Prefactor  = 0.0001
  Prefactor  = 5.95492
  Prefactor  = 0.0001
  Prefactor  = 0.416405
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5612
  Normalizat = 0.793868
  Prefactor  = 1.00912
 **********
 **   18 **HESSE 
 **********

 FCN=   7792.078     FROM HESSE     STATUS=OK           470 CALLS     3576 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    18.274        .21733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.0892        2.3652        .70528E-04   -1.5139    
   4  Prefactor     33.760        33.447        .68967E-04   -1.4545    
   5  Prefactor     9.8934        7.6589        .12740E-03   -1.5079    
   6  Prefactor     5.3830        13.785        .86595E-03   -1.5244    
   7  Prefactor     5.6189        19.311        .16944E-03   -1.5234    
   8  Prefactor     5.0282        3.7176        .13893E-03   -1.5259    
   9  norm          3.3924        3.2278        .14751E-03   -1.5340    
  10  Prefactor     9.3109        7.4108        .13134E-03   -1.5098    
  11  Prefactor     .10000E-03    15.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.042        11.944        .10698E-03   -1.4958    
  13  Prefactor     3.0839        3.3504        .15974E-03   -1.5357    
  14  Prefactor     52.549        132.09        .27489E-03   -1.4257    
  15  norm          14.205        7.7063        .53138E-03   -1.4954    
  16  Prefactor     3.6707        3.6140        .15370E-03   -1.5325    
  17  Prefactor     .10000E-03    11.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.9549        4.7936        .16383E-03   -1.5220    
  19  Prefactor     .10000E-03    15.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .41640        63.633        .37612E-02   -1.5579    
  21  Prefactor     .10000E-03    49.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.376        .33991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.5806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.561        14.727        .95570E-04   -1.4870    
  25  Normalizat    .79387        .19393        .28547E-03   -1.0030    
  26  Prefactor     1.0091        .14345        .20440E-03   -.92426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20562e-08
Minuit parameter uncertainties:
  1  0.0011467
  2  9.12739e-06
  3  2.36523
  4  33.4656
  5  7.65968
  6  13.7933
  7  19.3323
  8  3.71774
  9  3.22796
  10  7.4115
  11  5.47916e-06
  12  11.9464
  13  3.35056
  14  132.841
  15  7.70685
  16  3.61423
  17  4.51583e-07
  18  4.7939
  19  5.61805e-06
  20  10.305
  21  8.63735e-06
  22  0.000114411
  23  6.25521e-07
  24  14.7299
  25  0.194098
  26  0.143505
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.404e+01  1.195e+01  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.009e+00  1.435e-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.939e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.44
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 6.91e-08 +/- 5.87e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.37e-05

TS (Fixed Index): 3.44
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 1.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/145056/likelihoodResults_323049601_323308801_4FGL_J2203.3-5009_daily_bin323.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): 0
logL (Free Index) = 7792.07464819
delta logL = 0.00373800985562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7792.07306443
delta logL = 0.00532177319474

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.587       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6795       1.0000          .0000       10.000    
     3 'Normalizat'    .79606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0079       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7792.073     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      251 TOTAL
                     EDM=   .56E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.583        10.686        .52434E-03   -.39656E-04
   2  Index         2.6798        .58525        .77069E-02    .11394E-04
   3  Normalizat    .79609        .17656        .28511E-03   -.18023E-04
   4  Prefactor     1.0078        .13967        .20451E-03   -.21236E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.5834
  Index      = 2.67979
  Normalizat = 0.796089
  Prefactor  = 1.00783
 **********
 **   18 **HESSE 
 **********

 FCN=   7792.073     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.583        10.369        .20974E-04   -1.4944    
   2  Index         2.6798        .56766        .30827E-03   -.48255    
   3  Normalizat    .79609        .17672        .11404E-04   -1.0021    
   4  Prefactor     1.0078        .13975        .81803E-05   -.92469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73877e-12
Minuit parameter uncertainties:
  1  10.3701
  2  0.569227
  3  0.176843
  4  0.139801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/145056': 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): 0
logL (Free Index) = 7792.0730641
delta logL = 0.00532210389702

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.458e+01  1.037e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.680e+00  5.692e-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.008e+00  1.398e-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.961e-01  1.768e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.47
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 2.68 +/- 0.57
Photon Flux (Free Index): 6.74e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.09e-05

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/145056/cmap_HighResolution_323049601_323308801_4FGL_J2203.3-5009_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', photon_flux='6.91e-08', energy_flux2='1.65e-05', photon_flux_error='5.87e-08', dlogl='5.32e-03', energy_flux='1.61e-05', photon_flux2='6.74e-08', job_status='DONE', time_completed='2021-09-28 03:06:40.409874', photon_index_error2='0.57', photon_index2='2.68', ts='3.44', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='1.09e-05', EG='0.79', time_epoch_completed='1632823600.41', return_code='0', job_id='145056', GAL2='1.01', EG2='0.80', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.55e-08', ts2='3.47', photon_index='2.74' WHERE bin_id='323' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:06:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0139>
Subject: Job 145056: <4FGL_J2203.3-5009_daily_bin323> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin323> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 02:50:29 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 02:50: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 02:50:31 2021
Terminated at Tue Sep 28 03:06:41 2021
Results reported at Tue Sep 28 03:06:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin323 330.832 -50.1512 323049601 323308801 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 :                                   847.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

