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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin461
RA = 337.166, Dec = -16.6073
tmin = 358819201, tmax = 359078401
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='303502', job_status='RUN', time_executed='2021-09-28 11:31:21.097220', time_epoch_executed='1632853881.1' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/303502

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/303502/ft1_4FGL_J2228.6-1636_daily_bin461.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/303502/ft2_4FGL_J2228.6-1636_daily_bin461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/303502/ft1_4FGL_J2228.6-1636_daily_bin461.fits outfile=/scratch/kocevski/303502/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin461.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=358819201.0 tmax=359078401.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 5.35
user 5.10
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/303502/ft2_4FGL_J2228.6-1636_daily_bin461.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/303502/ft2_4FGL_J2228.6-1636_daily_bin461.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/303502/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin461.fits evtable="EVENTS" outfile="/scratch/kocevski/303502/ft1_filtered_4FGL_J2228.6-1636_daily_bin461.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/303502/ft1_filtered_4FGL_J2228.6-1636_daily_bin461.fits" evtable="EVENTS" scfile=/scratch/kocevski/303502/ft2_4FGL_J2228.6-1636_daily_bin461.fits sctable="SC_DATA" outfile=/scratch/kocevski/303502/ltcube_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.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/303502/ft2_4FGL_J2228.6-1636_daily_bin461.fits
.....................!
real 11.57
user 11.23
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/303502/ft1_filtered_4FGL_J2228.6-1636_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/303502/ft2_4FGL_J2228.6-1636_daily_bin461.fits sctable="SC_DATA" expcube=/scratch/kocevski/303502/ltcube_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.fits outfile=/scratch/kocevski/303502/expmap_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.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/303502/ltcube_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.fits
.....................!
real 190.61
user 185.23
sys 5.06

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 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J2228.6-1636 @ 337.166 -16.6073

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/303502/ft1_filtered_4FGL_J2228.6-1636_daily_bin461.fits scfile=/scratch/kocevski/303502/ft2_4FGL_J2228.6-1636_daily_bin461.fits outfile=/scratch/kocevski/303502/cmap_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.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=337.166 yref=-16.6073 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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/303502/ft1_filtered_4FGL_J2228.6-1636_daily_bin461.fits scfile=/scratch/kocevski/303502/ft2_4FGL_J2228.6-1636_daily_bin461.fits outfile=/scratch/kocevski/303502/cmap_HighResolution_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.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=337.166 yref=-16.6073 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/303502/ft1_filtered_4FGL_J2228.6-1636_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/303502/ft2_4FGL_J2228.6-1636_daily_bin461.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/303502/Model_4FGL_J2228.6-1636_daily_bin461.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/303502/ft1_filtered_4FGL_J2228.6-1636_daily_bin461.fits.....................!
real 49.24
user 47.95
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/303502/ft1_filtered_4FGL_J2228.6-1636_daily_bin461.fits', '/scratch/kocevski/303502/ft2_4FGL_J2228.6-1636_daily_bin461.fits', expMap='/scratch/kocevski/303502/expmap_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.fits', expCube='/scratch/kocevski/303502/ltcube_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/303502/Model_4FGL_J2228.6-1636_daily_bin461.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2228.6-1636'

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.423e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/303502/ft1_filtered_4FGL_J2228.6-1636_daily_bin461.fits
Spacecraft file(s): /scratch/kocevski/303502/ft2_4FGL_J2228.6-1636_daily_bin461.fits
Exposure map: /scratch/kocevski/303502/expmap_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.fits
Exposure cube: /scratch/kocevski/303502/ltcube_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/303502/Model_4FGL_J2228.6-1636_daily_bin461.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) = 5455.20652443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.001       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8219       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11138E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12351E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11553E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4384       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4517       1.0000         .10000E-03   10000.    
    12 'norm      '    8.2834       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.171       1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.474       1.0000         .10000E-03   10000.    
    15 'norm      '    11.438       1.0000         .10000E-03   10000.    
    16 'norm      '    .27713E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.773       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .52275       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2111       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1435       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71272       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5455.130     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3301 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.955        20.230        .43238E-06   -.16287E-03
   2  norm          5.8226        5.5752        .11734E-07   -.65691E-04
   3  Prefactor     .10000E-03    5.1752        .86394E-06** at limit **
   4  Prefactor     .10000E-03    7.3566       -.33586E-07** at limit **
   5  Prefactor     .10000E-03    6.7210        .30024E-06** at limit **
   6  Prefactor     .23127E-01    22.176        .13290E-04   -.70703E-03
   7  Prefactor     .10000E-03    7.1129        .33297E-06** at limit **
   8  Prefactor     .10000E-03    32.876        .13157E-06** at limit **
   9  Prefactor     6.4397        5.1188        .12487E-06   -.47361E-04
  10  Prefactor     .10000E-03    18.836        .21164E-06** at limit **
  11  norm          2.4546        4.1789        .13792E-06    .71758E-04
  12  norm          8.2879        13.266       -.42870E-06    .14031E-04
  13  Prefactor     35.075        91.211        .16668E-05   -.10091E-04
  14  Prefactor     17.462        18.654       -.12158E-05   -.58197E-04
  15  norm          11.437        1.8388        .24681E-07   -.77247E-03
  16  norm          .10001E-03    5.5469       -.73071E-05** at limit **
  17  Prefactor     59.836        54.604       -.16938E-05   -.68449E-04
  18  Prefactor     .10000E-03    4.8558        .14809E-06** at limit **
  19  norm          .10000E-03    .28652        .79929E-07** at limit **
  20  Prefactor     .10000E-03    9.9735        .20443E-06** at limit **
  21  Prefactor     .51885        18.185        .13033E-04    .34917E-03
  22  Prefactor     3.2107        5.5909        .14145E-06    .83425E-04
  23  Normalizat    1.1442        .21555        .78121E-07   -.47810E-03
  24  Prefactor     .71222        .15323       -.18737E-05   -.63983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.9545
  norm       = 5.82263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0231271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.43967
  Prefactor  = 0.0001
  norm       = 2.45459
  norm       = 8.28792
  Prefactor  = 35.0749
  Prefactor  = 17.4618
  norm       = 11.4372
  norm       = 0.000100006
  Prefactor  = 59.8364
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.518853
  Prefactor  = 3.21069
  Normalizat = 1.14419
  Prefactor  = 0.712219
 **********
 **   18 **HESSE 
 **********

 FCN=   5455.130     FROM HESSE     STATUS=OK           405 CALLS     3706 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.955        20.178        .80115E-04   -1.4708    
   2  norm          5.8226        5.5774        .16633E-03   -1.5225    
   3  Prefactor     .10000E-03    17.594        .32043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.3643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .23127E-01    7.0713        .62207E-01   -1.5678    
   7  Prefactor     .10000E-03    7.1267        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.4397        5.1123        .14246E-03   -1.5200    
  10  Prefactor     .10000E-03    18.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4546        4.1472        .17960E-03   -1.5395    
  12  norm          8.2879        13.251        .13929E-03   -1.5132    
  13  Prefactor     35.075        90.915        .67573E-04   -1.4523    
  14  Prefactor     17.462        18.706        .95814E-04   -1.4872    
  15  norm          11.437        1.8424        .38253E-04   -1.5031    
  16  norm          .10001E-03    7.9462        .17470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     59.836        55.052        .51895E-04   -1.4159    
  18  Prefactor     .10000E-03    4.8778        .15894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .29377        .77177E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.9900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .51885        35.612        .41413E-02   -1.5564    
  22  Prefactor     3.2107        5.5756        .22431E-03   -1.5350    
  23  Normalizat    1.1442        .26079        .25922E-03   -.88345    
  24  Prefactor     .71222        .18452        .23731E-03   -1.0305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79996e-09
Minuit parameter uncertainties:
  1  20.1835
  2  5.57786
  3  9.68065e-05
  4  7.81403e-06
  5  7.4138e-05
  6  0.807146
  7  6.98385e-05
  8  7.48156e-05
  9  5.1126
  10  4.19171e-05
  11  4.1477
  12  13.2557
  13  91.2776
  14  18.7118
  15  1.84236
  16  0.000429569
  17  55.0987
  18  2.42128e-05
  19  3.11211e-06
  20  4.4572e-05
  21  8.60151
  22  5.57646
  23  0.261084
  24  0.184679
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  4.192e-05  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  7.122e-01  1.847e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.144e+00  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/303502/likelihoodResults_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.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) = 5455.13066086
delta logL = -0.00021358110007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5455.13044936
delta logL = -2.07767061511e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7300       1.0000          .0000       10.000    
     3 'Normalizat'    1.1442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71221       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+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=   5455.130     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      280 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10428E-03    .64658        .18142E-01** at limit **
   2  Index         2.6178        5.3337        .50000        .18594E-04
   3  Normalizat    1.1442        .11817E-02    .25922E-03    .35700E-04
   4  Prefactor     .71222        .87819E-03    .23731E-03    .67547E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104278
  Index      = 2.61783
  Normalizat = 1.14419
  Prefactor  = 0.712221
 **********
 **   18 **HESSE 
 **********

 FCN=   5455.130     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10428E-03    49.849        .24956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6178        7.8870        .50000       -.49659    
   3  Normalizat    1.1442        .10400E-01    .10369E-04   -.88345    
   4  Prefactor     .71222        .77291E-02    .94925E-05   -1.0305    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.11353e-08
Minuit parameter uncertainties:
  1  0.0292308
  2  318.738
  3  0.0104004
  4  0.00772911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/303502': 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) = 5455.13044896
delta logL = -1.68049064087e-06

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.043e-04  2.923e-02  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.618e+00  3.187e+02  0.000e+00  1.000e+01 (-1.000e+00)
230        Scale:  2.181e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  7.122e-01  7.729e-03  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.144e+00  1.040e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.166 -16.607

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/303502/cmap_HighResolution_358819201_359078401_4FGL_J2228.6-1636_daily_bin461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-28 11:41:50.699096', job_id='303502', GAL2='0.71', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1632854510.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-1.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='461' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:41:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 303502: <4FGL_J2228.6-1636_daily_bin461> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin461> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:31:05 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:31:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:31:07 2021
Terminated at Tue Sep 28 11:41:52 2021
Results reported at Tue Sep 28 11:41:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin461 337.166 -16.6073 358819201 359078401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2228.6-1636 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   627.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   643 sec.
    Turnaround time :                            647 sec.

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

