/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 184 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2228.6-1636_daily_bin61
RA = 337.166, Dec = -16.6073
tmin = 255139201, tmax = 255398401
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='302114', job_status='RUN', time_executed='2021-09-28 11:28:53.801898', time_epoch_executed='1632853733.8' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/302114

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/302114/ft1_4FGL_J2228.6-1636_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/302114/ft2_4FGL_J2228.6-1636_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/302114/ft1_4FGL_J2228.6-1636_daily_bin61.fits outfile=/scratch/kocevski/302114/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin61.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=255139201.0 tmax=255398401.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 7.48
user 7.23
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/302114/ft2_4FGL_J2228.6-1636_daily_bin61.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/302114/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin61.fits evtable="EVENTS" outfile="/scratch/kocevski/302114/ft1_filtered_4FGL_J2228.6-1636_daily_bin61.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/302114/ft1_filtered_4FGL_J2228.6-1636_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/302114/ft2_4FGL_J2228.6-1636_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/302114/ltcube_255139201_255398401_4FGL_J2228.6-1636_daily_bin61.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/302114/ft2_4FGL_J2228.6-1636_daily_bin61.fits
.....................!
real 11.68
user 11.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/302114/ft1_filtered_4FGL_J2228.6-1636_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/302114/ft2_4FGL_J2228.6-1636_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/302114/ltcube_255139201_255398401_4FGL_J2228.6-1636_daily_bin61.fits outfile=/scratch/kocevski/302114/expmap_255139201_255398401_4FGL_J2228.6-1636_daily_bin61.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/302114/ltcube_255139201_255398401_4FGL_J2228.6-1636_daily_bin61.fits
.....................!
real 189.88
user 184.95
sys 4.61

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/302114/ft1_filtered_4FGL_J2228.6-1636_daily_bin61.fits scfile=/scratch/kocevski/302114/ft2_4FGL_J2228.6-1636_daily_bin61.fits outfile=/scratch/kocevski/302114/cmap_255139201_255398401_4FGL_J2228.6-1636_daily_bin61.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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/302114/ft1_filtered_4FGL_J2228.6-1636_daily_bin61.fits scfile=/scratch/kocevski/302114/ft2_4FGL_J2228.6-1636_daily_bin61.fits outfile=/scratch/kocevski/302114/cmap_HighResolution_255139201_255398401_4FGL_J2228.6-1636_daily_bin61.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/302114/ft1_filtered_4FGL_J2228.6-1636_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/302114/ft2_4FGL_J2228.6-1636_daily_bin61.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/302114/Model_4FGL_J2228.6-1636_daily_bin61.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/302114/ft1_filtered_4FGL_J2228.6-1636_daily_bin61.fits.....................!
real 53.31
user 52.05
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4431       1.0000         .10000E-03   10000.    
     2 'norm      '    .14105       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .90621E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4205       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0791       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2926       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.500       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.9019       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3826       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3345       1.0000         .10000E-03   10000.    
    15 'norm      '    2.2285       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7910       1.0000         .10000E-03   10000.    
    17 'Prefactor '    96.849       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76170       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2231       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=   6081.160     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     3178 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4307        25.869       -.32640E-05   -.10746E-03
   2  norm          .15195        26.801        .11825E-04   -.31665E-03
   3  Prefactor     .10000E-03    4.1281        .83648E-07** at limit **
   4  Prefactor     5.4422        19.496        .60725E-05    .38671E-03
   5  Prefactor     3.0802        7.7808       -.39443E-06   -.19849E-04
   6  Prefactor     9.2999        12.848       -.50483E-06    .92281E-05
   7  Prefactor     18.488        16.326        .38484E-06    .77848E-04
   8  Prefactor     .10000E-03    61.520        .14581E-05** at limit **
   9  Prefactor     .10000E-03    6.3432        .82055E-06** at limit **
  10  Prefactor     .10000E-03    33.614       -.40548E-06** at limit **
  11  norm          7.8956        4.3911        .53475E-07    .16898E-02
  12  norm          .10000E-03    11.094        .23769E-06** at limit **
  13  Prefactor     1.7954        876.05        .17041E-05    .12239E-04
  14  Prefactor     4.3372        14.285        .11010E-05    .75867E-04
  15  norm          2.2285        .94486        .20407E-07    .15075E-03
  16  norm          1.7917        1.8661        .79019E-07    .86787E-04
  17  Prefactor     96.811        62.599       -.89741E-06   -.11471E-03
  18  Prefactor     .10000E-03    3.9451        .32617E-07** at limit **
  19  norm          .10000E-03    .32123        .63465E-07** at limit **
  20  Prefactor     .10000E-03    11.041       -.18356E-06** at limit **
  21  Prefactor     .10000E-03    2.9058        .17251E-07** at limit **
  22  Prefactor     .10000E-03    6.0623       -.29918E-07** at limit **
  23  Normalizat    .76190        .22213       -.23823E-05    .68405E-06
  24  Prefactor     1.2230        .16547        .10621E-05    .31988E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.43067
  norm       = 0.151947
  Prefactor  = 0.000100003
  Prefactor  = 5.44217
  Prefactor  = 3.08018
  Prefactor  = 9.2999
  Prefactor  = 18.4883
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.89556
  norm       = 0.0001
  Prefactor  = 1.79543
  Prefactor  = 4.33718
  norm       = 2.22851
  norm       = 1.79167
  Prefactor  = 96.8114
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.7619
  Prefactor  = 1.22302
 **********
 **   18 **HESSE 
 **********

 FCN=   6081.160     FROM HESSE     STATUS=OK           403 CALLS     3581 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4307        25.944        .26174E-03   -1.5396    
   2  norm          .15195        28.475        .31754E-02   -1.5630    
   3  Prefactor     .10000E-03    27.932        .29298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.4422        20.707        .17260E-03   -1.5241    
   5  Prefactor     3.0802        7.7555        .23115E-03   -1.5357    
   6  Prefactor     9.2999        12.792        .13147E-03   -1.5098    
   7  Prefactor     18.488        16.330        .93118E-04   -1.4848    
   8  Prefactor     .10000E-03    61.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.8956        4.5292        .57931E-03   -1.5146    
  12  norm          .10000E-03    11.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7954        878.10        .37005E-03   -1.5440    
  14  Prefactor     4.3372        14.254        .19348E-03   -1.5291    
  15  norm          2.2285        .94349        .47487E-04   -1.5409    
  16  norm          1.7917        1.8663        .10201E-03   -1.5440    
  17  Prefactor     96.811        62.275        .40844E-04   -1.3737    
  18  Prefactor     .10000E-03    3.9549        .15123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .40231        .85811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.9073        .12982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.0859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .76190        .25748        .31845E-03   -1.0150    
  24  Prefactor     1.2230        .19286        .20144E-03   -.85626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46602e-09
Minuit parameter uncertainties:
  1  15.8907
  2  4.16075
  3  0.000598849
  4  20.7346
  5  7.75799
  6  12.796
  7  16.3344
  8  0.000601337
  9  0.000165279
  10  7.9529e-05
  11  4.52936
  12  4.0364e-05
  13  80.6281
  14  14.2652
  15  0.943497
  16  1.86635
  17  62.3173
  18  5.28771e-06
  19  3.39601e-06
  20  1.66727e-05
  21  1.98454e-06
  22  3.13797e-06
  23  0.257891
  24  0.192974
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.000e-04  7.953e-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:  1.223e+00  1.930e-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:  7.619e-01  2.579e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/302114/likelihoodResults_255139201_255398401_4FGL_J2228.6-1636_daily_bin61.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) = 6081.16039383
delta logL = -0.000141467473441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6081.16025284
delta logL = -4.7286539484e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2460       1.0000          .0000       10.000    
     3 'Normalizat'    .76190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2230       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=   6081.160     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      279 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10140E-03    123.39        .18142E-02** at limit **
   2  Index         2.1853        6.0726        .50000        .10909E-04
   3  Normalizat    .76190        .10264E-01    .31845E-03   -.21384E-04
   4  Prefactor     1.2230        .80866E-02    .20144E-03   -.16683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101398
  Index      = 2.18526
  Normalizat = 0.761904
  Prefactor  = 1.22301
 **********
 **   18 **HESSE 
 **********

 FCN=   6081.160     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10140E-03    546.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1853        5.9678        .50000       -.59795    
   3  Normalizat    .76190        .22103E-01    .12738E-04   -1.0150    
   4  Prefactor     1.2230        .17414E-01    .40289E-04   -.85626    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.82763e-09
Minuit parameter uncertainties:
  1  0.0557923
  2  394.807
  3  0.0221029
  4  0.0174144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/302114': 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) = 6081.16025265
delta logL = -2.85562236968e-07

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  1.014e-04  5.579e-02  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.185e+00  3.948e+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:  1.223e+00  1.741e-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:  7.619e-01  2.210e-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/302114/cmap_HighResolution_255139201_255398401_4FGL_J2228.6-1636_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2021-09-28 11:39:59.444070', job_id='302114', GAL2='1.22', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632854399.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='-2.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='61' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:39:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 302114: <4FGL_J2228.6-1636_daily_bin61> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin61> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 11:25:41 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:25:43 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:25:43 2021
Terminated at Tue Sep 28 11:39:59 2021
Results reported at Tue Sep 28 11:39:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin61 337.166 -16.6073 255139201 255398401 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 :                                   664.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             273.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            858 sec.

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

