/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 19 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1000
RA = 337.166, Dec = -16.6073
tmin = 498528001, tmax = 498787201
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='306308', job_status='RUN', time_executed='2021-09-28 11:40:50.532174', time_epoch_executed='1632854450.53' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306308

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306308/ft1_4FGL_J2228.6-1636_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306308/ft2_4FGL_J2228.6-1636_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306308/ft1_4FGL_J2228.6-1636_daily_bin1000.fits outfile=/scratch/kocevski/306308/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1000.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=498528001.0 tmax=498787201.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 4.96
user 4.74
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306308/ft1_filtered_4FGL_J2228.6-1636_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/306308/ft2_4FGL_J2228.6-1636_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/306308/ltcube_498528001_498787201_4FGL_J2228.6-1636_daily_bin1000.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/306308/ft2_4FGL_J2228.6-1636_daily_bin1000.fits
.....................!
real 11.89
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306308/ft1_filtered_4FGL_J2228.6-1636_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/306308/ft2_4FGL_J2228.6-1636_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/306308/ltcube_498528001_498787201_4FGL_J2228.6-1636_daily_bin1000.fits outfile=/scratch/kocevski/306308/expmap_498528001_498787201_4FGL_J2228.6-1636_daily_bin1000.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/306308/ltcube_498528001_498787201_4FGL_J2228.6-1636_daily_bin1000.fits
.....................!
real 190.20
user 185.20
sys 4.68

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/306308/ft1_filtered_4FGL_J2228.6-1636_daily_bin1000.fits scfile=/scratch/kocevski/306308/ft2_4FGL_J2228.6-1636_daily_bin1000.fits outfile=/scratch/kocevski/306308/cmap_498528001_498787201_4FGL_J2228.6-1636_daily_bin1000.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306308/ft1_filtered_4FGL_J2228.6-1636_daily_bin1000.fits scfile=/scratch/kocevski/306308/ft2_4FGL_J2228.6-1636_daily_bin1000.fits outfile=/scratch/kocevski/306308/cmap_HighResolution_498528001_498787201_4FGL_J2228.6-1636_daily_bin1000.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/306308/ft1_filtered_4FGL_J2228.6-1636_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/306308/ft2_4FGL_J2228.6-1636_daily_bin1000.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306308/Model_4FGL_J2228.6-1636_daily_bin1000.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/306308/ft1_filtered_4FGL_J2228.6-1636_daily_bin1000.fits.....................!
real 55.14
user 53.86
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.507       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17982E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.211       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.6054       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.301       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.798       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20032E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.914       1.0000         .10000E-03   10000.    
    11 'norm      '    12.505       1.0000         .10000E-03   10000.    
    12 'norm      '    .43766E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20705E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .68909       1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    84.830       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11775E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    30.742       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.2993       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.5657       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90546       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85841       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=   6077.391     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2794 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.511        16.811       -.22876E-06    .72526E-04
   2  norm          .10000E-03    3.1847       -.65650E-08** at limit **
   3  Prefactor     .10000E-03    5.3822        .15535E-05** at limit **
   4  Prefactor     10.214        14.679       -.41719E-06    .12060E-04
   5  Prefactor     5.6068        7.4148       -.47999E-06   -.32792E-04
   6  Prefactor     21.295        12.461        .47741E-07    .21501E-03
   7  Prefactor     28.801        18.362        .11220E-06    .69016E-04
   8  Prefactor     .10010E-03    245.67       -.26496E-04** at limit **
   9  Prefactor     .10000E-03    1.2226        .24357E-07** at limit **
  10  Prefactor     57.918        52.117       -.11376E-06   -.68550E-06
  11  norm          12.497        4.6759       -.24693E-06    .55930E-03
  12  norm          .10001E-03    61.399        .24661E-04** at limit **
  13  Prefactor     .10007E-03    298.00        .22710E-04** at limit **
  14  Prefactor     .10000E-03    12.208       -.19967E-06** at limit **
  15  norm          .68851        1.0224       -.63606E-06    .14956E-02
  16  norm          .10000E-03    1.4142       -.56038E-07** at limit **
  17  Prefactor     84.854        55.979       -.10208E-05   -.65074E-04
  18  Prefactor     .10000E-03    48.704        .57477E-05** at limit **
  19  norm          30.739        3.1279        .35190E-07   -.15968E-02
  20  Prefactor     .10000E-03    22.462        .30132E-06** at limit **
  21  Prefactor     3.3015        12.086       -.56729E-06   -.15410E-05
  22  Prefactor     7.5661        7.7373        .84204E-07    .10419E-04
  23  Normalizat    .90549        .21760        .11230E-05    .70054E-04
  24  Prefactor     .85823        .15767        .53601E-06    .26061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5111
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 10.214
  Prefactor  = 5.60677
  Prefactor  = 21.2951
  Prefactor  = 28.8009
  Prefactor  = 0.0001001
  Prefactor  = 0.0001
  Prefactor  = 57.9176
  norm       = 12.4967
  norm       = 0.00010001
  Prefactor  = 0.000100072
  Prefactor  = 0.0001
  norm       = 0.688515
  norm       = 0.0001
  Prefactor  = 84.8542
  Prefactor  = 0.000100004
  norm       = 30.7394
  Prefactor  = 0.0001
  Prefactor  = 3.30148
  Prefactor  = 7.56613
  Normalizat = 0.905495
  Prefactor  = 0.858226
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.391     FROM HESSE     STATUS=OK           399 CALLS     3193 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.511        16.748        .11327E-03   -1.5000    
   2  norm          .10000E-03    3.1998        .13586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.191        .33255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.214        14.643        .12539E-03   -1.5069    
   5  Prefactor     5.6068        7.4083        .16968E-03   -1.5234    
   6  Prefactor     21.295        12.471        .86785E-04   -1.4785    
   7  Prefactor     28.801        18.391        .74658E-04   -1.4634    
   8  Prefactor     .10010E-03    259.02        .20227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.2238        .84179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     57.918        52.180        .26358E-03   -1.4184    
  11  norm          12.497        4.6842        .49483E-03   -1.5001    
  12  norm          .10001E-03    61.848        .57117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10007E-03    308.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68851        1.0528        .24040E-03   -1.5542    
  16  norm          .10000E-03    1.4255        .89998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     84.854        56.012        .43616E-04   -1.3863    
  18  Prefactor     .10000E-03    49.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          30.739        3.1214        .41563E-04   -1.4599    
  20  Prefactor     .10000E-03    22.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.3015        12.087        .22289E-03   -1.5345    
  22  Prefactor     7.5661        7.7404        .14580E-03   -1.5158    
  23  Normalizat    .90549        .25541        .30906E-03   -.96267    
  24  Prefactor     .85823        .18557        .24202E-03   -.97616    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71377e-09
Minuit parameter uncertainties:
  1  16.7543
  2  1.61574e-06
  3  0.000509243
  4  14.6479
  5  7.40955
  6  12.4726
  7  18.3942
  8  0.0102434
  9  3.44643e-07
  10  52.2214
  11  4.68435
  12  0.00157795
  13  0.00945686
  14  7.08627e-06
  15  1.05282
  16  2.24054e-05
  17  56.0471
  18  0.000926671
  19  3.12145
  20  1.37914e-06
  21  12.0961
  22  7.74142
  23  0.255749
  24  0.18571
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  5.792e+01  5.222e+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.582e-01  1.857e-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.055e-01  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.23
Ra Dec: 337.166 -16.607
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 2.80e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.69e-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) = 6077.38095231
delta logL = 0.0102541638689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6077.37865199
delta logL = 0.0125544753091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.619       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8981       1.0000          .0000       10.000    
     3 'Normalizat'    .91320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85582       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=   6077.379     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      290 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.626        60.825        .25558E-03    .18415E-04
   2  Index         1.8982        1.0308        .13289E-01    .22160E-03
   3  Normalizat    .91297        .24119        .30796E-03   -.35218E-04
   4  Prefactor     .85599        .18248        .24234E-03   -.49397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.6258
  Index      = 1.89823
  Normalizat = 0.912969
  Prefactor  = 0.855986
 **********
 **   18 **HESSE 
 **********

 FCN=   6077.379     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.626        59.678        .10223E-04   -1.4136    
   2  Index         1.8982        1.0106        .26577E-02   -.66919    
   3  Normalizat    .91297        .24092        .12318E-04   -.96006    
   4  Prefactor     .85599        .18258        .96938E-05   -.97696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5545e-12
Minuit parameter uncertainties:
  1  59.7362
  2  1.02216
  3  0.2412
  4  0.182714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306308': 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) = 6077.37865151
delta logL = 0.01255495643

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.163e+01  5.974e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  1.898e+00  1.022e+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:  8.560e-01  1.827e-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.130e-01  2.412e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.24
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 1.90 +/- 1.02
Photon Flux (Free Index): 2.38e-08 +/- 4.79e-08
Energy Flux (Free Index): 2.15e-05 +/- 3.00e-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/306308/cmap_HighResolution_498528001_498787201_4FGL_J2228.6-1636_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='2.15e-05', photon_flux_error='2.80e-08', dlogl='1.26e-02', energy_flux='1.87e-05', photon_flux2='2.38e-08', job_status='DONE', time_completed='2021-09-28 11:50:39.718336', photon_index_error2='1.02', photon_index2='1.90', ts='4.23', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='3.00e-05', EG='0.91', time_epoch_completed='1632855039.72', return_code='0', job_id='306308', GAL2='0.86', EG2='0.91', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='4.79e-08', ts2='4.24', photon_index='2.06' WHERE bin_id='1000' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:50:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 306308: <4FGL_J2228.6-1636_daily_bin1000> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1000> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 11:40:22 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:40:23 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:40:23 2021
Terminated at Tue Sep 28 11:50:40 2021
Results reported at Tue Sep 28 11:50:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1000 337.166 -16.6073 498528001 498787201 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 :                                   588.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             379.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            618 sec.

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

