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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1186
RA = 330.832, Dec = -50.1512
tmin = 546739201, tmax = 546998401
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='149553', job_status='RUN', time_executed='2021-09-28 03:08:35.026373', time_epoch_executed='1632823715.03' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1186'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149553/ft1_4FGL_J2203.3-5009_daily_bin1186.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149553/ft2_4FGL_J2203.3-5009_daily_bin1186.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149553/ft1_4FGL_J2203.3-5009_daily_bin1186.fits outfile=/scratch/kocevski/149553/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1186.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=546739201.0 tmax=546998401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.64
user 3.41
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/149553/ft2_4FGL_J2203.3-5009_daily_bin1186.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/149553/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1186.fits evtable="EVENTS" outfile="/scratch/kocevski/149553/ft1_filtered_4FGL_J2203.3-5009_daily_bin1186.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/149553/ft1_filtered_4FGL_J2203.3-5009_daily_bin1186.fits" evtable="EVENTS" scfile=/scratch/kocevski/149553/ft2_4FGL_J2203.3-5009_daily_bin1186.fits sctable="SC_DATA" outfile=/scratch/kocevski/149553/ltcube_546739201_546998401_4FGL_J2203.3-5009_daily_bin1186.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/149553/ft2_4FGL_J2203.3-5009_daily_bin1186.fits
.....................!
real 12.20
user 11.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149553/ft1_filtered_4FGL_J2203.3-5009_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/149553/ft2_4FGL_J2203.3-5009_daily_bin1186.fits sctable="SC_DATA" expcube=/scratch/kocevski/149553/ltcube_546739201_546998401_4FGL_J2203.3-5009_daily_bin1186.fits outfile=/scratch/kocevski/149553/expmap_546739201_546998401_4FGL_J2203.3-5009_daily_bin1186.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/149553/ltcube_546739201_546998401_4FGL_J2203.3-5009_daily_bin1186.fits
.....................!
real 191.56
user 185.81
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/149553/ft1_filtered_4FGL_J2203.3-5009_daily_bin1186.fits scfile=/scratch/kocevski/149553/ft2_4FGL_J2203.3-5009_daily_bin1186.fits outfile=/scratch/kocevski/149553/cmap_546739201_546998401_4FGL_J2203.3-5009_daily_bin1186.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/149553/ft1_filtered_4FGL_J2203.3-5009_daily_bin1186.fits scfile=/scratch/kocevski/149553/ft2_4FGL_J2203.3-5009_daily_bin1186.fits outfile=/scratch/kocevski/149553/cmap_HighResolution_546739201_546998401_4FGL_J2203.3-5009_daily_bin1186.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149553/ft1_filtered_4FGL_J2203.3-5009_daily_bin1186.fits evtable="EVENTS" scfile=/scratch/kocevski/149553/ft2_4FGL_J2203.3-5009_daily_bin1186.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149553/Model_4FGL_J2203.3-5009_daily_bin1186.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/149553/ft1_filtered_4FGL_J2203.3-5009_daily_bin1186.fits.....................!
real 25.25
user 24.08
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.369       1.0000         .10000E-03   10000.    
     3 'norm      '    6.4952       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11252E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    100.56       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.871       1.0000         .10000E-03   10000.    
     9 'norm      '    9.6447       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5212       1.0000         .10000E-03   10000.    
    14 'Prefactor '    109.65       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3332       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1291       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.485       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .89246       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0283       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2173.464     FROM MIGRAD    STATUS=CONVERGED     90 CALLS     2530 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6424        .11082E-05** at limit **
   2  Prefactor     23.367        1.0409       -.86101E-06    .89633E-04
   3  norm          6.4950        5.1404       -.63502E-05   -.19076E-03
   4  Prefactor     .10057E-03    16.704       -.18098E-04** at limit **
   5  Prefactor     .10432E-03    15.245        .58243E-04** at limit **
   6  Prefactor     100.56        1.0018        .89603E-07   -.10930E-03
   7  Prefactor     .10338E-03    27.024        .51517E-04** at limit **
   8  Prefactor     17.874        1.0211        .56288E-06    .40657E-03
   9  norm          9.6443        1.0035        .62867E-07    .67305E-04
  10  Prefactor     .10001E-03    18.251        .25030E-04** at limit **
  11  Prefactor     .11052E-03    187.33       -.37043E-03** at limit **
  12  Prefactor     .10000E-03    8.8599       -.70351E-05** at limit **
  13  Prefactor     4.5216        1.0453        .11818E-05    .85480E-03
  14  Prefactor     109.65        1.0867        .62112E-06   -.93036E-03
  15  norm          5.3336        1.0053        .35997E-07    .10668E-04
  16  Prefactor     8.1295        1.0198        .72911E-06    .69276E-03
  17  Prefactor     .10272E-03    19.600        .85819E-04** at limit **
  18  Prefactor     .10000E-03    15.656       -.21073E-04** at limit **
  19  Prefactor     30.487        1.0978        .12063E-05   -.28894E-03
  20  Prefactor     .10000E-03    6.0206        .20237E-05** at limit **
  21  Prefactor     .10872E-03    29.916        .27908E-04** at limit **
  22  Prefactor     .10000E-03    7.2732        .18308E-05** at limit **
  23  Prefactor     .10277E-03    32.575       -.10270E-03** at limit **
  24  Prefactor     .10000E-03    9.8006        .60016E-05** at limit **
  25  Normalizat    .89230        .35794        .10202E-04    .12736E-03
  26  Prefactor     1.0285        .28409       -.10132E-05    .72358E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 23.3668
  norm       = 6.49498
  Prefactor  = 0.000100565
  Prefactor  = 0.000104316
  Prefactor  = 100.562
  Prefactor  = 0.00010338
  Prefactor  = 17.8742
  norm       = 9.6443
  Prefactor  = 0.000100011
  Prefactor  = 0.000110522
  Prefactor  = 0.0001
  Prefactor  = 4.52163
  Prefactor  = 109.653
  norm       = 5.33358
  Prefactor  = 8.12947
  Prefactor  = 0.000102723
  Prefactor  = 0.000100001
  Prefactor  = 30.4867
  Prefactor  = 0.0001
  Prefactor  = 0.000108725
  Prefactor  = 0.0001
  Prefactor  = 0.000102775
  Prefactor  = 0.0001
  Normalizat = 0.892298
  Prefactor  = 1.02849
 **********
 **   18 **HESSE 
 **********

 FCN=   2173.464     FROM HESSE     STATUS=OK           504 CALLS     3034 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6382        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.367        37.486        .20715E-02   -1.4741    
   3  norm          6.4950        5.1716        .39368E-02   -1.5198    
   4  Prefactor     .10057E-03    53.890        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10432E-03    58.847        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     100.56        66.906        .10023E-02   -1.3699    
   7  Prefactor     .10338E-03    83.914        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.874        13.344        .23686E-02   -1.4862    
   9  norm          9.6443        9.4797        .32259E-02   -1.5087    
  10  Prefactor     .10001E-03    18.075        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11052E-03    219.11        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.8505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5216        6.3523        .47335E-02   -1.5283    
  14  Prefactor     109.65        145.00        .96027E-03   -1.3610    
  15  norm          5.3336        9.3360        .43507E-02   -1.5246    
  16  Prefactor     8.1295        7.5586        .35155E-02   -1.5138    
  17  Prefactor     .10272E-03    67.753        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.487        47.332        .18142E-02   -1.4603    
  20  Prefactor     .10000E-03    6.0188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10872E-03    89.300        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2653        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10277E-03    49.239        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.8030        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .89230        .33686        .66058E-01   -.96731    
  26  Prefactor     1.0285        .25002        .41393E-01   -.91786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7934e-07
Minuit parameter uncertainties:
  1  8.56916e-05
  2  37.5239
  3  5.17199
  4  0.0110471
  5  0.0319043
  6  66.9559
  7  0.0337283
  8  13.3466
  9  9.48117
  10  0.000887952
  11  0.0963833
  12  2.09532e-05
  13  6.35328
  14  145.472
  15  9.33855
  16  7.55952
  17  0.0271965
  18  0.000192839
  19  47.3905
  20  5.71449e-05
  21  0.0559087
  22  5.24007e-05
  23  0.0233963
  24  8.3136e-05
  25  0.337657
  26  0.250305
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.095e-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.028e+00  2.503e-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.923e-01  3.377e-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.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149553/likelihoodResults_546739201_546998401_4FGL_J2203.3-5009_daily_bin1186.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) = 2173.46403928
delta logL = -0.000536016069873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2173.46350326
delta logL = -4.07544575864e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7393       1.0000          .0000       10.000    
     3 'Normalizat'    .89229       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0285       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=   2173.464     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    109.21        .90712E-02** at limit **
   2  Index         2.7393        5.1370        .50000       -.30593E-07
   3  Normalizat    .89229        .28983E-01    .66058E-01    .28349E-04
   4  Prefactor     1.0285        .22899E-01    .41379E-01    .33327E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.73929
  Normalizat = 0.892294
  Prefactor  = 1.02849
 **********
 **   18 **HESSE 
 **********

 FCN=   2173.464     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      235 TOTAL
                     EDM=   .51E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    853.48        .13543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7393        6.3694        .50000       -.46917    
   3  Normalizat    .89229        .92331E-01    .29221E-03   -.96731    
   4  Prefactor     1.0285        .73045E-01    .21545E-03   -.91786    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.05419e-12
Minuit parameter uncertainties:
  1  0.000358088
  2  3199.28
  3  0.0923469
  4  0.0730521
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149553': 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): 102
logL (Free Index) = 2173.46350326
delta logL = 5.63886715099e-11

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.581e-04  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.739e+00  3.199e+03  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.028e+00  7.305e-02  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.923e-01  9.235e-02  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/149553/cmap_HighResolution_546739201_546998401_4FGL_J2203.3-5009_daily_bin1186.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', job_status='DONE', photon_flux_upper_limit='1.79e-07', time_completed='2021-09-28 03:16:03.832104', job_id='149553', GAL2='1.03', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1632824163.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='5.64e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1186' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:16:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 149553: <4FGL_J2203.3-5009_daily_bin1186> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1186> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:05:50 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:05:53 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:53 2021
Terminated at Tue Sep 28 03:16:04 2021
Results reported at Tue Sep 28 03:16:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1186 330.832 -50.1512 546739201 546998401 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 :                                   443.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            614 sec.

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

