/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 0 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_bin1217
RA = 330.832, Dec = -50.1512
tmin = 554774401, tmax = 555033601
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='149603', job_status='RUN', time_executed='2021-09-28 03:06:05.046449', time_epoch_executed='1632823565.05' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1217'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149603/ft1_4FGL_J2203.3-5009_daily_bin1217.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149603/ft2_4FGL_J2203.3-5009_daily_bin1217.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149603/ft1_4FGL_J2203.3-5009_daily_bin1217.fits outfile=/scratch/kocevski/149603/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1217.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=554774401.0 tmax=555033601.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.85
user 3.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149603/ft1_filtered_4FGL_J2203.3-5009_daily_bin1217.fits" evtable="EVENTS" scfile=/scratch/kocevski/149603/ft2_4FGL_J2203.3-5009_daily_bin1217.fits sctable="SC_DATA" outfile=/scratch/kocevski/149603/ltcube_554774401_555033601_4FGL_J2203.3-5009_daily_bin1217.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/149603/ft2_4FGL_J2203.3-5009_daily_bin1217.fits
.....................!
real 12.22
user 11.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149603/ft1_filtered_4FGL_J2203.3-5009_daily_bin1217.fits evtable="EVENTS" scfile=/scratch/kocevski/149603/ft2_4FGL_J2203.3-5009_daily_bin1217.fits sctable="SC_DATA" expcube=/scratch/kocevski/149603/ltcube_554774401_555033601_4FGL_J2203.3-5009_daily_bin1217.fits outfile=/scratch/kocevski/149603/expmap_554774401_555033601_4FGL_J2203.3-5009_daily_bin1217.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/149603/ltcube_554774401_555033601_4FGL_J2203.3-5009_daily_bin1217.fits
.....................!
real 190.43
user 184.87
sys 5.17

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/149603/ft1_filtered_4FGL_J2203.3-5009_daily_bin1217.fits scfile=/scratch/kocevski/149603/ft2_4FGL_J2203.3-5009_daily_bin1217.fits outfile=/scratch/kocevski/149603/cmap_554774401_555033601_4FGL_J2203.3-5009_daily_bin1217.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149603/ft1_filtered_4FGL_J2203.3-5009_daily_bin1217.fits scfile=/scratch/kocevski/149603/ft2_4FGL_J2203.3-5009_daily_bin1217.fits outfile=/scratch/kocevski/149603/cmap_HighResolution_554774401_555033601_4FGL_J2203.3-5009_daily_bin1217.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.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/149603/ft1_filtered_4FGL_J2203.3-5009_daily_bin1217.fits evtable="EVENTS" scfile=/scratch/kocevski/149603/ft2_4FGL_J2203.3-5009_daily_bin1217.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/149603/Model_4FGL_J2203.3-5009_daily_bin1217.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/149603/ft1_filtered_4FGL_J2203.3-5009_daily_bin1217.fits.....................!
real 30.45
user 29.06
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.0741       1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.269       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8573       1.0000         .10000E-03   10000.    
     9 'norm      '    2.4920       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5186       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.125       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2845       1.0000         .10000E-03   10000.    
    14 'Prefactor '    106.25       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3412       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.892       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.935       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.169       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .39989       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4474       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=   3144.959     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3098 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1726        .19735E-07** at limit **
   2  Prefactor     .10000E-03    13.269        .23526E-06** at limit **
   3  norm          9.0738        3.9951        .34731E-07    .42439E-04
   4  Prefactor     49.224        63.908       -.86934E-05   -.35507E-03
   5  Prefactor     .10000E-03    6.9057        .10490E-06** at limit **
   6  Prefactor     .10000E-03    126.61        .17638E-05** at limit **
   7  Prefactor     .10000E-03    13.355       -.25220E-06** at limit **
   8  Prefactor     1.8567        5.6111        .10625E-05    .13621E-05
   9  norm          2.4915        4.3274        .98726E-07   -.11955E-04
  10  Prefactor     5.5183        7.7871        .63639E-06   -.13388E-03
  11  Prefactor     11.110        79.805       -.39426E-05   -.68590E-04
  12  Prefactor     .10000E-03    21.149       -.15288E-05** at limit **
  13  Prefactor     5.2857        6.8163        .57549E-06   -.69041E-04
  14  Prefactor     106.19        176.47       -.86834E-05   -.12354E-03
  15  norm          .10000E-03    4.4794       -.16735E-07** at limit **
  16  Prefactor     5.3406        7.6308        .47194E-05   -.89304E-03
  17  Prefactor     .10000E-03    79.350        .11516E-05** at limit **
  18  Prefactor     .10000E-03    2.8336       -.80320E-07** at limit **
  19  Prefactor     38.890        38.949        .15632E-06   -.53993E-05
  20  Prefactor     18.934        17.636        .17181E-06    .67297E-05
  21  Prefactor     .10000E-03    74.617       -.18724E-05** at limit **
  22  Prefactor     16.169        14.704       -.62766E-06   -.78656E-05
  23  Prefactor     .10000E-03    31.714        .11470E-06** at limit **
  24  Prefactor     .10000E-03    11.885        .80446E-07** at limit **
  25  Normalizat    .39988        .32201       -.74220E-05   -.38516E-05
  26  Prefactor     1.4475        .24497        .26328E-05   -.50636E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.07385
  Prefactor  = 49.2242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.85666
  norm       = 2.49147
  Prefactor  = 5.51827
  Prefactor  = 11.11
  Prefactor  = 0.000100001
  Prefactor  = 5.28567
  Prefactor  = 106.192
  norm       = 0.0001
  Prefactor  = 5.34062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.8902
  Prefactor  = 18.9338
  Prefactor  = 0.000100001
  Prefactor  = 16.1688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.399882
  Prefactor  = 1.44746
 **********
 **   18 **HESSE 
 **********

 FCN=   3144.959     FROM HESSE     STATUS=OK           452 CALLS     3550 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1784        .80722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.0738        3.9991        .71747E-04   -1.5105    
   4  Prefactor     49.224        67.767        .57131E-04   -1.4304    
   5  Prefactor     .10000E-03    6.9335        .14391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    129.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.8567        5.5751        .21932E-03   -1.5435    
   9  norm          2.4915        4.3071        .14918E-03   -1.5392    
  10  Prefactor     5.5183        7.7956        .85515E-03   -1.5238    
  11  Prefactor     11.110        80.106        .12012E-03   -1.5041    
  12  Prefactor     .10000E-03    21.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.2857        6.7897        .15305E-03   -1.5248    
  14  Prefactor     106.19        178.92        .19507E-03   -1.3643    
  15  norm          .10000E-03    4.4802        .11592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.3406        8.0531        .86948E-03   -1.5246    
  17  Prefactor     .10000E-03    79.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8369        .92190E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     38.890        38.891        .64271E-04   -1.4460    
  20  Prefactor     18.934        17.621        .92044E-04   -1.4837    
  21  Prefactor     .10000E-03    74.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.169        14.692        .99604E-04   -1.4904    
  23  Prefactor     .10000E-03    31.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .39988        .32545        .42384E-03   -1.1731    
  26  Prefactor     1.4475        .25111        .18846E-03   -.79022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93004e-09
Minuit parameter uncertainties:
  1  5.08588e-06
  2  4.76495e-05
  3  3.99927
  4  67.8734
  5  1.70673e-06
  6  0.000235698
  7  7.71667e-06
  8  5.57663
  9  4.30766
  10  7.79704
  11  59.778
  12  0.000350333
  13  6.7907
  14  179.837
  15  1.47843e-06
  16  8.05476
  17  0.000294382
  18  3.31974e-06
  19  38.9159
  20  17.6257
  21  0.00061825
  22  14.6955
  23  1.22538e-05
  24  3.44083e-06
  25  0.327002
  26  0.251323
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.503e-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:  1.447e+00  2.513e-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:  3.999e-01  3.270e-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.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149603/likelihoodResults_554774401_555033601_4FGL_J2203.3-5009_daily_bin1217.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) = 3144.95953835
delta logL = -0.000225154771215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3144.95931503
delta logL = -1.83215388461e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0896       1.0000          .0000       10.000    
     3 'Normalizat'    .39988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4475       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=   3144.959     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      300 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    37.572        .18142E-01** at limit **
   2  Index         2.4366        5.8506        .50000        .58024E-06
   3  Normalizat    .39988        .81896E-02    .42383E-03    .11860E-03
   4  Prefactor     1.4475        .66426E-02    .18846E-03    .29341E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.43661
  Normalizat = 0.399882
  Prefactor  = 1.44747
 **********
 **   18 **HESSE 
 **********

 FCN=   3144.959     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      327 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1215.1        .54800E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4366        5.3862        .50000       -.53830    
   3  Normalizat    .39988        .49178E-01    .16953E-04   -1.1731    
   4  Prefactor     1.4475        .39892E-01    .37692E-04   -.79022    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4317e-09
Minuit parameter uncertainties:
  1  0.00544385
  2  1133.7
  3  0.049183
  4  0.0398926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149603': 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) = 3144.95931275
delta logL = 4.41255451733e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  5.444e-03  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.437e+00  1.134e+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.447e+00  3.989e-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:  3.999e-01  4.918e-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/149603/cmap_HighResolution_554774401_555033601_4FGL_J2203.3-5009_daily_bin1217.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', job_status='DONE', photon_flux_upper_limit='1.79e-07', time_completed='2021-09-28 03:14:47.041259', job_id='149603', GAL2='1.45', fit_tolerance='1e-08', EG2='0.40', EG='0.40', time_epoch_completed='1632824087.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='4.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1217' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:14:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 149603: <4FGL_J2203.3-5009_daily_bin1217> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1217 330.832 -50.1512 554774401 555033601 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 :                                   518.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             382.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            533 sec.

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

