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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin103
RA = 337.166, Dec = -16.6073
tmin = 266025601, tmax = 266284801
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='302175', job_status='RUN', time_executed='2021-09-28 11:29:51.980685', time_epoch_executed='1632853791.98' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='103'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302175

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302175/ft1_4FGL_J2228.6-1636_daily_bin103.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302175/ft2_4FGL_J2228.6-1636_daily_bin103.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302175/ft1_4FGL_J2228.6-1636_daily_bin103.fits outfile=/scratch/kocevski/302175/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin103.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=266025601.0 tmax=266284801.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.43
user 1.22
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/302175/ft1_filtered_4FGL_J2228.6-1636_daily_bin103.fits" evtable="EVENTS" scfile=/scratch/kocevski/302175/ft2_4FGL_J2228.6-1636_daily_bin103.fits sctable="SC_DATA" outfile=/scratch/kocevski/302175/ltcube_266025601_266284801_4FGL_J2228.6-1636_daily_bin103.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/302175/ft2_4FGL_J2228.6-1636_daily_bin103.fits
.....................!
real 13.58
user 13.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302175/ft1_filtered_4FGL_J2228.6-1636_daily_bin103.fits evtable="EVENTS" scfile=/scratch/kocevski/302175/ft2_4FGL_J2228.6-1636_daily_bin103.fits sctable="SC_DATA" expcube=/scratch/kocevski/302175/ltcube_266025601_266284801_4FGL_J2228.6-1636_daily_bin103.fits outfile=/scratch/kocevski/302175/expmap_266025601_266284801_4FGL_J2228.6-1636_daily_bin103.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/302175/ltcube_266025601_266284801_4FGL_J2228.6-1636_daily_bin103.fits
.....................!
real 191.81
user 185.79
sys 5.64

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/302175/ft1_filtered_4FGL_J2228.6-1636_daily_bin103.fits scfile=/scratch/kocevski/302175/ft2_4FGL_J2228.6-1636_daily_bin103.fits outfile=/scratch/kocevski/302175/cmap_266025601_266284801_4FGL_J2228.6-1636_daily_bin103.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.52
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302175/ft1_filtered_4FGL_J2228.6-1636_daily_bin103.fits scfile=/scratch/kocevski/302175/ft2_4FGL_J2228.6-1636_daily_bin103.fits outfile=/scratch/kocevski/302175/cmap_HighResolution_266025601_266284801_4FGL_J2228.6-1636_daily_bin103.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.913       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.160       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25441E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4885       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.897       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    23.153       1.0000         .10000E-03   10000.    
    12 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .79530       1.0000         .10000E-03   10000.    
    16 'norm      '    .39793E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.116       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .66457       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6195       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .50840       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=   6336.438     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     3161 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.917        15.080       -.18908E-06   -.11194E-03
   2  norm          .10000E-03    1.8917        .26227E-07** at limit **
   3  Prefactor     .10000E-03    3.2291        .29785E-06** at limit **
   4  Prefactor     22.150        16.387       -.58176E-06   -.21841E-03
   5  Prefactor     .10000E-03    4.8801        .28406E-06** at limit **
   6  Prefactor     .10000E-03    75.233       -.11288E-04** at limit **
   7  Prefactor     1.4849        71.957        .16743E-05    .83722E-05
   8  Prefactor     .10000E-03    21.577        .91541E-06** at limit **
   9  Prefactor     11.898        6.7836        .29214E-07   -.14830E-03
  10  Prefactor     .10000E-03    18.737       -.20852E-06** at limit **
  11  norm          23.152        5.6107       -.10942E-06   -.49295E-03
  12  norm          .10000E-03    12.009       -.56803E-06** at limit **
  13  Prefactor     .10000E-03    37.880       -.85261E-06** at limit **
  14  Prefactor     .10000E-03    11.229        .67215E-06** at limit **
  15  norm          .79556        .74286        .64376E-07   -.27342E-03
  16  norm          .10017E-03    1.9613        .10496E-05** at limit **
  17  Prefactor     61.162        51.909        .79488E-06    .89464E-05
  18  Prefactor     .10000E-03    7.4464        .25149E-06** at limit **
  19  norm          .10000E-03    .53231        .34946E-06** at limit **
  20  Prefactor     .67457        20.261        .28829E-05    .11295E-04
  21  Prefactor     .10000E-03    3.0872        .10636E-06** at limit **
  22  Prefactor     .10000E-03    4.0762        .25533E-06** at limit **
  23  Normalizat    1.6192        .23158        .18278E-05   -.58643E-03
  24  Prefactor     .50836        .16107       -.44185E-05   -.29208E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9171
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.1499
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 1.48492
  Prefactor  = 0.000100002
  Prefactor  = 11.8985
  Prefactor  = 0.0001
  norm       = 23.1525
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.795564
  norm       = 0.000100168
  Prefactor  = 61.1617
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.674571
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.61924
  Prefactor  = 0.508355
 **********
 **   18 **HESSE 
 **********

 FCN=   6336.438     FROM HESSE     STATUS=OK           407 CALLS     3568 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.917        15.071        .10372E-03   -1.4935    
   2  norm          .10000E-03    1.8936        .10693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2827        .13987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.150        16.325        .85088E-04   -1.4766    
   5  Prefactor     .10000E-03    4.9066        .17184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    78.663        .43555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4849        73.824        .35146E-03   -1.5464    
   8  Prefactor     .10000E-03    21.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.898        6.7821        .11614E-03   -1.5018    
  10  Prefactor     .10000E-03    18.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          23.152        5.6051        .83246E-04   -1.4745    
  12  norm          .10000E-03    12.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .79556        .71743        .63510E-03   -1.5530    
  16  norm          .10017E-03    4.5870        .30831E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     61.162        60.828        .51325E-04   -1.4142    
  18  Prefactor     .10000E-03    7.5109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .87547        .99799E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .67457        104.20        .52665E-02   -1.5544    
  21  Prefactor     .10000E-03    3.0930        .13661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.0996        .15704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6192        .23836        .23012E-03   -.74481    
  24  Prefactor     .50836        .16493        .28012E-03   -1.1160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27855e-09
Minuit parameter uncertainties:
  1  15.0746
  2  2.84936e-06
  3  2.11097e-05
  4  16.3281
  5  2.21722e-05
  6  0.000768313
  7  20.9669
  8  0.000409775
  9  6.78251
  10  0.000134263
  11  5.60519
  12  0.000224732
  13  0.000547028
  14  0.000103112
  15  0.717434
  16  0.00175631
  17  60.8896
  18  7.04936e-06
  19  1.17466e-05
  20  16.7966
  21  7.34503e-06
  22  1.42194e-05
  23  0.238524
  24  0.165083
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  1.343e-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:  5.084e-01  1.651e-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.619e+00  2.385e-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.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302175/likelihoodResults_266025601_266284801_4FGL_J2228.6-1636_daily_bin103.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) = 6336.43794346
delta logL = -0.000251440555985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6336.43769221
delta logL = -1.87224941328e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1491       1.0000          .0000       10.000    
     3 'Normalizat'    1.6193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50834       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6336.438     FROM MIGRAD    STATUS=FAILED        97 CALLS      275 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    580.29        .18142E-01** at limit **
   2  Index         1.6363        7.8153        .99983E-01    .12212E-06
   3  Normalizat    1.6192        .25989E-01    .23012E-03   -.94358E-05
   4  Prefactor     .50835        .18890E-01    .28012E-03    .16640E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6336.438     FROM SIMPLEX   STATUS=UNCHANGED    160 CALLS      435 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    580.29        .93376E-03** at limit **
   2  Index         1.6363        7.8153        .11052E-04    .12212E-06
   3  Normalizat    1.6192        .25989E-01    .17891E-06   -.94358E-05
   4  Prefactor     .50835        .18890E-01    .13611E-06    .16640E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6336.438     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      463 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    25.816        .36285E-02** at limit **
   2  Index         1.6433        8.0920        .39993E-02    .23423E-06
   3  Normalizat    1.6192        .22402        .92050E-05   -.91394E-05
   4  Prefactor     .50835        .16278        .11205E-04    .18263E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 1.64334
  Normalizat = 1.61925
  Prefactor  = 0.508354
 **********
 **   18 **HESSE 
 **********

 FCN=   6336.438     FROM HESSE     STATUS=OK            23 CALLS      486 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    21.959        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6433        9.1783        .79987E-03   -.73600    
   3  Normalizat    1.6192        .22414        .18410E-05   -.74480    
   4  Prefactor     .50835        .16284        .22410E-05   -1.1160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70041e-09
Minuit parameter uncertainties:
  1  0.00130693
  2  480.398
  3  0.22428
  4  0.162989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302175': 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) = 6336.43769164
delta logL = 3.79784978577e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  5.084e-01  1.630e-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.619e+00  2.243e-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/302175/cmap_HighResolution_266025601_266284801_4FGL_J2228.6-1636_daily_bin103.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-03', job_status='DONE', photon_flux_upper_limit='4.87e-08', time_completed='2021-09-28 11:41:01.442150', job_id='302175', GAL2='0.51', fit_tolerance='1e-08', EG2='1.62', EG='1.62', time_epoch_completed='1632854461.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='3.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='103' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:41:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 302175: <4FGL_J2228.6-1636_daily_bin103> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin103 337.166 -16.6073 266025601 266284801 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 :                                   669.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            915 sec.

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

