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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1329
RA = 330.832, Dec = -50.1512
tmin = 583804801, tmax = 584064001
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='150777', job_status='RUN', time_executed='2021-09-28 03:11:22.803788', time_epoch_executed='1632823882.8' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150777

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150777/ft1_4FGL_J2203.3-5009_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150777/ft2_4FGL_J2203.3-5009_daily_bin1329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150777/ft1_4FGL_J2203.3-5009_daily_bin1329.fits outfile=/scratch/kocevski/150777/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1329.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=583804801.0 tmax=584064001.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.50
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150777/ft1_filtered_4FGL_J2203.3-5009_daily_bin1329.fits" evtable="EVENTS" scfile=/scratch/kocevski/150777/ft2_4FGL_J2203.3-5009_daily_bin1329.fits sctable="SC_DATA" outfile=/scratch/kocevski/150777/ltcube_583804801_584064001_4FGL_J2203.3-5009_daily_bin1329.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/150777/ft2_4FGL_J2203.3-5009_daily_bin1329.fits
.....................!
real 11.80
user 11.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150777/ft1_filtered_4FGL_J2203.3-5009_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/150777/ft2_4FGL_J2203.3-5009_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/150777/ltcube_583804801_584064001_4FGL_J2203.3-5009_daily_bin1329.fits outfile=/scratch/kocevski/150777/expmap_583804801_584064001_4FGL_J2203.3-5009_daily_bin1329.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/150777/ltcube_583804801_584064001_4FGL_J2203.3-5009_daily_bin1329.fits
.....................!
real 191.14
user 185.55
sys 5.20

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/150777/ft1_filtered_4FGL_J2203.3-5009_daily_bin1329.fits scfile=/scratch/kocevski/150777/ft2_4FGL_J2203.3-5009_daily_bin1329.fits outfile=/scratch/kocevski/150777/cmap_583804801_584064001_4FGL_J2203.3-5009_daily_bin1329.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150777/ft1_filtered_4FGL_J2203.3-5009_daily_bin1329.fits scfile=/scratch/kocevski/150777/ft2_4FGL_J2203.3-5009_daily_bin1329.fits outfile=/scratch/kocevski/150777/cmap_HighResolution_583804801_584064001_4FGL_J2203.3-5009_daily_bin1329.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/150777/ft1_filtered_4FGL_J2203.3-5009_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/150777/ft2_4FGL_J2203.3-5009_daily_bin1329.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150777/Model_4FGL_J2203.3-5009_daily_bin1329.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/150777/ft1_filtered_4FGL_J2203.3-5009_daily_bin1329.fits.....................!
real 50.64
user 49.36
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.6416       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.809       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.4387       1.0000         .10000E-03   10000.    
     9 'norm      '    10.763       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.6999       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7529       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2037       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.1525       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.621       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.745       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.7260       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75880       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1318       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=   6626.294     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3080 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2343        .56857E-07** at limit **
   2  Prefactor     .10000E-03    7.5563       -.12451E-06** at limit **
   3  norm          8.6417        2.6689       -.30356E-07    .34091E-04
   4  Prefactor     .10000E-03    24.965        .13619E-04** at limit **
   5  Prefactor     .10000E-03    2.8235        .16712E-07** at limit **
   6  Prefactor     .10000E-03    21.214       -.54471E-05** at limit **
   7  Prefactor     14.797        28.213       -.41993E-05   -.27525E-04
   8  Prefactor     7.4393        4.9079       -.10046E-05   -.66215E-04
   9  norm          10.761        4.9833       -.20396E-06    .12106E-03
  10  Prefactor     .10000E-03    2.2259       -.11502E-06** at limit **
  11  Prefactor     .10000E-03    107.71       -.49358E-05** at limit **
  12  Prefactor     4.7001        5.5941       -.11136E-05   -.35577E-04
  13  Prefactor     2.7534        3.1244       -.66075E-09    .24005E-04
  14  Prefactor     .10000E-03    51.167        .11447E-04** at limit **
  15  norm          .10000E-03    2.4664       -.14037E-06** at limit **
  16  Prefactor     1.2038        2.6517       -.36209E-06   -.17462E-03
  17  Prefactor     .10000E-03    12.098       -.16986E-06** at limit **
  18  Prefactor     2.1534        1.9183        .45073E-06   -.28455E-02
  19  Prefactor     .10000E-03    32.483       -.14465E-04** at limit **
  20  Prefactor     19.627        12.122        .37233E-06    .36779E-03
  21  Prefactor     .10000E-03    47.749       -.10568E-05** at limit **
  22  Prefactor     .10000E-03    1.9356       -.13550E-06** at limit **
  23  Prefactor     15.735        36.744       -.86031E-05    .46958E-05
  24  Prefactor     3.7264        9.9193       -.37195E-07   -.45142E-03
  25  Normalizat    .75876        .18179        .18281E-05    .14029E-03
  26  Prefactor     1.1319        .14270        .59985E-06    .17978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.64168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.7968
  Prefactor  = 7.43933
  norm       = 10.7611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.70014
  Prefactor  = 2.75342
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.20381
  Prefactor  = 0.0001
  Prefactor  = 2.15344
  Prefactor  = 0.0001
  Prefactor  = 19.6269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7349
  Prefactor  = 3.7264
  Normalizat = 0.758756
  Prefactor  = 1.13188
 **********
 **   18 **HESSE 
 **********

 FCN=   6626.294     FROM HESSE     STATUS=OK           454 CALLS     3534 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2425        .88305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.5945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.6417        2.6696        .71440E-04   -1.5120    
   4  Prefactor     .10000E-03    24.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8386        .13355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.797        28.297        .10408E-03   -1.4938    
   8  Prefactor     7.4393        4.9079        .13867E-03   -1.5162    
   9  norm          10.761        4.9829        .11928E-03   -1.5052    
  10  Prefactor     .10000E-03    2.2303        .11861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    110.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7001        5.5836        .18562E-03   -1.5274    
  13  Prefactor     2.7534        3.1150        .14661E-03   -1.5376    
  14  Prefactor     .10000E-03    51.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.4714        .12485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2038        2.6262        .18720E-03   -1.5489    
  17  Prefactor     .10000E-03    12.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.1534        4.5941        .12005E-02   -1.5414    
  19  Prefactor     .10000E-03    32.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.627        12.168        .90422E-04   -1.4822    
  21  Prefactor     .10000E-03    47.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.9430        .11060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.735        36.820        .10094E-03   -1.4914    
  24  Prefactor     3.7264        10.228        .10460E-02   -1.5322    
  25  Normalizat    .75876        .21304        .29369E-03   -1.0162    
  26  Prefactor     1.1319        .16587        .19935E-03   -.88454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82457e-09
Minuit parameter uncertainties:
  1  1.11875e-06
  2  5.63793e-06
  3  2.66964
  4  0.000146605
  5  1.18509e-06
  6  5.40424e-05
  7  28.3229
  8  4.90812
  9  4.98309
  10  1.72628e-06
  11  3.79722e-06
  12  5.58424
  13  3.11516
  14  0.000176107
  15  1.53713e-06
  16  2.62649
  17  5.64033e-06
  18  4.59487
  19  0.000141161
  20  12.1691
  21  1.23875e-05
  22  2.02853e-06
  23  36.8731
  24  10.2331
  25  0.213274
  26  0.16595
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  4.700e+00  5.584e+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

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  1.132e+00  1.659e-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.588e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 330.832 -50.151
Photon Index (Fixed Index): 2.74 +/- 0.00
Photon Flux (Fixed Index): 2.31e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 5.40e-06 +/- 6.41e-06

TS (Fixed Index): 1.07
Ra Dec: 330.832 -50.151
Photon Flux Upper Limit: 9.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150777/likelihoodResults_583804801_584064001_4FGL_J2203.3-5009_daily_bin1329.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): 0
logL (Free Index) = 6625.75592015
delta logL = 0.538465569724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6625.71904889
delta logL = 0.575336829414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3534       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8883       1.0000          .0000       10.000    
     3 'Normalizat'    .77446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1215       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.

 FCN=   6625.719     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3518        6.7925        .39810E-02    .69391E-04
   2  Index         1.8883        .51257        .26475       -.44843E-04
   3  Normalizat    .77439        .17269        .65752E-01    .24349E-04
   4  Prefactor     1.1215        .14108        .36823E-01    .27704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.35178
  Index      = 1.88831
  Normalizat = 0.774387
  Prefactor  = 1.12152
 **********
 **   18 **HESSE 
 **********

 FCN=   6625.719     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3518        6.6550        .15924E-03   -1.5204    
   2  Index         1.8883        .64867        .96535E-02   -.67173    
   3  Normalizat    .77439        .19957        .29090E-03   -1.0103    
   4  Prefactor     1.1215        .16323        .20003E-03   -.88782    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07063e-10
Minuit parameter uncertainties:
  1  6.65576
  2  0.651682
  3  0.199755
  4  0.163303
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150777': 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) = 6625.71904879
delta logL = 0.575336936578

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  6.352e+00  6.656e+00  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  1.888e+00  6.517e-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:  1.122e+00  1.633e-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.744e-01  1.998e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.22
Ra Dec: 330.832 -50.151
Photon Index (Free Index): 1.89 +/- 0.65
Photon Flux (Free Index): 1.53e-08 +/- 1.84e-08
Energy Flux (Free Index): 1.42e-05 +/- 2.14e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/150777/cmap_HighResolution_583804801_584064001_4FGL_J2203.3-5009_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', comment='SUCCESS', photon_flux='2.31e-08', energy_flux2='1.42e-05', photon_flux_error='2.74e-08', dlogl='5.75e-01', energy_flux='5.40e-06', photon_flux2='1.53e-08', job_status='DONE', time_completed='2021-09-28 03:24:00.015677', photon_index_error2='0.65', photon_index2='1.89', ts='1.07', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='9.17e-08', energy_flux_error2='2.14e-05', EG='0.76', time_epoch_completed='1632824640.02', return_code='0', job_id='150777', GAL2='1.12', EG2='0.77', return_code2='0', energy_flux_error='6.41e-06', photon_flux_error2='1.84e-08', ts2='2.22', photon_index='2.74' WHERE bin_id='1329' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:24:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 150777: <4FGL_J2203.3-5009_daily_bin1329> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1329 330.832 -50.1512 583804801 584064001 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 :                                   751.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

