/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 60 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_bin1021
RA = 337.166, Dec = -16.6073
tmin = 503971201, tmax = 504230401
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='306336', job_status='RUN', time_executed='2021-09-28 11:41:36.081520', time_epoch_executed='1632854496.08' WHERE source_name='4FGL J2228.6-1636' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/306336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/306336/ft1_4FGL_J2228.6-1636_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/306336/ft2_4FGL_J2228.6-1636_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/306336/ft1_4FGL_J2228.6-1636_daily_bin1021.fits outfile=/scratch/kocevski/306336/ft1_filteredMKT_4FGL_J2228.6-1636_daily_bin1021.fits ra=337.166 dec=-16.6073 rad=12.0 tmin=503971201.0 tmax=504230401.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 4.10
user 3.84
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/306336/ft1_filtered_4FGL_J2228.6-1636_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/306336/ft2_4FGL_J2228.6-1636_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/306336/ltcube_503971201_504230401_4FGL_J2228.6-1636_daily_bin1021.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/306336/ft2_4FGL_J2228.6-1636_daily_bin1021.fits
.....................!
real 12.20
user 11.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/306336/ft1_filtered_4FGL_J2228.6-1636_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/306336/ft2_4FGL_J2228.6-1636_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/306336/ltcube_503971201_504230401_4FGL_J2228.6-1636_daily_bin1021.fits outfile=/scratch/kocevski/306336/expmap_503971201_504230401_4FGL_J2228.6-1636_daily_bin1021.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/306336/ltcube_503971201_504230401_4FGL_J2228.6-1636_daily_bin1021.fits
.....................!
real 189.87
user 184.81
sys 4.76

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/306336/ft1_filtered_4FGL_J2228.6-1636_daily_bin1021.fits scfile=/scratch/kocevski/306336/ft2_4FGL_J2228.6-1636_daily_bin1021.fits outfile=/scratch/kocevski/306336/cmap_503971201_504230401_4FGL_J2228.6-1636_daily_bin1021.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/306336/ft1_filtered_4FGL_J2228.6-1636_daily_bin1021.fits scfile=/scratch/kocevski/306336/ft2_4FGL_J2228.6-1636_daily_bin1021.fits outfile=/scratch/kocevski/306336/cmap_HighResolution_503971201_504230401_4FGL_J2228.6-1636_daily_bin1021.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/306336/ft1_filtered_4FGL_J2228.6-1636_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/306336/ft2_4FGL_J2228.6-1636_daily_bin1021.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/306336/Model_4FGL_J2228.6-1636_daily_bin1021.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/306336/ft1_filtered_4FGL_J2228.6-1636_daily_bin1021.fits.....................!
real 76.49
user 75.11
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7743       1.0000         .10000E-03   10000.    
     2 'norm      '    .53279E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.3040       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11301E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.036       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.384       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.674       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17910E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3134       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0454       1.0000         .10000E-03   10000.    
    11 'norm      '    9.6065       1.0000         .10000E-03   10000.    
    12 'norm      '    .68268E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.700       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3240       1.0000         .10000E-03   10000.    
    15 'norm      '    .25315       1.0000         .10000E-03   10000.    
    16 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .97317E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    117.59       1.0000         .10000E-03   10000.    
    19 'norm      '    9.0340       1.0000         .10000E-03   10000.    
    20 'Prefactor '    50.317       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.369       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .52431E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88619       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0621       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=   9089.954     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     2526 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8073        16.259        .22168E-07   -.31585E-04
   2  norm          .65718E-01    6.3009       -.19761E-05    .31948E-03
   3  Prefactor     8.3033        4.7226        .73299E-07    .88478E-04
   4  Prefactor     .10000E-03    6.1166       -.16566E-06** at limit **
   5  Prefactor     11.267        9.0206        .97306E-07    .13891E-04
   6  Prefactor     29.474        13.201       -.10375E-06   -.44603E-04
   7  Prefactor     25.561        17.897       -.23807E-06   -.52204E-04
   8  Prefactor     .10000E-03    24.528       -.20085E-07** at limit **
   9  Prefactor     2.3344        4.3474        .16345E-05    .76927E-04
  10  Prefactor     5.0719        165.63       -.20835E-05   -.13646E-04
  11  norm          9.6062        3.9032       -.35106E-07   -.30401E-04
  12  norm          .10000E-03    38.371       -.17653E-07** at limit **
  13  Prefactor     24.764        46.253       -.45297E-06   -.25248E-06
  14  Prefactor     2.4831        23.402        .95589E-06   -.34272E-04
  15  norm          .25290        .43341        .61654E-06    .49178E-03
  16  norm          .10000E-03    1.0931        .71757E-07** at limit **
  17  Prefactor     .10000E-03    45.363        .67414E-06** at limit **
  18  Prefactor     118.89        50.567       -.44148E-06   -.11581E-03
  19  norm          9.0265        4.3466        .57956E-07   -.51614E-03
  20  Prefactor     47.684        45.010        .23045E-06   -.25474E-04
  21  Prefactor     14.412        9.6224        .74707E-09   -.16406E-04
  22  Prefactor     .10000E-03    5.4141        .18908E-07** at limit **
  23  Normalizat    .88561        .20780       -.73344E-06   -.34188E-03
  24  Prefactor     1.0619        .14477        .44574E-07   -.15151E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.80735
  norm       = 0.0657181
  Prefactor  = 8.30327
  Prefactor  = 0.0001
  Prefactor  = 11.267
  Prefactor  = 29.4735
  Prefactor  = 25.5614
  Prefactor  = 0.0001
  Prefactor  = 2.33443
  Prefactor  = 5.07188
  norm       = 9.60615
  norm       = 0.0001
  Prefactor  = 24.7643
  Prefactor  = 2.48308
  norm       = 0.252901
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 118.89
  norm       = 9.02646
  Prefactor  = 47.6837
  Prefactor  = 14.4117
  Prefactor  = 0.0001
  Normalizat = 0.885612
  Prefactor  = 1.06189
 **********
 **   18 **HESSE 
 **********

 FCN=   9089.954     FROM HESSE     STATUS=OK           415 CALLS     2941 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8073        16.228        .16714E-03   -1.5226    
   2  norm          .65718E-01    4.1706        .63853E-01   -1.5657    
   3  Prefactor     8.3033        4.7222        .69560E-03   -1.5132    
   4  Prefactor     .10000E-03    6.1491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.267        9.0289        .12060E-03   -1.5037    
   6  Prefactor     29.474        13.213        .73911E-04   -1.4622    
   7  Prefactor     25.561        17.904        .79060E-04   -1.4696    
   8  Prefactor     .10000E-03    24.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.3344        4.4441        .13038E-02   -1.5402    
  10  Prefactor     5.0719        167.04        .17902E-03   -1.5258    
  11  norm          9.6062        3.8983        .55733E-03   -1.5088    
  12  norm          .10000E-03    38.949        .18740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.764        46.270        .80601E-04   -1.4712    
  14  Prefactor     2.4831        23.675        .26905E-03   -1.5393    
  15  norm          .25290        .43528        .97457E-03   -1.5607    
  16  norm          .10000E-03    1.1097        .97391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    45.436        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     118.89        52.878        .37106E-04   -1.3523    
  19  norm          9.0265        4.5590        .61760E-04   -1.5107    
  20  Prefactor     47.684        45.026        .56535E-04   -1.4326    
  21  Prefactor     14.412        9.6227        .10566E-03   -1.4949    
  22  Prefactor     .10000E-03    5.5448        .21134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .88561        .24581        .33691E-03   -.96968    
  24  Prefactor     1.0619        .17268        .23526E-03   -.90694    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50687e-09
Minuit parameter uncertainties:
  1  16.2399
  2  1.04634
  3  4.72245
  4  7.61503e-05
  5  9.03003
  6  13.2145
  7  17.9079
  8  1.56862e-05
  9  4.4447
  10  58.3913
  11  3.89843
  12  0.000131789
  13  46.3366
  14  15.342
  15  0.435282
  16  1.66864e-05
  17  0.000529353
  18  52.8989
  19  4.55916
  20  45.0576
  21  9.62376
  22  1.14277e-05
  23  0.246125
  24  0.172769
Done.

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

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  5.072e+00  5.839e+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:  1.062e+00  1.728e-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:  8.856e-01  2.461e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 337.166 -16.607
Photon Flux Upper Limit: 7.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/306336/likelihoodResults_503971201_504230401_4FGL_J2228.6-1636_daily_bin1021.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) = 9089.78172074
delta logL = 0.172011765375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9089.75358153
delta logL = 0.20015097481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8068       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9398       1.0000          .0000       10.000    
     3 'Normalizat'    .85405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0708       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9089.754     FROM MIGRAD    STATUS=FAILED       106 CALLS      287 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8938        875.40        .14351E-03    .18378E-04
   2  Index         2.9351        5.8292        .88895E-02    .90383E-03
   3  Normalizat    .85410        .24168        .34244E-03   -.74564E-04
   4  Prefactor     1.0706        .18421        .23437E-03   -.75867E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9089.754     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      379 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8938        875.40        .30845E-03    .18378E-04
   2  Index         2.9351        5.8292        .13635E-02    .90383E-03
   3  Normalizat    .85410        .24168        .24983E-03   -.74564E-04
   4  Prefactor     1.0706        .18421        .13543E-03   -.75867E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9089.754     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      416 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8938        30.302        .57405E-05    .55452E-05
   2  Index         2.9351        1.5073        .17779E-02    .32228E-05
   3  Normalizat    .85410        .22836        .13698E-04   -.74365E-04
   4  Prefactor     1.0706        .17004        .93746E-05   -.76643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.89377
  Index      = 2.93509
  Normalizat = 0.854098
  Prefactor  = 1.07062
 **********
 **   18 **HESSE 
 **********

 FCN=   9089.754     FROM HESSE     STATUS=OK            25 CALLS      441 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8938        26.985        .11481E-05   -1.5146    
   2  Index         2.9351        1.3440        .71116E-04   -.42573    
   3  Normalizat    .85410        .22860        .27396E-05   -.98092    
   4  Prefactor     1.0706        .17019        .18749E-05   -.90411    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0463e-11
Minuit parameter uncertainties:
  1  27.0267
  2  1.36437
  3  0.228854
  4  0.170276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/306336': 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) = 9089.75357377
delta logL = 0.200158727417

Extracting fit parameters...

4FGL J2228.6-1636
   Spectrum: PowerLaw
228    Prefactor:  7.894e+00  2.703e+01  1.000e-04  1.000e+04 ( 1.000e-14)
229        Index:  2.935e+00  1.364e+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:  1.071e+00  1.703e-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:  8.541e-01  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 337.166 -16.607

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/306336/cmap_HighResolution_503971201_504230401_4FGL_J2228.6-1636_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-03', job_status='DONE', photon_flux_upper_limit='7.82e-08', time_completed='2021-09-28 11:54:37.201924', job_id='306336', GAL2='1.07', fit_tolerance='1e-08', EG2='0.85', EG='0.89', time_epoch_completed='1632855277.2', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='2.00e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1021' AND source_name='4FGL J2228.6-1636' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:54:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 306336: <4FGL_J2228.6-1636_daily_bin1021> in cluster <slac> Done

Job <4FGL_J2228.6-1636_daily_bin1021> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 11:40:24 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:40:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:40:26 2021
Terminated at Tue Sep 28 11:54:40 2021
Results reported at Tue Sep 28 11:54:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2228.6-1636_daily_bin1021 337.166 -16.6073 503971201 504230401 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 :                                   778.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            856 sec.

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

