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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1332
RA = 337.166, Dec = -16.6073
tmin = 584582401, tmax = 584841601
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='307844', job_status='RUN', time_executed='2021-09-28 11:45:45.266470', time_epoch_executed='1632854745.27' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307844

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307844/ft1_4FGL_J2228.6-1636_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307844/ft2_4FGL_J2228.6-1636_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307844/ft1_4FGL_J2228.6-1636_daily_bin1332.fits outfile=/scratch/kocevski/307844/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1332.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=584582401.0 tmax=584841601.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.82
user 2.61
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307844/ft1_filtered_4FGL_J2228.6-1636_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/307844/ft2_4FGL_J2228.6-1636_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/307844/ltcube_584582401_584841601_4FGL_J2228.6-1636_daily_bin1332.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/307844/ft2_4FGL_J2228.6-1636_daily_bin1332.fits
.....................!
real 12.25
user 11.89
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307844/ft1_filtered_4FGL_J2228.6-1636_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/307844/ft2_4FGL_J2228.6-1636_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/307844/ltcube_584582401_584841601_4FGL_J2228.6-1636_daily_bin1332.fits outfile=/scratch/kocevski/307844/expmap_584582401_584841601_4FGL_J2228.6-1636_daily_bin1332.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/307844/ltcube_584582401_584841601_4FGL_J2228.6-1636_daily_bin1332.fits
.....................!
real 191.08
user 185.96
sys 4.74

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/307844/ft1_filtered_4FGL_J2228.6-1636_daily_bin1332.fits scfile=/scratch/kocevski/307844/ft2_4FGL_J2228.6-1636_daily_bin1332.fits outfile=/scratch/kocevski/307844/cmap_584582401_584841601_4FGL_J2228.6-1636_daily_bin1332.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307844/ft1_filtered_4FGL_J2228.6-1636_daily_bin1332.fits scfile=/scratch/kocevski/307844/ft2_4FGL_J2228.6-1636_daily_bin1332.fits outfile=/scratch/kocevski/307844/cmap_HighResolution_584582401_584841601_4FGL_J2228.6-1636_daily_bin1332.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.444       1.0000         .10000E-03   10000.    
     2 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.272       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1307       1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.948       1.0000         .10000E-03   10000.    
    11 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8592       1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11090E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    99.364       1.0000         .10000E-03   10000.    
    19 'norm      '    5.1165       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5123       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3674       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3608       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88401       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=   4233.487     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2743 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.465        42.639       -.38107E-04    .99648E-05
   2  norm          .10000E-03    6.7730        .12541E-06** at limit **
   3  Prefactor     .10000E-03    3.7530        .13165E-06** at limit **
   4  Prefactor     .10000E-03    15.996        .35295E-06** at limit **
   5  Prefactor     .10000E-03    12.049       -.58630E-07** at limit **
   6  Prefactor     10.276        22.735        .29332E-05    .26590E-04
   7  Prefactor     .10000E-03    12.268       -.10451E-06** at limit **
   8  Prefactor     .10000E-03    138.44       -.62048E-05** at limit **
   9  Prefactor     4.1302        5.7901       -.57407E-06   -.12298E-03
  10  Prefactor     60.860        95.993       -.12794E-04    .13247E-04
  11  norm          .10000E-03    3.0190       -.15286E-06** at limit **
  12  norm          .10000E-03    22.954       -.25231E-06** at limit **
  13  Prefactor     .10000E-03    64.045       -.67940E-06** at limit **
  14  Prefactor     .10000E-03    23.149       -.14936E-06** at limit **
  15  norm          1.8582        1.4312       -.78069E-07    .80842E-04
  16  norm          .10000E-03    1.8919       -.10338E-06** at limit **
  17  Prefactor     .10000E-03    92.805        .24861E-05** at limit **
  18  Prefactor     99.629        75.572        .33011E-05    .46394E-03
  19  norm          5.1051        5.0857        .11804E-05    .90108E-03
  20  Prefactor     6.3070        215.92       -.70179E-04   -.35068E-04
  21  Prefactor     6.3705        7.9763        .15780E-07    .69400E-04
  22  Prefactor     .10000E-03    7.4737        .31207E-07** at limit **
  23  Normalizat    1.3600        .28619        .65094E-05    .56830E-05
  24  Prefactor     .88469        .20554        .87643E-06    .21247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.4653
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.13023
  Prefactor  = 60.8605
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8582
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 99.6288
  norm       = 5.10507
  Prefactor  = 6.30702
  Prefactor  = 6.37047
  Prefactor  = 0.0001
  Normalizat = 1.36001
  Prefactor  = 0.884692
 **********
 **   18 **HESSE 
 **********

 FCN=   4233.487     FROM HESSE     STATUS=OK           387 CALLS     3130 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.465        42.351        .72615E-04   -1.4603    
   2  norm          .10000E-03    6.7768        .16539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7581        .12310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.276        22.781        .12502E-03   -1.5067    
   7  Prefactor     .10000E-03    12.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    138.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1302        5.7836        .17929E-03   -1.5301    
  10  Prefactor     60.860        95.891        .51395E-04   -1.4146    
  11  norm          .10000E-03    3.0538        .11034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    22.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    64.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8582        1.4300        .63369E-04   -1.5435    
  16  norm          .10000E-03    1.9148        .87373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    93.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     99.629        79.055        .40329E-04   -1.3708    
  19  norm          5.1051        5.3868        .62753E-04   -1.5256    
  20  Prefactor     6.3070        206.00        .15726E-03   -1.5206    
  21  Prefactor     6.3705        7.9672        .15906E-03   -1.5203    
  22  Prefactor     .10000E-03    7.5034        .17370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3600        .33929        .29255E-03   -.81793    
  24  Prefactor     .88469        .24283        .26367E-03   -.96678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37568e-09
Minuit parameter uncertainties:
  1  42.3929
  2  3.67434e-05
  3  2.08174e-05
  4  0.000145212
  5  1.53938e-05
  6  22.7999
  7  1.42734e-05
  8  0.000295151
  9  5.78443
  10  96.1359
  11  1.88198e-05
  12  5.47693e-05
  13  6.6045e-05
  14  0.000188443
  15  1.43
  16  1.49888e-05
  17  0.00049126
  18  79.1391
  19  5.38729
  20  72.3618
  21  7.96854
  22  1.02794e-05
  23  0.339855
  24  0.243125
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  6.086e+01  9.614e+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.847e-01  2.431e-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.360e+00  3.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 1.59e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307844/likelihoodResults_584582401_584841601_4FGL_J2228.6-1636_daily_bin1332.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) = 4233.1196185
delta logL = 0.367124818913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4233.11028359
delta logL = 0.376459728867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.056       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8107       1.0000          .0000       10.000    
     3 'Normalizat'    1.3071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90226       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=   4233.110     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      298 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.029        82.420        .75636E-04   -.16837E-03
   2  Index         2.8115        1.2605        .47649E-02   -.12699E-03
   3  Normalizat    1.3069        .32846        .29715E-03    .29094E-03
   4  Prefactor     .90249        .24104        .26105E-03    .12181E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.0293
  Index      = 2.81154
  Normalizat = 1.30695
  Prefactor  = 0.902489
 **********
 **   18 **HESSE 
 **********

 FCN=   4233.110     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.029        58.132        .15127E-04   -1.4649    
   2  Index         2.8115        .89170        .19059E-03   -.45303    
   3  Normalizat    1.3069        .32608        .59431E-04   -.83359    
   4  Prefactor     .90249        .23948        .10442E-04   -.96054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25765e-10
Minuit parameter uncertainties:
  1  58.2501
  2  0.897652
  3  0.326595
  4  0.239755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307844': 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) = 4233.11028194
delta logL = 0.376461380471

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  2.803e+01  5.825e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.812e+00  8.977e-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:  9.025e-01  2.398e-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.307e+00  3.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 2.81 +/- 0.90
Photon Flux (Free Index): 8.99e-08 +/- 9.85e-08
Energy Flux (Free Index): 2.00e-05 +/- 2.02e-05

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/307844/cmap_HighResolution_584582401_584841601_4FGL_J2228.6-1636_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', comment='SUCCESS', energy_flux2='2.00e-05', dlogl='3.76e-01', photon_flux2='8.99e-08', job_status='DONE', time_completed='2021-09-28 11:54:30.567047', photon_index_error2='0.90', photon_index2='2.81', ts='0.56', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.59e-07', energy_flux_error2='2.02e-05', EG='1.36', time_epoch_completed='1632855270.57', return_code='0', job_id='307844', GAL2='0.90', EG2='1.31', return_code2='0', photon_flux_error2='9.85e-08', ts2='1.33', photon_index='2.06' WHERE bin_id='1332' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:54:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 307844: <4FGL_J2228.6-1636_daily_bin1332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1332 337.166 -16.6073 584582401 584841601 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 :                                   524.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             349.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            552 sec.

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

