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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin634
RA = 330.832, Dec = -50.1512
tmin = 403660801, tmax = 403920001
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='146577', job_status='RUN', time_executed='2021-09-28 02:58:50.242339', time_epoch_executed='1632823130.24' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='634'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146577/ft1_4FGL_J2203.3-5009_daily_bin634.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146577/ft2_4FGL_J2203.3-5009_daily_bin634.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146577/ft1_4FGL_J2203.3-5009_daily_bin634.fits outfile=/scratch/kocevski/146577/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin634.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=403660801.0 tmax=403920001.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 7.69
user 7.41
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146577/ft2_4FGL_J2203.3-5009_daily_bin634.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/146577/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin634.fits evtable="EVENTS" outfile="/scratch/kocevski/146577/ft1_filtered_4FGL_J2203.3-5009_daily_bin634.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146577/ft1_filtered_4FGL_J2203.3-5009_daily_bin634.fits" evtable="EVENTS" scfile=/scratch/kocevski/146577/ft2_4FGL_J2203.3-5009_daily_bin634.fits sctable="SC_DATA" outfile=/scratch/kocevski/146577/ltcube_403660801_403920001_4FGL_J2203.3-5009_daily_bin634.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/146577/ft2_4FGL_J2203.3-5009_daily_bin634.fits
.....................!
real 11.27
user 10.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146577/ft1_filtered_4FGL_J2203.3-5009_daily_bin634.fits evtable="EVENTS" scfile=/scratch/kocevski/146577/ft2_4FGL_J2203.3-5009_daily_bin634.fits sctable="SC_DATA" expcube=/scratch/kocevski/146577/ltcube_403660801_403920001_4FGL_J2203.3-5009_daily_bin634.fits outfile=/scratch/kocevski/146577/expmap_403660801_403920001_4FGL_J2203.3-5009_daily_bin634.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/146577/ltcube_403660801_403920001_4FGL_J2203.3-5009_daily_bin634.fits
.....................!
real 190.22
user 185.14
sys 4.76

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/146577/ft1_filtered_4FGL_J2203.3-5009_daily_bin634.fits scfile=/scratch/kocevski/146577/ft2_4FGL_J2203.3-5009_daily_bin634.fits outfile=/scratch/kocevski/146577/cmap_403660801_403920001_4FGL_J2203.3-5009_daily_bin634.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/146577/ft1_filtered_4FGL_J2203.3-5009_daily_bin634.fits scfile=/scratch/kocevski/146577/ft2_4FGL_J2203.3-5009_daily_bin634.fits outfile=/scratch/kocevski/146577/cmap_HighResolution_403660801_403920001_4FGL_J2203.3-5009_daily_bin634.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/146577/ft1_filtered_4FGL_J2203.3-5009_daily_bin634.fits evtable="EVENTS" scfile=/scratch/kocevski/146577/ft2_4FGL_J2203.3-5009_daily_bin634.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/146577/Model_4FGL_J2203.3-5009_daily_bin634.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/146577/ft1_filtered_4FGL_J2203.3-5009_daily_bin634.fits.....................!
real 31.77
user 30.58
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4528       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11975E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22999E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10924E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.691       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9137       1.0000         .10000E-03   10000.    
     9 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24129       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.703       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7867       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11174E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10534E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.475       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.013       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 '    .10064E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .52097E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    75.356       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.173       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .48401       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2778       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=   3203.378     FROM MIGRAD    STATUS=CONVERGED   1151 CALLS     3607 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84187        4.6487        .23703E-03    .43574E-04
   2  Prefactor     .10000E-03    17.712        .18142E-02** at limit **
   3  norm          3.4501        2.7796        .81635E-04   -.12840E-03
   4  Prefactor     .10000E-03    162.55        .18142E-02** at limit **
   5  Prefactor     .10000E-03    17.555        .18142E-02** at limit **
   6  Prefactor     .10000E-03    22.205        .18142E-02** at limit **
   7  Prefactor     25.730        35.996        .79034E-04   -.43801E-04
   8  Prefactor     1.9096        4.6736        .18450E-03   -.32043E-04
   9  norm          .10001E-03    12.192        .25702E-02** at limit **
  10  Prefactor     .10000E-03    5.3798        .12814E-02** at limit **
  11  Prefactor     .19304E-01    100.03        .12993        .77204E-05
  12  Prefactor     26.756        20.194        .77525E-04    .14173E-03
  13  Prefactor     3.7823        4.4495        .12418E-03   -.15335E-04
  14  Prefactor     .10000E-03    76.440        .18142E-02** at limit **
  15  norm          .10000E-03    3.9729        .11017E-02** at limit **
  16  Prefactor     .10000E-03    2.5004        .87257E-03** at limit **
  17  Prefactor     60.653        76.338        .51595E-04   -.33889E-04
  18  Prefactor     20.000        12.835        .89531E-04    .37967E-04
  19  Prefactor     .10000E-03    114.40        .18142E-02** at limit **
  20  Prefactor     .10000E-03    14.167        .18142E-02** at limit **
  21  Prefactor     .10000E-03    56.254        .18142E-02** at limit **
  22  Prefactor     .10000E-03    54.008        .37296E-02** at limit **
  23  Prefactor     75.550        58.635        .23127E-03    .77988E-04
  24  Prefactor     17.183        31.593        .96649E-04    .16703E-04
  25  Normalizat    .48389        .29821        .36897E-03   -.20556E-03
  26  Prefactor     1.2781        .22445        .18713E-03   -.31148E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.841873
  Prefactor  = 0.0001
  norm       = 3.45013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.7296
  Prefactor  = 1.90958
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0193041
  Prefactor  = 26.7557
  Prefactor  = 3.78234
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 60.6533
  Prefactor  = 20.0002
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 75.5497
  Prefactor  = 17.1833
  Normalizat = 0.483892
  Prefactor  = 1.27807
 **********
 **   18 **HESSE 
 **********

 FCN=   3203.378     FROM HESSE     STATUS=OK           440 CALLS     4047 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84187        4.6476        .94813E-05   -1.5524    
   2  Prefactor     .10000E-03    17.714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4501        2.7795        .32654E-05   -1.5336    
   4  Prefactor     .10000E-03    162.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.206        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     25.730        35.993        .31613E-05   -1.4693    
   8  Prefactor     1.9096        4.6732        .73798E-05   -1.5432    
   9  norm          .10001E-03    12.257        .51404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.3799        .25627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .19304E-01    97.082        .13229       -1.5680    
  12  Prefactor     26.756        20.177        .31010E-05   -1.4673    
  13  Prefactor     3.7823        4.4492        .49671E-05   -1.5319    
  14  Prefactor     .10000E-03    76.440        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.9729        .22034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.5005        .17451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     60.653        76.335        .10319E-04   -1.4149    
  18  Prefactor     20.000        12.834        .35812E-05   -1.4813    
  19  Prefactor     .10000E-03    114.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.170        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    56.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    54.907        .74591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     75.550        58.635        .92509E-05   -1.3967    
  24  Prefactor     17.183        31.592        .38660E-05   -1.4879    
  25  Normalizat    .48389        .29822        .14759E-04   -1.1317    
  26  Prefactor     1.2781        .22452        .37427E-04   -.83961    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32459e-09
Minuit parameter uncertainties:
  1  3.95633
  2  7.9281e-06
  3  2.77964
  4  3.28466e-05
  5  0.000138364
  6  2.06287e-05
  7  36.0231
  8  4.67408
  9  0.000713907
  10  5.35215e-06
  11  2.73529
  12  20.1818
  13  4.44961
  14  0.000444112
  15  7.11488e-07
  16  7.20508e-06
  17  76.459
  18  12.8359
  19  0.00113176
  20  4.04166e-05
  21  0.000147886
  22  0.000636454
  23  58.6799
  24  31.6232
  25  0.299208
  26  0.224685
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  2.676e+01  2.018e+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.278e+00  2.247e-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:  4.839e-01  2.992e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.22
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 9.91e-08
Energy Flux (Fixed Index): 3.07e-05 +/- 2.32e-05

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

Saving results to:
/scratch/kocevski/146577/likelihoodResults_403660801_403920001_4FGL_J2203.3-5009_daily_bin634.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) = 3203.34033546
delta logL = 0.0379204321639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3203.33737271
delta logL = 0.0408831770105

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.546       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9625       1.0000          .0000       10.000    
     3 'Normalizat'    .46386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2887       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=   3203.337     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      261 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.566        335.83        .20637E-02    .46085E-03
   2  Index         2.9636        6.4421        .15466        .40364E-04
   3  Normalizat    .46362        .13641        .84990E-01    .20703E-04
   4  Prefactor     1.2886        .92950E-01    .32810E-01   -.18427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5659
  Index      = 2.9636
  Normalizat = 0.463622
  Prefactor  = 1.28859
 **********
 **   18 **HESSE 
 **********

 FCN=   3203.337     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.566        21.843        .41274E-03   -1.4737    
   2  Index         2.9636        .86393        .59145E-02   -.41947    
   3  Normalizat    .46362        .29098        .37649E-03   -1.1413    
   4  Prefactor     1.2886        .22383        .18648E-03   -.83647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18065e-09
Minuit parameter uncertainties:
  1  21.8503
  2  0.869166
  3  0.291941
  4  0.223996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146577': 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) = 3203.33736807
delta logL = 0.0408878211501

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  2.357e+01  2.185e+01  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.964e+00  8.692e-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.289e+00  2.240e-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:  4.636e-01  2.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.37
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 2.96 +/- 0.87
Photon Flux (Free Index): 1.48e-07 +/- 1.08e-07
Energy Flux (Free Index): 3.00e-05 +/- 2.02e-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/146577/cmap_HighResolution_403660801_403920001_4FGL_J2203.3-5009_daily_bin634.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-02', comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='3.00e-05', photon_flux_error='9.91e-08', dlogl='4.09e-02', energy_flux='3.07e-05', photon_flux2='1.48e-07', job_status='DONE', time_completed='2021-09-28 03:08:10.542153', photon_index_error2='0.87', photon_index2='2.96', ts='3.22', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='3.06e-07', energy_flux_error2='2.02e-05', EG='0.48', time_epoch_completed='1632823690.54', return_code='0', job_id='146577', GAL2='1.29', EG2='0.46', return_code2='0', energy_flux_error='2.32e-05', photon_flux_error2='1.08e-07', ts2='3.37', photon_index='2.74' WHERE bin_id='634' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:08:10 PDT 2021


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

Job <4FGL_J2203.3-5009_daily_bin634> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 02:55:36 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 02:55:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 02:55:37 2021
Terminated at Tue Sep 28 03:08:11 2021
Results reported at Tue Sep 28 03:08:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin634 330.832 -50.1512 403660801 403920001 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 :                                   558.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             261.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            755 sec.

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

