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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin649
RA = 337.166, Dec = -16.6073
tmin = 407548801, tmax = 407808001
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='304769', job_status='RUN', time_executed='2021-09-28 11:35:39.410051', time_epoch_executed='1632854139.41' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='649'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304769

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304769/ft1_4FGL_J2228.6-1636_daily_bin649.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304769/ft2_4FGL_J2228.6-1636_daily_bin649.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304769/ft1_4FGL_J2228.6-1636_daily_bin649.fits outfile=/scratch/kocevski/304769/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin649.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=407548801.0 tmax=407808001.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.50
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304769/ft2_4FGL_J2228.6-1636_daily_bin649.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/304769/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin649.fits evtable="EVENTS" outfile="/scratch/kocevski/304769/ft1_filtered_4FGL_J2228.6-1636_daily_bin649.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.54
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304769/ft1_filtered_4FGL_J2228.6-1636_daily_bin649.fits" evtable="EVENTS" scfile=/scratch/kocevski/304769/ft2_4FGL_J2228.6-1636_daily_bin649.fits sctable="SC_DATA" outfile=/scratch/kocevski/304769/ltcube_407548801_407808001_4FGL_J2228.6-1636_daily_bin649.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/304769/ft2_4FGL_J2228.6-1636_daily_bin649.fits
.....................!
real 11.90
user 11.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304769/ft1_filtered_4FGL_J2228.6-1636_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/304769/ft2_4FGL_J2228.6-1636_daily_bin649.fits sctable="SC_DATA" expcube=/scratch/kocevski/304769/ltcube_407548801_407808001_4FGL_J2228.6-1636_daily_bin649.fits outfile=/scratch/kocevski/304769/expmap_407548801_407808001_4FGL_J2228.6-1636_daily_bin649.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/304769/ltcube_407548801_407808001_4FGL_J2228.6-1636_daily_bin649.fits
.....................!
real 193.35
user 187.45
sys 5.44

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/304769/ft1_filtered_4FGL_J2228.6-1636_daily_bin649.fits scfile=/scratch/kocevski/304769/ft2_4FGL_J2228.6-1636_daily_bin649.fits outfile=/scratch/kocevski/304769/cmap_407548801_407808001_4FGL_J2228.6-1636_daily_bin649.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/304769/ft1_filtered_4FGL_J2228.6-1636_daily_bin649.fits scfile=/scratch/kocevski/304769/ft2_4FGL_J2228.6-1636_daily_bin649.fits outfile=/scratch/kocevski/304769/cmap_HighResolution_407548801_407808001_4FGL_J2228.6-1636_daily_bin649.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304769/ft1_filtered_4FGL_J2228.6-1636_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/304769/ft2_4FGL_J2228.6-1636_daily_bin649.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304769/Model_4FGL_J2228.6-1636_daily_bin649.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/304769/ft1_filtered_4FGL_J2228.6-1636_daily_bin649.fits.....................!
real 46.61
user 45.31
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6875       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.344       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    57.340       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.249       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3948       1.0000         .10000E-03   10000.    
    12 'norm      '    7.2132       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.833       1.0000         .10000E-03   10000.    
    15 'norm      '    .10264E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .48533       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.500       1.0000         .10000E-03   10000.    
    19 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.707       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3138       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88394       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89328       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=   4842.621     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2721 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2371        .52233E-06** at limit **
   2  norm          .10000E-03    5.9197        .20439E-07** at limit **
   3  Prefactor     5.6872        5.1119       -.12131E-06    .19889E-04
   4  Prefactor     .10000E-03    7.1890       -.19312E-05** at limit **
   5  Prefactor     .10000E-03    6.4139        .11721E-05** at limit **
   6  Prefactor     19.343        13.775        .20159E-05    .83066E-05
   7  Prefactor     .10000E-03    20.572       -.41723E-06** at limit **
   8  Prefactor     57.253        96.789       -.10524E-03   -.27401E-04
   9  Prefactor     .10000E-03    3.0955        .43809E-07** at limit **
  10  Prefactor     15.262        131.22        .30423E-04   -.49309E-05
  11  norm          3.3941        3.9033        .31957E-05    .40645E-04
  12  norm          7.2124        15.807       -.54089E-06   -.10690E-04
  13  Prefactor     .10000E-03    52.026       -.16025E-05** at limit **
  14  Prefactor     41.826        18.330       -.97537E-06    .38324E-04
  15  norm          .10000E-03    .63649        .16557E-06** at limit **
  16  norm          .48438        1.7567       -.14835E-05   -.14017E-02
  17  Prefactor     .10000E-03    63.387        .43630E-05** at limit **
  18  Prefactor     10.497        12.846        .67827E-06   -.20430E-03
  19  norm          .10000E-03    .57962        .15333E-06** at limit **
  20  Prefactor     10.702        20.920       -.12964E-05   -.82675E-04
  21  Prefactor     .10000E-03    7.3134        .19998E-05** at limit **
  22  Prefactor     6.3134        8.4411       -.52052E-06   -.68427E-04
  23  Normalizat    .88419        .21573        .46179E-05   -.13640E-03
  24  Prefactor     .89314        .15287        .98585E-06   -.49981E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.68725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.3432
  Prefactor  = 0.0001
  Prefactor  = 57.2527
  Prefactor  = 0.0001
  Prefactor  = 15.2623
  norm       = 3.39409
  norm       = 7.21243
  Prefactor  = 0.0001
  Prefactor  = 41.8261
  norm       = 0.000100001
  norm       = 0.484379
  Prefactor  = 0.0001
  Prefactor  = 10.4972
  norm       = 0.0001
  Prefactor  = 10.7015
  Prefactor  = 0.0001
  Prefactor  = 6.31343
  Normalizat = 0.884186
  Prefactor  = 0.89314
 **********
 **   18 **HESSE 
 **********

 FCN=   4842.621     FROM HESSE     STATUS=OK           403 CALLS     3124 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2403        .13989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.1747        .33066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6872        5.1124        .14384E-03   -1.5231    
   4  Prefactor     .10000E-03    7.2108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4588        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.343        13.786        .91065E-04   -1.4828    
   7  Prefactor     .10000E-03    20.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     57.253        96.692        .26489E-03   -1.4193    
   9  Prefactor     .10000E-03    3.1265        .11952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.262        126.81        .10257E-03   -1.4926    
  11  norm          3.3941        3.8862        .13785E-03   -1.5339    
  12  norm          7.2124        15.785        .14935E-03   -1.5171    
  13  Prefactor     .10000E-03    52.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.826        18.448        .61979E-04   -1.4414    
  15  norm          .10000E-03    .98999        .10479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .48438        1.7141        .16961E-03   -1.5569    
  17  Prefactor     .10000E-03    63.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.497        11.833        .12365E-03   -1.5060    
  19  norm          .10000E-03    .75828        .91424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.702        20.660        .12244E-03   -1.5054    
  21  Prefactor     .10000E-03    7.3507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.3134        8.4363        .15975E-03   -1.5205    
  23  Normalizat    .88419        .25372        .27274E-03   -.97018    
  24  Prefactor     .89314        .18034        .20273E-03   -.96381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98664e-09
Minuit parameter uncertainties:
  1  7.86389e-06
  2  1.95819e-05
  3  5.11282
  4  1.64213e-05
  5  3.93e-05
  6  13.7883
  7  0.000117763
  8  96.9584
  9  1.64713e-06
  10  88.2425
  11  3.88651
  12  15.7942
  13  3.66751e-05
  14  18.4504
  15  4.95263e-05
  16  1.71432
  17  0.000120579
  18  11.8357
  19  1.09256e-05
  20  20.674
  21  1.9217e-05
  22  8.43792
  23  0.254058
  24  0.180461
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.526e+01  8.824e+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.931e-01  1.805e-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.842e-01  2.541e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/304769/likelihoodResults_407548801_407808001_4FGL_J2228.6-1636_daily_bin649.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) = 4841.12869804
delta logL = 1.49184566725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4840.98608183
delta logL = 1.6344618864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12292       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9569       1.0000          .0000       10.000    
     3 'Normalizat'    .73328       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96547       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=   4840.986     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      270 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11895        1.1717        .32342E-02    .16320E-02
   2  Index         4.9687        1.8925        .65010E-01    .19082E-03
   3  Normalizat    .73335        .59818E-01    .66978E-01    .21223E-04
   4  Prefactor     .96559        .44711E-01    .45834E-01    .70933E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.118947
  Index      = 4.96871
  Normalizat = 0.733353
  Prefactor  = 0.96559
 **********
 **   18 **HESSE 
 **********

 FCN=   4840.986     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      303 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11895        2.2593        .14532E-04   -1.5639    
   2  Index         4.9687        2.8690        .26045E-02   -.62578E-02
   3  Normalizat    .73335        .21421        .29635E-03   -1.0259    
   4  Prefactor     .96559        .15752        .19553E-03   -.93885    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.22872e-07
Minuit parameter uncertainties:
  1  1.0364
  2  3.0557
  3  0.214456
  4  0.157599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304769': 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) = 4840.98606531
delta logL = 1.63447840005

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.189e-01  1.036e+00  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  4.969e+00  3.056e+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:  9.656e-01  1.576e-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:  7.334e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 4.97 +/- 3.06
Photon Flux (Free Index): 1.35e-07 +/- 8.46e-08
Energy Flux (Free Index): 1.80e-05 +/- 1.25e-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/304769/cmap_HighResolution_407548801_407808001_4FGL_J2228.6-1636_daily_bin649.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.60e-03', comment='SUCCESS', energy_flux2='1.80e-05', dlogl='1.63e+00', photon_flux2='1.35e-07', job_status='DONE', time_completed='2021-09-28 11:44:52.854273', photon_index_error2='3.06', photon_index2='4.97', ts='0.03', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.25e-05', EG='0.88', time_epoch_completed='1632854692.85', return_code='0', job_id='304769', GAL2='0.97', EG2='0.73', return_code2='102', photon_flux_error2='8.46e-08', ts2='3.64', photon_index='2.06' WHERE bin_id='649' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:44:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 304769: <4FGL_J2228.6-1636_daily_bin649> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin649> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:35:30 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:35:32 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:32 2021
Terminated at Tue Sep 28 11:44:53 2021
Results reported at Tue Sep 28 11:44:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin649 337.166 -16.6073 407548801 407808001 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 :                                   553.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   561 sec.
    Turnaround time :                            563 sec.

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

