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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin844
RA = 330.832, Dec = -50.1512
tmin = 458092801, tmax = 458352001
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='147917', job_status='RUN', time_executed='2021-09-28 03:01:55.730502', time_epoch_executed='1632823315.73' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147917

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147917/ft1_4FGL_J2203.3-5009_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147917/ft2_4FGL_J2203.3-5009_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147917/ft1_4FGL_J2203.3-5009_daily_bin844.fits outfile=/scratch/kocevski/147917/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin844.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=458092801.0 tmax=458352001.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.64
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147917/ft2_4FGL_J2203.3-5009_daily_bin844.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/147917/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin844.fits evtable="EVENTS" outfile="/scratch/kocevski/147917/ft1_filtered_4FGL_J2203.3-5009_daily_bin844.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/147917/ft1_filtered_4FGL_J2203.3-5009_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/147917/ft2_4FGL_J2203.3-5009_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/147917/ltcube_458092801_458352001_4FGL_J2203.3-5009_daily_bin844.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/147917/ft2_4FGL_J2203.3-5009_daily_bin844.fits
.....................!
real 11.64
user 11.33
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147917/ft1_filtered_4FGL_J2203.3-5009_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/147917/ft2_4FGL_J2203.3-5009_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/147917/ltcube_458092801_458352001_4FGL_J2203.3-5009_daily_bin844.fits outfile=/scratch/kocevski/147917/expmap_458092801_458352001_4FGL_J2203.3-5009_daily_bin844.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/147917/ltcube_458092801_458352001_4FGL_J2203.3-5009_daily_bin844.fits
.....................!
real 190.19
user 185.31
sys 4.56

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/147917/ft1_filtered_4FGL_J2203.3-5009_daily_bin844.fits scfile=/scratch/kocevski/147917/ft2_4FGL_J2203.3-5009_daily_bin844.fits outfile=/scratch/kocevski/147917/cmap_458092801_458352001_4FGL_J2203.3-5009_daily_bin844.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=330.832 yref=-50.1512 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147917/ft1_filtered_4FGL_J2203.3-5009_daily_bin844.fits scfile=/scratch/kocevski/147917/ft2_4FGL_J2203.3-5009_daily_bin844.fits outfile=/scratch/kocevski/147917/cmap_HighResolution_458092801_458352001_4FGL_J2203.3-5009_daily_bin844.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/147917/ft1_filtered_4FGL_J2203.3-5009_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/147917/ft2_4FGL_J2203.3-5009_daily_bin844.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/147917/Model_4FGL_J2203.3-5009_daily_bin844.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/147917/ft1_filtered_4FGL_J2203.3-5009_daily_bin844.fits.....................!
real 49.37
user 48.05
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10913E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1847       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .18140E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.913       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.6476       1.0000         .10000E-03   10000.    
     9 'norm      '    11.326       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.575       1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.619       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50555E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19198E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8534       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10700E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.539       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .86668E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78310       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0264       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=   6395.580     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3147 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6191        .11876E-06** at limit **
   2  Prefactor     .10000E-03    6.3884        .10602E-08** at limit **
   3  norm          5.1834        2.1631        .17027E-07    .30305E-03
   4  Prefactor     36.107        35.856       -.25230E-05   -.30361E-03
   5  Prefactor     .10002E-03    5.8599       -.19473E-05** at limit **
   6  Prefactor     .10000E-03    10.949        .12279E-05** at limit **
   7  Prefactor     17.907        21.342        .21029E-06    .17455E-04
   8  Prefactor     8.6475        4.2142        .49494E-06   -.85104E-03
   9  norm          11.326        5.1875        .15580E-06    .43116E-03
  10  Prefactor     12.575        8.6298        .98577E-07    .10561E-03
  11  Prefactor     23.641        22.006       -.53532E-06   -.90808E-04
  12  Prefactor     .10003E-03    5.9636        .27988E-06** at limit **
  13  Prefactor     .10000E-03    1.1882        .15829E-07** at limit **
  14  Prefactor     .10001E-03    136.51       -.51389E-05** at limit **
  15  norm          .10000E-03    2.2631        .76692E-08** at limit **
  16  Prefactor     6.8530        3.8875        .61118E-06   -.12382E-02
  17  Prefactor     .10001E-03    15.491        .35737E-05** at limit **
  18  Prefactor     .10000E-03    3.7167       -.62715E-06** at limit **
  19  Prefactor     .10000E-03    8.6166       -.16369E-06** at limit **
  20  Prefactor     .10000E-03    1.9289        .19801E-07** at limit **
  21  Prefactor     .10000E-03    21.316       -.71344E-06** at limit **
  22  Prefactor     .10000E-03    3.0102       -.83589E-08** at limit **
  23  Prefactor     32.530        30.497       -.10568E-05   -.15909E-03
  24  Prefactor     .10000E-03    15.087        .48286E-06** at limit **
  25  Normalizat    .78321        .17565       -.40832E-06    .22055E-03
  26  Prefactor     1.0263        .13402        .77212E-07    .26049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.18336
  Prefactor  = 36.1071
  Prefactor  = 0.000100025
  Prefactor  = 0.000100001
  Prefactor  = 17.9072
  Prefactor  = 8.64749
  norm       = 11.326
  Prefactor  = 12.5748
  Prefactor  = 23.6408
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 6.85302
  Prefactor  = 0.000100007
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.5301
  Prefactor  = 0.000100005
  Normalizat = 0.783205
  Prefactor  = 1.02629
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.580     FROM HESSE     STATUS=OK           462 CALLS     3609 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5741        .19673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1834        2.1602        .73189E-04   -1.5253    
   4  Prefactor     36.107        37.118        .66684E-04   -1.4505    
   5  Prefactor     .10002E-03    15.719        .33313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.907        21.325        .94631E-04   -1.4861    
   8  Prefactor     8.6475        4.5327        .58681E-03   -1.5120    
   9  norm          11.326        5.1865        .11862E-03   -1.5035    
  10  Prefactor     12.575        8.6267        .11296E-03   -1.4999    
  11  Prefactor     23.641        22.047        .82422E-04   -1.4735    
  12  Prefactor     .10003E-03    8.0626        .53382E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1995        .85094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    139.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2674        .11749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8530        4.4056        .63274E-03   -1.5184    
  17  Prefactor     .10001E-03    16.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.171        .29103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9296        .10847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0229        .13550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     32.530        30.717        .70245E-04   -1.4567    
  24  Prefactor     .10000E-03    100.22        .59642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .78321        .20239        .28331E-03   -1.0069    
  26  Prefactor     1.0263        .15585        .19772E-03   -.91858    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.795e-09
Minuit parameter uncertainties:
  1  3.01335e-05
  2  1.89489e-06
  3  2.16025
  4  37.1418
  5  0.00125299
  6  0.000191468
  7  21.3336
  8  4.53291
  9  5.18666
  10  8.62751
  11  22.0544
  12  0.000957618
  13  4.33598e-07
  14  0.0028851
  15  4.16195e-07
  16  4.40581
  17  0.000690401
  18  0.000324594
  19  2.00588e-05
  20  1.36771e-06
  21  0.000155239
  22  7.51212e-07
  23  30.7318
  24  0.00135826
  25  0.202584
  26  0.155917
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  9.576e-04  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.026e+00  1.559e-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.832e-01  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147917/likelihoodResults_458092801_458352001_4FGL_J2203.3-5009_daily_bin844.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6395.57966711
delta logL = -3.13282416755e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6395.48248754
delta logL = 0.0971482356235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62513       1.0000         .10000E-03   10000.    
     2 'Index     '    4.2623       1.0000          .0000       10.000    
     3 'Normalizat'    .75937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0362       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=   6395.482     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      417 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62513        19.698        .11771E-01    .16318E-02
   2  Index         4.2623        2.9906        .39252        .21960E-04
   3  Normalizat    .75937        .22218E-01    .64963E-01    .68718E-05
   4  Prefactor     1.0362        .17629E-01    .40794E-01    .15152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.625132
  Index      = 4.26227
  Normalizat = 0.759371
  Prefactor  = 1.03623
 **********
 **   18 **HESSE 
 **********

 FCN=   6395.482     FROM HESSE     STATUS=OK            33 CALLS      450 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62513        16.845        .13883E-03   -1.5550    
   2  Index         4.2623        7.1283        .10154E-01   -.14809    
   3  Normalizat    .75937        .19985        .28740E-03   -1.0159    
   4  Prefactor     1.0362        .15489        .19688E-03   -.91532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21742e-08
Minuit parameter uncertainties:
  1  6.49162
  2  7.27168
  3  0.200044
  4  0.154956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147917': 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) = 6395.48248754
delta logL = 0.0971482356754

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  6.251e-01  6.492e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  4.262e+00  7.272e+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.036e+00  1.550e-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.594e-01  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.832 -50.151

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/147917/cmap_HighResolution_458092801_458352001_4FGL_J2203.3-5009_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-09-28 03:14:14.852760', job_id='147917', GAL2='1.04', fit_tolerance='1e-08', EG2='0.76', EG='0.78', time_epoch_completed='1632824054.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.71e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='844' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:14:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 147917: <4FGL_J2203.3-5009_daily_bin844> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin844 330.832 -50.1512 458092801 458352001 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 :                                   737.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            825 sec.

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

