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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1362
RA = 330.832, Dec = -50.1512
tmin = 592358401, tmax = 592617601
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='150839', job_status='RUN', time_executed='2021-09-28 03:13:34.001143', time_epoch_executed='1632824014.0' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150839/ft1_4FGL_J2203.3-5009_daily_bin1362.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150839/ft2_4FGL_J2203.3-5009_daily_bin1362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150839/ft1_4FGL_J2203.3-5009_daily_bin1362.fits outfile=/scratch/kocevski/150839/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1362.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=592358401.0 tmax=592617601.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.51
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150839/ft2_4FGL_J2203.3-5009_daily_bin1362.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/150839/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1362.fits evtable="EVENTS" outfile="/scratch/kocevski/150839/ft1_filtered_4FGL_J2203.3-5009_daily_bin1362.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/150839/ft1_filtered_4FGL_J2203.3-5009_daily_bin1362.fits" evtable="EVENTS" scfile=/scratch/kocevski/150839/ft2_4FGL_J2203.3-5009_daily_bin1362.fits sctable="SC_DATA" outfile=/scratch/kocevski/150839/ltcube_592358401_592617601_4FGL_J2203.3-5009_daily_bin1362.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/150839/ft2_4FGL_J2203.3-5009_daily_bin1362.fits
.....................!
real 12.09
user 11.74
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150839/ft1_filtered_4FGL_J2203.3-5009_daily_bin1362.fits evtable="EVENTS" scfile=/scratch/kocevski/150839/ft2_4FGL_J2203.3-5009_daily_bin1362.fits sctable="SC_DATA" expcube=/scratch/kocevski/150839/ltcube_592358401_592617601_4FGL_J2203.3-5009_daily_bin1362.fits outfile=/scratch/kocevski/150839/expmap_592358401_592617601_4FGL_J2203.3-5009_daily_bin1362.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/150839/ltcube_592358401_592617601_4FGL_J2203.3-5009_daily_bin1362.fits
.....................!
real 192.41
user 186.92
sys 5.12

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/150839/ft1_filtered_4FGL_J2203.3-5009_daily_bin1362.fits scfile=/scratch/kocevski/150839/ft2_4FGL_J2203.3-5009_daily_bin1362.fits outfile=/scratch/kocevski/150839/cmap_592358401_592617601_4FGL_J2203.3-5009_daily_bin1362.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150839/ft1_filtered_4FGL_J2203.3-5009_daily_bin1362.fits scfile=/scratch/kocevski/150839/ft2_4FGL_J2203.3-5009_daily_bin1362.fits outfile=/scratch/kocevski/150839/cmap_HighResolution_592358401_592617601_4FGL_J2203.3-5009_daily_bin1362.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.817       1.0000         .10000E-03   10000.    
     3 'norm      '    28.152       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.101       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    58.010       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.228       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2246       1.0000         .10000E-03   10000.    
     9 'norm      '    11.947       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.2390       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16166E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5638       1.0000         .10000E-03   10000.    
    14 'Prefactor '    99.763       1.0000         .10000E-03   10000.    
    15 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.434       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .56359E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4055       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0770       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82053       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=   5893.873     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     3055 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6487        .25450E-07** at limit **
   2  Prefactor     25.818        20.408        .44185E-06    .27340E-04
   3  norm          28.152        4.7699       -.75494E-07   -.35492E-04
   4  Prefactor     12.099        44.262       -.36233E-05   -.22049E-04
   5  Prefactor     .10000E-03    4.6928        .90155E-08** at limit **
   6  Prefactor     58.004        43.230       -.48562E-05   -.12011E-03
   7  Prefactor     14.221        30.164       -.78689E-05   -.98121E-04
   8  Prefactor     3.2252        2.8493        .14004E-05   -.35334E-02
   9  norm          11.947        6.5050        .54095E-06    .29385E-04
  10  Prefactor     3.2401        7.9099       -.10480E-06   -.56884E-04
  11  Prefactor     .10000E-03    10.285        .19227E-06** at limit **
  12  Prefactor     .10000E-03    10.121       -.66782E-07** at limit **
  13  Prefactor     4.5620        5.1548       -.42096E-06    .24737E-04
  14  Prefactor     99.783        113.11        .13605E-04    .12705E-03
  15  norm          .10000E-03    8.3695       -.29169E-06** at limit **
  16  Prefactor     4.0718        3.9301       -.94057E-07   -.42131E-04
  17  Prefactor     .10000E-03    22.239        .85968E-06** at limit **
  18  Prefactor     10.421        7.5993       -.67736E-06    .14775E-03
  19  Prefactor     .10000E-03    80.053       -.95077E-05** at limit **
  20  Prefactor     1.3762        15.717       -.79425E-05   -.15817E-03
  21  Prefactor     .10000E-03    53.864        .25323E-05** at limit **
  22  Prefactor     .10000E-03    3.9695        .24570E-08** at limit **
  23  Prefactor     .10000E-03    54.253       -.16516E-05** at limit **
  24  Prefactor     .10000E-03    4.2913       -.53615E-07** at limit **
  25  Normalizat    1.0771        .20362        .10712E-05    .16982E-03
  26  Prefactor     .82043        .14963        .34273E-06    .18768E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.8181
  norm       = 28.1523
  Prefactor  = 12.099
  Prefactor  = 0.0001
  Prefactor  = 58.0035
  Prefactor  = 14.2214
  Prefactor  = 3.22522
  norm       = 11.9474
  Prefactor  = 3.24015
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.56201
  Prefactor  = 99.7832
  norm       = 0.0001
  Prefactor  = 4.07185
  Prefactor  = 0.0001
  Prefactor  = 10.4213
  Prefactor  = 0.000100001
  Prefactor  = 1.37615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0771
  Prefactor  = 0.820427
 **********
 **   18 **HESSE 
 **********

 FCN=   5893.873     FROM HESSE     STATUS=OK           456 CALLS     3511 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7470        .24391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.818        20.403        .78841E-04   -1.4691    
   3  norm          28.152        4.7701        .66620E-04   -1.4646    
   4  Prefactor     12.099        44.222        .11515E-03   -1.5012    
   5  Prefactor     .10000E-03    4.7234        .16237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     58.004        43.413        .52673E-04   -1.4183    
   7  Prefactor     14.221        30.212        .10618E-03   -1.4954    
   8  Prefactor     3.2252        5.2792        .10553E-02   -1.5349    
   9  norm          11.947        6.5032        .11590E-03   -1.5017    
  10  Prefactor     3.2401        7.8961        .22506E-03   -1.5348    
  11  Prefactor     .10000E-03    10.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5620        5.1523        .17050E-03   -1.5281    
  14  Prefactor     99.783        114.03        .40249E-04   -1.3707    
  15  norm          .10000E-03    8.6636        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0718        3.9375        .14260E-03   -1.5304    
  17  Prefactor     .10000E-03    22.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.421        7.6512        .12404E-03   -1.5062    
  19  Prefactor     .10000E-03    81.322        .42194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3762        16.042        .36571E-03   -1.5473    
  21  Prefactor     .10000E-03    53.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.9928        .14937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    54.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.2929        .15532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0771        .24329        .26725E-03   -.90490    
  26  Prefactor     .82043        .17583        .23394E-03   -.98980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17227e-08
Minuit parameter uncertainties:
  1  4.96075e-07
  2  20.408
  3  4.77013
  4  44.3425
  5  9.06719e-06
  6  43.4365
  7  30.2446
  8  5.28001
  9  6.50362
  10  7.89862
  11  8.91079e-06
  12  0.000293028
  13  5.15276
  14  114.286
  15  4.34569e-06
  16  3.93779
  17  2.75583e-05
  18  7.65191
  19  0.000561187
  20  9.3999
  21  0.000295396
  22  3.71043e-06
  23  4.59508e-05
  24  8.25063e-07
  25  0.243546
  26  0.175955
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.930e-04  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:  8.204e-01  1.760e-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.077e+00  2.435e-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: 9.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150839/likelihoodResults_592358401_592617601_4FGL_J2203.3-5009_daily_bin1362.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) = 5893.8730152
delta logL = -0.000464770411782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5893.87255081
delta logL = -3.83934093406e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7454       1.0000          .0000       10.000    
     3 'Normalizat'    1.0771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82048       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=   5893.873     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      239 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    175.12        .18142E-02** at limit **
   2  Index         2.7713        6.0157        .50000       -.39044E-05
   3  Normalizat    1.0771        .20634E-01    .26725E-03    .24461E-03
   4  Prefactor     .82043        .16072E-01    .23394E-03    .20989E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100172
  Index      = 2.77133
  Normalizat = 1.0771
  Prefactor  = 0.820426
 **********
 **   18 **HESSE 
 **********

 FCN=   5893.873     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    783.71        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7713        5.7701        .50000       -.46199    
   3  Normalizat    1.0771        .47740E-01    .53450E-04   -.90490    
   4  Prefactor     .82043        .37186E-01    .93577E-05   -.98980    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.11764e-09
Minuit parameter uncertainties:
  1  0.0235591
  2  1267.26
  3  0.0477424
  4  0.0371871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150839': 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) = 5893.8725504
delta logL = 2.66036295216e-08

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.002e-04  2.356e-02  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.771e+00  1.267e+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:  8.204e-01  3.719e-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:  1.077e+00  4.774e-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/150839/cmap_HighResolution_592358401_592617601_4FGL_J2203.3-5009_daily_bin1362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.42e-03', job_status='DONE', photon_flux_upper_limit='9.41e-08', time_completed='2021-09-28 03:25:44.202099', job_id='150839', GAL2='0.82', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1632824744.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.66e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1362' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:25:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 150839: <4FGL_J2203.3-5009_daily_bin1362> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1362> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:10:29 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:10:31 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:10:31 2021
Terminated at Tue Sep 28 03:25:45 2021
Results reported at Tue Sep 28 03:25:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1362 330.832 -50.1512 592358401 592617601 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 :                                   703.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

