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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1502
RA = 337.166, Dec = -16.6073
tmin = 628646401, tmax = 628905601
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='308094', job_status='RUN', time_executed='2021-09-28 11:46:56.109545', time_epoch_executed='1632854816.11' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1502'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/308094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/308094/ft1_4FGL_J2228.6-1636_daily_bin1502.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/308094/ft2_4FGL_J2228.6-1636_daily_bin1502.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/308094/ft1_4FGL_J2228.6-1636_daily_bin1502.fits outfile=/scratch/kocevski/308094/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1502.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=628646401.0 tmax=628905601.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.49
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/308094/ft2_4FGL_J2228.6-1636_daily_bin1502.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/308094/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1502.fits evtable="EVENTS" outfile="/scratch/kocevski/308094/ft1_filtered_4FGL_J2228.6-1636_daily_bin1502.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/308094/ft1_filtered_4FGL_J2228.6-1636_daily_bin1502.fits" evtable="EVENTS" scfile=/scratch/kocevski/308094/ft2_4FGL_J2228.6-1636_daily_bin1502.fits sctable="SC_DATA" outfile=/scratch/kocevski/308094/ltcube_628646401_628905601_4FGL_J2228.6-1636_daily_bin1502.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/308094/ft2_4FGL_J2228.6-1636_daily_bin1502.fits
.....................!
real 11.98
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/308094/ft1_filtered_4FGL_J2228.6-1636_daily_bin1502.fits evtable="EVENTS" scfile=/scratch/kocevski/308094/ft2_4FGL_J2228.6-1636_daily_bin1502.fits sctable="SC_DATA" expcube=/scratch/kocevski/308094/ltcube_628646401_628905601_4FGL_J2228.6-1636_daily_bin1502.fits outfile=/scratch/kocevski/308094/expmap_628646401_628905601_4FGL_J2228.6-1636_daily_bin1502.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/308094/ltcube_628646401_628905601_4FGL_J2228.6-1636_daily_bin1502.fits
.....................!
real 190.47
user 185.76
sys 4.41

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/308094/ft1_filtered_4FGL_J2228.6-1636_daily_bin1502.fits scfile=/scratch/kocevski/308094/ft2_4FGL_J2228.6-1636_daily_bin1502.fits outfile=/scratch/kocevski/308094/cmap_628646401_628905601_4FGL_J2228.6-1636_daily_bin1502.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/308094/ft1_filtered_4FGL_J2228.6-1636_daily_bin1502.fits scfile=/scratch/kocevski/308094/ft2_4FGL_J2228.6-1636_daily_bin1502.fits outfile=/scratch/kocevski/308094/cmap_HighResolution_628646401_628905601_4FGL_J2228.6-1636_daily_bin1502.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6966       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6093       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.241       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15358E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    61.783       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.5700       1.0000         .10000E-03   10000.    
    16 'norm      '    .43840       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.980       1.0000         .10000E-03   10000.    
    19 'norm      '    3.9301       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.135       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0163       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4803       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .67941       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=   4836.945     FROM MIGRAD    STATUS=CONVERGED    527 CALLS     2712 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.379        .13245E-06** at limit **
   2  norm          .10000E-03    10.011        .18013E-06** at limit **
   3  Prefactor     .10000E-03    2.6749       -.68184E-07** at limit **
   4  Prefactor     8.6899        23.033        .25660E-06   -.10497E-04
   5  Prefactor     7.6064        12.509        .25882E-06   -.50610E-05
   6  Prefactor     17.216        21.525        .18539E-06   -.10331E-03
   7  Prefactor     .10000E-03    29.378        .32528E-06** at limit **
   8  Prefactor     61.732        100.07       -.12170E-05   -.76149E-04
   9  Prefactor     .10000E-03    3.6949        .92921E-08** at limit **
  10  Prefactor     .10000E-03    38.729        .37830E-06** at limit **
  11  norm          .10000E-03    1.6323       -.22632E-06** at limit **
  12  norm          .10000E-03    22.005       -.47506E-06** at limit **
  13  Prefactor     .10000E-03    29.805       -.38033E-07** at limit **
  14  Prefactor     .10000E-03    5.6741        .40623E-07** at limit **
  15  norm          1.5699        1.0952       -.23762E-07   -.11573E-04
  16  norm          .43746        2.8816        .18608E-05    .14810E-03
  17  Prefactor     .10000E-03    47.378       -.62574E-06** at limit **
  18  Prefactor     28.005        42.214        .66064E-05    .10792E-04
  19  norm          3.9277        3.3432       -.13627E-05    .28422E-03
  20  Prefactor     .10000E-03    19.810        .62150E-06** at limit **
  21  Prefactor     17.136        14.019        .12936E-06   -.99782E-06
  22  Prefactor     3.0145        15.122        .92633E-06    .15463E-04
  23  Normalizat    1.4809        .24697       -.20367E-05   -.23082E-05
  24  Prefactor     .67905        .17699        .10553E-05   -.10885E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.68989
  Prefactor  = 7.6064
  Prefactor  = 17.2163
  Prefactor  = 0.0001
  Prefactor  = 61.7319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.56993
  norm       = 0.437456
  Prefactor  = 0.0001
  Prefactor  = 28.0046
  norm       = 3.9277
  Prefactor  = 0.0001
  Prefactor  = 17.1355
  Prefactor  = 3.01452
  Normalizat = 1.48085
  Prefactor  = 0.679051
 **********
 **   18 **HESSE 
 **********

 FCN=   4836.945     FROM HESSE     STATUS=OK           395 CALLS     3107 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    10.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6839        .11106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.6899        22.984        .13592E-03   -1.5118    
   5  Prefactor     7.6064        12.509        .14538E-03   -1.5156    
   6  Prefactor     17.216        21.650        .96457E-04   -1.4878    
   7  Prefactor     .10000E-03    30.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     61.732        101.70        .51049E-04   -1.4135    
   9  Prefactor     .10000E-03    3.7323        .13053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6416        .86748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    22.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.6814        .16179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5699        1.0951        .33930E-04   -1.5457    
  16  norm          .43746        3.0716        .23206E-03   -1.5576    
  17  Prefactor     .10000E-03    47.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     28.005        42.556        .75738E-04   -1.4649    
  19  norm          3.9277        3.3706        .58133E-04   -1.5312    
  20  Prefactor     .10000E-03    19.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.136        14.015        .96756E-04   -1.4880    
  22  Prefactor     3.0145        15.156        .23368E-03   -1.5361    
  23  Normalizat    1.4809        .28798        .25417E-03   -.78318    
  24  Prefactor     .67905        .20580        .26017E-03   -1.0435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64092e-10
Minuit parameter uncertainties:
  1  4.36142e-05
  2  1.20199e-05
  3  4.45488e-08
  4  23.0077
  5  12.5131
  6  21.6601
  7  4.37646e-05
  8  101.992
  9  3.70823e-06
  10  0.000216106
  11  2.12522e-06
  12  0.000174897
  13  2.27864e-05
  14  8.57428e-07
  15  1.09507
  16  2.31826
  17  0.000295174
  18  42.6026
  19  3.3708
  20  8.54329e-05
  21  14.0176
  22  13.5238
  23  0.288299
  24  0.206033
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  2.161e-04  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:  6.791e-01  2.060e-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.481e+00  2.883e-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: 7.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/308094/likelihoodResults_628646401_628905601_4FGL_J2228.6-1636_daily_bin1502.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) = 4836.94541421
delta logL = -0.000122407375784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4836.94529345
delta logL = -1.64021457749e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13690E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7252       1.0000          .0000       10.000    
     3 'Normalizat'    1.4808       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67905       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=   4836.945     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    135.08        .90712E-02** at limit **
   2  Index         2.6943        5.4584        .50000        .11378E-04
   3  Normalizat    1.4808        .14165E-01    .57481E-01   -.67736E-05
   4  Prefactor     .67905        .10304E-01    .42122E-01    .51494E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.69428
  Normalizat = 1.48085
  Prefactor  = 0.679053
 **********
 **   18 **HESSE 
 **********

 FCN=   4836.945     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6943        6.0689        .50000       -.47928    
   3  Normalizat    1.4808        .27394        .25417E-03   -.78318    
   4  Prefactor     .67905        .19925        .26017E-03   -1.0435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49954e-10
Minuit parameter uncertainties:
  1  0.000315523
  2  6.95563
  3  0.27421
  4  0.19946
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/308094': 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) = 4836.94529258
delta logL = -7.69301550463e-07

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  3.155e-04  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.694e+00  6.956e+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:  6.791e-01  1.995e-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.481e+00  2.742e-01  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/308094/cmap_HighResolution_628646401_628905601_4FGL_J2228.6-1636_daily_bin1502.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-28 11:56:02.246781', job_id='308094', GAL2='0.68', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1632855362.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-7.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1502' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:56:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 308094: <4FGL_J2228.6-1636_daily_bin1502> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1502> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:45:39 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:45:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:45:41 2021
Terminated at Tue Sep 28 11:56:03 2021
Results reported at Tue Sep 28 11:56:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1502 337.166 -16.6073 628646401 628905601 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 :                                   543.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            624 sec.

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

