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


Performing analysis on: 4FGL_J2228.6-1636_daily_bin1503
RA = 337.166, Dec = -16.6073
tmin = 628905601, tmax = 629164801
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='308096', job_status='RUN', time_executed='2021-09-28 11:49:27.683558', time_epoch_executed='1632854967.68' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/308096

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/308096/ft1_4FGL_J2228.6-1636_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/308096/ft2_4FGL_J2228.6-1636_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/308096/ft1_4FGL_J2228.6-1636_daily_bin1503.fits outfile=/scratch/kocevski/308096/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1503.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=628905601.0 tmax=629164801.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.72
user 2.50
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/308096/ft1_filtered_4FGL_J2228.6-1636_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/308096/ft2_4FGL_J2228.6-1636_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/308096/ltcube_628905601_629164801_4FGL_J2228.6-1636_daily_bin1503.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/308096/ft2_4FGL_J2228.6-1636_daily_bin1503.fits
.....................!
real 9.15
user 8.86
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/308096/ft1_filtered_4FGL_J2228.6-1636_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/308096/ft2_4FGL_J2228.6-1636_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/308096/ltcube_628905601_629164801_4FGL_J2228.6-1636_daily_bin1503.fits outfile=/scratch/kocevski/308096/expmap_628905601_629164801_4FGL_J2228.6-1636_daily_bin1503.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/308096/ltcube_628905601_629164801_4FGL_J2228.6-1636_daily_bin1503.fits
.....................!
real 143.89
user 139.95
sys 3.72

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/308096/ft1_filtered_4FGL_J2228.6-1636_daily_bin1503.fits scfile=/scratch/kocevski/308096/ft2_4FGL_J2228.6-1636_daily_bin1503.fits outfile=/scratch/kocevski/308096/cmap_628905601_629164801_4FGL_J2228.6-1636_daily_bin1503.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.44
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/308096/ft1_filtered_4FGL_J2228.6-1636_daily_bin1503.fits scfile=/scratch/kocevski/308096/ft2_4FGL_J2228.6-1636_daily_bin1503.fits outfile=/scratch/kocevski/308096/cmap_HighResolution_628905601_629164801_4FGL_J2228.6-1636_daily_bin1503.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.44
user 0.28
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27560E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2224       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3937       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.806       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.432       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21693       1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.143       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7211       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38913E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .88014       1.0000         .10000E-03   10000.    
    12 'norm      '    .12310E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.485       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4187       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4706       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5073       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24081E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    88.711       1.0000         .10000E-03   10000.    
    19 'norm      '    1.6782       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31990E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.685       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2705       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86224       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=   5671.378     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     2479 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3110        .93297E-07** at limit **
   2  norm          1.2062        4.6135        .13854E-05   -.42839E-05
   3  Prefactor     7.3870        7.1539        .19101E-05   -.92004E-04
   4  Prefactor     18.712        23.627       -.17929E-08   -.18655E-04
   5  Prefactor     .10000E-03    4.1117        .11051E-06** at limit **
   6  Prefactor     40.708        20.241       -.15228E-07   -.36296E-04
   7  Prefactor     .37711E-01    14.210        .11095E-05   -.98445E-04
   8  Prefactor     38.897        80.690        .18581E-05   -.41856E-04
   9  Prefactor     1.7158        5.3881        .16799E-05    .62467E-05
  10  Prefactor     .10001E-03    423.70       -.87299E-05** at limit **
  11  norm          .84077        5.8856       -.48988E-06    .13625E-04
  12  norm          .10000E-03    6.6051        .87505E-08** at limit **
  13  Prefactor     56.989        79.773        .88802E-06   -.91890E-04
  14  Prefactor     6.1511        15.732        .61543E-05   -.70496E-04
  15  norm          1.4653        1.2889       -.17494E-06    .21432E-04
  16  norm          1.5098        1.7691       -.32471E-07   -.80110E-04
  17  Prefactor     .10000E-03    39.936       -.26454E-06** at limit **
  18  Prefactor     88.180        39.157       -.30883E-05   -.13826E-03
  19  norm          1.6995        2.5613        .17864E-05    .38668E-03
  20  Prefactor     .10000E-03    41.219        .24967E-05** at limit **
  21  Prefactor     12.795        11.477       -.62340E-08   -.44812E-04
  22  Prefactor     .10000E-03    4.1112        .21228E-06** at limit **
  23  Normalizat    1.2724        .24822       -.49525E-05   -.18375E-05
  24  Prefactor     .86063        .17199        .15355E-05   -.29286E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.20618
  Prefactor  = 7.387
  Prefactor  = 18.7116
  Prefactor  = 0.0001
  Prefactor  = 40.7076
  Prefactor  = 0.0377114
  Prefactor  = 38.8972
  Prefactor  = 1.71577
  Prefactor  = 0.000100011
  norm       = 0.840772
  norm       = 0.0001
  Prefactor  = 56.9895
  Prefactor  = 6.15107
  norm       = 1.46532
  norm       = 1.50979
  Prefactor  = 0.0001
  Prefactor  = 88.1797
  norm       = 1.69953
  Prefactor  = 0.0001
  Prefactor  = 12.7954
  Prefactor  = 0.0001
  Normalizat = 1.27239
  Prefactor  = 0.860626
 **********
 **   18 **HESSE 
 **********

 FCN=   5671.378     FROM HESSE     STATUS=OK           409 CALLS     2888 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3338        .21425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2062        4.5634        .30810E-03   -1.5488    
   3  Prefactor     7.3870        7.1201        .73750E-03   -1.5164    
   4  Prefactor     18.712        23.611        .92359E-04   -1.4843    
   5  Prefactor     .10000E-03    4.1221        .14914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.708        20.314        .63039E-04   -1.4431    
   7  Prefactor     .37711E-01    16.290        .89818E-01   -1.5747    
   8  Prefactor     38.897        80.092        .71798E-04   -1.4460    
   9  Prefactor     1.7158        5.3555        .29363E-03   -1.5446    
  10  Prefactor     .10001E-03    426.63        .18432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .84077        5.7594        .32470E-03   -1.5525    
  12  norm          .10000E-03    6.6064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     56.989        79.360        .25586E-03   -1.4197    
  14  Prefactor     6.1511        15.652        .79210E-03   -1.5212    
  15  norm          1.4653        1.2710        .74520E-04   -1.5466    
  16  norm          1.5098        1.7543        .10524E-03   -1.5462    
  17  Prefactor     .10000E-03    39.991        .20055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     88.180        38.459        .42659E-04   -1.3827    
  19  norm          1.6995        2.5085        .90364E-04   -1.5447    
  20  Prefactor     .10000E-03    41.373        .19758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.795        11.474        .11247E-03   -1.4992    
  22  Prefactor     .10000E-03    4.1153        .14915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2724        .28739        .28641E-03   -.84394    
  24  Prefactor     .86063        .20176        .24987E-03   -.97531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05304e-09
Minuit parameter uncertainties:
  1  7.41255e-06
  2  4.56469
  3  7.12091
  4  23.6233
  5  4.83122e-06
  6  20.3174
  7  1.5659
  8  80.3146
  9  5.35699
  10  0.00428921
  11  4.40141
  12  2.05239e-07
  13  79.5074
  14  15.6623
  15  1.271
  16  1.75437
  17  8.42898e-05
  18  38.4697
  19  2.50861
  20  0.000153162
  21  11.4756
  22  6.60274e-06
  23  0.287753
  24  0.201936
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  4.289e-03  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.606e-01  2.019e-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.272e+00  2.878e-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: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/308096/likelihoodResults_628905601_629164801_4FGL_J2228.6-1636_daily_bin1503.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) = 5671.37781878
delta logL = -1.1017406905e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5671.37781878
delta logL = -1.10166711238e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0575       1.0000          .0000       10.000    
     3 'Normalizat'    1.2724       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86063       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=   5669.537     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      274 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20942        1.7871        .43868E-02    .16711E-02
   2  Index         4.8606        1.7752        .66944E-01    .24700E-03
   3  Normalizat    1.0940        .66808E-01    .68767E-01    .55055E-04
   4  Prefactor     .93907        .48949E-01    .44501E-01    .59656E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.209419
  Index      = 4.86064
  Normalizat = 1.094
  Prefactor  = 0.939069
 **********
 **   18 **HESSE 
 **********

 FCN=   5669.537     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      307 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20942        3.5509        .19735E-04   -1.5616    
   2  Index         4.8606        2.7647        .26785E-02   -.27876E-01
   3  Normalizat    1.0940        .24144        .30429E-03   -.89945    
   4  Prefactor     .93907        .17427        .23990E-03   -.94789    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.47737e-10
Minuit parameter uncertainties:
  1  1.72438
  2  2.9296
  3  0.241682
  4  0.174371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/308096': 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) = 5669.53674594
delta logL = 1.84106182896

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  2.094e-01  1.724e+00  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  4.861e+00  2.930e+00  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.391e-01  1.744e-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.094e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.01
Ra Dec: 337.166 -16.607
Photon Index (Free Index): 4.86 +/- 2.93
Photon Flux (Free Index): 1.75e-07 +/- 1.04e-07
Energy Flux (Free Index): 2.36e-05 +/- 1.48e-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/308096/cmap_HighResolution_628905601_629164801_4FGL_J2228.6-1636_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', comment='SUCCESS', energy_flux2='2.36e-05', dlogl='1.84e+00', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-28 11:56:52.521009', photon_index_error2='2.93', photon_index2='4.86', ts='-0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.48e-05', EG='1.27', time_epoch_completed='1632855412.52', return_code='0', job_id='308096', GAL2='0.94', EG2='1.09', return_code2='102', photon_flux_error2='1.04e-07', ts2='4.01', photon_index='2.06' WHERE bin_id='1503' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:56:52 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1503 337.166 -16.6073 628905601 629164801 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 :                                   443.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             297.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            674 sec.

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

