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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1603
RA = 337.166, Dec = -16.6073
tmin = 654825601, tmax = 655084801
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='917420', job_status='RUN', time_executed='2021-10-05 00:17:29.813022', time_epoch_executed='1633418249.81' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/917420

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/917420/ft1_4FGL_J2228.6-1636_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/917420/ft2_4FGL_J2228.6-1636_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/917420/ft1_4FGL_J2228.6-1636_daily_bin1603.fits outfile=/scratch/kocevski/917420/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1603.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=654825601.0 tmax=655084801.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 2.42
user 2.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/917420/ft1_filtered_4FGL_J2228.6-1636_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/917420/ft2_4FGL_J2228.6-1636_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/917420/ltcube_654825601_655084801_4FGL_J2228.6-1636_daily_bin1603.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/917420/ft2_4FGL_J2228.6-1636_daily_bin1603.fits
.....................!
real 9.89
user 9.56
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/917420/ft1_filtered_4FGL_J2228.6-1636_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917420/ft2_4FGL_J2228.6-1636_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/917420/ltcube_654825601_655084801_4FGL_J2228.6-1636_daily_bin1603.fits outfile=/scratch/kocevski/917420/expmap_654825601_655084801_4FGL_J2228.6-1636_daily_bin1603.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/917420/ltcube_654825601_655084801_4FGL_J2228.6-1636_daily_bin1603.fits
.....................!
real 148.93
user 145.27
sys 3.40

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/917420/ft1_filtered_4FGL_J2228.6-1636_daily_bin1603.fits scfile=/scratch/kocevski/917420/ft2_4FGL_J2228.6-1636_daily_bin1603.fits outfile=/scratch/kocevski/917420/cmap_654825601_655084801_4FGL_J2228.6-1636_daily_bin1603.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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/917420/ft1_filtered_4FGL_J2228.6-1636_daily_bin1603.fits scfile=/scratch/kocevski/917420/ft2_4FGL_J2228.6-1636_daily_bin1603.fits outfile=/scratch/kocevski/917420/cmap_HighResolution_654825601_655084801_4FGL_J2228.6-1636_daily_bin1603.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.46
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/917420/ft1_filtered_4FGL_J2228.6-1636_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/917420/ft2_4FGL_J2228.6-1636_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/917420/Model_4FGL_J2228.6-1636_daily_bin1603.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/917420/ft1_filtered_4FGL_J2228.6-1636_daily_bin1603.fits.....................!
real 39.35
user 38.30
sys 0.99

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.463       1.0000         .10000E-03   10000.    
     2 'norm      '    5.2997       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.018       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.4910       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.1782       1.0000         .10000E-03   10000.    
    12 'norm      '    6.1574       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.880       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.923       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8949       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9772       1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.669       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11130E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10496E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    68.344       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5825       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5832       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3097       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73304       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=   5447.768     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2737 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.460        17.098       -.10891E-05   -.45200E-04
   2  norm          5.3009        7.4269        .39808E-05   -.14624E-03
   3  Prefactor     13.017        7.8536       -.85338E-07   -.12386E-04
   4  Prefactor     .10000E-03    8.4975        .29170E-06** at limit **
   5  Prefactor     8.4901        8.7235        .30323E-07   -.13002E-05
   6  Prefactor     .10000E-03    6.0559        .12067E-06** at limit **
   7  Prefactor     .10000E-03    13.824        .10696E-06** at limit **
   8  Prefactor     .10000E-03    47.015        .16533E-05** at limit **
   9  Prefactor     .10000E-03    2.9520       -.10248E-07** at limit **
  10  Prefactor     .10000E-03    48.448       -.12480E-05** at limit **
  11  norm          6.1783        4.5885        .27494E-06    .15851E-03
  12  norm          6.1558        16.828        .20123E-06   -.82257E-05
  13  Prefactor     25.848        127.33       -.55565E-05   -.35251E-04
  14  Prefactor     28.917        16.921        .26228E-06   -.48691E-04
  15  norm          1.8947        1.1452        .10164E-08   -.28303E-04
  16  norm          1.9781        2.1430        .33922E-06    .41713E-04
  17  Prefactor     72.626        57.313       -.42907E-05   -.29671E-03
  18  Prefactor     .10000E-03    8.5564       -.14352E-07** at limit **
  19  norm          .10000E-03    .48065        .99957E-07** at limit **
  20  Prefactor     68.348        46.152       -.15739E-06    .53600E-04
  21  Prefactor     2.5721        21.942        .11683E-05    .63710E-05
  22  Prefactor     2.5719        34.211       -.31117E-06   -.35694E-04
  23  Normalizat    1.3102        .23302        .18722E-05   -.10110E-03
  24  Prefactor     .73275        .16529       -.17390E-05    .72930E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4605
  norm       = 5.30088
  Prefactor  = 13.0168
  Prefactor  = 0.0001
  Prefactor  = 8.49008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.17828
  norm       = 6.15585
  Prefactor  = 25.8478
  Prefactor  = 28.9165
  norm       = 1.89468
  norm       = 1.97814
  Prefactor  = 72.6261
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 68.3477
  Prefactor  = 2.57213
  Prefactor  = 2.57193
  Normalizat = 1.31015
  Prefactor  = 0.732749
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.768     FROM HESSE     STATUS=OK           397 CALLS     3134 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.460        17.099        .10185E-03   -1.4921    
   2  norm          5.3009        7.5488        .87294E-03   -1.5247    
   3  Prefactor     13.017        7.8544        .11102E-03   -1.4986    
   4  Prefactor     .10000E-03    8.5197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.4901        8.7273        .13757E-03   -1.5125    
   6  Prefactor     .10000E-03    6.0758        .17736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.9595        .12384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.1783        4.5900        .12919E-03   -1.5211    
  12  norm          6.1558        16.817        .16179E-03   -1.5212    
  13  Prefactor     25.848        130.02        .78744E-04   -1.4691    
  14  Prefactor     28.917        17.078        .74496E-04   -1.4632    
  15  norm          1.8947        1.1380        .58700E-04   -1.5433    
  16  norm          1.9781        2.1528        .10084E-03   -1.5427    
  17  Prefactor     72.626        59.641        .47096E-04   -1.4001    
  18  Prefactor     .10000E-03    8.5646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .48240        .49748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     68.348        45.901        .48553E-04   -1.4053    
  21  Prefactor     2.5721        21.745        .25395E-03   -1.5387    
  22  Prefactor     2.5719        34.230        .25391E-03   -1.5387    
  23  Normalizat    1.3102        .27621        .26460E-03   -.83264    
  24  Prefactor     .73275        .19446        .25003E-03   -1.0226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28949e-10
Minuit parameter uncertainties:
  1  17.1045
  2  7.55013
  3  7.85507
  4  2.0787e-05
  5  8.72856
  6  8.2402e-07
  7  1.7029e-07
  8  0.000333354
  9  9.14596e-07
  10  0.000308232
  11  4.59024
  12  16.8299
  13  116.348
  14  17.0805
  15  1.13803
  16  2.15293
  17  59.6901
  18  2.07198e-05
  19  2.45605e-07
  20  45.9252
  21  14.9646
  22  18.7783
  23  0.276523
  24  0.194638
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  3.082e-04  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:  7.327e-01  1.946e-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.310e+00  2.765e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/917420/likelihoodResults_654825601_655084801_4FGL_J2228.6-1636_daily_bin1603.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) = 5447.76783043
delta logL = -9.77746421995e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5447.7677327
delta logL = -4.2799001676e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1155       1.0000          .0000       10.000    
     3 'Normalizat'    1.3102       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73275       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=   5447.768     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    103.36        .90712E-02** at limit **
   2  Index         2.1008        5.6952        .50000        .24471E-05
   3  Normalizat    1.3102        .21630        .59829E-01    .10111E-04
   4  Prefactor     .73275        .15848        .42836E-01    .21619E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10083
  Normalizat = 1.31016
  Prefactor  = 0.732747
 **********
 **   18 **HESSE 
 **********

 FCN=   5447.768     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8064.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1008        5.8840        .50000       -.61853    
   3  Normalizat    1.3102        .10084        .26460E-03   -.83264    
   4  Prefactor     .73275        .73895E-01    .25003E-03   -1.0226    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.67772e-09
Minuit parameter uncertainties:
  1  0.000837559
  2  53.5758
  3  0.100856
  4  0.0739048
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/917420': 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) = 5447.76773268
delta logL = -2.40552253672e-08

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  8.376e-04  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.101e+00  5.358e+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:  7.327e-01  7.390e-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.310e+00  1.009e-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/917420/cmap_HighResolution_654825601_655084801_4FGL_J2228.6-1636_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', job_status='DONE', photon_flux_upper_limit='6.54e-08', time_completed='2021-10-05 00:24:55.081108', job_id='917420', GAL2='0.73', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1633418695.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-2.41e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1603' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:24:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 917420: <4FGL_J2228.6-1636_daily_bin1603> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:15:30 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:15:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:15:32 2021
Terminated at Tue Oct  5 00:24:55 2021
Results reported at Tue Oct  5 00:24:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1603 337.166 -16.6073 654825601 655084801 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 :                                   447.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   563 sec.
    Turnaround time :                            565 sec.

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

