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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin670
RA = 337.166, Dec = -16.6073
tmin = 412992001, tmax = 413251201
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='304800', job_status='RUN', time_executed='2021-09-28 11:37:55.859366', time_epoch_executed='1632854275.86' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304800

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304800/ft1_4FGL_J2228.6-1636_daily_bin670.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304800/ft2_4FGL_J2228.6-1636_daily_bin670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304800/ft1_4FGL_J2228.6-1636_daily_bin670.fits outfile=/scratch/kocevski/304800/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin670.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=412992001.0 tmax=413251201.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.54
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304800/ft1_filtered_4FGL_J2228.6-1636_daily_bin670.fits" evtable="EVENTS" scfile=/scratch/kocevski/304800/ft2_4FGL_J2228.6-1636_daily_bin670.fits sctable="SC_DATA" outfile=/scratch/kocevski/304800/ltcube_412992001_413251201_4FGL_J2228.6-1636_daily_bin670.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/304800/ft2_4FGL_J2228.6-1636_daily_bin670.fits
.....................!
real 15.16
user 14.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304800/ft1_filtered_4FGL_J2228.6-1636_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/304800/ft2_4FGL_J2228.6-1636_daily_bin670.fits sctable="SC_DATA" expcube=/scratch/kocevski/304800/ltcube_412992001_413251201_4FGL_J2228.6-1636_daily_bin670.fits outfile=/scratch/kocevski/304800/expmap_412992001_413251201_4FGL_J2228.6-1636_daily_bin670.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/304800/ltcube_412992001_413251201_4FGL_J2228.6-1636_daily_bin670.fits
.....................!
real 191.10
user 185.38
sys 5.38

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/304800/ft1_filtered_4FGL_J2228.6-1636_daily_bin670.fits scfile=/scratch/kocevski/304800/ft2_4FGL_J2228.6-1636_daily_bin670.fits outfile=/scratch/kocevski/304800/cmap_412992001_413251201_4FGL_J2228.6-1636_daily_bin670.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.34
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/304800/ft1_filtered_4FGL_J2228.6-1636_daily_bin670.fits scfile=/scratch/kocevski/304800/ft2_4FGL_J2228.6-1636_daily_bin670.fits outfile=/scratch/kocevski/304800/cmap_HighResolution_412992001_413251201_4FGL_J2228.6-1636_daily_bin670.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/304800/ft1_filtered_4FGL_J2228.6-1636_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/304800/ft2_4FGL_J2228.6-1636_daily_bin670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/304800/Model_4FGL_J2228.6-1636_daily_bin670.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/304800/ft1_filtered_4FGL_J2228.6-1636_daily_bin670.fits.....................!
real 56.80
user 55.39
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.8015       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .77446       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11446E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8395       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9103       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.127       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8411       1.0000         .10000E-03   10000.    
    12 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.248       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    48.736       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13224E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12231       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7798       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5623       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72681       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=   6356.490     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     3436 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3924       -.25418E-07** at limit **
   2  norm          8.8010        5.9879        .14331E-07    .20320E-04
   3  Prefactor     .77339        7.0704        .36992E-05   -.18056E-03
   4  Prefactor     .10001E-03    75.623        .59388E-05** at limit **
   5  Prefactor     9.8420        14.875        .30892E-06   -.12085E-04
   6  Prefactor     5.9109        10.446        .21569E-06   -.11529E-03
   7  Prefactor     .10000E-03    8.7452        .67906E-08** at limit **
   8  Prefactor     13.128        73.474        .14934E-06   -.81788E-05
   9  Prefactor     .10000E-03    3.5808       -.14662E-07** at limit **
  10  Prefactor     .10000E-03    21.475       -.15556E-06** at limit **
  11  norm          2.8417        3.5565        .34908E-06   -.93446E-04
  12  norm          .10001E-03    92.327       -.54215E-05** at limit **
  13  Prefactor     .10000E-03    42.891        .52397E-06** at limit **
  14  Prefactor     29.253        21.217       -.36636E-06   -.41004E-04
  15  norm          .10000E-03    .27900       -.49102E-08** at limit **
  16  norm          .10000E-03    3.3650        .71580E-06** at limit **
  17  Prefactor     48.757        68.833        .35785E-05    .11723E-03
  18  Prefactor     .10001E-03    8.1876       -.47974E-06** at limit **
  19  norm          .12261        .80347        .53587E-06   -.65034E-03
  20  Prefactor     .10000E-03    38.156       -.23140E-05** at limit **
  21  Prefactor     .10000E-03    3.7840       -.93543E-08** at limit **
  22  Prefactor     6.7816        8.2592        .33963E-06    .55327E-04
  23  Normalizat    1.5619        .21906       -.99639E-06   -.17768E-03
  24  Prefactor     .72709        .15223       -.11819E-06   -.25192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.80099
  Prefactor  = 0.773391
  Prefactor  = 0.000100006
  Prefactor  = 9.842
  Prefactor  = 5.9109
  Prefactor  = 0.0001
  Prefactor  = 13.1278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.84171
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 29.2527
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 48.7568
  Prefactor  = 0.000100009
  norm       = 0.122612
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 6.78162
  Normalizat = 1.56186
  Prefactor  = 0.727089
 **********
 **   18 **HESSE 
 **********

 FCN=   6356.490     FROM HESSE     STATUS=OK           401 CALLS     3837 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.8010        5.9918        .13511E-03   -1.5115    
   3  Prefactor     .77339        7.6048        .40859E-03   -1.5532    
   4  Prefactor     .10001E-03    80.104        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8420        14.871        .12775E-03   -1.5080    
   6  Prefactor     5.9109        10.443        .16518E-03   -1.5222    
   7  Prefactor     .10000E-03    8.7509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.128        72.995        .11055E-03   -1.4983    
   9  Prefactor     .10000E-03    3.6888        .29424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8417        3.5413        .15379E-03   -1.5371    
  12  norm          .10001E-03    97.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.253        21.417        .74082E-04   -1.4626    
  15  norm          .10000E-03    .41684        .81568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3903        .28262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     48.757        70.611        .57441E-04   -1.4310    
  18  Prefactor     .10001E-03    27.246        .35391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .12261        .94362        .10907E-02   -1.5638    
  20  Prefactor     .10000E-03    39.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8130        .15145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.7816        8.2699        .15410E-03   -1.5187    
  23  Normalizat    1.5619        .26550        .24705E-03   -.76055    
  24  Prefactor     .72709        .18421        .24809E-03   -1.0247    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.07006e-10
Minuit parameter uncertainties:
  1  4.21233e-06
  2  5.99218
  3  4.85085
  4  0.00133492
  5  14.8761
  6  10.4464
  7  1.6395e-06
  8  62.0282
  9  2.61807e-06
  10  2.161e-05
  11  3.54157
  12  0.0019803
  13  0.000128355
  14  21.4223
  15  7.88138e-07
  16  3.21772e-05
  17  70.7329
  18  0.00100116
  19  0.680029
  20  0.000546644
  21  4.68676e-07
  22  8.27131
  23  0.265743
  24  0.184366
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.562e+00  2.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/304800/likelihoodResults_412992001_413251201_4FGL_J2228.6-1636_daily_bin670.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) = 6356.48986779
delta logL = -0.000221332042202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6356.48964768
delta logL = -1.22209075926e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5319       1.0000          .0000       10.000    
     3 'Normalizat'    1.5618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72709       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=   6356.490     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      270 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10498E-03    1.2719        .18142E-01** at limit **
   2  Index         2.4024        7.7291        .50000        .13904E-04
   3  Normalizat    1.5619        .14320E-02    .24705E-03   -.48942E-03
   4  Prefactor     .72709        .10317E-02    .24809E-03   -.56060E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104975
  Index      = 2.40241
  Normalizat = 1.56186
  Prefactor  = 0.727089
 **********
 **   18 **HESSE 
 **********

 FCN=   6356.490     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10498E-03    54.014        .31446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4024        7.8124        .50000       -.54629    
   3  Normalizat    1.5619        .93418E-02    .49410E-04   -.76055    
   4  Prefactor     .72709        .67303E-02    .49618E-04   -1.0247    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.10196e-09
Minuit parameter uncertainties:
  1  0.0328155
  2  317.011
  3  0.00934177
  4  0.00673035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304800': 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) = 6356.48964733
delta logL = -8.72642885952e-07

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
484   Normalization:  1.562e+00  9.342e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/304800/cmap_HighResolution_412992001_413251201_4FGL_J2228.6-1636_daily_bin670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2021-09-28 11:49:10.741641', job_id='304800', GAL2='0.73', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1632854950.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-8.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='670' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:49:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 304800: <4FGL_J2228.6-1636_daily_bin670> in cluster <slac> Done

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

Your job looked like:

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

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

