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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin887
RA = 337.166, Dec = -16.6073
tmin = 469238401, tmax = 469497601
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='305129', job_status='RUN', time_executed='2021-09-28 11:40:03.740375', time_epoch_executed='1632854403.74' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='887'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/305129

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/305129/ft1_4FGL_J2228.6-1636_daily_bin887.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/305129/ft2_4FGL_J2228.6-1636_daily_bin887.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/305129/ft1_4FGL_J2228.6-1636_daily_bin887.fits outfile=/scratch/kocevski/305129/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin887.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=469238401.0 tmax=469497601.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.43
user 3.19
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/305129/ft1_filtered_4FGL_J2228.6-1636_daily_bin887.fits" evtable="EVENTS" scfile=/scratch/kocevski/305129/ft2_4FGL_J2228.6-1636_daily_bin887.fits sctable="SC_DATA" outfile=/scratch/kocevski/305129/ltcube_469238401_469497601_4FGL_J2228.6-1636_daily_bin887.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/305129/ft2_4FGL_J2228.6-1636_daily_bin887.fits
.....................!
real 11.93
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/305129/ft1_filtered_4FGL_J2228.6-1636_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/305129/ft2_4FGL_J2228.6-1636_daily_bin887.fits sctable="SC_DATA" expcube=/scratch/kocevski/305129/ltcube_469238401_469497601_4FGL_J2228.6-1636_daily_bin887.fits outfile=/scratch/kocevski/305129/expmap_469238401_469497601_4FGL_J2228.6-1636_daily_bin887.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/305129/ltcube_469238401_469497601_4FGL_J2228.6-1636_daily_bin887.fits
.....................!
real 190.36
user 185.12
sys 4.93

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/305129/ft1_filtered_4FGL_J2228.6-1636_daily_bin887.fits scfile=/scratch/kocevski/305129/ft2_4FGL_J2228.6-1636_daily_bin887.fits outfile=/scratch/kocevski/305129/cmap_469238401_469497601_4FGL_J2228.6-1636_daily_bin887.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/305129/ft1_filtered_4FGL_J2228.6-1636_daily_bin887.fits scfile=/scratch/kocevski/305129/ft2_4FGL_J2228.6-1636_daily_bin887.fits outfile=/scratch/kocevski/305129/cmap_HighResolution_469238401_469497601_4FGL_J2228.6-1636_daily_bin887.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/305129/ft1_filtered_4FGL_J2228.6-1636_daily_bin887.fits evtable="EVENTS" scfile=/scratch/kocevski/305129/ft2_4FGL_J2228.6-1636_daily_bin887.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/305129/Model_4FGL_J2228.6-1636_daily_bin887.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/305129/ft1_filtered_4FGL_J2228.6-1636_daily_bin887.fits.....................!
real 51.52
user 50.13
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57148E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0128       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3967       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2560       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .74906E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.164       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.943       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5814       1.0000         .10000E-03   10000.    
    11 'norm      '    7.3299       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.197       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5151       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7919       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10618E-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 '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0891       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0542       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5610.930     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     2303 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    101.07        .15520E-04** at limit **
   2  norm          2.0110        5.4916        .23572E-06   -.10469E-04
   3  Prefactor     8.3948        7.6579        .34985E-05    .62300E-04
   4  Prefactor     8.2320        2.6581        .56274E-06    .29611E-03
   5  Prefactor     .10001E-03    344.88        .34007E-04** at limit **
   6  Prefactor     29.166        1.2294        .18246E-06    .20041E-03
   7  Prefactor     14.925        5.9776        .48216E-06   -.22400E-03
   8  Prefactor     .10012E-03    34.056        .23159E-05** at limit **
   9  Prefactor     .10000E-03    2.3405        .12374E-05** at limit **
  10  Prefactor     3.5503        2.4964        .13310E-05   -.13595E-03
  11  norm          7.3306        4.7262       -.46260E-06   -.57977E-05
  12  norm          .10000E-03    8.9632        .88301E-06** at limit **
  13  Prefactor     .10021E-03    22.363       -.14344E-05** at limit **
  14  Prefactor     19.198        1.4083       -.26403E-07   -.59312E-04
  15  norm          1.5150        .90884       -.30000E-06   -.16160E-03
  16  norm          3.7921        2.3350        .19796E-06    .56929E-04
  17  Prefactor     .10003E-03    60.287       -.10194E-04** at limit **
  18  Prefactor     .10000E-03    4.4314        .97596E-06** at limit **
  19  norm          .10000E-03    .37488       -.57754E-06** at limit **
  20  Prefactor     .10000E-03    15.690       -.22732E-05** at limit **
  21  Prefactor     .10000E-03    4.8385        .62791E-06** at limit **
  22  Prefactor     4.0891        4.7805       -.43412E-05   -.50859E-05
  23  Normalizat    1.0543        .23694        .19739E-05   -.32562E-04
  24  Prefactor     .88444        .18050       -.28671E-05   -.43791E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  norm       = 2.01096
  Prefactor  = 8.39481
  Prefactor  = 8.23199
  Prefactor  = 0.000100011
  Prefactor  = 29.1659
  Prefactor  = 14.925
  Prefactor  = 0.000100118
  Prefactor  = 0.0001
  Prefactor  = 3.55031
  norm       = 7.3306
  norm       = 0.0001
  Prefactor  = 0.000100214
  Prefactor  = 19.1982
  norm       = 1.51501
  norm       = 3.79208
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.08912
  Normalizat = 1.05426
  Prefactor  = 0.884442
 **********
 **   18 **HESSE 
 **********

 FCN=   5610.930     FROM HESSE     STATUS=OK           455 CALLS     2758 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    13.597        .95061E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0110        5.5459        .72945E-02   -1.5424    
   3  Prefactor     8.3948        7.8322        .34586E-02   -1.5128    
   4  Prefactor     8.2320        19.931        .34882E-02   -1.5134    
   5  Prefactor     .10001E-03    10.818        .93909E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.166        16.272        .18547E-02   -1.4627    
   7  Prefactor     14.925        24.390        .25903E-02   -1.4935    
   8  Prefactor     .10012E-03    50.834        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.5503        86.850        .53385E-02   -1.5331    
  11  norm          7.3306        4.7608        .37037E-02   -1.5166    
  12  norm          .10000E-03    8.9589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10021E-03    52.626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.198        15.464        .22853E-02   -1.4831    
  15  norm          1.5150        .91605        .86832E-02   -1.5462    
  16  norm          3.7921        2.3497        .51825E-02   -1.5318    
  17  Prefactor     .10003E-03    64.846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4103        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .35757        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.595        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8231        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.0891        4.7834        .49843E-02   -1.5304    
  23  Normalizat    1.0543        .21190        .61055E-01   -.91234    
  24  Prefactor     .88444        .15372        .44808E-01   -.96687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55527e-09
Minuit parameter uncertainties:
  1  0.00096287
  2  5.5473
  3  7.83319
  4  19.9475
  5  0.000694214
  6  16.2745
  7  24.4064
  8  0.00490674
  9  4.6383e-07
  10  35.1763
  11  4.76109
  12  8.25492e-06
  13  0.00672395
  14  15.4672
  15  0.916057
  16  2.34971
  17  0.00277748
  18  1.41628e-06
  19  8.29606e-07
  20  5.18599e-06
  21  3.3415e-06
  22  4.78388
  23  0.212074
  24  0.153797
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  3.550e+00  3.518e+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:  8.844e-01  1.538e-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.054e+00  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/305129/likelihoodResults_469238401_469497601_4FGL_J2228.6-1636_daily_bin887.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) = 5610.8935063
delta logL = 0.0362303815364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5610.89289002
delta logL = 0.0368466607661

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3632       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7671       1.0000          .0000       10.000    
     3 'Normalizat'    1.0477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88582       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=   5610.893     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      277 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3700        73.971        .22066E-03    .32973E-05
   2  Index         2.7670        3.5640        .10726E-01    .71108E-05
   3  Normalizat    1.0479        .23837        .27073E-03   -.10565E-03
   4  Prefactor     .88581        .17958        .22083E-03    .13061E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.36998
  Index      = 2.76701
  Normalizat = 1.04789
  Prefactor  = 0.885814
 **********
 **   18 **HESSE 
 **********

 FCN=   5610.893     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3700        29.796        .88266E-05   -1.5341    
   2  Index         2.7670        2.4680        .42905E-03   -.46296    
   3  Normalizat    1.0479        .23718        .10829E-04   -.91443    
   4  Prefactor     .88581        .17897        .88331E-05   -.96639    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56131e-10
Minuit parameter uncertainties:
  1  20.0542
  2  2.6143
  3  0.23742
  4  0.179088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/305129': 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) = 5610.89288825
delta logL = 0.0368484321716

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  3.370e+00  2.005e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.767e+00  2.614e+00  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.858e-01  1.791e-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.048e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/305129/cmap_HighResolution_469238401_469497601_4FGL_J2228.6-1636_daily_bin887.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.06e-03', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-28 11:49:32.988193', job_id='305129', GAL2='0.89', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632854972.99', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.68e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='887' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:49:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 305129: <4FGL_J2228.6-1636_daily_bin887> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin887> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:36:00 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:36:02 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:02 2021
Terminated at Tue Sep 28 11:49:33 2021
Results reported at Tue Sep 28 11:49:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin887 337.166 -16.6073 469238401 469497601 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 :                                   569.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

