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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1631
RA = 330.832, Dec = -50.1512
tmin = 662083201, tmax = 662342401
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='561372', job_status='RUN', time_executed='2021-12-28 00:37:55.993306', time_epoch_executed='1640680675.99' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561372/ft1_4FGL_J2203.3-5009_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561372/ft2_4FGL_J2203.3-5009_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561372/ft1_4FGL_J2203.3-5009_daily_bin1631.fits outfile=/scratch/kocevski/561372/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1631.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=662083201.0 tmax=662342401.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.93
user 3.69
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/561372/ft2_4FGL_J2203.3-5009_daily_bin1631.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/561372/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1631.fits evtable="EVENTS" outfile="/scratch/kocevski/561372/ft1_filtered_4FGL_J2203.3-5009_daily_bin1631.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/561372/ft1_filtered_4FGL_J2203.3-5009_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/561372/ft2_4FGL_J2203.3-5009_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/561372/ltcube_662083201_662342401_4FGL_J2203.3-5009_daily_bin1631.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/561372/ft2_4FGL_J2203.3-5009_daily_bin1631.fits
.....................!
real 12.29
user 11.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561372/ft1_filtered_4FGL_J2203.3-5009_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/561372/ft2_4FGL_J2203.3-5009_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/561372/ltcube_662083201_662342401_4FGL_J2203.3-5009_daily_bin1631.fits outfile=/scratch/kocevski/561372/expmap_662083201_662342401_4FGL_J2203.3-5009_daily_bin1631.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/561372/ltcube_662083201_662342401_4FGL_J2203.3-5009_daily_bin1631.fits
.....................!
real 191.32
user 185.87
sys 5.05

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/561372/ft1_filtered_4FGL_J2203.3-5009_daily_bin1631.fits scfile=/scratch/kocevski/561372/ft2_4FGL_J2203.3-5009_daily_bin1631.fits outfile=/scratch/kocevski/561372/cmap_662083201_662342401_4FGL_J2203.3-5009_daily_bin1631.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561372/ft1_filtered_4FGL_J2203.3-5009_daily_bin1631.fits scfile=/scratch/kocevski/561372/ft2_4FGL_J2203.3-5009_daily_bin1631.fits outfile=/scratch/kocevski/561372/cmap_HighResolution_662083201_662342401_4FGL_J2203.3-5009_daily_bin1631.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/561372/ft1_filtered_4FGL_J2203.3-5009_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/561372/ft2_4FGL_J2203.3-5009_daily_bin1631.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/561372/Model_4FGL_J2203.3-5009_daily_bin1631.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/561372/ft1_filtered_4FGL_J2203.3-5009_daily_bin1631.fits.....................!
real 39.59
user 38.31
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6422       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.405       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.7969       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12146E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.521       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2045       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.537       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.8104       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1511       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.580       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10406E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8590       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9242       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.791       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5204       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.339       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .84424       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0508       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=   4854.399     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     3039 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6423        4.0874        .11065E-06   -.16930E-04
   2  Prefactor     21.417        26.092        .25737E-06    .36841E-04
   3  norm          .10000E-03    1.0562        .72069E-08** at limit **
   4  Prefactor     .10000E-03    24.327        .22398E-06** at limit **
   5  Prefactor     5.7964        9.0783        .53083E-05   -.13868E-03
   6  Prefactor     .10000E-03    33.208       -.43474E-06** at limit **
   7  Prefactor     17.526        44.788        .82551E-06    .49111E-05
   8  Prefactor     .10000E-03    2.9184       -.16316E-06** at limit **
   9  norm          3.2038        3.1609       -.12885E-06   -.30293E-04
  10  Prefactor     10.537        9.5330        .10875E-06   -.62842E-05
  11  Prefactor     3.7966        54.008       -.20385E-06   -.16226E-04
  12  Prefactor     .10000E-03    6.1858       -.18092E-05** at limit **
  13  Prefactor     1.1516        3.0616        .44537E-06    .22456E-04
  14  Prefactor     10.528        107.25       -.10590E-05   -.30068E-04
  15  norm          .10000E-03    2.2557       -.34482E-07** at limit **
  16  Prefactor     .10000E-03    2.5327       -.22415E-07** at limit **
  17  Prefactor     .10000E-03    19.740       -.10569E-06** at limit **
  18  Prefactor     3.8589        5.4286        .38746E-06   -.37144E-04
  19  Prefactor     .10000E-03    15.045        .63864E-07** at limit **
  20  Prefactor     4.9234        9.3850        .10516E-05   -.17884E-04
  21  Prefactor     10.890        140.33       -.28895E-06    .50865E-04
  22  Prefactor     4.5203        4.1136        .16142E-07   -.64851E-05
  23  Prefactor     .10000E-03    21.998        .33159E-06** at limit **
  24  Prefactor     29.343        19.265        .24481E-06    .10128E-04
  25  Normalizat    .84420        .19515       -.99457E-06   -.47444E-05
  26  Prefactor     1.0507        .15794       -.67633E-06    .46063E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64234
  Prefactor  = 21.4165
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.79644
  Prefactor  = 0.0001
  Prefactor  = 17.5258
  Prefactor  = 0.0001
  norm       = 3.20385
  Prefactor  = 10.5374
  Prefactor  = 3.79665
  Prefactor  = 0.0001
  Prefactor  = 1.15159
  Prefactor  = 10.5276
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.85892
  Prefactor  = 0.0001
  Prefactor  = 4.92342
  Prefactor  = 10.89
  Prefactor  = 4.52027
  Prefactor  = 0.0001
  Prefactor  = 29.3427
  Normalizat = 0.844199
  Prefactor  = 1.05075
 **********
 **   18 **HESSE 
 **********

 FCN=   4854.399     FROM HESSE     STATUS=OK           460 CALLS     3499 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6423        4.0793        .14462E-03   -1.5326    
   2  Prefactor     21.417        26.084        .86574E-04   -1.4782    
   3  norm          .10000E-03    1.0743        .69902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.7964        9.0886        .83405E-03   -1.5226    
   6  Prefactor     .10000E-03    33.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.526        44.784        .95683E-04   -1.4870    
   8  Prefactor     .10000E-03    2.9770        .11621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2038        3.1654        .11942E-03   -1.5350    
  10  Prefactor     10.537        9.5301        .12343E-03   -1.5059    
  11  Prefactor     3.7966        54.018        .20678E-03   -1.5318    
  12  Prefactor     .10000E-03    6.2238        .16873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1516        3.0006        .19098E-03   -1.5493    
  14  Prefactor     10.528        107.27        .12318E-03   -1.5059    
  15  norm          .10000E-03    2.2567        .10220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6278        .21617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8589        5.4338        .18033E-03   -1.5315    
  19  Prefactor     .10000E-03    15.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9234        9.3450        .18125E-03   -1.5264    
  21  Prefactor     10.890        137.17        .12196E-03   -1.5048    
  22  Prefactor     4.5203        4.1156        .13136E-03   -1.5283    
  23  Prefactor     .10000E-03    22.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.343        19.307        .73968E-04   -1.4624    
  25  Normalizat    .84420        .22088        .26300E-03   -.98450    
  26  Prefactor     1.0507        .17967        .20211E-03   -.91057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34251e-10
Minuit parameter uncertainties:
  1  4.07956
  2  26.098
  3  2.73234e-06
  4  6.12167e-05
  5  9.09074
  6  0.000104806
  7  44.8696
  8  6.15967e-06
  9  3.16555
  10  9.53146
  11  28.6726
  12  2.43682e-05
  13  3.00102
  14  67.3663
  15  1.10097e-07
  16  9.06509e-06
  17  4.40984e-05
  18  5.43444
  19  3.22183e-06
  20  9.34773
  21  77.5194
  22  4.11589
  23  3.73233e-06
  24  19.3107
  25  0.221114
  26  0.179774
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  2.437e-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.051e+00  1.798e-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.442e-01  2.211e-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: 8.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/561372/likelihoodResults_662083201_662342401_4FGL_J2203.3-5009_daily_bin1631.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) = 4854.40017956
delta logL = -0.000766081157963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4854.39941368
delta logL = -2.01404873224e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7284       1.0000          .0000       10.000    
     3 'Normalizat'    .84413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0508       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4854.399     FROM MIGRAD    STATUS=FAILED        86 CALLS      235 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10116E-03    173.19        .16956E-02** at limit **
   2  Index         2.6514        7.9457        .50000        .11531E-04
   3  Normalizat    .84420        .25533E-01    .26300E-03    .28011E-04
   4  Prefactor     1.0507        .21781E-01    .20211E-03    .30543E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4854.399     FROM SIMPLEX   STATUS=UNCHANGED    132 CALLS      367 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10116E-03    173.19        .37090E-03** at limit **
   2  Index         2.6514        7.9457        .94115E-04    .11531E-04
   3  Normalizat    .84420        .25533E-01    .80521E-06    .28011E-04
   4  Prefactor     1.0507        .21781E-01    .64344E-06    .30543E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4854.399     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      409 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1021.9        .33913E-03** at limit **
   2  Index         2.4211        5.2195        .50000        .27808E-07
   3  Normalizat    .84420        .78844E-01    .10520E-04   -.17291E-03
   4  Prefactor     1.0507        .67258E-01    .80845E-05   -.22078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.42108
  Normalizat = 0.844199
  Prefactor  = 1.05075
 **********
 **   18 **HESSE 
 **********

 FCN=   4854.399     FROM HESSE     STATUS=OK            29 CALLS      438 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2525        .67826E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4211        7.1447        .50000       -.54192    
   3  Normalizat    .84420        .20683        .21040E-05   -.98450    
   4  Prefactor     1.0507        .17648        .16169E-05   -.91057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80675e-11
Minuit parameter uncertainties:
  1  6.80645e-06
  2  157.671
  3  0.207022
  4  0.176579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561372': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4854.39941291
delta logL = 5.6923545344e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  6.806e-06  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.421e+00  1.577e+02  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.051e+00  1.766e-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.442e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.832 -50.151

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/561372/cmap_HighResolution_662083201_662342401_4FGL_J2203.3-5009_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', job_status='DONE', photon_flux_upper_limit='8.70e-08', time_completed='2021-12-28 00:48:29.406928', job_id='561372', GAL2='1.05', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1640681309.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='5.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1631' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:48:29 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 561372: <4FGL_J2203.3-5009_daily_bin1631> in cluster <slac> Done

Job <4FGL_J2203.3-5009_daily_bin1631> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Dec 28 00:35:22 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:35:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:35:23 2021
Terminated at Tue Dec 28 00:48:30 2021
Results reported at Tue Dec 28 00:48:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1631 330.832 -50.1512 662083201 662342401 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 :                                   636.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

