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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1403
RA = 330.832, Dec = -50.1512
tmin = 602985601, tmax = 603244801
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='150909', job_status='RUN', time_executed='2021-09-28 03:11:42.509842', time_epoch_executed='1632823902.51' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150909

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150909/ft1_4FGL_J2203.3-5009_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150909/ft2_4FGL_J2203.3-5009_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150909/ft1_4FGL_J2203.3-5009_daily_bin1403.fits outfile=/scratch/kocevski/150909/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1403.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=602985601.0 tmax=603244801.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.05
user 2.86
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150909/ft1_filtered_4FGL_J2203.3-5009_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/150909/ft2_4FGL_J2203.3-5009_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/150909/ltcube_602985601_603244801_4FGL_J2203.3-5009_daily_bin1403.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/150909/ft2_4FGL_J2203.3-5009_daily_bin1403.fits
.....................!
real 13.06
user 12.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150909/ft1_filtered_4FGL_J2203.3-5009_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/150909/ft2_4FGL_J2203.3-5009_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/150909/ltcube_602985601_603244801_4FGL_J2203.3-5009_daily_bin1403.fits outfile=/scratch/kocevski/150909/expmap_602985601_603244801_4FGL_J2203.3-5009_daily_bin1403.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/150909/ltcube_602985601_603244801_4FGL_J2203.3-5009_daily_bin1403.fits
.....................!
real 192.14
user 187.62
sys 4.19

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/150909/ft1_filtered_4FGL_J2203.3-5009_daily_bin1403.fits scfile=/scratch/kocevski/150909/ft2_4FGL_J2203.3-5009_daily_bin1403.fits outfile=/scratch/kocevski/150909/cmap_602985601_603244801_4FGL_J2203.3-5009_daily_bin1403.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6246       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12028E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.680       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11120E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .42730       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1631.0       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    562.69       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .76719E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13740E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .46670E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .24454E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.881       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4656       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=   1110.261     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3561 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6190       -.69381E-07** at limit **
   2  Prefactor     .10000E-03    21.187       -.82939E-07** at limit **
   3  norm          2.6246        3.5058        .16760E-07    .78479E-05
   4  Prefactor     .10000E-03    61.445        .43131E-07** at limit **
   5  Prefactor     .10000E-03    200.95       -.73012E-06** at limit **
   6  Prefactor     .10000E-03    124.91        .69038E-07** at limit **
   7  Prefactor     23.726        65.010        .10606E-07   -.16299E-05
   8  Prefactor     .10000E-03    15.277        .85554E-07** at limit **
   9  norm          .10000E-03    134.46        .26832E-07** at limit **
  10  Prefactor    10000.0        1716.0       -.94339E-06** at limit **
  11  Prefactor     .10002E-03    9115.7        .53194E-04** at limit **
  12  Prefactor     1631.6        749.58       -.81466E-05   -.42247E-04
  13  Prefactor     .10000E-03    37.478        .44310E-06** at limit **
  14  Prefactor     563.14        5286.9        .11222E-04   -.34188E-05
  15  norm          .10000E-03    18.834        .11936E-06** at limit **
  16  Prefactor     .10000E-03    13.429        .21584E-06** at limit **
  17  Prefactor     .10000E-03    153.75       -.18156E-06** at limit **
  18  Prefactor     .10000E-03    12.856        .62970E-06** at limit **
  19  Prefactor     .10000E-03    157.46        .41885E-05** at limit **
  20  Prefactor     .10000E-03    205.46        .68582E-05** at limit **
  21  Prefactor     .10000E-03    114.61        .14558E-06** at limit **
  22  Prefactor     .10000E-03    20.276       -.10600E-06** at limit **
  23  Prefactor     .10000E-03    44.203       -.11970E-06** at limit **
  24  Prefactor     13.906        26.995        .65921E-06   -.10380E-04
  25  Normalizat    .10000E-01    .29954       -.27010E-05** at limit **
  26  Prefactor     1.4656        .20291        .26313E-05   -.71020E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.62459
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7257
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100025
  Prefactor  = 1631.58
  Prefactor  = 0.0001
  Prefactor  = 563.137
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9057
  Normalizat = 0.01
  Prefactor  = 1.46559
 **********
 **   18 **HESSE 
 **********

 FCN=   1110.261     FROM HESSE     STATUS=OK           438 CALLS     3999 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6302        .52676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.237        .14986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6246        3.4973        .69917E-04   -1.5384    
   4  Prefactor     .10000E-03    61.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    207.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    124.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.726        65.000        .82316E-04   -1.4733    
   8  Prefactor     .10000E-03    15.301        .12725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    134.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        1716.0        .20569E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    9109.8        .21941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1631.6        768.02        .54133E-04   -.73918    
  13  Prefactor     .10000E-03    37.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     563.14        5286.2        .86791E-04   -1.0916    
  15  norm          .10000E-03    18.835        .14129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.536        .11935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    153.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.941        .11696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    159.50        .20927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    213.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    114.61        .21191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.354        .14659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    44.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.906        27.059        .10751E-03   -1.4962    
  25  Normalizat    .10000E-01    .49778        .11016E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.4656        .21050        .17981E-03   -.78508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19595e-10
Minuit parameter uncertainties:
  1  2.70564e-06
  2  1.11164e-05
  3  3.49752
  4  1.01496e-05
  5  0.0003144
  6  6.13409e-06
  7  65.1946
  8  8.28316e-06
  9  2.13676e-06
  10  0.000196188
  11  0.0358958
  12  773.657
  13  2.64527e-05
  14  2689.25
  15  3.04562e-06
  16  2.34002e-05
  17  2.34955e-05
  18  4.13049e-05
  19  0.000597444
  20  0.000683872
  21  9.07038e-06
  22  1.0384e-05
  23  6.50301e-07
  24  27.0828
  25  1.28389e-05
  26  0.210624
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.632e+03  7.737e+02  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.466e+00  2.106e-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.000e-02  1.284e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.21
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.02e-06 +/- 3.80e-06
Energy Flux (Fixed Index): 1.87e-03 +/- 8.89e-04

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) = 1105.9879494
delta logL = 4.27314890567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1105.9622094
delta logL = 4.29888890041

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    228.98       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7126       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4273       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=   1105.962     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      294 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     229.07        311.35        .13371E-03   -.69790E-03
   2  Index         4.7122        .99729        .14917E-03   -.74634E-03
   3  Normalizat    .10000E-01    .20352        .79831E-02** at limit **
   4  Prefactor     1.4274        .19825        .17859E-03    .87769E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 229.074
  Index      = 4.71222
  Normalizat = 0.01
  Prefactor  = 1.42741
 **********
 **   18 **HESSE 
 **********

 FCN=   1105.962     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     229.07        305.81        .26742E-04   -1.2669    
   2  Index         4.7122        .97952        .29834E-04   -.57587E-01
   3  Normalizat    .10000E-01    .20354        .15966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4274        .19816        .35718E-04   -.79593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4508e-09
Minuit parameter uncertainties:
  1  307.984
  2  0.985917
  3  4.64909e-06
  4  0.198266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150909': 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) = 1105.9622091
delta logL = 4.29888920727

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  2.291e+02  3.080e+02  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  4.712e+00  9.859e-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.427e+00  1.983e-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.000e-02  4.649e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.56
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 4.71 +/- 0.99
Photon Flux (Free Index): 1.30e-05 +/- 4.17e-06
Energy Flux (Free Index): 1.78e-03 +/- 5.81e-04

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/150909/cmap_HighResolution_602985601_603244801_4FGL_J2203.3-5009_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.02e-06', energy_flux2='1.78e-03', photon_flux_error='3.80e-06', dlogl='4.30e+00', energy_flux='1.87e-03', photon_flux2='1.30e-05', job_status='DONE', time_completed='2021-09-28 03:18:18.534419', photon_index_error2='0.99', photon_index2='4.71', ts='14.21', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', energy_flux_error2='5.81e-04', EG='0.01', time_epoch_completed='1632824298.53', return_code='0', job_id='150909', GAL2='1.43', EG2='0.01', return_code2='0', energy_flux_error='8.89e-04', photon_flux_error2='4.17e-06', ts2='23.56', photon_index='2.74' WHERE bin_id='1403' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:18:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 150909: <4FGL_J2203.3-5009_daily_bin1403> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1403> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:10:38 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:10:41 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:41 2021
Terminated at Tue Sep 28 03:18:19 2021
Results reported at Tue Sep 28 03:18:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1403 330.832 -50.1512 602985601 603244801 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 :                                   383.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   457 sec.
    Turnaround time :                            461 sec.

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

