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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1382
RA = 330.832, Dec = -50.1512
tmin = 597542401, tmax = 597801601
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='150876', job_status='RUN', time_executed='2021-09-28 03:11:28.227531', time_epoch_executed='1632823888.23' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150876/ft1_4FGL_J2203.3-5009_daily_bin1382.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150876/ft2_4FGL_J2203.3-5009_daily_bin1382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150876/ft1_4FGL_J2203.3-5009_daily_bin1382.fits outfile=/scratch/kocevski/150876/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1382.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=597542401.0 tmax=597801601.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.61
user 3.38
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150876/ft1_filtered_4FGL_J2203.3-5009_daily_bin1382.fits" evtable="EVENTS" scfile=/scratch/kocevski/150876/ft2_4FGL_J2203.3-5009_daily_bin1382.fits sctable="SC_DATA" outfile=/scratch/kocevski/150876/ltcube_597542401_597801601_4FGL_J2203.3-5009_daily_bin1382.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/150876/ft2_4FGL_J2203.3-5009_daily_bin1382.fits
.....................!
real 12.06
user 11.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150876/ft1_filtered_4FGL_J2203.3-5009_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/150876/ft2_4FGL_J2203.3-5009_daily_bin1382.fits sctable="SC_DATA" expcube=/scratch/kocevski/150876/ltcube_597542401_597801601_4FGL_J2203.3-5009_daily_bin1382.fits outfile=/scratch/kocevski/150876/expmap_597542401_597801601_4FGL_J2203.3-5009_daily_bin1382.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/150876/ltcube_597542401_597801601_4FGL_J2203.3-5009_daily_bin1382.fits
.....................!
real 190.10
user 184.97
sys 4.81

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/150876/ft1_filtered_4FGL_J2203.3-5009_daily_bin1382.fits scfile=/scratch/kocevski/150876/ft2_4FGL_J2203.3-5009_daily_bin1382.fits outfile=/scratch/kocevski/150876/cmap_597542401_597801601_4FGL_J2203.3-5009_daily_bin1382.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/150876/ft1_filtered_4FGL_J2203.3-5009_daily_bin1382.fits scfile=/scratch/kocevski/150876/ft2_4FGL_J2203.3-5009_daily_bin1382.fits outfile=/scratch/kocevski/150876/cmap_HighResolution_597542401_597801601_4FGL_J2203.3-5009_daily_bin1382.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=330.832 yref=-50.1512 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/150876/ft1_filtered_4FGL_J2203.3-5009_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/150876/ft2_4FGL_J2203.3-5009_daily_bin1382.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150876/Model_4FGL_J2203.3-5009_daily_bin1382.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/150876/ft1_filtered_4FGL_J2203.3-5009_daily_bin1382.fits.....................!
real 55.84
user 54.53
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3808       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.741       1.0000         .10000E-03   10000.    
     3 'norm      '    7.7761       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.319       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.4515       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8093       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3646       1.0000         .10000E-03   10000.    
     9 'norm      '    7.2835       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7986       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8321       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4913       1.0000         .10000E-03   10000.    
    15 'norm      '    13.730       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9520       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3436       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10418E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .73463       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2559       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=   7762.791     FROM MIGRAD    STATUS=CONVERGED    643 CALLS     3106 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3801        4.1047       -.15408E-05   -.84129E-03
   2  Prefactor     13.736        19.951       -.17666E-05   -.42047E-03
   3  norm          7.7765        2.6600       -.87770E-07   -.81806E-04
   4  Prefactor     18.414        60.298        .31496E-04    .70587E-04
   5  Prefactor     5.4492        7.4820        .59126E-06   -.23602E-03
   6  Prefactor     .10000E-03    6.8336        .34756E-07** at limit **
   7  Prefactor     2.8221        70.347       -.41344E-04   -.70477E-04
   8  Prefactor     6.3648        4.3383        .37615E-06   -.12159E-03
   9  norm          7.2836        3.7972       -.34765E-06   -.47622E-04
  10  Prefactor     .10000E-03    4.1566        .91225E-08** at limit **
  11  Prefactor     1.8224        61.606        .26620E-04   -.79858E-04
  12  Prefactor     .10000E-03    4.4094       -.12306E-06** at limit **
  13  Prefactor     4.8337        4.1299       -.16632E-05   -.45734E-03
  14  Prefactor     1.2993        576.49        .76469E-05   -.14744E-04
  15  norm          13.730        7.2679       -.22304E-05    .14614E-04
  16  Prefactor     1.9520        2.2927       -.25576E-06   -.58579E-03
  17  Prefactor     .10000E-03    14.288        .60981E-07** at limit **
  18  Prefactor     .10000E-03    1.6071       -.32781E-07** at limit **
  19  Prefactor     1.3540        69.403        .72140E-05   -.11799E-03
  20  Prefactor     .10000E-03    11.474        .43115E-07** at limit **
  21  Prefactor     .10000E-03    58.392        .11449E-05** at limit **
  22  Prefactor     .10000E-03    1.5758        .39037E-07** at limit **
  23  Prefactor     .10000E-03    31.974       -.15384E-06** at limit **
  24  Prefactor     .10000E-03    2.8064       -.41729E-07** at limit **
  25  Normalizat    .73456        .18238       -.92967E-07   -.66829E-05
  26  Prefactor     1.2559        .14328        .46810E-06    .30213E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.38011
  Prefactor  = 13.736
  norm       = 7.77652
  Prefactor  = 18.414
  Prefactor  = 5.44919
  Prefactor  = 0.0001
  Prefactor  = 2.8221
  Prefactor  = 6.36481
  norm       = 7.28362
  Prefactor  = 0.0001
  Prefactor  = 1.82238
  Prefactor  = 0.0001
  Prefactor  = 4.83373
  Prefactor  = 1.29925
  norm       = 13.7297
  Prefactor  = 1.95201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.35401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.734562
  Prefactor  = 1.25591
 **********
 **   18 **HESSE 
 **********

 FCN=   7762.791     FROM HESSE     STATUS=OK           458 CALLS     3564 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3801        4.1123        .22048E-03   -1.5399    
   2  Prefactor     13.736        19.984        .54026E-03   -1.4967    
   3  norm          7.7765        2.6589        .80639E-04   -1.5150    
   4  Prefactor     18.414        60.625        .93578E-04   -1.4849    
   5  Prefactor     5.4492        7.4546        .17210E-03   -1.5241    
   6  Prefactor     .10000E-03    6.8429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8221        71.221        .24269E-03   -1.5372    
   8  Prefactor     6.3648        4.3264        .14270E-03   -1.5203    
   9  norm          7.2836        3.7976        .12013E-03   -1.5168    
  10  Prefactor     .10000E-03    4.1954        .17541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8224        59.354        .31174E-03   -1.5438    
  12  Prefactor     .10000E-03    4.4266        .18009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8337        4.1385        .15421E-03   -1.5268    
  14  Prefactor     1.2993        582.62        .35102E-03   -1.5480    
  15  norm          13.730        7.2452        .10810E-03   -1.4967    
  16  Prefactor     1.9520        2.2810        .13933E-03   -1.5429    
  17  Prefactor     .10000E-03    14.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6155        .10901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.3540        69.168        .37793E-03   -1.5475    
  20  Prefactor     .10000E-03    11.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    58.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.5779        .10801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.8070        .14415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .73456        .20745        .30795E-03   -1.0254    
  26  Prefactor     1.2559        .16551        .19993E-03   -.84628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18191e-09
Minuit parameter uncertainties:
  1  4.11275
  2  19.9939
  3  2.6589
  4  60.8294
  5  7.45592
  6  2.25508e-06
  7  28.3916
  8  4.32665
  9  3.79768
  10  1.27269e-06
  11  20.8224
  12  3.25798e-05
  13  4.13876
  14  55.5767
  15  7.24565
  16  2.2811
  17  1.09236e-06
  18  5.18651e-06
  19  19.378
  20  7.77892e-05
  21  5.29567e-05
  22  2.65482e-07
  23  3.83375e-05
  24  8.19088e-07
  25  0.207673
  26  0.165578
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.258e-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.256e+00  1.656e-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:  7.346e-01  2.077e-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: 6.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150876/likelihoodResults_597542401_597801601_4FGL_J2203.3-5009_daily_bin1382.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) = 7762.79158812
delta logL = -0.00107700369881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7762.79051346
delta logL = -2.34675098909e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11278E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7330       1.0000          .0000       10.000    
     3 'Normalizat'    .73432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2561       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=   7762.791     FROM MIGRAD    STATUS=FAILED        97 CALLS      249 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    503.31        .18037E-02** at limit **
   2  Index         2.5194        5.0367        .50000       -.22528E-06
   3  Normalizat    .73456        .51483E-01    .30795E-03    .69035E-05
   4  Prefactor     1.2559        .42833E-01    .19993E-03    .19390E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7762.791     FROM SIMPLEX   STATUS=UNCHANGED    182 CALLS      431 TOTAL
                     EDM=   .76E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    503.31        .31694E-03** at limit **
   2  Index         2.5194        5.0367        .21314E-05   -.22528E-06
   3  Normalizat    .73456        .51483E-01    .78756E-07    .69035E-05
   4  Prefactor     1.2559        .42833E-01    .26307E-07    .19390E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7762.791     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      465 TOTAL
                     EDM=   .82E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.9990        .36074E-03** at limit **
   2  Index         2.5218        5.8439        .50000       -.78535E-07
   3  Normalizat    .73456        .19255        .12318E-04    .73834E-05
   4  Prefactor     1.2559        .16027        .79974E-05    .20186E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52181
  Normalizat = 0.734563
  Prefactor  = 1.25591
 **********
 **   18 **HESSE 
 **********

 FCN=   7762.791     FROM HESSE     STATUS=OK            29 CALLS      494 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6325        .72148E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5218        8.6514        .50000       -.51857    
   3  Normalizat    .73456        .19302        .24636E-05   -1.0254    
   4  Prefactor     1.2559        .16067        .15995E-05   -.84628    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.90243e-12
Minuit parameter uncertainties:
  1  1.2552e-05
  2  153.487
  3  0.193198
  4  0.160732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150876': 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) = 7762.7905108
delta logL = 3.11856638291e-07

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.255e-05  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.522e+00  1.535e+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.256e+00  1.607e-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:  7.346e-01  1.932e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/150876/cmap_HighResolution_597542401_597801601_4FGL_J2203.3-5009_daily_bin1382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.45e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2021-09-28 03:25:42.501145', job_id='150876', GAL2='1.26', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1632824742.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='3.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1382' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:25:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 150876: <4FGL_J2203.3-5009_daily_bin1382> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1382 330.832 -50.1512 597542401 597801601 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 :                                   848.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            910 sec.

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

