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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1323
RA = 330.832, Dec = -50.1512
tmin = 582249601, tmax = 582508801
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='150767', job_status='RUN', time_executed='2021-09-28 03:13:21.909575', time_epoch_executed='1632824001.91' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150767

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150767/ft1_4FGL_J2203.3-5009_daily_bin1323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150767/ft2_4FGL_J2203.3-5009_daily_bin1323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150767/ft1_4FGL_J2203.3-5009_daily_bin1323.fits outfile=/scratch/kocevski/150767/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1323.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=582249601.0 tmax=582508801.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.40
user 5.14
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150767/ft1_filtered_4FGL_J2203.3-5009_daily_bin1323.fits" evtable="EVENTS" scfile=/scratch/kocevski/150767/ft2_4FGL_J2203.3-5009_daily_bin1323.fits sctable="SC_DATA" outfile=/scratch/kocevski/150767/ltcube_582249601_582508801_4FGL_J2203.3-5009_daily_bin1323.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/150767/ft2_4FGL_J2203.3-5009_daily_bin1323.fits
.....................!
real 11.83
user 11.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150767/ft1_filtered_4FGL_J2203.3-5009_daily_bin1323.fits evtable="EVENTS" scfile=/scratch/kocevski/150767/ft2_4FGL_J2203.3-5009_daily_bin1323.fits sctable="SC_DATA" expcube=/scratch/kocevski/150767/ltcube_582249601_582508801_4FGL_J2203.3-5009_daily_bin1323.fits outfile=/scratch/kocevski/150767/expmap_582249601_582508801_4FGL_J2203.3-5009_daily_bin1323.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/150767/ltcube_582249601_582508801_4FGL_J2203.3-5009_daily_bin1323.fits
.....................!
real 190.92
user 185.36
sys 5.16

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/150767/ft1_filtered_4FGL_J2203.3-5009_daily_bin1323.fits scfile=/scratch/kocevski/150767/ft2_4FGL_J2203.3-5009_daily_bin1323.fits outfile=/scratch/kocevski/150767/cmap_582249601_582508801_4FGL_J2203.3-5009_daily_bin1323.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150767/ft1_filtered_4FGL_J2203.3-5009_daily_bin1323.fits scfile=/scratch/kocevski/150767/ft2_4FGL_J2203.3-5009_daily_bin1323.fits outfile=/scratch/kocevski/150767/cmap_HighResolution_582249601_582508801_4FGL_J2203.3-5009_daily_bin1323.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.103       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6939       1.0000         .10000E-03   10000.    
     3 'norm      '    26.845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.348       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.189       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.985       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .89786       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0811       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6258       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12960E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15576E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    79.836       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .44311       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75926       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1975       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=   5741.183     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     3160 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.103        5.4650        .84378E-07    .13618E-03
   2  Prefactor     5.6418        27.276       -.42905E-05   -.29608E-04
   3  norm          26.846        4.8803        .29597E-08    .48386E-04
   4  Prefactor     .10000E-03    21.292       -.64195E-06** at limit **
   5  Prefactor     .10000E-03    6.9733        .31371E-07** at limit **
   6  Prefactor     15.349        16.600        .70202E-07    .24241E-05
   7  Prefactor     .10000E-03    10.435        .40398E-07** at limit **
   8  Prefactor     .10000E-03    2.9100        .12573E-07** at limit **
   9  norm          15.189        6.4936       -.24673E-06   -.61857E-04
  10  Prefactor     .10000E-03    3.7102       -.60245E-08** at limit **
  11  Prefactor     16.820        48.081        .39426E-06    .16822E-04
  12  Prefactor     11.487        11.803       -.15030E-06    .90384E-04
  13  Prefactor     .10000E-03    1.7700        .74578E-07** at limit **
  14  Prefactor     .10000E-03    94.214       -.13791E-05** at limit **
  15  norm          .89813        4.9410       -.46123E-05    .11985E-03
  16  Prefactor     6.0808        4.2023       -.13060E-06    .92270E-04
  17  Prefactor     .10000E-03    15.449        .15212E-06** at limit **
  18  Prefactor     7.6226        7.3389       -.17510E-08    .10088E-03
  19  Prefactor     .10000E-03    25.061        .28188E-06** at limit **
  20  Prefactor     .10000E-03    10.665       -.80009E-06** at limit **
  21  Prefactor     79.928        74.067       -.75563E-05   -.88389E-04
  22  Prefactor     .42399        59.302        .25589E-04   -.75897E-05
  23  Prefactor     .10000E-03    70.810        .28282E-05** at limit **
  24  Prefactor     .10000E-03    5.7070       -.89437E-08** at limit **
  25  Normalizat    .75924        .21903        .55450E-07    .47712E-04
  26  Prefactor     1.1975        .16400        .25139E-06    .17671E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1032
  Prefactor  = 5.64176
  norm       = 26.8456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.189
  Prefactor  = 0.0001
  Prefactor  = 16.8204
  Prefactor  = 11.4866
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.898132
  Prefactor  = 6.08078
  Prefactor  = 0.0001
  Prefactor  = 7.62263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.9284
  Prefactor  = 0.423994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.75924
  Prefactor  = 1.1975
 **********
 **   18 **HESSE 
 **********

 FCN=   5741.183     FROM HESSE     STATUS=OK           456 CALLS     3616 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.103        5.4615        .12370E-03   -1.5072    
   2  Prefactor     5.6418        27.287        .16834E-03   -1.5233    
   3  norm          26.846        4.8790        .68363E-04   -1.4671    
   4  Prefactor     .10000E-03    21.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.349        16.599        .10223E-03   -1.4924    
   7  Prefactor     .10000E-03    10.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.9885        .25229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.189        6.4965        .10277E-03   -1.4928    
  10  Prefactor     .10000E-03    3.7212        .14254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.820        47.994        .97183E-04   -1.4887    
  12  Prefactor     11.487        11.780        .11820E-03   -1.5030    
  13  Prefactor     .10000E-03    1.7810        .98380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    94.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .89813        5.0484        .33702E-03   -1.5518    
  16  Prefactor     6.0808        4.2004        .12340E-03   -1.5215    
  17  Prefactor     .10000E-03    15.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6226        7.3576        .14522E-03   -1.5156    
  19  Prefactor     .10000E-03    25.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     79.928        75.256        .22474E-03   -1.3918    
  22  Prefactor     .42399        58.536        .42823E-02   -1.5578    
  23  Prefactor     .10000E-03    71.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.7093        .17679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .75924        .24656        .32916E-03   -1.0160    
  26  Prefactor     1.1975        .18603        .21162E-03   -.86408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3704e-08
Minuit parameter uncertainties:
  1  5.46176
  2  24.833
  3  4.8791
  4  1.00878e-06
  5  1.71977e-05
  6  16.6036
  7  8.59539e-06
  8  9.14175e-06
  9  6.49679
  10  2.37518e-06
  11  48.1045
  12  11.782
  13  1.14107e-06
  14  7.32423e-06
  15  4.25902
  16  4.20065
  17  3.91714e-06
  18  7.35845
  19  0.000169577
  20  0.000120888
  21  75.3458
  22  9.9725
  23  8.7232e-05
  24  2.24927e-06
  25  0.246919
  26  0.18613
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.149e+01  1.178e+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.198e+00  1.861e-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.592e-01  2.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 5.65e-08 +/- 5.79e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 1.35e-05

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

Saving results to:
/scratch/kocevski/150767/likelihoodResults_582249601_582508801_4FGL_J2203.3-5009_daily_bin1323.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) = 5740.53346301
delta logL = 0.649926498058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5740.48934929
delta logL = 0.694040224103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4851       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8939       1.0000          .0000       10.000    
     3 'Normalizat'    .68375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2414       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=   5740.489     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      257 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4749        15.719        .88002E-02   -.10017E-02
   2  Index         4.8990        3.5909        .15770       -.22037E-04
   3  Normalizat    .68364        .60722E-01    .77991E-01   -.74659E-04
   4  Prefactor     1.2416        .47925E-01    .33718E-01   -.22518E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.4749
  Index      = 4.89902
  Normalizat = 0.683642
  Prefactor  = 1.24157
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.489     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      288 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4749        31.567        .58754E-04   -1.5465    
   2  Index         4.8990        7.4007        .59335E-02   -.20197E-01
   3  Normalizat    .68364        .21576        .34531E-03   -1.0454    
   4  Prefactor     1.2416        .16925        .20834E-03   -.85061    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.79525e-10
Minuit parameter uncertainties:
  1  13.6544
  2  6.76229
  3  0.216025
  4  0.169326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150767': 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) = 5740.48934703
delta logL = 0.694042482957

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.475e+00  1.365e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  4.899e+00  6.762e+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.242e+00  1.693e-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.836e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 4.90 +/- 6.76
Photon Flux (Free Index): 1.08e-07 +/- 7.22e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.29e-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/150767/cmap_HighResolution_582249601_582508801_4FGL_J2203.3-5009_daily_bin1323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='5.65e-08', energy_flux2='1.45e-05', photon_flux_error='5.79e-08', dlogl='6.94e-01', energy_flux='1.32e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-28 03:25:41.631996', photon_index_error2='6.76', photon_index2='4.90', ts='1.45', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='1.29e-05', EG='0.76', time_epoch_completed='1632824741.63', return_code='0', job_id='150767', GAL2='1.24', EG2='0.68', return_code2='102', energy_flux_error='1.35e-05', photon_flux_error2='7.22e-08', ts2='3.05', photon_index='2.74' WHERE bin_id='1323' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:25:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 150767: <4FGL_J2203.3-5009_daily_bin1323> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1323 330.832 -50.1512 582249601 582508801 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 :                                   709.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

