/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 129 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 = 7256
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2203.3-5009_daily_bin369
RA = 330.832, Dec = -50.1512
tmin = 334972801, tmax = 335232001
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='146314', job_status='RUN', time_executed='2021-09-28 02:57:32.838703', time_epoch_executed='1632823052.84' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='369'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146314

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146314/ft1_4FGL_J2203.3-5009_daily_bin369.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146314/ft2_4FGL_J2203.3-5009_daily_bin369.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146314/ft1_4FGL_J2203.3-5009_daily_bin369.fits outfile=/scratch/kocevski/146314/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin369.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=334972801.0 tmax=335232001.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.40
user 3.16
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146314/ft1_filtered_4FGL_J2203.3-5009_daily_bin369.fits" evtable="EVENTS" scfile=/scratch/kocevski/146314/ft2_4FGL_J2203.3-5009_daily_bin369.fits sctable="SC_DATA" outfile=/scratch/kocevski/146314/ltcube_334972801_335232001_4FGL_J2203.3-5009_daily_bin369.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/146314/ft2_4FGL_J2203.3-5009_daily_bin369.fits
.....................!
real 11.96
user 11.60
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146314/ft1_filtered_4FGL_J2203.3-5009_daily_bin369.fits evtable="EVENTS" scfile=/scratch/kocevski/146314/ft2_4FGL_J2203.3-5009_daily_bin369.fits sctable="SC_DATA" expcube=/scratch/kocevski/146314/ltcube_334972801_335232001_4FGL_J2203.3-5009_daily_bin369.fits outfile=/scratch/kocevski/146314/expmap_334972801_335232001_4FGL_J2203.3-5009_daily_bin369.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/146314/ltcube_334972801_335232001_4FGL_J2203.3-5009_daily_bin369.fits
.....................!
real 191.66
user 185.39
sys 5.68

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/146314/ft1_filtered_4FGL_J2203.3-5009_daily_bin369.fits scfile=/scratch/kocevski/146314/ft2_4FGL_J2203.3-5009_daily_bin369.fits outfile=/scratch/kocevski/146314/cmap_334972801_335232001_4FGL_J2203.3-5009_daily_bin369.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/146314/ft1_filtered_4FGL_J2203.3-5009_daily_bin369.fits scfile=/scratch/kocevski/146314/ft2_4FGL_J2203.3-5009_daily_bin369.fits outfile=/scratch/kocevski/146314/cmap_HighResolution_334972801_335232001_4FGL_J2203.3-5009_daily_bin369.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.634       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.203       1.0000         .10000E-03   10000.    
     3 'norm      '    4.8743       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.016       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.467       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.1027       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5757       1.0000         .10000E-03   10000.    
    11 'Prefactor '    75.862       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14997E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1615       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.169       1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0895       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.6739       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27333E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10244E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.7231       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .65775       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=   5441.319     FROM MIGRAD    STATUS=CONVERGED   1108 CALLS     4060 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.633        6.2008        .12287E-03   -.52464E-04
   2  Prefactor     19.211        21.696        .91400E-04   -.13931E-04
   3  norm          4.8745        2.9947        .95991E-04   -.31859E-03
   4  Prefactor     25.065        40.678        .80091E-04    .50448E-04
   5  Prefactor     .10000E-03    19.200        .36285E-03** at limit **
   6  Prefactor     .10000E-03    12.965        .18142E-02** at limit **
   7  Prefactor     55.453        34.943        .53860E-04   -.46606E-04
   8  Prefactor     5.1028        4.5175        .14209E-03   -.20170E-03
   9  norm          .10000E-03    2.5074        .11351E-02** at limit **
  10  Prefactor     3.5817        13.328        .21372E-03   -.59366E-04
  11  Prefactor     75.814        54.546        .46101E-04   -.66928E-04
  12  Prefactor     .10000E-03    11.596        .18142E-02** at limit **
  13  Prefactor     6.1641        5.4190        .15090E-03   -.16959E-03
  14  Prefactor     25.072        143.41        .79847E-04   -.28761E-05
  15  norm          .10000E-03    5.7532        .17249E-02** at limit **
  16  Prefactor     3.0913        4.9993        .19948E-03   -.16807E-03
  17  Prefactor     .10000E-03    28.514        .18142E-02** at limit **
  18  Prefactor     8.6767        8.3472        .13610E-03   -.41230E-03
  19  Prefactor     .10019E-03    31.452        .10731    ** at limit **
  20  Prefactor     .10000E-03    13.460        .18142E-02** at limit **
  21  Prefactor     .10000E-03    30.094        .18142E-02** at limit **
  22  Prefactor     .10000E-03    8.5746        .18142E-02** at limit **
  23  Prefactor     .10000E-03    91.676        .18142E-02** at limit **
  24  Prefactor     .10000E-03    8.1400        .18142E-02** at limit **
  25  Normalizat    1.7229        .28259        .25241E-03   -.75850E-03
  26  Prefactor     .65788        .19453        .27966E-03   -.51158E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6334
  Prefactor  = 19.2107
  norm       = 4.87455
  Prefactor  = 25.0653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.4532
  Prefactor  = 5.10276
  norm       = 0.0001
  Prefactor  = 3.58166
  Prefactor  = 75.8141
  Prefactor  = 0.0001
  Prefactor  = 6.16412
  Prefactor  = 25.0718
  norm       = 0.0001
  Prefactor  = 3.09127
  Prefactor  = 0.0001
  Prefactor  = 8.67669
  Prefactor  = 0.000100194
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.72291
  Prefactor  = 0.657883
 **********
 **   18 **HESSE 
 **********

 FCN=   5441.319     FROM HESSE     STATUS=OK           440 CALLS     4500 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.633        6.2008        .49146E-05   -1.5056    
   2  Prefactor     19.211        21.698        .36560E-05   -1.4831    
   3  norm          4.8745        2.9947        .38396E-05   -1.5266    
   4  Prefactor     25.065        40.678        .16018E-04   -1.4706    
   5  Prefactor     .10000E-03    19.202        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.965        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     55.453        34.943        .10772E-04   -1.4217    
   8  Prefactor     5.1028        4.5174        .56836E-05   -1.5256    
   9  norm          .10000E-03    2.5078        .22702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5817        13.328        .85486E-05   -1.5329    
  11  Prefactor     75.814        54.548        .92202E-05   -1.3964    
  12  Prefactor     .10000E-03    11.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1641        5.4188        .60358E-05   -1.5211    
  14  Prefactor     25.072        143.44        .15969E-04   -1.4706    
  15  norm          .10000E-03    5.7539        .34499E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0913        4.9989        .79793E-05   -1.5356    
  17  Prefactor     .10000E-03    28.514        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.6767        8.3472        .54441E-05   -1.5119    
  19  Prefactor     .10019E-03    30.136        .11053       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    30.094        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.5781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    91.711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    8.1402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.7229        .28279        .50482E-04   -.71693    
  26  Prefactor     .65788        .19467        .55933E-04   -1.0520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.56806e-10
Minuit parameter uncertainties:
  1  6.20114
  2  21.7064
  3  2.99474
  4  40.7234
  5  0.000120256
  6  3.90728e-05
  7  34.9558
  8  4.5177
  9  1.39072e-06
  10  13.3387
  11  54.5845
  12  8.08528e-05
  13  5.41923
  14  120.38
  15  3.9677e-05
  16  4.99955
  17  0.000191122
  18  8.34829
  19  0.00484215
  20  6.25332e-05
  21  7.42523e-07
  22  3.43829e-06
  23  0.000408554
  24  1.49819e-05
  25  0.283054
  26  0.19487
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  8.085e-05  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:  6.579e-01  1.949e-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.723e+00  2.831e-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: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/146314/likelihoodResults_334972801_335232001_4FGL_J2203.3-5009_daily_bin369.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) = 5441.31901124
delta logL = -0.000410909351558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5441.31860023
delta logL = 1.06990228232e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7657       1.0000          .0000       10.000    
     3 'Normalizat'    1.7229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65788       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=   5441.316     FROM MIGRAD    STATUS=CONVERGED    155 CALLS      315 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10900        22.021        .26894E-01   -.10339E-02
   2  Index         4.4833        7.2366        .50000        .99765E-05
   3  Normalizat    1.7181        .24036E-01    .25241E-03   -.10275E-03
   4  Prefactor     .65991        .17460E-01    .27966E-03   -.37074E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.109005
  Index      = 4.48328
  Normalizat = 1.71814
  Prefactor  = 0.659912
 **********
 **   18 **HESSE 
 **********

 FCN=   5441.316     FROM HESSE     STATUS=OK            31 CALLS      346 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10900        7.1129        .16923E-02   -1.5774    
   2  Index         4.4833        7.1966        .25299E-01   -.10353    
   3  Normalizat    1.7181        .26819        .50482E-04   -.71820    
   4  Prefactor     .65991        .19192        .11186E-04   -1.0512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13887e-10
Minuit parameter uncertainties:
  1  1.76048
  2  8.24294
  3  0.268417
  4  0.192115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146314': 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) = 5441.31609213
delta logL = 0.00250819912344

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.090e-01  1.760e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  4.483e+00  8.243e+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:  6.599e-01  1.921e-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.718e+00  2.684e-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/146314/cmap_HighResolution_334972801_335232001_4FGL_J2203.3-5009_daily_bin369.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-28 03:10:04.484842', job_id='146314', GAL2='0.66', fit_tolerance='1e-08', EG2='1.72', EG='1.72', time_epoch_completed='1632823804.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.51e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='369' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:10:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 146314: <4FGL_J2203.3-5009_daily_bin369> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin369> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 02:55:13 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 02:55:14 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:14 2021
Terminated at Tue Sep 28 03:10:05 2021
Results reported at Tue Sep 28 03:10:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin369 330.832 -50.1512 334972801 335232001 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 :                                   753.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

