/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 53 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 = 7396
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2203.3-5009_daily_bin870
RA = 330.832, Dec = -50.1512
tmin = 464832001, tmax = 465091201
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='147954', job_status='RUN', time_executed='2021-09-28 03:01:44.921722', time_epoch_executed='1632823304.92' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147954

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147954/ft1_4FGL_J2203.3-5009_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147954/ft2_4FGL_J2203.3-5009_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147954/ft1_4FGL_J2203.3-5009_daily_bin870.fits outfile=/scratch/kocevski/147954/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin870.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=464832001.0 tmax=465091201.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.36
user 3.14
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/147954/ft2_4FGL_J2203.3-5009_daily_bin870.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/147954/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin870.fits evtable="EVENTS" outfile="/scratch/kocevski/147954/ft1_filtered_4FGL_J2203.3-5009_daily_bin870.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/147954/ft1_filtered_4FGL_J2203.3-5009_daily_bin870.fits" evtable="EVENTS" scfile=/scratch/kocevski/147954/ft2_4FGL_J2203.3-5009_daily_bin870.fits sctable="SC_DATA" outfile=/scratch/kocevski/147954/ltcube_464832001_465091201_4FGL_J2203.3-5009_daily_bin870.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/147954/ft2_4FGL_J2203.3-5009_daily_bin870.fits
.....................!
real 11.84
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147954/ft1_filtered_4FGL_J2203.3-5009_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/147954/ft2_4FGL_J2203.3-5009_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/147954/ltcube_464832001_465091201_4FGL_J2203.3-5009_daily_bin870.fits outfile=/scratch/kocevski/147954/expmap_464832001_465091201_4FGL_J2203.3-5009_daily_bin870.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/147954/ltcube_464832001_465091201_4FGL_J2203.3-5009_daily_bin870.fits
.....................!
real 191.09
user 185.72
sys 4.98

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

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147954/ft1_filtered_4FGL_J2203.3-5009_daily_bin870.fits scfile=/scratch/kocevski/147954/ft2_4FGL_J2203.3-5009_daily_bin870.fits outfile=/scratch/kocevski/147954/cmap_HighResolution_464832001_465091201_4FGL_J2203.3-5009_daily_bin870.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2802       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6756       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.216       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11598       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.768       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8178       1.0000         .10000E-03   10000.    
     9 'norm      '    11.384       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    94.137       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.5755       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .47782E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6399       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.894       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.908       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11420E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82486       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0325       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=   6797.079     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3130 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2812        3.3264       -.73212E-07   -.12485E-04
   2  Prefactor     .10000E-03    6.4639        .11388E-07** at limit **
   3  norm          1.6757        1.6526       -.86548E-07   -.20338E-03
   4  Prefactor     24.218        23.542        .28145E-06    .22875E-04
   5  Prefactor     .13710        5.8284       -.16892E-05    .38461E-03
   6  Prefactor     .10000E-03    28.308        .58386E-06** at limit **
   7  Prefactor     21.767        18.964        .13160E-06    .65328E-04
   8  Prefactor     1.8179        4.2303       -.75041E-06   -.67816E-03
   9  norm          11.384        5.8639       -.12948E-06    .98807E-04
  10  Prefactor     .10000E-03    2.7788       -.10880E-07** at limit **
  11  Prefactor     94.136        42.551       -.77676E-06    .44056E-03
  12  Prefactor     .10000E-03    3.7464        .26480E-06** at limit **
  13  Prefactor     3.5761        2.9037        .50324E-07    .49531E-03
  14  Prefactor     .10029E-03    1008.3       -.27400E-03** at limit **
  15  norm          .10000E-03    3.7047       -.14580E-07** at limit **
  16  Prefactor     5.6406        3.9228       -.33017E-06   -.98407E-04
  17  Prefactor     .10000E-03    45.953       -.21368E-05** at limit **
  18  Prefactor     10.895        6.7856        .21294E-06    .40518E-03
  19  Prefactor     13.898        29.262       -.26681E-05    .14956E-03
  20  Prefactor     .10000E-03    10.411        .40206E-06** at limit **
  21  Prefactor     .10000E-03    91.920       -.30648E-06** at limit **
  22  Prefactor     .10000E-03    4.1508       -.31393E-07** at limit **
  23  Prefactor     .10000E-03    11.594       -.26296E-06** at limit **
  24  Prefactor     .10000E-03    7.5257       -.75805E-07** at limit **
  25  Normalizat    .82477        .18353        .17926E-05    .70537E-03
  26  Prefactor     1.0325        .13599        .65737E-07    .97884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.28124
  Prefactor  = 0.0001
  norm       = 1.67568
  Prefactor  = 24.2179
  Prefactor  = 0.137096
  Prefactor  = 0.0001
  Prefactor  = 21.7673
  Prefactor  = 1.81786
  norm       = 11.3844
  Prefactor  = 0.0001
  Prefactor  = 94.1356
  Prefactor  = 0.0001
  Prefactor  = 3.5761
  Prefactor  = 0.000100286
  norm       = 0.0001
  Prefactor  = 5.64056
  Prefactor  = 0.0001
  Prefactor  = 10.8948
  Prefactor  = 13.8976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.824771
  Prefactor  = 1.03248
 **********
 **   18 **HESSE 
 **********

 FCN=   6797.079     FROM HESSE     STATUS=OK           460 CALLS     3590 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2812        3.3264        .11579E-03   -1.5248    
   2  Prefactor     .10000E-03    6.4749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6757        1.6403        .10160E-03   -1.5449    
   4  Prefactor     24.218        23.540        .81401E-04   -1.4723    
   5  Prefactor     .13710        7.3682        .55465E-01   -1.5634    
   6  Prefactor     .10000E-03    28.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.767        18.955        .85850E-04   -1.4775    
   8  Prefactor     1.8179        4.2180        .24209E-03   -1.5438    
   9  norm          11.384        5.8612        .11873E-03   -1.5033    
  10  Prefactor     .10000E-03    2.7857        .13421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     94.136        42.537        .41423E-04   -1.3764    
  12  Prefactor     .10000E-03    3.7716        .15576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.5761        2.9051        .12176E-03   -1.5330    
  14  Prefactor     .10029E-03    999.84        .42359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.7270        .15496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6406        3.9392        .12846E-03   -1.5233    
  17  Prefactor     .10000E-03    46.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.895        6.7832        .12139E-03   -1.5048    
  19  Prefactor     13.898        29.370        .10740E-03   -1.4962    
  20  Prefactor     .10000E-03    10.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    92.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.1812        .16401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    7.5606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .82477        .21608        .28278E-03   -.99156    
  26  Prefactor     1.0325        .15978        .20372E-03   -.91654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.42015e-09
Minuit parameter uncertainties:
  1  3.32648
  2  2.88501e-06
  3  1.64031
  4  23.5495
  5  2.00965
  6  1.18512e-05
  7  18.9604
  8  4.21867
  9  5.86148
  10  1.01594e-06
  11  42.5505
  12  4.3527e-05
  13  2.90517
  14  0.0343839
  15  4.19144e-06
  16  3.93939
  17  1.61088e-05
  18  6.78369
  19  29.4001
  20  5.78185e-05
  21  5.01857e-05
  22  4.80184e-06
  23  3.02811e-07
  24  5.03797e-06
  25  0.216305
  26  0.159852
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  4.353e-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:  1.032e+00  1.599e-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:  8.248e-01  2.163e-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: 6.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/147954/likelihoodResults_464832001_465091201_4FGL_J2203.3-5009_daily_bin870.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) = 6797.07999145
delta logL = -0.00126355541943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6797.07872804
delta logL = -1.41187229019e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7421       1.0000          .0000       10.000    
     3 'Normalizat'    .82474       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0325       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=   6797.079     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      203 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.630        .90712E-02** at limit **
   2  Index         2.7449        5.9595        .50000       -.70223E-05
   3  Normalizat    .82477        .16588        .63926E-01    .32556E-04
   4  Prefactor     1.0325        .13302        .41064E-01    .15447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.74491
  Normalizat = 0.82477
  Prefactor  = 1.03248
 **********
 **   18 **HESSE 
 **********

 FCN=   6797.079     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2517        .15580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7449        6.3704        .50000       -.46791    
   3  Normalizat    .82477        .19119        .28277E-03   -.99156    
   4  Prefactor     1.0325        .15359        .20372E-03   -.91654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.156e-11
Minuit parameter uncertainties:
  1  8.03251e-06
  2  4.74017
  3  0.191346
  4  0.153655
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147954': 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) = 6797.07872789
delta logL = 9.13951225812e-09

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  8.033e-06  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.745e+00  4.740e+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.032e+00  1.537e-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:  8.248e-01  1.913e-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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/147954/cmap_HighResolution_464832001_465091201_4FGL_J2203.3-5009_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2021-09-28 03:14:35.032091', job_id='147954', GAL2='1.03', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632824075.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.14e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='870' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:14:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 147954: <4FGL_J2203.3-5009_daily_bin870> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin870> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 03:00:33 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:00:34 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:34 2021
Terminated at Tue Sep 28 03:14:36 2021
Results reported at Tue Sep 28 03:14:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin870 330.832 -50.1512 464832001 465091201 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 :                                   768.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

