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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin895
RA = 337.166, Dec = -16.6073
tmin = 471312001, tmax = 471571201
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='305141', job_status='RUN', time_executed='2021-09-28 11:36:12.716657', time_epoch_executed='1632854172.72' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='895'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305141

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305141/ft1_4FGL_J2228.6-1636_daily_bin895.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305141/ft2_4FGL_J2228.6-1636_daily_bin895.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305141/ft1_4FGL_J2228.6-1636_daily_bin895.fits outfile=/scratch/kocevski/305141/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin895.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=471312001.0 tmax=471571201.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 5.06
user 4.76
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305141/ft1_filtered_4FGL_J2228.6-1636_daily_bin895.fits" evtable="EVENTS" scfile=/scratch/kocevski/305141/ft2_4FGL_J2228.6-1636_daily_bin895.fits sctable="SC_DATA" outfile=/scratch/kocevski/305141/ltcube_471312001_471571201_4FGL_J2228.6-1636_daily_bin895.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/305141/ft2_4FGL_J2228.6-1636_daily_bin895.fits
.....................!
real 13.57
user 13.21
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305141/ft1_filtered_4FGL_J2228.6-1636_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/305141/ft2_4FGL_J2228.6-1636_daily_bin895.fits sctable="SC_DATA" expcube=/scratch/kocevski/305141/ltcube_471312001_471571201_4FGL_J2228.6-1636_daily_bin895.fits outfile=/scratch/kocevski/305141/expmap_471312001_471571201_4FGL_J2228.6-1636_daily_bin895.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/305141/ltcube_471312001_471571201_4FGL_J2228.6-1636_daily_bin895.fits
.....................!
real 190.21
user 185.59
sys 4.25

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/305141/ft1_filtered_4FGL_J2228.6-1636_daily_bin895.fits scfile=/scratch/kocevski/305141/ft2_4FGL_J2228.6-1636_daily_bin895.fits outfile=/scratch/kocevski/305141/cmap_471312001_471571201_4FGL_J2228.6-1636_daily_bin895.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305141/ft1_filtered_4FGL_J2228.6-1636_daily_bin895.fits scfile=/scratch/kocevski/305141/ft2_4FGL_J2228.6-1636_daily_bin895.fits outfile=/scratch/kocevski/305141/cmap_HighResolution_471312001_471571201_4FGL_J2228.6-1636_daily_bin895.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/305141/ft1_filtered_4FGL_J2228.6-1636_daily_bin895.fits evtable="EVENTS" scfile=/scratch/kocevski/305141/ft2_4FGL_J2228.6-1636_daily_bin895.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305141/Model_4FGL_J2228.6-1636_daily_bin895.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/305141/ft1_filtered_4FGL_J2228.6-1636_daily_bin895.fits.....................!
real 53.69
user 52.35
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7161       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3753       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.197       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .22596E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2133       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.864       1.0000         .10000E-03   10000.    
    11 'norm      '    11.319       1.0000         .10000E-03   10000.    
    12 'norm      '    29.791       1.0000         .10000E-03   10000.    
    13 'Prefactor '    72.919       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .34146E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.8412       1.0000         .10000E-03   10000.    
    16 'norm      '    1.1349       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.5835       1.0000         .10000E-03   10000.    
    19 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8459       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.624       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79634       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1993       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=   6288.569     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2765 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.105       -.38185E-05** at limit **
   2  norm          1.7157        1.4811        .51164E-07   -.26143E-02
   3  Prefactor     2.3747        6.3674        .89914E-05    .18901E-04
   4  Prefactor     12.197        12.823        .30389E-06   -.26123E-04
   5  Prefactor     .10013E-03    4.9084        .24808E-06** at limit **
   6  Prefactor     .10000E-03    2.7513       -.45041E-07** at limit **
   7  Prefactor     2.2089        29.844       -.25779E-05   -.37391E-05
   8  Prefactor     .10000E-03    54.386        .72282E-05** at limit **
   9  Prefactor     .10000E-03    3.9272       -.18156E-06** at limit **
  10  Prefactor     28.864        31.781       -.48732E-06    .39680E-05
  11  norm          11.321        4.9885        .88113E-07   -.72723E-05
  12  norm          29.793        22.160       -.26321E-06    .44982E-04
  13  Prefactor     72.925        88.941        .50249E-05    .10562E-04
  14  Prefactor     .10057E-03    7.1632       -.14416E-05** at limit **
  15  norm          6.8411        1.4385        .32328E-07    .16939E-03
  16  norm          1.1348        1.9029        .16068E-06    .32599E-03
  17  Prefactor     .10000E-03    13.308        .38244E-05** at limit **
  18  Prefactor     6.5839        7.8645        .99146E-06    .11163E-03
  19  norm          .10000E-03    .42580       -.72687E-07** at limit **
  20  Prefactor     9.8461        25.206       -.41669E-06    .44475E-04
  21  Prefactor     14.623        12.218       -.29691E-07    .14619E-04
  22  Prefactor     .10017E-03    7.0080       -.11563E-05** at limit **
  23  Normalizat    .79633        .21001       -.82699E-06    .15582E-03
  24  Prefactor     1.1994        .16097       -.10014E-05    .20144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.71566
  Prefactor  = 2.37466
  Prefactor  = 12.1967
  Prefactor  = 0.000100134
  Prefactor  = 0.0001
  Prefactor  = 2.2089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.8638
  norm       = 11.321
  norm       = 29.793
  Prefactor  = 72.9247
  Prefactor  = 0.000100575
  norm       = 6.84106
  norm       = 1.13477
  Prefactor  = 0.0001
  Prefactor  = 6.58394
  norm       = 0.0001
  Prefactor  = 9.84611
  Prefactor  = 14.623
  Prefactor  = 0.000100169
  Normalizat = 0.796331
  Prefactor  = 1.19942
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.569     FROM HESSE     STATUS=OK           413 CALLS     3178 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7157        5.0288        .14872E-02   -1.5446    
   3  Prefactor     2.3747        6.3688        .26583E-03   -1.5400    
   4  Prefactor     12.197        12.801        .11470E-03   -1.5009    
   5  Prefactor     .10013E-03    8.5902        .58748E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7554        .12846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2089        29.709        .27646E-03   -1.5411    
   8  Prefactor     .10000E-03    54.407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.656        .30139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.864        31.780        .74572E-04   -1.4633    
  11  norm          11.321        4.9564        .11031E-03   -1.5035    
  12  norm          29.793        22.090        .73406E-04   -1.4616    
  13  Prefactor     72.925        88.602        .47015E-04   -1.3998    
  14  Prefactor     .10057E-03    51.544        .39344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.8411        1.4383        .41918E-04   -1.5185    
  16  norm          1.1348        1.5923        .13609E-02   -1.5495    
  17  Prefactor     .10000E-03    13.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.5839        7.6615        .15640E-03   -1.5195    
  19  norm          .10000E-03    .50304        .93480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.8461        24.375        .12771E-03   -1.5080    
  21  Prefactor     14.623        12.209        .10474E-03   -1.4943    
  22  Prefactor     .10017E-03    43.074        .40439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79633        .23611        .31645E-03   -1.0020    
  24  Prefactor     1.1994        .18666        .20971E-03   -.86349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46506e-08
Minuit parameter uncertainties:
  1  9.73184e-05
  2  5.03004
  3  6.37064
  4  12.8044
  5  0.00214685
  6  6.12192e-06
  7  16.2113
  8  8.1924e-05
  9  3.21799e-05
  10  31.7989
  11  4.95661
  12  22.0957
  13  88.7632
  14  0.010897
  15  1.43835
  16  1.59239
  17  3.42069e-05
  18  7.66262
  19  3.80057e-06
  20  24.3997
  21  12.2109
  22  0.0054036
  23  0.236411
  24  0.186762
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
484   Normalization:  7.963e-01  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.47
Ra Dec: 337.166 -16.607
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 1.55e-08 +/- 1.71e-08
Energy Flux (Fixed Index): 9.34e-06 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/305141/likelihoodResults_471312001_471571201_4FGL_J2228.6-1636_daily_bin895.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) = 6288.42787292
delta logL = 0.140962500396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6288.42120761
delta logL = 0.147627806236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.404       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6572       1.0000          .0000       10.000    
     3 'Normalizat'    .80058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1975       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=   6288.421     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      305 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.409        50.426        .60851E-04    .76973E-05
   2  Index         1.6571        .69173        .11027E-01    .14694E-03
   3  Normalizat    .80072        .22970        .31566E-03   -.13794E-04
   4  Prefactor     1.1974        .18427        .20986E-03   -.12655E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.4092
  Index      = 1.65707
  Normalizat = 0.800723
  Prefactor  = 1.19745
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.421     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.409        49.776        .12170E-04   -1.4389    
   2  Index         1.6571        .68320        .22054E-02   -.73231    
   3  Normalizat    .80072        .22989        .12626E-04   -1.0004    
   4  Prefactor     1.1974        .18443        .41972E-04   -.86410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08713e-12
Minuit parameter uncertainties:
  1  49.824
  2  0.6871
  3  0.230167
  4  0.18453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305141': 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) = 6288.42120724
delta logL = 0.147628181418

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  4.341e+01  4.982e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  1.657e+00  6.871e-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.197e+00  1.845e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  8.007e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.77
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 1.66 +/- 0.69
Photon Flux (Free Index): 1.08e-08 +/- 1.42e-08
Energy Flux (Free Index): 2.03e-05 +/- 3.74e-05

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-03', comment='SUCCESS', photon_flux='1.55e-08', energy_flux2='2.03e-05', photon_flux_error='1.71e-08', dlogl='1.48e-01', energy_flux='9.34e-06', photon_flux2='1.08e-08', job_status='DONE', time_completed='2021-09-28 11:46:55.989914', photon_index_error2='0.69', photon_index2='1.66', ts='2.47', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='7.09e-08', energy_flux_error2='3.74e-05', EG='0.80', time_epoch_completed='1632854815.99', return_code='0', job_id='305141', GAL2='1.20', EG2='0.80', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='1.42e-08', ts2='2.77', photon_index='2.06' WHERE bin_id='895' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 305141: <4FGL_J2228.6-1636_daily_bin895> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin895> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:36:01 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:36:03 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:36:03 2021
Terminated at Tue Sep 28 11:46:56 2021
Results reported at Tue Sep 28 11:46:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin895 337.166 -16.6073 471312001 471571201 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 :                                   640.32 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            655 sec.

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

