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


Performing analysis on: 4FGL_J2203.3-5009_daily_bin1345
RA = 330.832, Dec = -50.1512
tmin = 587952001, tmax = 588211201
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='150802', job_status='RUN', time_executed='2021-09-28 03:12:22.457530', time_epoch_executed='1632823942.46' WHERE source_name='4FGL J2203.3-5009' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150802/ft1_4FGL_J2203.3-5009_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150802/ft2_4FGL_J2203.3-5009_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150802/ft1_4FGL_J2203.3-5009_daily_bin1345.fits outfile=/scratch/kocevski/150802/ft1_filteredMKT_4FGL_J2203.3-5009_daily_bin1345.fits ra=330.832 dec=-50.1512 rad=12.0 tmin=587952001.0 tmax=588211201.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.47
user 3.23
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150802/ft1_filtered_4FGL_J2203.3-5009_daily_bin1345.fits" evtable="EVENTS" scfile=/scratch/kocevski/150802/ft2_4FGL_J2203.3-5009_daily_bin1345.fits sctable="SC_DATA" outfile=/scratch/kocevski/150802/ltcube_587952001_588211201_4FGL_J2203.3-5009_daily_bin1345.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/150802/ft2_4FGL_J2203.3-5009_daily_bin1345.fits
.....................!
real 12.11
user 11.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150802/ft1_filtered_4FGL_J2203.3-5009_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/150802/ft2_4FGL_J2203.3-5009_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/150802/ltcube_587952001_588211201_4FGL_J2203.3-5009_daily_bin1345.fits outfile=/scratch/kocevski/150802/expmap_587952001_588211201_4FGL_J2203.3-5009_daily_bin1345.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/150802/ltcube_587952001_588211201_4FGL_J2203.3-5009_daily_bin1345.fits
.....................!
real 191.70
user 186.50
sys 4.88

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/150802/ft1_filtered_4FGL_J2203.3-5009_daily_bin1345.fits scfile=/scratch/kocevski/150802/ft2_4FGL_J2203.3-5009_daily_bin1345.fits outfile=/scratch/kocevski/150802/cmap_587952001_588211201_4FGL_J2203.3-5009_daily_bin1345.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150802/ft1_filtered_4FGL_J2203.3-5009_daily_bin1345.fits scfile=/scratch/kocevski/150802/ft2_4FGL_J2203.3-5009_daily_bin1345.fits outfile=/scratch/kocevski/150802/cmap_HighResolution_587952001_588211201_4FGL_J2203.3-5009_daily_bin1345.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/150802/ft1_filtered_4FGL_J2203.3-5009_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/150802/ft2_4FGL_J2203.3-5009_daily_bin1345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/150802/Model_4FGL_J2203.3-5009_daily_bin1345.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/150802/ft1_filtered_4FGL_J2203.3-5009_daily_bin1345.fits.....................!
real 52.10
user 50.76
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3913       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.730       1.0000         .10000E-03   10000.    
     3 'norm      '    15.792       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6712       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.588       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.323       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6345       1.0000         .10000E-03   10000.    
     9 'norm      '    11.240       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.1728       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.233       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6514       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2318       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.809       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.234       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3284       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .33497E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2384       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85850       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=   6757.985     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     3096 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3913        5.0584        .11531E-06   -.21810E-04
   2  Prefactor     24.730        24.447        .23486E-07   -.41536E-05
   3  norm          15.792        3.9068        .23342E-07   -.42881E-04
   4  Prefactor     .10000E-03    18.130        .54823E-06** at limit **
   5  Prefactor     5.6717        9.6867        .14859E-05   -.22977E-04
   6  Prefactor     20.589        35.533       -.66801E-06    .14944E-05
   7  Prefactor     36.324        27.247       -.14090E-06   -.14707E-05
   8  Prefactor     5.6342        5.3764        .11074E-05   -.54585E-04
   9  norm          11.240        5.6039       -.59003E-07    .14244E-04
  10  Prefactor     4.1730        10.298        .25396E-05   -.17982E-04
  11  Prefactor     29.232        32.504       -.68876E-07   -.81233E-07
  12  Prefactor     .10000E-03    2.9212       -.26410E-07** at limit **
  13  Prefactor     4.6514        3.5920        .62924E-07   -.59616E-05
  14  Prefactor     .10000E-03    45.560       -.22743E-05** at limit **
  15  norm          .10000E-03    2.7865       -.33222E-07** at limit **
  16  Prefactor     1.2322        3.7962        .20458E-06   -.73429E-04
  17  Prefactor     19.803        33.959        .10245E-05   -.17843E-04
  18  Prefactor     .10000E-03    2.3028       -.23589E-06** at limit **
  19  Prefactor     14.212        30.763        .47594E-05    .10598E-04
  20  Prefactor     4.3330        14.572       -.30673E-05   -.94576E-04
  21  Prefactor     .10000E-03    49.595        .21952E-05** at limit **
  22  Prefactor     .10002E-03    4.9465        .81873E-06** at limit **
  23  Prefactor     .10000E-03    16.776       -.45135E-06** at limit **
  24  Prefactor     .10000E-03    6.4115       -.19458E-07** at limit **
  25  Normalizat    1.2383        .20165        .26520E-06    .59033E-04
  26  Prefactor     .85848        .15121       -.11964E-05   -.47609E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.39129
  Prefactor  = 24.7298
  norm       = 15.7924
  Prefactor  = 0.0001
  Prefactor  = 5.67166
  Prefactor  = 20.589
  Prefactor  = 36.3237
  Prefactor  = 5.63422
  norm       = 11.24
  Prefactor  = 4.173
  Prefactor  = 29.2323
  Prefactor  = 0.0001
  Prefactor  = 4.6514
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.23218
  Prefactor  = 19.8031
  Prefactor  = 0.0001
  Prefactor  = 14.2124
  Prefactor  = 4.33301
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23831
  Prefactor  = 0.85848
 **********
 **   18 **HESSE 
 **********

 FCN=   6757.985     FROM HESSE     STATUS=OK           468 CALLS     3564 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3913        5.0557        .13645E-03   -1.5129    
   2  Prefactor     24.730        24.432        .80553E-04   -1.4713    
   3  norm          15.792        3.9052        .77288E-04   -1.4913    
   4  Prefactor     .10000E-03    18.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.6717        9.6860        .84339E-03   -1.5232    
   6  Prefactor     20.589        35.491        .88272E-04   -1.4800    
   7  Prefactor     36.324        27.245        .66497E-04   -1.4502    
   8  Prefactor     5.6342        5.3901        .84617E-03   -1.5233    
   9  norm          11.240        5.5998        .11950E-03   -1.5037    
  10  Prefactor     4.1730        10.311        .98650E-03   -1.5299    
  11  Prefactor     29.232        32.528        .74101E-04   -1.4626    
  12  Prefactor     .10000E-03    2.9325        .13719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6514        3.5914        .13116E-03   -1.5277    
  14  Prefactor     .10000E-03    45.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7898        .13401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2322        3.7973        .26008E-03   -1.5486    
  17  Prefactor     19.803        33.812        .89991E-04   -1.4818    
  18  Prefactor     .10000E-03    2.3214        .12191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.212        30.944        .10616E-03   -1.4954    
  20  Prefactor     4.3330        14.636        .19362E-03   -1.5292    
  21  Prefactor     .10000E-03    49.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    30.262        .34549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.4213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2383        .23715        .26601E-03   -.85427    
  26  Prefactor     .85848        .17510        .24454E-03   -.97607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0855e-10
Minuit parameter uncertainties:
  1  5.05597
  2  24.4421
  3  3.90521
  4  2.04233e-05
  5  9.68865
  6  35.5275
  7  27.2546
  8  5.39053
  9  5.60006
  10  10.3154
  11  32.5479
  12  3.37913e-06
  13  3.59161
  14  0.000110057
  15  2.10763e-06
  16  3.79806
  17  33.845
  18  1.52655e-05
  19  30.9792
  20  14.6481
  21  0.000118434
  22  0.00139983
  23  1.62665e-06
  24  2.416e-06
  25  0.237359
  26  0.175218
Done.

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

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  3.379e-06  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:  8.585e-01  1.752e-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:  1.238e+00  2.374e-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.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/150802/likelihoodResults_587952001_588211201_4FGL_J2203.3-5009_daily_bin1345.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) = 6757.98633305
delta logL = -0.00161814364674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6757.98471489
delta logL = 2.38869688474e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7297       1.0000          .0000       10.000    
     3 'Normalizat'    1.2383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85850       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=   6757.985     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.129        .13771E-01** at limit **
   2  Index         2.3140        6.3534        .50000        .37562E-07
   3  Normalizat    1.2383        .13991E-01    .26601E-03    .44105E-04
   4  Prefactor     .85848        .10987E-01    .24454E-03    .58020E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31402
  Normalizat = 1.23831
  Prefactor  = 0.858481
 **********
 **   18 **HESSE 
 **********

 FCN=   6757.985     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    267.06        .14358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3140        5.1840        .50000       -.56711    
   3  Normalizat    1.2383        .49433E-01    .10640E-04   -.85427    
   4  Prefactor     .85848        .38819E-01    .97816E-05   -.97607    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3912e-10
Minuit parameter uncertainties:
  1  1.2857e-05
  2  1095.24
  3  0.0494346
  4  0.0388202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150802': 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) = 6757.98471341
delta logL = 1.49444713315e-06

Extracting fit parameters...

4FGL J2203.3-5009
   Spectrum: PowerLaw
323    Prefactor:  1.000e-04  1.286e-05  1.000e-04  1.000e+04 ( 1.000e-12)
324        Index:  2.314e+00  1.095e+03  0.000e+00  1.000e+01 (-1.000e+00)
325        Scale:  5.072e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
584    Prefactor:  8.585e-01  3.882e-02  0.000e+00  1.000e+01 ( 1.000e+00)
585        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
586        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
583   Normalization:  1.238e+00  4.943e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/150802/cmap_HighResolution_587952001_588211201_4FGL_J2203.3-5009_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', job_status='DONE', photon_flux_upper_limit='6.49e-08', time_completed='2021-09-28 03:25:38.421477', job_id='150802', GAL2='0.86', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632824738.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.49e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.74' WHERE bin_id='1345' AND source_name='4FGL J2203.3-5009' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:25:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 150802: <4FGL_J2203.3-5009_daily_bin1345> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.3-5009_daily_bin1345 330.832 -50.1512 587952001 588211201 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

