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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin991
RA = 330.832, Dec = -50.1512
tmin = 496195201, tmax = 496454401
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='149246', job_status='RUN', time_executed='2021-09-28 03:09:28.595399', time_epoch_executed='1632823768.6' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='991'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149246

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149246/ft1_4FGL_J2203.3-5009_daily_bin991.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149246/ft2_4FGL_J2203.3-5009_daily_bin991.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149246/ft1_4FGL_J2203.3-5009_daily_bin991.fits outfile=/scratch/kocevski/149246/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin991.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=496195201.0 tmax=496454401.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.41
user 3.18
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149246/ft2_4FGL_J2203.3-5009_daily_bin991.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/149246/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin991.fits evtable="EVENTS" outfile="/scratch/kocevski/149246/ft1_filtered_4FGL_J2203.3-5009_daily_bin991.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/149246/ft1_filtered_4FGL_J2203.3-5009_daily_bin991.fits" evtable="EVENTS" scfile=/scratch/kocevski/149246/ft2_4FGL_J2203.3-5009_daily_bin991.fits sctable="SC_DATA" outfile=/scratch/kocevski/149246/ltcube_496195201_496454401_4FGL_J2203.3-5009_daily_bin991.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/149246/ft2_4FGL_J2203.3-5009_daily_bin991.fits
.....................!
real 12.47
user 12.07
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149246/ft1_filtered_4FGL_J2203.3-5009_daily_bin991.fits evtable="EVENTS" scfile=/scratch/kocevski/149246/ft2_4FGL_J2203.3-5009_daily_bin991.fits sctable="SC_DATA" expcube=/scratch/kocevski/149246/ltcube_496195201_496454401_4FGL_J2203.3-5009_daily_bin991.fits outfile=/scratch/kocevski/149246/expmap_496195201_496454401_4FGL_J2203.3-5009_daily_bin991.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/149246/ltcube_496195201_496454401_4FGL_J2203.3-5009_daily_bin991.fits
.....................!
real 191.50
user 185.62
sys 5.43

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/149246/ft1_filtered_4FGL_J2203.3-5009_daily_bin991.fits scfile=/scratch/kocevski/149246/ft2_4FGL_J2203.3-5009_daily_bin991.fits outfile=/scratch/kocevski/149246/cmap_496195201_496454401_4FGL_J2203.3-5009_daily_bin991.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149246/ft1_filtered_4FGL_J2203.3-5009_daily_bin991.fits scfile=/scratch/kocevski/149246/ft2_4FGL_J2203.3-5009_daily_bin991.fits outfile=/scratch/kocevski/149246/cmap_HighResolution_496195201_496454401_4FGL_J2203.3-5009_daily_bin991.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/149246/ft1_filtered_4FGL_J2203.3-5009_daily_bin991.fits evtable="EVENTS" scfile=/scratch/kocevski/149246/ft2_4FGL_J2203.3-5009_daily_bin991.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149246/Model_4FGL_J2203.3-5009_daily_bin991.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/149246/ft1_filtered_4FGL_J2203.3-5009_daily_bin991.fits.....................!
real 42.96
user 41.64
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9563       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7936       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5408       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.714       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13277E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10150E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.346       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7606       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.5508       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.411       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1127       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97320       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=   5439.546     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3048 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4342        .40582E-06** at limit **
   2  Prefactor     .10000E-03    22.522       -.12750E-04** at limit **
   3  norm          3.9566        2.3570       -.21144E-06    .23228E-03
   4  Prefactor     8.6856        136.20       -.24189E-03    .63821E-04
   5  Prefactor     3.5418        5.6811        .14527E-06   -.16046E-03
   6  Prefactor     19.717        29.365       -.45439E-05    .27261E-04
   7  Prefactor     .10010E-03    54.510       -.17382E-04** at limit **
   8  Prefactor     .10000E-03    5.1616        .10895E-05** at limit **
   9  norm          .10000E-03    1.8432       -.13566E-06** at limit **
  10  Prefactor     .10000E-03    3.9698       -.51892E-07** at limit **
  11  Prefactor     28.347        29.864       -.12687E-05    .18325E-04
  12  Prefactor     16.953        12.273       -.30769E-06    .21103E-04
  13  Prefactor     1.7604        2.2718       -.57987E-07    .48919E-04
  14  Prefactor     .10000E-03    180.37        .13806E-04** at limit **
  15  norm          .10000E-03    2.4708       -.22902E-06** at limit **
  16  Prefactor     .10000E-03    1.3746       -.21182E-06** at limit **
  17  Prefactor     .10000E-03    25.522        .15938E-04** at limit **
  18  Prefactor     .10000E-03    2.8847       -.53873E-08** at limit **
  19  Prefactor     7.5132        31.140       -.83278E-05   -.28260E-04
  20  Prefactor     17.411        14.380        .97010E-07   -.79765E-05
  21  Prefactor     .10000E-03    66.480        .24151E-04** at limit **
  22  Prefactor     .10000E-03    10.181       -.90098E-07** at limit **
  23  Prefactor     .10000E-03    16.797        .22765E-05** at limit **
  24  Prefactor     .10000E-03    11.025       -.96713E-06** at limit **
  25  Normalizat    1.1130        .20695        .26059E-05    .42850E-03
  26  Prefactor     .97292        .15885        .82605E-05    .65903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  norm       = 3.95658
  Prefactor  = 8.6856
  Prefactor  = 3.54179
  Prefactor  = 19.7175
  Prefactor  = 0.000100095
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.3471
  Prefactor  = 16.9526
  Prefactor  = 1.76035
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.51316
  Prefactor  = 17.4111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11302
  Prefactor  = 0.972918
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.546     FROM HESSE     STATUS=OK           446 CALLS     3494 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5014        .13341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9566        2.3558        .84636E-04   -1.5310    
   4  Prefactor     8.6856        137.06        .13517E-03   -1.5118    
   5  Prefactor     3.5418        5.6661        .21481E-03   -1.5332    
   6  Prefactor     19.717        29.363        .90208E-04   -1.4820    
   7  Prefactor     .10010E-03    54.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2621        .16347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.8528        .97744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9797        .14351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.347        29.868        .75248E-04   -1.4643    
  12  Prefactor     16.953        12.295        .97233E-04   -1.4884    
  13  Prefactor     1.7604        2.2575        .12243E-03   -1.5443    
  14  Prefactor     .10000E-03    180.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4719        .11322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3814        .84431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9036        .12226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.5132        30.936        .14594E-03   -1.5160    
  20  Prefactor     17.411        14.290        .95985E-04   -1.4873    
  21  Prefactor     .10000E-03    66.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1130        .24918        .26374E-03   -.89335    
  26  Prefactor     .97292        .19058        .21751E-03   -.93638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03041e-09
Minuit parameter uncertainties:
  1  0.000157644
  2  0.000659843
  3  2.35583
  4  69.1948
  5  5.66696
  6  29.3842
  7  0.00456
  8  0.000182773
  9  8.0231e-06
  10  1.81454e-05
  11  29.8838
  12  12.2968
  13  2.25757
  14  0.000430325
  15  3.9752e-06
  16  1.33067e-05
  17  9.00336e-05
  18  1.81119e-05
  19  30.5181
  20  14.2925
  21  7.31661e-05
  22  0.000141645
  23  3.7149e-05
  24  5.07055e-05
  25  0.249446
  26  0.190715
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.695e+01  1.230e+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:  9.729e-01  1.907e-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.113e+00  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 8.34e-08 +/- 6.04e-08
Energy Flux (Fixed Index): 1.95e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/149246/likelihoodResults_496195201_496454401_4FGL_J2203.3-5009_daily_bin991.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) = 5439.31499799
delta logL = 0.230997148318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5439.30411415
delta logL = 0.24188098523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9810       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4781       1.0000          .0000       10.000    
     3 'Normalizat'    1.0783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99598       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=   5439.304     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9696        115.03        .33436E-02    .10376E-02
   2  Index         3.4793        6.6654        .17444        .24652E-03
   3  Normalizat    1.0783        .75352E-01    .60444E-01   -.33511E-06
   4  Prefactor     .99596        .57067E-01    .46217E-01    .96106E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.96956
  Index      = 3.4793
  Normalizat = 1.0783
  Prefactor  = 0.995962
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.304     FROM HESSE     STATUS=OK            33 CALLS      280 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9696        19.645        .13374E-03   -1.5109    
   2  Index         3.4793        1.7395        .64349E-02   -.30903    
   3  Normalizat    1.0783        .24946        .26733E-03   -.90452    
   4  Prefactor     .99596        .19125        .21529E-03   -.92864    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.52135e-10
Minuit parameter uncertainties:
  1  19.6594
  2  1.78064
  3  0.249736
  4  0.191376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149246': 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) = 5439.30411367
delta logL = 0.241881461824

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  8.970e+00  1.966e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  3.479e+00  1.781e+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:  9.960e-01  1.914e-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.078e+00  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 3.48 +/- 1.78
Photon Flux (Free Index): 1.03e-07 +/- 6.89e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.34e-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/149246/cmap_HighResolution_496195201_496454401_4FGL_J2203.3-5009_daily_bin991.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-02', comment='SUCCESS', photon_flux='8.34e-08', energy_flux2='1.72e-05', photon_flux_error='6.04e-08', dlogl='2.42e-01', energy_flux='1.95e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-28 03:20:34.179871', photon_index_error2='1.78', photon_index2='3.48', ts='2.64', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='1.34e-05', EG='1.11', time_epoch_completed='1632824434.18', return_code='0', job_id='149246', GAL2='1.00', EG2='1.08', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='6.89e-08', ts2='3.23', photon_index='2.74' WHERE bin_id='991' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:20:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 149246: <4FGL_J2203.3-5009_daily_bin991> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin991> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:21 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:24 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:05:24 2021
Terminated at Tue Sep 28 03:20:34 2021
Results reported at Tue Sep 28 03:20:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin991 330.832 -50.1512 496195201 496454401 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 :                                   663.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

