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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1309
RA = 337.166, Dec = -16.6073
tmin = 578620801, tmax = 578880001
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='307813', job_status='RUN', time_executed='2021-09-28 11:45:36.051691', time_epoch_executed='1632854736.05' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1309'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307813

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307813/ft1_4FGL_J2228.6-1636_daily_bin1309.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307813/ft2_4FGL_J2228.6-1636_daily_bin1309.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307813/ft1_4FGL_J2228.6-1636_daily_bin1309.fits outfile=/scratch/kocevski/307813/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1309.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=578620801.0 tmax=578880001.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.52
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307813/ft1_filtered_4FGL_J2228.6-1636_daily_bin1309.fits" evtable="EVENTS" scfile=/scratch/kocevski/307813/ft2_4FGL_J2228.6-1636_daily_bin1309.fits sctable="SC_DATA" outfile=/scratch/kocevski/307813/ltcube_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.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/307813/ft2_4FGL_J2228.6-1636_daily_bin1309.fits
.....................!
real 11.85
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307813/ft1_filtered_4FGL_J2228.6-1636_daily_bin1309.fits evtable="EVENTS" scfile=/scratch/kocevski/307813/ft2_4FGL_J2228.6-1636_daily_bin1309.fits sctable="SC_DATA" expcube=/scratch/kocevski/307813/ltcube_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.fits outfile=/scratch/kocevski/307813/expmap_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.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/307813/ltcube_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.fits
.....................!
real 190.78
user 185.71
sys 4.75

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/307813/ft1_filtered_4FGL_J2228.6-1636_daily_bin1309.fits scfile=/scratch/kocevski/307813/ft2_4FGL_J2228.6-1636_daily_bin1309.fits outfile=/scratch/kocevski/307813/cmap_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307813/ft1_filtered_4FGL_J2228.6-1636_daily_bin1309.fits scfile=/scratch/kocevski/307813/ft2_4FGL_J2228.6-1636_daily_bin1309.fits outfile=/scratch/kocevski/307813/cmap_HighResolution_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307813/ft1_filtered_4FGL_J2228.6-1636_daily_bin1309.fits evtable="EVENTS" scfile=/scratch/kocevski/307813/ft2_4FGL_J2228.6-1636_daily_bin1309.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307813/Model_4FGL_J2228.6-1636_daily_bin1309.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/307813/ft1_filtered_4FGL_J2228.6-1636_daily_bin1309.fits.....................!
real 54.09
user 52.78
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/307813/ft1_filtered_4FGL_J2228.6-1636_daily_bin1309.fits', '/scratch/kocevski/307813/ft2_4FGL_J2228.6-1636_daily_bin1309.fits', expMap='/scratch/kocevski/307813/expmap_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.fits', expCube='/scratch/kocevski/307813/ltcube_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/307813/Model_4FGL_J2228.6-1636_daily_bin1309.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/307813/ft1_filtered_4FGL_J2228.6-1636_daily_bin1309.fits
Spacecraft file(s): /scratch/kocevski/307813/ft2_4FGL_J2228.6-1636_daily_bin1309.fits
Exposure map: /scratch/kocevski/307813/expmap_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.fits
Exposure cube: /scratch/kocevski/307813/ltcube_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/307813/Model_4FGL_J2228.6-1636_daily_bin1309.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) = 6154.30683172

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.2357       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3879       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.844       1.0000         .10000E-03   10000.    
    11 'norm      '    4.2890       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2404       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4614       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    80.331       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4708       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9721       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .96919       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0135       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=   6153.726     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2786 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6686        .13592E-05** at limit **
   2  norm          .10000E-03    2.0807       -.72721E-09** at limit **
   3  Prefactor     7.2353        5.2797        .57960E-07   -.13564E-03
   4  Prefactor     .10001E-03    36.109        .81209E-05** at limit **
   5  Prefactor     .10000E-03    4.1104       -.79558E-07** at limit **
   6  Prefactor     .10000E-03    5.9650        .11558E-05** at limit **
   7  Prefactor     .10000E-03    11.267        .34222E-05** at limit **
   8  Prefactor     .10000E-03    26.814       -.52791E-06** at limit **
   9  Prefactor     3.3877        3.9674        .16612E-05   -.19535E-02
  10  Prefactor     33.848        71.654        .25045E-05    .28120E-04
  11  norm          4.2888        3.7259       -.35705E-08   -.35559E-04
  12  norm          .10000E-03    8.8726       -.13273E-06** at limit **
  13  Prefactor     .10001E-03    45.814       -.78920E-05** at limit **
  14  Prefactor     4.2394        9.9686        .24985E-06   -.40973E-04
  15  norm          5.4614        1.5471       -.16883E-07   -.27706E-03
  16  norm          .10000E-03    .94871        .28959E-08** at limit **
  17  Prefactor     .10000E-03    13.924       -.31881E-05** at limit **
  18  Prefactor     80.335        60.398       -.25713E-05   -.26643E-04
  19  norm          1.4700        4.3330        .13769E-05   -.26631E-03
  20  Prefactor     2.9773        217.94        .63784E-05    .30277E-04
  21  Prefactor     .10000E-03    7.9017       -.14167E-05** at limit **
  22  Prefactor     .10000E-03    4.8737       -.17955E-05** at limit **
  23  Normalizat    .96911        .21083       -.69623E-06   -.13016E-03
  24  Prefactor     1.0135        .15672       -.12518E-06   -.20056E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.23535
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.38773
  Prefactor  = 33.8477
  norm       = 4.28876
  norm       = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 4.23936
  norm       = 5.46139
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 80.335
  norm       = 1.47002
  Prefactor  = 2.97733
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.969112
  Prefactor  = 1.0135
 **********
 **   18 **HESSE 
 **********

 FCN=   6153.726     FROM HESSE     STATUS=OK           391 CALLS     3177 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7031        .16605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.0813        .11051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2353        5.2785        .14892E-03   -1.5170    
   4  Prefactor     .10001E-03    37.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1226        .15531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.0163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.3877        4.4977        .92380E-03   -1.5340    
  10  Prefactor     33.848        71.785        .68882E-04   -1.4544    
  11  norm          4.2888        3.7235        .13439E-03   -1.5294    
  12  norm          .10000E-03    8.8832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    46.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2394        9.9669        .19568E-03   -1.5296    
  15  norm          5.4614        1.5471        .47997E-04   -1.5241    
  16  norm          .10000E-03    .96720        .74600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     80.335        51.794        .44810E-04   -1.3913    
  19  norm          1.4700        3.6151        .10155E-03   -1.5465    
  20  Prefactor     2.9773        193.06        .23552E-03   -1.5363    
  21  Prefactor     .10000E-03    7.9740        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.9345        .16998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .96911        .24886        .29964E-03   -.94073    
  24  Prefactor     1.0135        .18581        .22436E-03   -.92281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43661e-09
Minuit parameter uncertainties:
  1  7.7303e-05
  2  1.2272e-07
  3  5.27884
  4  0.00119739
  5  2.48868e-06
  6  7.29701e-05
  7  0.000308055
  8  7.21775e-05
  9  4.49811
  10  71.9695
  11  3.72366
  12  8.00154e-06
  13  0.00142408
  14  9.97084
  15  1.54711
  16  9.22034e-07
  17  0.000311494
  18  51.8235
  19  3.61559
  20  48.1119
  21  0.000116594
  22  0.000105359
  23  0.24916
  24  0.185932
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  3.385e+01  7.197e+01  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:  1.014e+00  1.859e-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:  9.691e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307813/likelihoodResults_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.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) = 6151.02555712
delta logL = 2.70027121402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6150.97104122
delta logL = 2.75478711379

Fit tolerance = 1e-08

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

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

 FCN=   6150.971     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      276 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1805        16.368        .69563E-02   -.33552E-03
   2  Index         4.0087        1.7877        .62504E-01    .90163E-04
   3  Normalizat    .81002        .73635E-01    .72991E-01   -.53241E-05
   4  Prefactor     1.0851        .55015E-01    .38178E-01   -.25752E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.18048
  Index      = 4.00866
  Normalizat = 0.810022
  Prefactor  = 1.08515
 **********
 **   18 **HESSE 
 **********

 FCN=   6150.971     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      309 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1805        26.184        .55099E-04   -1.5413    
   2  Index         4.0087        2.4438        .25374E-02   -.19959    
   3  Normalizat    .81002        .22834        .32303E-03   -.99698    
   4  Prefactor     1.0851        .17290        .21706E-03   -.89943    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.24862e-10
Minuit parameter uncertainties:
  1  15.12
  2  2.55848
  3  0.228607
  4  0.172986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307813': 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) = 6150.97104017
delta logL = 2.75478816269

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  2.180e+00  1.512e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  4.009e+00  2.558e+00  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:  1.085e+00  1.730e-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:  8.100e-01  2.286e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.19
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 4.01 +/- 2.56
Photon Flux (Free Index): 1.69e-07 +/- 8.72e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.48e-05

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/307813/cmap_HighResolution_578620801_578880001_4FGL_J2228.6-1636_daily_bin1309.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.24e-03', comment='SUCCESS', energy_flux2='2.52e-05', dlogl='2.75e+00', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-28 11:56:03.112126', photon_index_error2='2.56', photon_index2='4.01', ts='0.28', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.48e-05', EG='0.97', time_epoch_completed='1632855363.11', return_code='0', job_id='307813', GAL2='1.09', EG2='0.81', return_code2='102', photon_flux_error2='8.72e-08', ts2='6.19', photon_index='2.06' WHERE bin_id='1309' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:56:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 307813: <4FGL_J2228.6-1636_daily_bin1309> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1309> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:45:16 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:45:18 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:45:18 2021
Terminated at Tue Sep 28 11:56:03 2021
Results reported at Tue Sep 28 11:56:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1309 337.166 -16.6073 578620801 578880001 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 :                                   625.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   645 sec.
    Turnaround time :                            647 sec.

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

