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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin852
RA = 337.166, Dec = -16.6073
tmin = 460166401, tmax = 460425601
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='305077', job_status='RUN', time_executed='2021-09-28 11:36:07.409146', time_epoch_executed='1632854167.41' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='852'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305077/ft1_4FGL_J2228.6-1636_daily_bin852.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305077/ft2_4FGL_J2228.6-1636_daily_bin852.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305077/ft1_4FGL_J2228.6-1636_daily_bin852.fits outfile=/scratch/kocevski/305077/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin852.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=460166401.0 tmax=460425601.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.38
user 3.14
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305077/ft1_filtered_4FGL_J2228.6-1636_daily_bin852.fits" evtable="EVENTS" scfile=/scratch/kocevski/305077/ft2_4FGL_J2228.6-1636_daily_bin852.fits sctable="SC_DATA" outfile=/scratch/kocevski/305077/ltcube_460166401_460425601_4FGL_J2228.6-1636_daily_bin852.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/305077/ft2_4FGL_J2228.6-1636_daily_bin852.fits
.....................!
real 11.74
user 11.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305077/ft1_filtered_4FGL_J2228.6-1636_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/305077/ft2_4FGL_J2228.6-1636_daily_bin852.fits sctable="SC_DATA" expcube=/scratch/kocevski/305077/ltcube_460166401_460425601_4FGL_J2228.6-1636_daily_bin852.fits outfile=/scratch/kocevski/305077/expmap_460166401_460425601_4FGL_J2228.6-1636_daily_bin852.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/305077/ltcube_460166401_460425601_4FGL_J2228.6-1636_daily_bin852.fits
.....................!
real 190.42
user 185.34
sys 4.76

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/305077/ft1_filtered_4FGL_J2228.6-1636_daily_bin852.fits scfile=/scratch/kocevski/305077/ft2_4FGL_J2228.6-1636_daily_bin852.fits outfile=/scratch/kocevski/305077/cmap_460166401_460425601_4FGL_J2228.6-1636_daily_bin852.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.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305077/ft1_filtered_4FGL_J2228.6-1636_daily_bin852.fits evtable="EVENTS" scfile=/scratch/kocevski/305077/ft2_4FGL_J2228.6-1636_daily_bin852.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305077/Model_4FGL_J2228.6-1636_daily_bin852.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/305077/ft1_filtered_4FGL_J2228.6-1636_daily_bin852.fits.....................!
real 53.15
user 51.83
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7846       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .35736E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.138       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.788       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.2499       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3192       1.0000         .10000E-03   10000.    
    11 'norm      '    27.695       1.0000         .10000E-03   10000.    
    12 'norm      '    24.263       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24431E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.1921       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.709       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93667       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98678       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=   5837.491     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2704 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7857        7.8675        .27668E-05   -.85333E-03
   2  norm          .10000E-03    2.1615        .34178E-07** at limit **
   3  Prefactor     .10000E-03    2.8611        .70503E-07** at limit **
   4  Prefactor     .10000E-03    44.470        .69246E-06** at limit **
   5  Prefactor     11.136        13.729        .38147E-06   -.11607E-04
   6  Prefactor     .10000E-03    5.8919       -.94726E-07** at limit **
   7  Prefactor     .10000E-03    10.142        .54246E-07** at limit **
   8  Prefactor     24.786        44.619       -.75853E-08    .27884E-05
   9  Prefactor     7.2521        7.8533       -.65720E-06   -.12095E-03
  10  Prefactor     6.3225        39.080       -.55581E-05   -.49872E-04
  11  norm          27.696        6.6618        .28658E-06    .25127E-03
  12  norm          24.262        24.244        .25646E-06   -.42751E-05
  13  Prefactor     .10000E-03    417.72       -.90267E-05** at limit **
  14  Prefactor     .10000E-03    4.9268        .19819E-07** at limit **
  15  norm          2.1920        1.1133       -.47941E-07   -.13264E-03
  16  norm          .10000E-03    .71934        .71531E-07** at limit **
  17  Prefactor     .10000E-03    41.730        .41917E-06** at limit **
  18  Prefactor     .10000E-03    6.0469       -.16138E-06** at limit **
  19  norm          .10000E-03    .39368       -.14285E-06** at limit **
  20  Prefactor     43.700        29.567        .55540E-05    .37994E-03
  21  Prefactor     .10000E-03    9.1628       -.37231E-06** at limit **
  22  Prefactor     .10000E-03    7.6546       -.17175E-06** at limit **
  23  Normalizat    .93671        .20589       -.12417E-05    .69327E-04
  24  Prefactor     .98681        .15387        .29523E-07    .12045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.78574
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.7863
  Prefactor  = 7.25209
  Prefactor  = 6.32251
  norm       = 27.6957
  norm       = 24.2621
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.19196
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.6999
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.936713
  Prefactor  = 0.98681
 **********
 **   18 **HESSE 
 **********

 FCN=   5837.491     FROM HESSE     STATUS=OK           393 CALLS     3097 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7857        17.066        .12192E-02   -1.5374    
   2  norm          .10000E-03    2.1621        .10971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.8879        .12619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    46.485        .42629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.136        13.759        .12004E-03   -1.5040    
   6  Prefactor     .10000E-03    5.9342        .18109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.786        44.635        .80457E-04   -1.4712    
   9  Prefactor     7.2521        7.8532        .14897E-03   -1.5169    
  10  Prefactor     6.3225        39.370        .15968E-03   -1.5205    
  11  norm          27.696        6.6551        .76126E-04   -1.4655    
  12  norm          24.262        24.277        .81322E-04   -1.4722    
  13  Prefactor     .10000E-03    420.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.9386        .16560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1920        1.1091        .54645E-04   -1.5412    
  16  norm          .10000E-03    .72231        .63270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .40901        .47158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.700        29.924        .60639E-04   -1.4385    
  21  Prefactor     .10000E-03    9.2883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.7077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93671        .24542        .28910E-03   -.95182    
  24  Prefactor     .98681        .18450        .21705E-03   -.93170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61891e-09
Minuit parameter uncertainties:
  1  13.7955
  2  6.9379e-07
  3  3.2909e-06
  4  0.00010536
  5  13.7632
  6  1.87642e-06
  7  5.62507e-06
  8  44.6954
  9  7.85432
  10  31.5848
  11  6.65525
  12  24.2868
  13  0.00198277
  14  4.22635e-06
  15  1.1091
  16  1.11633e-06
  17  6.03399e-05
  18  7.7468e-05
  19  1.47716e-05
  20  29.9341
  21  7.61186e-05
  22  3.26959e-05
  23  0.245718
  24  0.184622
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.323e+00  3.158e+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:  9.868e-01  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  9.367e-01  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/305077/likelihoodResults_460166401_460425601_4FGL_J2228.6-1636_daily_bin852.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): 0
logL (Free Index) = 5835.73969105
delta logL = 1.75162146236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5835.68122442
delta logL = 1.81008809295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.921       1.0000         .10000E-03   10000.    
     2 'Index     '    .56114       1.0000          .0000       10.000    
     3 'Normalizat'    .92217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99543       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=   5835.681     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      237 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.962        15.466        .26838E-02   -.30338E-03
   2  Index         .56198        .47617        .30226       -.20616E-04
   3  Normalizat    .92286        .19697        .65696E-01    .13837E-04
   4  Prefactor     .99489        .15242        .46210E-01    .39314E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9617
  Index      = 0.56198
  Normalizat = 0.922861
  Prefactor  = 0.994887
 **********
 **   18 **HESSE 
 **********

 FCN=   5835.681     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.962        26.237        .53676E-03   -1.4960    
   2  Index         .56198        .71418        .14950E-01   -1.0921    
   3  Normalizat    .92286        .23474        .29060E-03   -.95661    
   4  Prefactor     .99489        .18186        .21619E-03   -.92900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03387e-12
Minuit parameter uncertainties:
  1  26.2584
  2  0.726155
  3  0.234996
  4  0.181971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305077': 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) = 5835.68121875
delta logL = 1.8100937648

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.396e+01  2.626e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  5.620e-01  7.262e-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:  9.949e-01  1.820e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  9.229e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 0.56 +/- 0.73
Photon Flux (Free Index): 3.53e-09 +/- 3.82e-09
Energy Flux (Free Index): 1.13e-04 +/- 1.46e-04

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/305077/cmap_HighResolution_460166401_460425601_4FGL_J2228.6-1636_daily_bin852.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', comment='SUCCESS', energy_flux2='1.13e-04', dlogl='1.81e+00', photon_flux2='3.53e-09', job_status='DONE', time_completed='2021-09-28 11:46:06.966979', photon_index_error2='0.73', photon_index2='0.56', ts='0.05', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='6.34e-08', energy_flux_error2='1.46e-04', EG='0.94', time_epoch_completed='1632854766.97', return_code='0', job_id='305077', GAL2='0.99', EG2='0.92', return_code2='0', photon_flux_error2='3.82e-09', ts2='3.67', photon_index='2.06' WHERE bin_id='852' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:46:06 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin852 337.166 -16.6073 460166401 460425601 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 :                                   599.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             369.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            612 sec.

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

