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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1433
RA = 337.166, Dec = -16.6073
tmin = 610761601, tmax = 611020801
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='307993', job_status='RUN', time_executed='2021-09-28 11:46:21.335131', time_epoch_executed='1632854781.34' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307993/ft1_4FGL_J2228.6-1636_daily_bin1433.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307993/ft2_4FGL_J2228.6-1636_daily_bin1433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307993/ft1_4FGL_J2228.6-1636_daily_bin1433.fits outfile=/scratch/kocevski/307993/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1433.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=610761601.0 tmax=611020801.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.54
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307993/ft1_filtered_4FGL_J2228.6-1636_daily_bin1433.fits" evtable="EVENTS" scfile=/scratch/kocevski/307993/ft2_4FGL_J2228.6-1636_daily_bin1433.fits sctable="SC_DATA" outfile=/scratch/kocevski/307993/ltcube_610761601_611020801_4FGL_J2228.6-1636_daily_bin1433.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/307993/ft2_4FGL_J2228.6-1636_daily_bin1433.fits
.....................!
real 11.75
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307993/ft1_filtered_4FGL_J2228.6-1636_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/307993/ft2_4FGL_J2228.6-1636_daily_bin1433.fits sctable="SC_DATA" expcube=/scratch/kocevski/307993/ltcube_610761601_611020801_4FGL_J2228.6-1636_daily_bin1433.fits outfile=/scratch/kocevski/307993/expmap_610761601_611020801_4FGL_J2228.6-1636_daily_bin1433.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/307993/ltcube_610761601_611020801_4FGL_J2228.6-1636_daily_bin1433.fits
.....................!
real 192.24
user 186.09
sys 5.79

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/307993/ft1_filtered_4FGL_J2228.6-1636_daily_bin1433.fits scfile=/scratch/kocevski/307993/ft2_4FGL_J2228.6-1636_daily_bin1433.fits outfile=/scratch/kocevski/307993/cmap_610761601_611020801_4FGL_J2228.6-1636_daily_bin1433.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307993/ft1_filtered_4FGL_J2228.6-1636_daily_bin1433.fits scfile=/scratch/kocevski/307993/ft2_4FGL_J2228.6-1636_daily_bin1433.fits outfile=/scratch/kocevski/307993/cmap_HighResolution_610761601_611020801_4FGL_J2228.6-1636_daily_bin1433.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.8322       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9545       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6570       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.201       1.0000         .10000E-03   10000.    
     8 'Prefactor '    56.033       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9500       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.8743       1.0000         .10000E-03   10000.    
    12 'norm      '    19.605       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .21092E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5845       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.164       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4662       1.0000         .10000E-03   10000.    
    19 'norm      '    8.4343       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.395       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0833       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82403       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=   6234.692     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2695 TOTAL
                     EDM=   .75E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5970        .81021E-07** at limit **
   2  norm          5.8332        5.5151        .70920E-07   -.10489E-04
   3  Prefactor     .10000E-03    3.2181        .24379E-06** at limit **
   4  Prefactor     8.9559        14.533        .16773E-06    .11692E-05
   5  Prefactor     .10000E-03    6.5302       -.31897E-06** at limit **
   6  Prefactor     9.6479        13.733       -.39357E-06    .83365E-05
   7  Prefactor     16.174        21.985       -.62332E-06   -.52381E-04
   8  Prefactor     56.002        81.410       -.23574E-06   -.19187E-04
   9  Prefactor     4.9498        4.3933       -.27082E-07   -.14871E-04
  10  Prefactor     .10000E-03    40.018        .29242E-06** at limit **
  11  norm          5.8730        4.1397       -.55389E-08    .44513E-04
  12  norm          19.603        18.024       -.61396E-07   -.41389E-05
  13  Prefactor     .10000E-03    23.493       -.35499E-08** at limit **
  14  Prefactor     .10000E-03    6.3424       -.69533E-06** at limit **
  15  norm          .10000E-03    .43619       -.26524E-07** at limit **
  16  norm          2.5846        1.9268       -.31754E-07   -.78382E-04
  17  Prefactor     19.128        36.182       -.70700E-06   -.36380E-04
  18  Prefactor     8.4453        47.971       -.74600E-05    .72144E-05
  19  norm          8.4356        3.5008        .67440E-06    .62512E-03
  20  Prefactor     .10000E-03    9.8162       -.30894E-06** at limit **
  21  Prefactor     14.395        9.7665       -.62335E-07   -.12593E-04
  22  Prefactor     .10000E-03    14.209        .36842E-06** at limit **
  23  Normalizat    1.0840        .23556        .45191E-05   -.34885E-04
  24  Prefactor     .82356        .17151       -.35489E-05    .10021E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.83317
  Prefactor  = 0.0001
  Prefactor  = 8.95595
  Prefactor  = 0.0001
  Prefactor  = 9.64786
  Prefactor  = 16.1736
  Prefactor  = 56.0016
  Prefactor  = 4.94984
  Prefactor  = 0.0001
  norm       = 5.87301
  norm       = 19.603
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 2.58457
  Prefactor  = 19.1282
  Prefactor  = 8.44531
  norm       = 8.4356
  Prefactor  = 0.0001
  Prefactor  = 14.3952
  Prefactor  = 0.0001
  Normalizat = 1.08403
  Prefactor  = 0.823558
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.692     FROM HESSE     STATUS=OK           403 CALLS     3098 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5999        .14626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8332        5.5147        .16630E-03   -1.5225    
   3  Prefactor     .10000E-03    3.2581        .13838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9559        14.526        .13394E-03   -1.5109    
   5  Prefactor     .10000E-03    6.5888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.6479        13.743        .12895E-03   -1.5087    
   7  Prefactor     16.174        22.031        .99508E-04   -1.4903    
   8  Prefactor     56.002        81.481        .53589E-04   -1.4210    
   9  Prefactor     4.9498        4.3915        .15001E-03   -1.5263    
  10  Prefactor     .10000E-03    40.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.8730        4.1328        .12575E-03   -1.5223    
  12  norm          19.603        18.023        .90459E-04   -1.4822    
  13  Prefactor     .10000E-03    23.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.8267        .98687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5846        1.9273        .88544E-04   -1.5386    
  17  Prefactor     19.128        36.405        .91491E-04   -1.4833    
  18  Prefactor     8.4453        51.718        .13777E-03   -1.5127    
  19  norm          8.4356        3.6743        .44521E-04   -1.5127    
  20  Prefactor     .10000E-03    9.8302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.395        9.7671        .10557E-03   -1.4949    
  22  Prefactor     .10000E-03    14.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0840        .24483        .26831E-03   -.90266    
  24  Prefactor     .82356        .17873        .23054E-03   -.98866    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98483e-10
Minuit parameter uncertainties:
  1  3.49002e-06
  2  5.51518
  3  1.03993e-05
  4  14.5316
  5  2.90694e-05
  6  13.7475
  7  22.0418
  8  81.6435
  9  4.39183
  10  8.3803e-05
  11  4.13298
  12  18.0282
  13  1.6975e-05
  14  4.69967e-05
  15  0.000115865
  16  1.9273
  17  36.4474
  18  41.8518
  19  3.67438
  20  2.34006e-05
  21  9.76816
  22  3.36854e-05
  23  0.24509
  24  0.178857
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  8.380e-05  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.236e-01  1.789e-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.084e+00  2.451e-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: 6.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307993/likelihoodResults_610761601_611020801_4FGL_J2228.6-1636_daily_bin1433.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) = 6234.69209895
delta logL = -0.000118725140965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6234.69197921
delta logL = 1.02258854895e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8425       1.0000          .0000       10.000    
     3 'Normalizat'    1.0840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82356       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6234.683     FROM MIGRAD    STATUS=CONVERGED    204 CALLS      397 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44099        8.9910        .55427E-01    .15435E-03
   2  Index         3.4985        1.5455        .22493        .48250E-05
   3  Normalizat    1.0745        .11758E-01    .60904E-01   -.16985E-03
   4  Prefactor     .82710        .89751E-02    .44023E-01    .28827E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.440994
  Index      = 3.49847
  Normalizat = 1.07454
  Prefactor  = 0.827098
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.683     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      430 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44099        995.45        .19043E-02   -1.5575    
   2  Index         3.4985        5.1940        .10477E-01   -.30501    
   3  Normalizat    1.0745        .14747        .26937E-03   -.90574    
   4  Prefactor     .82710        .99028E-01    .23010E-03   -.98737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.57817e-09
Minuit parameter uncertainties:
  1  42.6285
  2  29.5823
  3  0.147524
  4  0.0990491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307993': 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): 102
logL (Free Index) = 6234.68316272
delta logL = 0.00881750331973

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  4.410e-01  4.263e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  3.498e+00  2.958e+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.271e-01  9.905e-02  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.075e+00  1.475e-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/307993/cmap_HighResolution_610761601_611020801_4FGL_J2228.6-1636_daily_bin1433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.77e-03', job_status='DONE', photon_flux_upper_limit='6.33e-08', time_completed='2021-09-28 11:56:53.983561', job_id='307993', GAL2='0.83', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1632855413.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='8.82e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1433' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:56:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 307993: <4FGL_J2228.6-1636_daily_bin1433> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1433> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:45:32 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:45:33 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:33 2021
Terminated at Tue Sep 28 11:56:54 2021
Results reported at Tue Sep 28 11:56:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1433 337.166 -16.6073 610761601 611020801 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 :                                   631.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             305.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            682 sec.

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

