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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin269
RA = 330.832, Dec = -50.1512
tmin = 309052801, tmax = 309312001
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='144968', job_status='RUN', time_executed='2021-09-28 02:52:52.810576', time_epoch_executed='1632822772.81' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/144968

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/144968/ft1_4FGL_J2203.3-5009_daily_bin269.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/144968/ft2_4FGL_J2203.3-5009_daily_bin269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/144968/ft1_4FGL_J2203.3-5009_daily_bin269.fits outfile=/scratch/kocevski/144968/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin269.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=309052801.0 tmax=309312001.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.41
user 3.19
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/144968/ft1_filtered_4FGL_J2203.3-5009_daily_bin269.fits" evtable="EVENTS" scfile=/scratch/kocevski/144968/ft2_4FGL_J2203.3-5009_daily_bin269.fits sctable="SC_DATA" outfile=/scratch/kocevski/144968/ltcube_309052801_309312001_4FGL_J2203.3-5009_daily_bin269.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/144968/ft2_4FGL_J2203.3-5009_daily_bin269.fits
.....................!
real 11.97
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/144968/ft1_filtered_4FGL_J2203.3-5009_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/144968/ft2_4FGL_J2203.3-5009_daily_bin269.fits sctable="SC_DATA" expcube=/scratch/kocevski/144968/ltcube_309052801_309312001_4FGL_J2203.3-5009_daily_bin269.fits outfile=/scratch/kocevski/144968/expmap_309052801_309312001_4FGL_J2203.3-5009_daily_bin269.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/144968/ltcube_309052801_309312001_4FGL_J2203.3-5009_daily_bin269.fits
.....................!
real 189.39
user 184.19
sys 4.77

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/144968/ft1_filtered_4FGL_J2203.3-5009_daily_bin269.fits scfile=/scratch/kocevski/144968/ft2_4FGL_J2203.3-5009_daily_bin269.fits outfile=/scratch/kocevski/144968/cmap_309052801_309312001_4FGL_J2203.3-5009_daily_bin269.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/144968/ft1_filtered_4FGL_J2203.3-5009_daily_bin269.fits scfile=/scratch/kocevski/144968/ft2_4FGL_J2203.3-5009_daily_bin269.fits outfile=/scratch/kocevski/144968/cmap_HighResolution_309052801_309312001_4FGL_J2203.3-5009_daily_bin269.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.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/144968/ft1_filtered_4FGL_J2203.3-5009_daily_bin269.fits evtable="EVENTS" scfile=/scratch/kocevski/144968/ft2_4FGL_J2203.3-5009_daily_bin269.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/144968/Model_4FGL_J2203.3-5009_daily_bin269.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/144968/ft1_filtered_4FGL_J2203.3-5009_daily_bin269.fits.....................!
real 57.03
user 55.62
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.687       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8415       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.455       1.0000         .10000E-03   10000.    
     6 'Prefactor '    78.903       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1127       1.0000         .10000E-03   10000.    
     9 'norm      '    2.6592       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.391       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14859E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.525       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9468       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6479       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.5315       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99727       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93042       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=   7735.213     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3097 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5944        .37194E-07** at limit **
   2  Prefactor     11.687        11.279        .54981E-07   -.86067E-05
   3  norm          2.8416        1.8610       -.29710E-07   -.14058E-03
   4  Prefactor     .10000E-03    18.680        .78023E-05** at limit **
   5  Prefactor     11.455        7.2712        .12654E-06   -.61638E-03
   6  Prefactor     78.907        27.462       -.11474E-05   -.93856E-04
   7  Prefactor     .10000E-03    7.8235       -.72796E-07** at limit **
   8  Prefactor     1.1137        3.8453       -.12665E-06   -.50225E-03
   9  norm          2.6590        2.8603        .10511E-06   -.66946E-04
  10  Prefactor     .10000E-03    2.4390        .17142E-08** at limit **
  11  Prefactor     33.295        33.860       -.21318E-05   -.20757E-03
  12  Prefactor     .10010E-03    4.9952        .18282E-05** at limit **
  13  Prefactor     .10000E-03    1.7822       -.16612E-06** at limit **
  14  Prefactor     .10000E-03    20.063       -.84764E-05** at limit **
  15  norm          .10000E-03    3.2155       -.19096E-07** at limit **
  16  Prefactor     .10000E-03    1.6867       -.21590E-07** at limit **
  17  Prefactor     .10000E-03    10.799        .54473E-06** at limit **
  18  Prefactor     22.526        6.6234       -.13005E-06   -.13095E-03
  19  Prefactor     1.9440        8.1617        .30542E-05   -.73663E-03
  20  Prefactor     .10000E-03    3.1002       -.91179E-07** at limit **
  21  Prefactor     .10000E-03    38.563        .92354E-06** at limit **
  22  Prefactor     3.6488        5.1008       -.84256E-06   -.15061E-03
  23  Prefactor     .10000E-03    14.085       -.23882E-05** at limit **
  24  Prefactor     2.5368        31.234       -.99591E-05   -.70719E-04
  25  Normalizat    .99689        .16893        .13569E-05   -.25557E-03
  26  Prefactor     .93065        .12573       -.45371E-06   -.12139E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 11.6869
  norm       = 2.84156
  Prefactor  = 0.000100001
  Prefactor  = 11.4551
  Prefactor  = 78.9073
  Prefactor  = 0.0001
  Prefactor  = 1.11367
  norm       = 2.65898
  Prefactor  = 0.0001
  Prefactor  = 33.2949
  Prefactor  = 0.000100097
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5259
  Prefactor  = 1.94397
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.64882
  Prefactor  = 0.0001
  Prefactor  = 2.53679
  Normalizat = 0.996895
  Prefactor  = 0.930654
 **********
 **   18 **HESSE 
 **********

 FCN=   7735.213     FROM HESSE     STATUS=OK           456 CALLS     3553 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6136        .10841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.687        11.277        .11718E-03   -1.5024    
   3  norm          2.8416        1.8556        .93435E-04   -1.5371    
   4  Prefactor     .10000E-03    18.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.455        7.3221        .59183E-03   -1.5031    
   6  Prefactor     78.907        27.430        .45211E-04   -1.3929    
   7  Prefactor     .10000E-03    7.8375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1137        3.8693        .30050E-03   -1.5497    
   9  norm          2.6590        2.8470        .14753E-03   -1.5382    
  10  Prefactor     .10000E-03    2.4462        .13413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     33.295        33.399        .69346E-04   -1.4553    
  12  Prefactor     .10010E-03    21.682        .35859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3698        .22553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2373        .15402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.7371        .22286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.526        6.6608        .84397E-04   -1.4758    
  19  Prefactor     1.9440        27.463        .14874E-02   -1.5429    
  20  Prefactor     .10000E-03    3.1093        .15123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    38.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.6488        5.1025        .21151E-03   -1.5326    
  23  Prefactor     .10000E-03    14.100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.5368        31.657        .25672E-03   -1.5389    
  25  Normalizat    .99689        .19433        .26304E-03   -.93135    
  26  Prefactor     .93065        .14578        .21286E-03   -.95078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07696e-08
Minuit parameter uncertainties:
  1  1.98165e-06
  2  11.2792
  3  1.85559
  4  0.000223228
  5  7.32262
  6  27.4342
  7  7.84491e-06
  8  3.87021
  9  2.84712
  10  3.2481e-07
  11  33.4173
  12  0.00289661
  13  3.95066e-05
  14  0.0002743
  15  2.15732e-06
  16  2.76182e-06
  17  1.10825e-05
  18  6.66103
  19  14.621
  20  1.79168e-06
  21  4.12715e-05
  22  5.10315
  23  5.56033e-05
  24  17.9341
  25  0.19447
  26  0.145841
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.001e-04  2.897e-03  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:  9.307e-01  1.458e-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:  9.969e-01  1.945e-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: 7.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/144968/likelihoodResults_309052801_309312001_4FGL_J2203.3-5009_daily_bin269.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) = 7735.21293661
delta logL = -0.000217054691348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7735.21271977
delta logL = -2.1721371013e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12109E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6831       1.0000          .0000       10.000    
     3 'Normalizat'    .99697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93062       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=   7735.213     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      282 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11954E-03    3.7755        .61593E-01** at limit **
   2  Index         2.2107        6.0770        .50000        .19514E-05
   3  Normalizat    .99690        .34391E-02    .26304E-03   -.34965E-04
   4  Prefactor     .93065        .27128E-02    .21286E-03   -.14527E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000119543
  Index      = 2.21069
  Normalizat = 0.996896
  Prefactor  = 0.930653
 **********
 **   18 **HESSE 
 **********

 FCN=   7735.213     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      321 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11954E-03    3.4571        .63726E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2107        5.9859        .50000       -.59181    
   3  Normalizat    .99690        .33596E-02    .10522E-04   -.93134    
   4  Prefactor     .93065        .26501E-02    .85143E-05   -.95078    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.16692e-10
Minuit parameter uncertainties:
  1  0.0164402
  2  80.9938
  3  0.00335957
  4  0.00265008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/144968': 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) = 7735.21271774
delta logL = 1.81003815669e-06

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.195e-04  1.644e-02  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.211e+00  8.099e+01  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:  9.307e-01  2.650e-03  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:  9.969e-01  3.360e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/144968/cmap_HighResolution_309052801_309312001_4FGL_J2203.3-5009_daily_bin269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-28 03:06:42.555126', job_id='144968', GAL2='0.93', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1632823602.56', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.81e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='269' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:06:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 144968: <4FGL_J2203.3-5009_daily_bin269> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin269> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 02:50:20 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 02:50:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 02:50:22 2021
Terminated at Tue Sep 28 03:06:43 2021
Results reported at Tue Sep 28 03:06:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin269 330.832 -50.1512 309052801 309312001 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 :                                   828.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

