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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1609
RA = 330.832, Dec = -50.1512
tmin = 656380801, tmax = 656640001
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='481463', job_status='RUN', time_executed='2021-12-08 08:21:18.520272', time_epoch_executed='1638980478.52' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481463/ft1_4FGL_J2203.3-5009_daily_bin1609.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481463/ft2_4FGL_J2203.3-5009_daily_bin1609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481463/ft1_4FGL_J2203.3-5009_daily_bin1609.fits outfile=/scratch/kocevski/481463/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1609.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=656380801.0 tmax=656640001.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.50
user 3.27
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/481463/ft2_4FGL_J2203.3-5009_daily_bin1609.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/481463/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1609.fits evtable="EVENTS" outfile="/scratch/kocevski/481463/ft1_filtered_4FGL_J2203.3-5009_daily_bin1609.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481463/ft1_filtered_4FGL_J2203.3-5009_daily_bin1609.fits" evtable="EVENTS" scfile=/scratch/kocevski/481463/ft2_4FGL_J2203.3-5009_daily_bin1609.fits sctable="SC_DATA" outfile=/scratch/kocevski/481463/ltcube_656380801_656640001_4FGL_J2203.3-5009_daily_bin1609.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/481463/ft2_4FGL_J2203.3-5009_daily_bin1609.fits
.....................!
real 12.57
user 12.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481463/ft1_filtered_4FGL_J2203.3-5009_daily_bin1609.fits evtable="EVENTS" scfile=/scratch/kocevski/481463/ft2_4FGL_J2203.3-5009_daily_bin1609.fits sctable="SC_DATA" expcube=/scratch/kocevski/481463/ltcube_656380801_656640001_4FGL_J2203.3-5009_daily_bin1609.fits outfile=/scratch/kocevski/481463/expmap_656380801_656640001_4FGL_J2203.3-5009_daily_bin1609.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/481463/ltcube_656380801_656640001_4FGL_J2203.3-5009_daily_bin1609.fits
.....................!
real 191.63
user 185.78
sys 4.73

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/481463/ft1_filtered_4FGL_J2203.3-5009_daily_bin1609.fits scfile=/scratch/kocevski/481463/ft2_4FGL_J2203.3-5009_daily_bin1609.fits outfile=/scratch/kocevski/481463/cmap_656380801_656640001_4FGL_J2203.3-5009_daily_bin1609.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481463/ft1_filtered_4FGL_J2203.3-5009_daily_bin1609.fits scfile=/scratch/kocevski/481463/ft2_4FGL_J2203.3-5009_daily_bin1609.fits outfile=/scratch/kocevski/481463/cmap_HighResolution_656380801_656640001_4FGL_J2203.3-5009_daily_bin1609.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/481463/ft1_filtered_4FGL_J2203.3-5009_daily_bin1609.fits evtable="EVENTS" scfile=/scratch/kocevski/481463/ft2_4FGL_J2203.3-5009_daily_bin1609.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/481463/Model_4FGL_J2203.3-5009_daily_bin1609.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/481463/ft1_filtered_4FGL_J2203.3-5009_daily_bin1609.fits.....................!
real 45.22
user 43.75
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .42691E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .59830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    71.064       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5220       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8080       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29610E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10926E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.503       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.302       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12308E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5937       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12682       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0440       1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.901       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.1245       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .65821       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1244       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=   5562.545     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     3138 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2989       -.69568E-06** at limit **
   2  Prefactor     .10018E-03    18.617        .45648E-05** at limit **
   3  norm          .59876        1.3872        .75557E-06    .16606E-02
   4  Prefactor     70.987        60.868        .79143E-06   -.23607E-04
   5  Prefactor     7.5234        7.6071        .19517E-06    .14328E-03
   6  Prefactor     8.8106        20.458       -.23190E-07    .14585E-05
   7  Prefactor     .10003E-03    80.653       -.87136E-05** at limit **
   8  Prefactor     .10000E-03    3.7062       -.11627E-05** at limit **
   9  norm          .10000E-03    1.9538        .21107E-07** at limit **
  10  Prefactor     .10000E-03    4.9347        .13230E-06** at limit **
  11  Prefactor     35.508        38.935        .33971E-07   -.87767E-05
  12  Prefactor     10.301        10.252        .63215E-09   -.15453E-03
  13  Prefactor     .10000E-03    2.9283        .31404E-06** at limit **
  14  Prefactor     .10000E-03    52.324        .50736E-07** at limit **
  15  norm          .10000E-03    2.3623        .18658E-07** at limit **
  16  Prefactor     7.5940        4.2298       -.18947E-07   -.16518E-03
  17  Prefactor     .10000E-03    19.519        .10317E-06** at limit **
  18  Prefactor     .17091        4.6527       -.11884E-05    .39518E-04
  19  Prefactor     .94525        58.975        .81291E-05   -.26762E-03
  20  Prefactor     22.890        14.426       -.12059E-05   -.12234E-02
  21  Prefactor     .10000E-03    45.626       -.73907E-07** at limit **
  22  Prefactor     .10000E-03    2.1557        .48865E-07** at limit **
  23  Prefactor     .10000E-03    13.228        .61781E-07** at limit **
  24  Prefactor     5.1246        12.652        .32219E-06   -.10433E-04
  25  Normalizat    .65835        .20178       -.25204E-05   -.24179E-03
  26  Prefactor     1.1241        .15180        .16003E-05   -.69771E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100183
  norm       = 0.598764
  Prefactor  = 70.9866
  Prefactor  = 7.52343
  Prefactor  = 8.81059
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.5081
  Prefactor  = 10.3013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.594
  Prefactor  = 0.0001
  Prefactor  = 0.170909
  Prefactor  = 0.945253
  Prefactor  = 22.8895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.12463
  Normalizat = 0.658354
  Prefactor  = 1.12407
 **********
 **   18 **HESSE 
 **********

 FCN=   5562.545     FROM HESSE     STATUS=OK           464 CALLS     3602 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3604        .13235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10018E-03    45.540        .44556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .59876        1.2621        .13848E-02   -1.5553    
   4  Prefactor     70.987        60.784        .23810E-03   -1.4021    
   5  Prefactor     7.5234        7.5895        .14623E-03   -1.5159    
   6  Prefactor     8.8106        20.432        .13506E-03   -1.5114    
   7  Prefactor     .10003E-03    82.203        .21395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.1719        .26248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9653        .10174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9587        .16180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.508        38.886        .67258E-04   -1.4515    
  12  Prefactor     10.301        10.172        .12484E-03   -1.5066    
  13  Prefactor     .10000E-03    5.5658        .24176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    52.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.3632        .11195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.5940        4.2318        .10894E-03   -1.5157    
  17  Prefactor     .10000E-03    19.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .17091        62.134        .25354E-02   -1.5625    
  19  Prefactor     .94525        385.49        .66625E-02   -1.5514    
  20  Prefactor     22.890        15.472        .83701E-04   -1.4751    
  21  Prefactor     .10000E-03    45.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.1578        .10694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.1246        12.652        .17760E-03   -1.5255    
  25  Normalizat    .65835        .23096        .29767E-03   -1.0556    
  26  Prefactor     1.1241        .17310        .18805E-03   -.88701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23831e-08
Minuit parameter uncertainties:
  1  6.06813e-05
  2  0.0057749
  3  1.26212
  4  60.8373
  5  7.59046
  6  20.4479
  7  0.00334765
  8  2.18891e-05
  9  8.66169e-07
  10  1.25715e-05
  11  38.9138
  12  10.1739
  13  3.83541e-05
  14  3.92106e-05
  15  3.66998e-07
  16  4.23196
  17  1.95927e-05
  18  6.52239
  19  38.4274
  20  15.4751
  21  6.49717e-05
  22  3.24995e-06
  23  7.93691e-06
  24  12.659
  25  0.231299
  26  0.173189
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.030e+01  1.017e+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.124e+00  1.732e-01  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  6.584e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.46
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.07e-08 +/- 5.00e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/481463/likelihoodResults_656380801_656640001_4FGL_J2203.3-5009_daily_bin1609.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) = 5562.41381011
delta logL = 0.13094188406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5562.40446581
delta logL = 0.140286191957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7675       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4756       1.0000          .0000       10.000    
     3 'Normalizat'    .63189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1406       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=   5562.404     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      244 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7613        101.28        .41811E-02    .58743E-03
   2  Index         3.4761        6.6995        .21208        .11907E-03
   3  Normalizat    .63192        .56813E-01    .68554E-01    .53055E-04
   4  Prefactor     1.1406        .43999E-01    .36214E-01   -.24544E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.76129
  Index      = 3.47614
  Normalizat = 0.631924
  Prefactor  = 1.14057
 **********
 **   18 **HESSE 
 **********

 FCN=   5562.404     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7613        26.597        .14307E-03   -1.5228    
   2  Index         3.4761        3.2639        .76854E-02   -.30970    
   3  Normalizat    .63192        .22033        .30339E-03   -1.0665    
   4  Prefactor     1.1406        .17591        .18687E-03   -.88180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23359e-10
Minuit parameter uncertainties:
  1  24.7754
  2  3.59606
  3  0.220635
  4  0.175996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481463': 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) = 5562.40446554
delta logL = 0.140286455249

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  5.761e+00  2.478e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  3.476e+00  3.596e+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.141e+00  1.760e-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:  6.319e-01  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 3.48 +/- 3.60
Photon Flux (Free Index): 6.59e-08 +/- 5.80e-08
Energy Flux (Free Index): 1.10e-05 +/- 1.31e-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/481463/cmap_HighResolution_656380801_656640001_4FGL_J2203.3-5009_daily_bin1609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', comment='SUCCESS', photon_flux='5.07e-08', energy_flux2='1.10e-05', photon_flux_error='5.00e-08', dlogl='1.40e-01', energy_flux='1.18e-05', photon_flux2='6.59e-08', job_status='DONE', time_completed='2021-12-08 08:32:47.418764', photon_index_error2='3.60', photon_index2='3.48', ts='1.46', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.31e-05', EG='0.66', time_epoch_completed='1638981167.42', return_code='0', job_id='481463', GAL2='1.14', EG2='0.63', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.80e-08', ts2='1.81', photon_index='2.74' WHERE bin_id='1609' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:32:47 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 481463: <4FGL_J2203.3-5009_daily_bin1609> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1609> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 08:20:20 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:20:57 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:20:57 2021
Terminated at Wed Dec  8 08:32:48 2021
Results reported at Wed Dec  8 08:32:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1609 330.832 -50.1512 656380801 656640001 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 :                                   687.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            748 sec.

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

