/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 181 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2228.6-1636_daily_bin41
RA = 337.166, Dec = -16.6073
tmin = 249955201, tmax = 250214401
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='302081', job_status='RUN', time_executed='2021-09-28 11:28:50.971690', time_epoch_executed='1632853730.97' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302081

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302081/ft1_4FGL_J2228.6-1636_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302081/ft2_4FGL_J2228.6-1636_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302081/ft1_4FGL_J2228.6-1636_daily_bin41.fits outfile=/scratch/kocevski/302081/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin41.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=249955201.0 tmax=250214401.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 1.44
user 1.24
sys 0.18

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302081/ft1_filtered_4FGL_J2228.6-1636_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/302081/ft2_4FGL_J2228.6-1636_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/302081/ltcube_249955201_250214401_4FGL_J2228.6-1636_daily_bin41.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/302081/ft2_4FGL_J2228.6-1636_daily_bin41.fits
.....................!
real 12.49
user 12.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302081/ft1_filtered_4FGL_J2228.6-1636_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/302081/ft2_4FGL_J2228.6-1636_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/302081/ltcube_249955201_250214401_4FGL_J2228.6-1636_daily_bin41.fits outfile=/scratch/kocevski/302081/expmap_249955201_250214401_4FGL_J2228.6-1636_daily_bin41.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/302081/ltcube_249955201_250214401_4FGL_J2228.6-1636_daily_bin41.fits
.....................!
real 190.04
user 184.66
sys 5.03

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/302081/ft1_filtered_4FGL_J2228.6-1636_daily_bin41.fits scfile=/scratch/kocevski/302081/ft2_4FGL_J2228.6-1636_daily_bin41.fits outfile=/scratch/kocevski/302081/cmap_249955201_250214401_4FGL_J2228.6-1636_daily_bin41.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302081/ft1_filtered_4FGL_J2228.6-1636_daily_bin41.fits scfile=/scratch/kocevski/302081/ft2_4FGL_J2228.6-1636_daily_bin41.fits outfile=/scratch/kocevski/302081/cmap_HighResolution_249955201_250214401_4FGL_J2228.6-1636_daily_bin41.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/302081/ft1_filtered_4FGL_J2228.6-1636_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/302081/ft2_4FGL_J2228.6-1636_daily_bin41.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302081/Model_4FGL_J2228.6-1636_daily_bin41.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/302081/ft1_filtered_4FGL_J2228.6-1636_daily_bin41.fits.....................!
real 70.85
user 69.46
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .84678E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9097       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.442       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5082       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.299       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1540       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4464       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    29.202       1.0000         .10000E-03   10000.    
    12 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17808E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36668E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.8672       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.234       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3802       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64499       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2121       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=   8555.022     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2408 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10030E-03    8.8831       -.22837E-05** at limit **
   2  norm          3.9115        4.0424       -.65765E-07    .15207E-03
   3  Prefactor     21.445        7.3715       -.80620E-08    .56872E-03
   4  Prefactor     8.5088        9.2735       -.42116E-07    .16888E-03
   5  Prefactor     .10000E-03    2.5322        .38256E-08** at limit **
   6  Prefactor     10.728        10.537        .15480E-06    .62283E-04
   7  Prefactor     10.294        11.155        .13499E-06    .89468E-05
   8  Prefactor     9.1896        87.530        .18571E-05    .34434E-04
   9  Prefactor     9.4404        5.2940       -.33016E-06    .13619E-03
  10  Prefactor     .10000E-03    20.163        .87885E-07** at limit **
  11  norm          29.196        5.2882       -.35722E-06    .26917E-05
  12  norm          .10000E-03    4.5123       -.48682E-07** at limit **
  13  Prefactor     .10008E-03    542.45       -.16571E-04** at limit **
  14  Prefactor     .10000E-03    5.1607       -.36432E-06** at limit **
  15  norm          .10000E-03    .23700        .14547E-06** at limit **
  16  norm          .10000E-03    .92363       -.18670E-05** at limit **
  17  Prefactor     8.9389        21.076        .68872E-05    .48728E-03
  18  Prefactor     .10000E-03    15.948        .90367E-06** at limit **
  19  norm          .10000E-03    .31388        .37466E-06** at limit **
  20  Prefactor     17.226        19.311       -.11233E-05   -.30805E-03
  21  Prefactor     9.3806        7.5787        .43506E-07   -.87002E-04
  22  Prefactor     .10000E-03    2.8892        .39663E-07** at limit **
  23  Normalizat    .64506        .17849        .64052E-06    .26592E-03
  24  Prefactor     1.2121        .13748       -.77020E-06    .48530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100295
  norm       = 3.91148
  Prefactor  = 21.4449
  Prefactor  = 8.50884
  Prefactor  = 0.0001
  Prefactor  = 10.7284
  Prefactor  = 10.2944
  Prefactor  = 9.18959
  Prefactor  = 9.44044
  Prefactor  = 0.0001
  norm       = 29.196
  norm       = 0.0001
  Prefactor  = 0.000100078
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 8.93891
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.2258
  Prefactor  = 9.38055
  Prefactor  = 0.0001
  Normalizat = 0.645058
  Prefactor  = 1.21211
 **********
 **   18 **HESSE 
 **********

 FCN=   8555.022     FROM HESSE     STATUS=OK           403 CALLS     2811 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10030E-03    40.234        .49904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9115        4.0377        .18404E-03   -1.5312    
   3  Prefactor     21.445        7.2979        .86500E-04   -1.4781    
   4  Prefactor     8.5088        9.2332        .13743E-03   -1.5124    
   5  Prefactor     .10000E-03    2.5406        .14373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.728        10.522        .12230E-03   -1.5053    
   7  Prefactor     10.294        11.150        .12485E-03   -1.5066    
   8  Prefactor     9.1896        86.950        .13247E-03   -1.5102    
   9  Prefactor     9.4404        5.2774        .13039E-03   -1.5093    
  10  Prefactor     .10000E-03    20.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          29.196        5.2396        .74141E-04   -1.4627    
  12  norm          .10000E-03    4.5156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10008E-03    546.13        .20330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.835        .39955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .30197        .86954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3372        .15590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.9389        22.592        .13460E-03   -1.5110    
  18  Prefactor     .10000E-03    16.136        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .37304        .94832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.226        18.429        .96477E-04   -1.4878    
  21  Prefactor     9.3806        7.5768        .13085E-03   -1.5095    
  22  Prefactor     .10000E-03    2.8958        .15352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .64506        .20035        .33374E-03   -1.0610    
  24  Prefactor     1.2121        .15648        .20141E-03   -.85959    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.33308e-09
Minuit parameter uncertainties:
  1  0.00689894
  2  4.03799
  3  7.2982
  4  9.23473
  5  1.21e-06
  6  10.5243
  7  11.1526
  8  56.6426
  9  5.27763
  10  1.9704e-05
  11  5.23969
  12  1.87158e-06
  13  0.0131783
  14  0.000136438
  15  1.16714e-06
  16  5.64497e-05
  17  22.6132
  18  2.36161e-05
  19  7.4246e-07
  20  18.435
  21  7.57757
  22  8.86844e-07
  23  0.200572
  24  0.156537
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  1.970e-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:  1.212e+00  1.565e-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:  6.451e-01  2.006e-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: 4.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302081/likelihoodResults_249955201_250214401_4FGL_J2228.6-1636_daily_bin41.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) = 8555.02262374
delta logL = -0.000236064121054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8555.02238785
delta logL = -1.7566162569e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1446       1.0000          .0000       10.000    
     3 'Normalizat'    .64505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2121       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=   8555.022     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      231 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1132.4        .90712E-02** at limit **
   2  Index         2.1342        5.7099        .50000        .43271E-05
   3  Normalizat    .64506        .33628E-01    .75386E-01    .45118E-04
   4  Prefactor     1.2121        .27185E-01    .34351E-01    .53826E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.13417
  Normalizat = 0.645058
  Prefactor  = 1.21211
 **********
 **   18 **HESSE 
 **********

 FCN=   8555.022     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6621.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1342        6.0147        .50000       -.61036    
   3  Normalizat    .64506        .82401E-01    .33374E-03   -1.0610    
   4  Prefactor     1.2121        .66769E-01    .20141E-03   -.85959    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.4249e-09
Minuit parameter uncertainties:
  1  3.51463e-05
  2  56.2624
  3  0.0824172
  4  0.0667732
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302081': 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) = 8555.02238775
delta logL = -7.30196916265e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  1.212e+00  6.677e-02  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:  6.451e-01  8.242e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/302081/cmap_HighResolution_249955201_250214401_4FGL_J2228.6-1636_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-03', job_status='DONE', photon_flux_upper_limit='4.41e-08', time_completed='2021-09-28 11:40:44.158814', job_id='302081', GAL2='1.21', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1632854444.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='-7.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='41' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:40:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 302081: <4FGL_J2228.6-1636_daily_bin41> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin41> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:25:39 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:25: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:25:41 2021
Terminated at Tue Sep 28 11:40:44 2021
Results reported at Tue Sep 28 11:40:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin41 337.166 -16.6073 249955201 250214401 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 :                                   712.34 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             321.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   903 sec.
    Turnaround time :                            905 sec.

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

