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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin782
RA = 337.166, Dec = -16.6073
tmin = 442022401, tmax = 442281601
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='304970', job_status='RUN', time_executed='2021-09-28 11:39:53.674580', time_epoch_executed='1632854393.67' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='782'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304970/ft1_4FGL_J2228.6-1636_daily_bin782.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304970/ft2_4FGL_J2228.6-1636_daily_bin782.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304970/ft1_4FGL_J2228.6-1636_daily_bin782.fits outfile=/scratch/kocevski/304970/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin782.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=442022401.0 tmax=442281601.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.76
user 3.53
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304970/ft1_filtered_4FGL_J2228.6-1636_daily_bin782.fits" evtable="EVENTS" scfile=/scratch/kocevski/304970/ft2_4FGL_J2228.6-1636_daily_bin782.fits sctable="SC_DATA" outfile=/scratch/kocevski/304970/ltcube_442022401_442281601_4FGL_J2228.6-1636_daily_bin782.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/304970/ft2_4FGL_J2228.6-1636_daily_bin782.fits
.....................!
real 12.27
user 11.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304970/ft1_filtered_4FGL_J2228.6-1636_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/304970/ft2_4FGL_J2228.6-1636_daily_bin782.fits sctable="SC_DATA" expcube=/scratch/kocevski/304970/ltcube_442022401_442281601_4FGL_J2228.6-1636_daily_bin782.fits outfile=/scratch/kocevski/304970/expmap_442022401_442281601_4FGL_J2228.6-1636_daily_bin782.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/304970/ltcube_442022401_442281601_4FGL_J2228.6-1636_daily_bin782.fits
.....................!
real 190.67
user 185.24
sys 4.95

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/304970/ft1_filtered_4FGL_J2228.6-1636_daily_bin782.fits scfile=/scratch/kocevski/304970/ft2_4FGL_J2228.6-1636_daily_bin782.fits outfile=/scratch/kocevski/304970/cmap_442022401_442281601_4FGL_J2228.6-1636_daily_bin782.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304970/ft1_filtered_4FGL_J2228.6-1636_daily_bin782.fits scfile=/scratch/kocevski/304970/ft2_4FGL_J2228.6-1636_daily_bin782.fits outfile=/scratch/kocevski/304970/cmap_HighResolution_442022401_442281601_4FGL_J2228.6-1636_daily_bin782.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304970/ft1_filtered_4FGL_J2228.6-1636_daily_bin782.fits evtable="EVENTS" scfile=/scratch/kocevski/304970/ft2_4FGL_J2228.6-1636_daily_bin782.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304970/Model_4FGL_J2228.6-1636_daily_bin782.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/304970/ft1_filtered_4FGL_J2228.6-1636_daily_bin782.fits.....................!
real 47.86
user 46.36
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32283E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1849       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6078       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1424       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    105.79       1.0000         .10000E-03   10000.    
    11 'norm      '    5.4971       1.0000         .10000E-03   10000.    
    12 'norm      '    .86634       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0819       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4325       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4239       1.0000         .10000E-03   10000.    
    16 'norm      '    .24468       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .43626E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.727       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.300       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2263       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83488       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89195       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=   5421.358     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     3533 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.541        .26118E-06** at limit **
   2  norm          .10000E-03    2.4982        .31018E-07** at limit **
   3  Prefactor     .10004E-03    4.7723       -.11378E-05** at limit **
   4  Prefactor     .10000E-03    4.5976        .34710E-07** at limit **
   5  Prefactor     .10000E-03    3.7989        .88068E-07** at limit **
   6  Prefactor     4.1832        7.6280       -.64144E-06   -.64833E-04
   7  Prefactor     7.6080        14.766       -.12736E-06   -.20497E-05
   8  Prefactor     3.2417        370.53        .14750E-04    .12217E-04
   9  Prefactor     .10000E-03    2.4102       -.27814E-07** at limit **
  10  Prefactor     105.78        63.839       -.16199E-06   -.98026E-05
  11  norm          5.4964        4.3033       -.82672E-06   -.43068E-03
  12  norm          .97223        78.624       -.79971E-05    .17867E-04
  13  Prefactor     8.1077        192.02        .18617E-05   -.13305E-05
  14  Prefactor     6.4587        12.380        .12629E-05    .14735E-03
  15  norm          1.4237        .85840       -.80600E-07   -.59661E-03
  16  norm          .24392        1.8791       -.22719E-06    .43077E-03
  17  Prefactor     .10000E-03    212.60       -.35814E-05** at limit **
  18  Prefactor     .10000E-03    9.0018       -.12501E-06** at limit **
  19  norm          .10000E-03    .43193       -.22311E-07** at limit **
  20  Prefactor     40.680        24.412        .13298E-05   -.20752E-03
  21  Prefactor     11.302        8.8980       -.14898E-07   -.45963E-04
  22  Prefactor     6.2292        7.7955       -.65260E-07   -.40117E-04
  23  Normalizat    .83490        .19642       -.74344E-06    .34770E-04
  24  Prefactor     .89188        .14844        .66423E-06   -.78622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18321
  Prefactor  = 7.60801
  Prefactor  = 3.24175
  Prefactor  = 0.0001
  Prefactor  = 105.784
  norm       = 5.49641
  norm       = 0.972231
  Prefactor  = 8.10774
  Prefactor  = 6.45867
  norm       = 1.42369
  norm       = 0.243921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.6804
  Prefactor  = 11.3019
  Prefactor  = 6.22921
  Normalizat = 0.834904
  Prefactor  = 0.89188
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.358     FROM HESSE     STATUS=OK           405 CALLS     3938 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.4999        .11366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10004E-03    45.061        .26770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6023        .15419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8105        .14014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1832        7.6082        .19701E-03   -1.5299    
   7  Prefactor     7.6080        14.761        .14539E-03   -1.5156    
   8  Prefactor     3.2417        371.80        .22868E-03   -1.5348    
   9  Prefactor     .10000E-03    2.4356        .11157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     105.78        63.741        .39098E-04   -1.3647    
  11  norm          5.4964        4.3607        .12254E-03   -1.5239    
  12  norm          .97223        81.632        .52094E-02   -1.5511    
  13  Prefactor     8.1077        192.12        .14103E-03   -1.5138    
  14  Prefactor     6.4587        12.386        .15825E-03   -1.5200    
  15  norm          1.4237        .84918        .50470E-04   -1.5469    
  16  norm          .24392        3.3235        .18010E-02   -1.5609    
  17  Prefactor     .10000E-03    215.77        .42447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.0827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .57873        .90930E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     40.680        25.047        .62811E-04   -1.4431    
  21  Prefactor     11.302        8.8956        .11918E-03   -1.5035    
  22  Prefactor     6.2292        7.7872        .16088E-03   -1.5209    
  23  Normalizat    .83490        .23024        .26401E-03   -.98787    
  24  Prefactor     .89188        .17416        .20004E-03   -.96425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90226e-09
Minuit parameter uncertainties:
  1  2.27898e-05
  2  7.46125e-07
  3  0.00262838
  4  3.22497e-06
  5  4.4151e-06
  6  7.60994
  7  14.7678
  8  69.8821
  9  5.43443e-06
  10  63.7827
  11  4.36098
  12  17.8417
  13  79.2214
  14  12.3911
  15  0.849185
  16  1.80049
  17  0.000528742
  18  4.25169e-05
  19  2.05567e-05
  20  25.053
  21  8.89661
  22  7.78846
  23  0.230508
  24  0.174272
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.058e+02  6.378e+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:  8.919e-01  1.743e-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.349e-01  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.25
Ra Dec: 337.166 -16.607
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 5.68e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 3.42e-05 +/- 2.06e-05

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) = 5421.3159833
delta logL = 0.0415690813516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5421.31384263
delta logL = 0.0437097487975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.478       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1812       1.0000          .0000       10.000    
     3 'Normalizat'    .82819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89455       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=   5421.314     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      258 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.567        79.953        .21122E-03    .77452E-04
   2  Index         2.1808        .44648        .42460E-02    .35276E-04
   3  Normalizat    .82821        .21706        .26493E-03   -.12672E-03
   4  Prefactor     .89453        .16960        .19975E-03    .22263E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.567
  Index      = 2.18077
  Normalizat = 0.828209
  Prefactor  = 0.894529
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.314     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.567        75.682        .84489E-05   -1.3802    
   2  Index         2.1808        .42245        .16984E-03   -.59904    
   3  Normalizat    .82821        .21711        .10597E-04   -.99031    
   4  Prefactor     .89453        .16969        .39950E-04   -.96333    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29225e-10
Minuit parameter uncertainties:
  1  75.7629
  2  0.423191
  3  0.217337
  4  0.169789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304970': 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) = 5421.31384194
delta logL = 0.0437104451148

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  9.057e+01  7.576e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.181e+00  4.232e-01  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:  8.945e-01  1.698e-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.282e-01  2.173e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.34
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 2.18 +/- 0.42
Photon Flux (Free Index): 6.37e-08 +/- 4.32e-08
Energy Flux (Free Index): 2.97e-05 +/- 2.20e-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/304970/cmap_HighResolution_442022401_442281601_4FGL_J2228.6-1636_daily_bin782.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.68e-08', energy_flux2='2.97e-05', photon_flux_error='3.42e-08', dlogl='4.37e-02', energy_flux='3.42e-05', photon_flux2='6.37e-08', job_status='DONE', time_completed='2021-09-28 11:49:26.233874', photon_index_error2='0.42', photon_index2='2.18', ts='5.25', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.20e-05', EG='0.83', time_epoch_completed='1632854966.23', return_code='0', job_id='304970', GAL2='0.89', EG2='0.83', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='4.32e-08', ts2='5.34', photon_index='2.06' WHERE bin_id='782' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:49:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 304970: <4FGL_J2228.6-1636_daily_bin782> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin782> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:35:45 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:35:47 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:35:47 2021
Terminated at Tue Sep 28 11:49:26 2021
Results reported at Tue Sep 28 11:49:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin782 337.166 -16.6073 442022401 442281601 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 :                                   571.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

