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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin731
RA = 337.166, Dec = -16.6073
tmin = 428803201, tmax = 429062401
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='304896', job_status='RUN', time_executed='2021-09-28 11:39:48.651832', time_epoch_executed='1632854388.65' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/304896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/304896/ft1_4FGL_J2228.6-1636_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/304896/ft2_4FGL_J2228.6-1636_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/304896/ft1_4FGL_J2228.6-1636_daily_bin731.fits outfile=/scratch/kocevski/304896/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin731.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=428803201.0 tmax=429062401.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 6.65
user 6.27
sys 0.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/304896/ft2_4FGL_J2228.6-1636_daily_bin731.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/304896/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin731.fits evtable="EVENTS" outfile="/scratch/kocevski/304896/ft1_filtered_4FGL_J2228.6-1636_daily_bin731.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.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/304896/ft1_filtered_4FGL_J2228.6-1636_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/304896/ft2_4FGL_J2228.6-1636_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/304896/ltcube_428803201_429062401_4FGL_J2228.6-1636_daily_bin731.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/304896/ft2_4FGL_J2228.6-1636_daily_bin731.fits
.....................!
real 11.76
user 11.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/304896/ft1_filtered_4FGL_J2228.6-1636_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/304896/ft2_4FGL_J2228.6-1636_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/304896/ltcube_428803201_429062401_4FGL_J2228.6-1636_daily_bin731.fits outfile=/scratch/kocevski/304896/expmap_428803201_429062401_4FGL_J2228.6-1636_daily_bin731.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/304896/ltcube_428803201_429062401_4FGL_J2228.6-1636_daily_bin731.fits
.....................!
real 190.15
user 184.97
sys 4.86

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/304896/ft1_filtered_4FGL_J2228.6-1636_daily_bin731.fits scfile=/scratch/kocevski/304896/ft2_4FGL_J2228.6-1636_daily_bin731.fits outfile=/scratch/kocevski/304896/cmap_428803201_429062401_4FGL_J2228.6-1636_daily_bin731.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/304896/ft1_filtered_4FGL_J2228.6-1636_daily_bin731.fits scfile=/scratch/kocevski/304896/ft2_4FGL_J2228.6-1636_daily_bin731.fits outfile=/scratch/kocevski/304896/cmap_HighResolution_428803201_429062401_4FGL_J2228.6-1636_daily_bin731.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10767E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.163       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.831       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0257       1.0000         .10000E-03   10000.    
    11 'norm      '    .17599       1.0000         .10000E-03   10000.    
    12 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    178.04       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.7458       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6231       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.557       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8339       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90714       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84765       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=   2935.175     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2754 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.802        .23285E-05** at limit **
   2  norm          .10000E-03    8.9067        .14489E-05** at limit **
   3  Prefactor     .10000E-03    20.344        .58677E-05** at limit **
   4  Prefactor     .10000E-03    10.216        .95537E-06** at limit **
   5  Prefactor     .10000E-03    4.6669        .51610E-06** at limit **
   6  Prefactor     13.165        17.529        .37526E-06    .29610E-04
   7  Prefactor     10.826        17.690        .75029E-07    .20968E-05
   8  Prefactor     .10000E-03    138.25        .28006E-05** at limit **
   9  Prefactor     .10000E-03    10.601       -.33272E-05** at limit **
  10  Prefactor     9.0203        114.38        .17261E-05    .11216E-06
  11  norm          .13255        67.037       -.15931E-04    .56651E-04
  12  norm          .10000E-03    60.941        .32396E-05** at limit **
  13  Prefactor     178.52        146.78        .93252E-05    .39180E-04
  14  Prefactor     .10000E-03    7.1534        .92574E-06** at limit **
  15  norm          1.7459        1.1067       -.13470E-07    .49122E-04
  16  norm          2.6228        2.5061        .10440E-06   -.72502E-04
  17  Prefactor     .10000E-03    37.903        .13863E-05** at limit **
  18  Prefactor     .10000E-03    13.356        .23627E-05** at limit **
  19  norm          .10000E-03    .73738        .16831E-05** at limit **
  20  Prefactor     54.551        35.135       -.66997E-05   -.62788E-03
  21  Prefactor     7.8322        15.789        .21151E-06   -.61534E-04
  22  Prefactor     .10000E-03    4.7954        .56951E-06** at limit **
  23  Normalizat    .90718        .25639       -.61071E-05    .32155E-03
  24  Prefactor     .84782        .19113        .37048E-05   -.12597E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.1654
  Prefactor  = 10.8259
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.0203
  norm       = 0.13255
  norm       = 0.0001
  Prefactor  = 178.516
  Prefactor  = 0.0001
  norm       = 1.74593
  norm       = 2.62285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 54.5506
  Prefactor  = 7.83215
  Prefactor  = 0.0001
  Normalizat = 0.907178
  Prefactor  = 0.847821
 **********
 **   18 **HESSE 
 **********

 FCN=   2935.175     FROM HESSE     STATUS=OK           391 CALLS     3145 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.0050        .15773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.965        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.228        .16909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6754        .11429E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.165        17.538        .11040E-03   -1.4982    
   7  Prefactor     10.826        17.694        .12174E-03   -1.5050    
   8  Prefactor     .10000E-03    138.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.815        .17241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0203        115.01        .13341E-03   -1.5107    
  11  norm          .13255        69.843        .20047E-02   -1.5635    
  12  norm          .10000E-03    61.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     178.52        148.17        .15124E-03   -1.3028    
  14  Prefactor     .10000E-03    7.1676        .14149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.7459        1.1040        .43870E-04   -1.5444    
  16  norm          2.6228        2.5128        .81425E-04   -1.5384    
  17  Prefactor     .10000E-03    37.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3273        .85834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     54.551        36.729        .54305E-04   -1.4229    
  21  Prefactor     7.8322        15.785        .14326E-03   -1.5148    
  22  Prefactor     .10000E-03    4.8042        .11589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90718        .29316        .25590E-03   -.96208    
  24  Prefactor     .84782        .22021        .20264E-03   -.97989    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73052e-09
Minuit parameter uncertainties:
  1  0.000158843
  2  9.95015e-05
  3  0.00063714
  4  5.62769e-05
  5  1.38222e-05
  6  17.5445
  7  17.7025
  8  0.000524522
  9  5.15165e-05
  10  64.5716
  11  6.09014
  12  0.000327832
  13  148.484
  14  1.4023e-05
  15  1.10398
  16  2.51291
  17  6.64107e-05
  18  8.46928e-05
  19  2.65097e-05
  20  36.7438
  21  15.7934
  22  5.87036e-06
  23  0.29368
  24  0.220442
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  9.020e+00  6.457e+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.478e-01  2.204e-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:  9.072e-01  2.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/304896/likelihoodResults_428803201_429062401_4FGL_J2228.6-1636_daily_bin731.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) = 2933.79516375
delta logL = 1.38018614963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2933.61780957
delta logL = 1.55754032867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.406       1.0000         .10000E-03   10000.    
     2 'Index     '    .65730       1.0000          .0000       10.000    
     3 'Normalizat'    .88578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85886       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=   2933.618     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      223 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.682        39.030        .17333E-02   -.23896E-03
   2  Index         .65993        .46942        .20639        .67497E-04
   3  Normalizat    .88533        .23920        .44720E-01    .64261E-04
   4  Prefactor     .85919        .18522        .44478E-01    .89017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.6815
  Index      = 0.659929
  Normalizat = 0.885334
  Prefactor  = 0.859193
 **********
 **   18 **HESSE 
 **********

 FCN=   2933.618     FROM HESSE     STATUS=OK            29 CALLS      252 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.682        60.324        .69331E-04   -1.4547    
   2  Index         .65993        .69536        .94444E-02   -1.0512    
   3  Normalizat    .88533        .27945        .25803E-03   -.96977    
   4  Prefactor     .85919        .21647        .20130E-03   -.97582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46733e-10
Minuit parameter uncertainties:
  1  60.4338
  2  0.70479
  3  0.279906
  4  0.216686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/304896': 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) = 2933.61779893
delta logL = 1.55755096933

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  3.368e+01  6.043e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  6.599e-01  7.048e-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.592e-01  2.167e-01  0.000e+00  1.000e+01 ( 1.000e+00)
486        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
487        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
484   Normalization:  8.853e-01  2.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.15
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 0.66 +/- 0.70
Photon Flux (Free Index): 7.18e-09 +/- 8.08e-09
Energy Flux (Free Index): 2.01e-04 +/- 2.65e-04

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/304896/cmap_HighResolution_428803201_429062401_4FGL_J2228.6-1636_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.00e-03', comment='SUCCESS', energy_flux2='2.01e-04', dlogl='1.56e+00', photon_flux2='7.18e-09', job_status='DONE', time_completed='2021-09-28 11:47:37.122024', photon_index_error2='0.70', photon_index2='0.66', ts='0.02', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='2.65e-04', EG='0.91', time_epoch_completed='1632854857.12', return_code='0', job_id='304896', GAL2='0.86', EG2='0.89', return_code2='0', photon_flux_error2='8.08e-09', ts2='3.15', photon_index='2.06' WHERE bin_id='731' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:47:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 304896: <4FGL_J2228.6-1636_daily_bin731> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin731> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:35:40 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:35:41 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:35:41 2021
Terminated at Tue Sep 28 11:47:37 2021
Results reported at Tue Sep 28 11:47:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin731 337.166 -16.6073 428803201 429062401 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 :                                   467.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             240.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            717 sec.

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

