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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1471
RA = 337.166, Dec = -16.6073
tmin = 620611201, tmax = 620870401
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='308049', job_status='RUN', time_executed='2021-09-28 11:48:03.831698', time_epoch_executed='1632854883.83' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/308049

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/308049/ft1_4FGL_J2228.6-1636_daily_bin1471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/308049/ft2_4FGL_J2228.6-1636_daily_bin1471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/308049/ft1_4FGL_J2228.6-1636_daily_bin1471.fits outfile=/scratch/kocevski/308049/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1471.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=620611201.0 tmax=620870401.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.75
user 3.58
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/308049/ft1_filtered_4FGL_J2228.6-1636_daily_bin1471.fits" evtable="EVENTS" scfile=/scratch/kocevski/308049/ft2_4FGL_J2228.6-1636_daily_bin1471.fits sctable="SC_DATA" outfile=/scratch/kocevski/308049/ltcube_620611201_620870401_4FGL_J2228.6-1636_daily_bin1471.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/308049/ft2_4FGL_J2228.6-1636_daily_bin1471.fits
.....................!
real 14.19
user 13.82
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/308049/ft1_filtered_4FGL_J2228.6-1636_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/308049/ft2_4FGL_J2228.6-1636_daily_bin1471.fits sctable="SC_DATA" expcube=/scratch/kocevski/308049/ltcube_620611201_620870401_4FGL_J2228.6-1636_daily_bin1471.fits outfile=/scratch/kocevski/308049/expmap_620611201_620870401_4FGL_J2228.6-1636_daily_bin1471.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/308049/ltcube_620611201_620870401_4FGL_J2228.6-1636_daily_bin1471.fits
.....................!
real 192.25
user 187.82
sys 4.10

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/308049/ft1_filtered_4FGL_J2228.6-1636_daily_bin1471.fits scfile=/scratch/kocevski/308049/ft2_4FGL_J2228.6-1636_daily_bin1471.fits outfile=/scratch/kocevski/308049/cmap_620611201_620870401_4FGL_J2228.6-1636_daily_bin1471.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.38
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/308049/ft1_filtered_4FGL_J2228.6-1636_daily_bin1471.fits evtable="EVENTS" scfile=/scratch/kocevski/308049/ft2_4FGL_J2228.6-1636_daily_bin1471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/308049/Model_4FGL_J2228.6-1636_daily_bin1471.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/308049/ft1_filtered_4FGL_J2228.6-1636_daily_bin1471.fits.....................!
real 33.47
user 32.04
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1468       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.920       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    95.933       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.485       1.0000         .10000E-03   10000.    
     8 'Prefactor '    394.34       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .81365E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.847       1.0000         .10000E-03   10000.    
    16 'norm      '    .10242E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5420       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.827       1.0000         .10000E-03   10000.    
    19 'norm      '    .75770E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.768       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5142       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87745       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=   2744.766     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     3253 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1459        20.549       -.22991E-06    .29478E-06
   2  norm          .10000E-03    5.3659       -.35421E-07** at limit **
   3  Prefactor     .10000E-03    3.1320       -.67991E-07** at limit **
   4  Prefactor     43.915        51.983        .63122E-07   -.37004E-04
   5  Prefactor     .10000E-03    20.030       -.69929E-06** at limit **
   6  Prefactor     95.926        51.515        .61904E-06   -.14078E-03
   7  Prefactor     31.484        31.147        .91213E-07    .55058E-06
   8  Prefactor     394.42        265.07        .28720E-05   -.65234E-04
   9  Prefactor     .10000E-03    5.1106       -.18648E-06** at limit **
  10  Prefactor     .10001E-03    102.69        .40350E-05** at limit **
  11  norm          .10000E-03    130.07        .75048E-05** at limit **
  12  norm          .10000E-03    16.318       -.52717E-06** at limit **
  13  Prefactor     .10003E-03    287.20        .95305E-05** at limit **
  14  Prefactor     .10000E-03    16.987       -.79042E-06** at limit **
  15  norm          15.847        3.9152        .45924E-07   -.80201E-03
  16  norm          .10000E-03    4.2897       -.14897E-05** at limit **
  17  Prefactor     4.3447        446.84       -.48316E-05    .16490E-04
  18  Prefactor     45.833        32.429       -.35306E-05   -.51755E-03
  19  norm          .10001E-03    2.2335        .10575E-05** at limit **
  20  Prefactor     .10002E-03    206.15       -.44632E-05** at limit **
  21  Prefactor     .10000E-03    8.7507       -.25206E-07** at limit **
  22  Prefactor     11.767        16.152       -.29265E-07   -.49758E-04
  23  Normalizat    1.5143        .52537       -.37206E-05   -.15250E-03
  24  Prefactor     .87759        .35651        .41688E-05   -.18810E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.14587
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.9147
  Prefactor  = 0.0001
  Prefactor  = 95.9255
  Prefactor  = 31.4837
  Prefactor  = 394.419
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  norm       = 15.8472
  norm       = 0.0001
  Prefactor  = 4.34472
  Prefactor  = 45.8328
  norm       = 0.000100009
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 11.7668
  Normalizat = 1.51428
  Prefactor  = 0.877589
 **********
 **   18 **HESSE 
 **********

 FCN=   2744.766     FROM HESSE     STATUS=OK           387 CALLS     3640 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1459        20.519        .16193E-03   -1.5212    
   2  norm          .10000E-03    5.3665        .11853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1332        .90552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.915        51.926        .60494E-04   -1.4382    
   5  Prefactor     .10000E-03    20.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     95.926        51.462        .41037E-04   -1.3746    
   7  Prefactor     31.484        31.141        .71408E-04   -1.4585    
   8  Prefactor     394.42        259.04        .10276E-03   -1.1709    
   9  Prefactor     .10000E-03    5.1268        .11565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    101.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    126.78        .26165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    16.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    282.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.847        3.9142        .48127E-04   -1.4912    
  16  norm          .10000E-03    4.1880        .10361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3447        452.77        .18889E-03   -1.5291    
  18  Prefactor     45.833        31.944        .59227E-04   -1.4353    
  19  norm          .10001E-03    23.287        .12411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    204.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.7525        .15138E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.767        16.146        .11678E-03   -1.5022    
  23  Normalizat    1.5143        .52433        .30782E-03   -.77378    
  24  Prefactor     .87759        .35345        .28987E-03   -.96929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33242e-09
Minuit parameter uncertainties:
  1  20.5421
  2  2.71124e-06
  3  2.06386e-06
  4  51.98
  5  0.000117449
  6  51.4855
  7  31.1567
  8  259.81
  9  1.41137e-05
  10  0.00163274
  11  0.000904326
  12  6.53058e-05
  13  0.0062055
  14  1.20648e-05
  15  3.91422
  16  4.88364e-05
  17  89.4079
  18  31.9555
  19  0.000926795
  20  0.00430127
  21  7.71901e-06
  22  16.1516
  23  0.52623
  24  0.354374
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  1.633e-03  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:  8.776e-01  3.544e-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.514e+00  5.262e-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: 2.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.52e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/308049/likelihoodResults_620611201_620870401_4FGL_J2228.6-1636_daily_bin1471.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) = 2744.76586818
delta logL = -3.69557692466e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2744.76583191
delta logL = -6.86613475409e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21250E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0362       1.0000          .0000       10.000    
     3 'Normalizat'    1.5144       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87759       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=   2744.766     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8232.9        .18142E-02** at limit **
   2  Index         2.0617        7.9032        .50000       -.23711E-05
   3  Normalizat    1.5143        .10108        .30779E-03    .10330E-03
   4  Prefactor     .87759        .75381E-01    .28989E-03   -.72944E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.06171
  Normalizat = 1.51429
  Prefactor  = 0.877587
 **********
 **   18 **HESSE 
 **********

 FCN=   2744.766     FROM HESSE     STATUS=OK            29 CALLS      306 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    796.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0617        7.3686        .50000       -.62816    
   3  Normalizat    1.5143        .45114        .61559E-04   -.77378    
   4  Prefactor     .87759        .33654        .11596E-04   -.96929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97119e-10
Minuit parameter uncertainties:
  1  0.00138833
  2  11.6571
  3  0.452347
  4  0.33734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/308049': 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) = 2744.76583122
delta logL = 2.39924702328e-09

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  1.388e-03  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.062e+00  1.166e+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:  8.776e-01  3.373e-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.514e+00  4.523e-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/308049/cmap_HighResolution_620611201_620870401_4FGL_J2228.6-1636_daily_bin1471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.52e-02', job_status='DONE', photon_flux_upper_limit='2.01e-07', time_completed='2021-09-28 11:56:08.596282', job_id='308049', GAL2='0.88', fit_tolerance='1e-08', EG2='1.51', EG='1.51', time_epoch_completed='1632855368.6', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.40e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1471' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:56:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 308049: <4FGL_J2228.6-1636_daily_bin1471> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1471 337.166 -16.6073 620611201 620870401 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 :                                   481.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             273.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   630 sec.
    Turnaround time :                            633 sec.

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

