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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin990
RA = 337.166, Dec = -16.6073
tmin = 495936001, tmax = 496195201
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='306293', job_status='RUN', time_executed='2021-09-28 11:44:04.136554', time_epoch_executed='1632854644.14' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='990'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306293

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306293/ft1_4FGL_J2228.6-1636_daily_bin990.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306293/ft2_4FGL_J2228.6-1636_daily_bin990.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306293/ft1_4FGL_J2228.6-1636_daily_bin990.fits outfile=/scratch/kocevski/306293/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin990.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=495936001.0 tmax=496195201.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.47
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306293/ft1_filtered_4FGL_J2228.6-1636_daily_bin990.fits" evtable="EVENTS" scfile=/scratch/kocevski/306293/ft2_4FGL_J2228.6-1636_daily_bin990.fits sctable="SC_DATA" outfile=/scratch/kocevski/306293/ltcube_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.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/306293/ft2_4FGL_J2228.6-1636_daily_bin990.fits
.....................!
real 11.81
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306293/ft1_filtered_4FGL_J2228.6-1636_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/306293/ft2_4FGL_J2228.6-1636_daily_bin990.fits sctable="SC_DATA" expcube=/scratch/kocevski/306293/ltcube_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.fits outfile=/scratch/kocevski/306293/expmap_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.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/306293/ltcube_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.fits
.....................!
real 189.98
user 185.39
sys 4.25

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/306293/ft1_filtered_4FGL_J2228.6-1636_daily_bin990.fits scfile=/scratch/kocevski/306293/ft2_4FGL_J2228.6-1636_daily_bin990.fits outfile=/scratch/kocevski/306293/cmap_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306293/ft1_filtered_4FGL_J2228.6-1636_daily_bin990.fits scfile=/scratch/kocevski/306293/ft2_4FGL_J2228.6-1636_daily_bin990.fits outfile=/scratch/kocevski/306293/cmap_HighResolution_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306293/ft1_filtered_4FGL_J2228.6-1636_daily_bin990.fits evtable="EVENTS" scfile=/scratch/kocevski/306293/ft2_4FGL_J2228.6-1636_daily_bin990.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306293/Model_4FGL_J2228.6-1636_daily_bin990.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/306293/ft1_filtered_4FGL_J2228.6-1636_daily_bin990.fits.....................!
real 45.54
user 44.22
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/306293/ft1_filtered_4FGL_J2228.6-1636_daily_bin990.fits', '/scratch/kocevski/306293/ft2_4FGL_J2228.6-1636_daily_bin990.fits', expMap='/scratch/kocevski/306293/expmap_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.fits', expCube='/scratch/kocevski/306293/ltcube_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/306293/Model_4FGL_J2228.6-1636_daily_bin990.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/306293/ft1_filtered_4FGL_J2228.6-1636_daily_bin990.fits
Spacecraft file(s): /scratch/kocevski/306293/ft2_4FGL_J2228.6-1636_daily_bin990.fits
Exposure map: /scratch/kocevski/306293/expmap_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.fits
Exposure cube: /scratch/kocevski/306293/ltcube_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/306293/Model_4FGL_J2228.6-1636_daily_bin990.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4666.18794956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.612       1.0000         .10000E-03   10000.    
     2 'norm      '    4.5324       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11705E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11247E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.823       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3979       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.3820       1.0000         .10000E-03   10000.    
    12 'norm      '    12.244       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .83606E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .14844E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .92438       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .42993E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9931       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20518E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3202       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3020       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80554       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=   4666.075     FROM MIGRAD    STATUS=CONVERGED   1047 CALLS     2939 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.627        29.241        .46177E-04   -.64111E-04
   2  norm          4.5342        5.8999        .18441E-03    .14426E-04
   3  Prefactor     .10001E-03    12.217        .29190E-02** at limit **
   4  Prefactor     .10000E-03    9.5186        .18142E-02** at limit **
   5  Prefactor     .10000E-03    7.3709        .18086E-02** at limit **
   6  Prefactor     .10000E-03    14.704        .36285E-03** at limit **
   7  Prefactor     23.749        30.560        .82068E-04    .65385E-04
   8  Prefactor     .10000E-03    41.618        .18142E-02** at limit **
   9  Prefactor     5.3986        4.4825        .12787E-03   -.13336E-04
  10  Prefactor     .10000E-03    18.833        .18142E-02** at limit **
  11  norm          4.3824        3.6100        .11294E-03   -.40165E-04
  12  norm          12.259        20.665        .11448E-03   -.25622E-04
  13  Prefactor     .10000E-03    28.945        .18142E-02** at limit **
  14  Prefactor     .14379        30.244        .75055E-01    .13084E-03
  15  norm          .10000E-03    5.5450        .98803E-03** at limit **
  16  norm          .91925        2.3996        .17251E-02    .39148E-03
  17  Prefactor     .10000E-03    258.71        .38807E-03** at limit **
  18  Prefactor     .10000E-03    24.780        .18142E-02** at limit **
  19  norm          2.9940        1.4876        .55345E-04   -.98086E-03
  20  Prefactor     .10000E-03    64.848        .18142E-02** at limit **
  21  Prefactor     .10000E-03    4.8307        .14657E-02** at limit **
  22  Prefactor     2.3285        40.650        .13465E-02    .11204E-04
  23  Normalizat    1.3010        .31318        .26416E-03   -.84360E-04
  24  Prefactor     .80617        .21409        .23981E-03   -.44088E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.6268
  norm       = 4.53419
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7494
  Prefactor  = 0.0001
  Prefactor  = 5.39859
  Prefactor  = 0.0001
  norm       = 4.38236
  norm       = 12.259
  Prefactor  = 0.0001
  Prefactor  = 0.143792
  norm       = 0.0001
  norm       = 0.919248
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.99398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.32847
  Normalizat = 1.30104
  Prefactor  = 0.806171
 **********
 **   18 **HESSE 
 **********

 FCN=   4666.075     FROM HESSE     STATUS=OK           387 CALLS     3326 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.627        29.232        .92353E-05   -1.3966    
   2  norm          4.5342        5.8999        .73763E-05   -1.5282    
   3  Prefactor     .10001E-03    12.298        .58380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5193        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3716        .36173E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.704        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.749        30.561        .32827E-05   -1.4733    
   8  Prefactor     .10000E-03    41.619        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3986        4.4823        .51150E-05   -1.5243    
  10  Prefactor     .10000E-03    18.833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.3824        3.6094        .45175E-05   -1.5289    
  12  norm          12.259        20.660        .45791E-05   -1.5008    
  13  Prefactor     .10000E-03    28.945        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .14379        24.786        .84424E-01   -1.5632    
  15  norm          .10000E-03    5.6228        .19761E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .91925        2.3950        .69004E-04   -1.5516    
  17  Prefactor     .10000E-03    258.71        .77613E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.783        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9940        1.4865        .22138E-05   -1.5362    
  20  Prefactor     .10000E-03    64.862        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8308        .29313E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.3285        40.440        .53859E-04   -1.5403    
  23  Normalizat    1.3010        .31211        .52833E-04   -.83535    
  24  Prefactor     .80617        .21400        .95926E-05   -.99501    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.0605e-10
Minuit parameter uncertainties:
  1  29.2373
  2  5.90065
  3  0.000592462
  4  6.78151e-06
  5  4.40947e-05
  6  1.81791e-05
  7  30.5816
  8  3.3478e-05
  9  4.48263
  10  3.34393e-05
  11  3.60961
  12  20.672
  13  6.71468e-05
  14  3.77599
  15  4.46704e-05
  16  2.39523
  17  0.00114104
  18  3.81684e-05
  19  1.48656
  20  2.36e-05
  21  1.8382e-06
  22  19.4225
  23  0.31256
  24  0.21422
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  3.344e-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.062e-01  2.142e-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.301e+00  3.126e-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: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306293/likelihoodResults_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.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) = 4666.07522748
delta logL = -0.000251391385973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4666.07497772
delta logL = -1.62584728969e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11508E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3607       1.0000          .0000       10.000    
     3 'Normalizat'    1.3010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80618       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=   4666.075     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      267 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10216E-03    93.371        .18142E-02** at limit **
   2  Index         2.2909        5.3929        .50000        .17762E-04
   3  Normalizat    1.3010        .15070E-01    .26423E-03   -.81453E-03
   4  Prefactor     .80617        .11112E-01    .23977E-03   -.90901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102159
  Index      = 2.29088
  Normalizat = 1.30104
  Prefactor  = 0.806169
 **********
 **   18 **HESSE 
 **********

 FCN=   4666.075     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10216E-03    400.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2909        5.2288        .50000       -.57261    
   3  Normalizat    1.3010        .32118E-01    .52847E-04   -.83535    
   4  Prefactor     .80617        .23682E-01    .47955E-04   -.99501    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.88522e-08
Minuit parameter uncertainties:
  1  0.0592147
  2  510.525
  3  0.0321188
  4  0.0236819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306293': 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) = 4666.07497692
delta logL = -8.28986230772e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
485    Prefactor:  8.062e-01  2.368e-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.301e+00  3.212e-02  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/306293/cmap_HighResolution_495936001_496195201_4FGL_J2228.6-1636_daily_bin990.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-28 11:53:21.729496', job_id='306293', GAL2='0.81', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1632855201.73', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-8.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='990' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:53:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 306293: <4FGL_J2228.6-1636_daily_bin990> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin990> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 11:40:21 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:40:22 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:40:22 2021
Terminated at Tue Sep 28 11:53:22 2021
Results reported at Tue Sep 28 11:53:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin990 337.166 -16.6073 495936001 496195201 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 :                                   546.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             249.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            781 sec.

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

