aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 233 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1772
RA = 337.426, Dec = -8.5447
tmin = 698630401, tmax = 698889601
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='653597', job_status='RUN', time_executed='2023-02-24 03:04:54.874312', time_epoch_executed='1677236694.87' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/653597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/653597/ft1_4FGL_J2229.7-0832_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/653597/ft2_4FGL_J2229.7-0832_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/653597/ft1_4FGL_J2229.7-0832_daily_bin1772.fits outfile=/scratch/kocevski/653597/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1772.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=698630401.0 tmax=698889601.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 3.01
user 2.80
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/653597/ft2_4FGL_J2229.7-0832_daily_bin1772.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/653597/ft2_4FGL_J2229.7-0832_daily_bin1772.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/653597/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/653597/ft1_filtered_4FGL_J2229.7-0832_daily_bin1772.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.49
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 70

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/653597/ft1_filtered_4FGL_J2229.7-0832_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/653597/ft2_4FGL_J2229.7-0832_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/653597/ltcube_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.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/653597/ft2_4FGL_J2229.7-0832_daily_bin1772.fits
.....................!
real 13.04
user 12.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/653597/ft1_filtered_4FGL_J2229.7-0832_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/653597/ft2_4FGL_J2229.7-0832_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/653597/ltcube_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.fits outfile=/scratch/kocevski/653597/expmap_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.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/653597/ltcube_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.fits
.....................!
real 190.56
user 185.30
sys 4.88

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2229.7-0832 @ 337.426 -8.5447

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/653597/ft1_filtered_4FGL_J2229.7-0832_daily_bin1772.fits scfile=/scratch/kocevski/653597/ft2_4FGL_J2229.7-0832_daily_bin1772.fits outfile=/scratch/kocevski/653597/cmap_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.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.426 yref=-8.5447 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/653597/ft1_filtered_4FGL_J2229.7-0832_daily_bin1772.fits scfile=/scratch/kocevski/653597/ft2_4FGL_J2229.7-0832_daily_bin1772.fits outfile=/scratch/kocevski/653597/cmap_HighResolution_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.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.426 yref=-8.5447 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/653597/ft1_filtered_4FGL_J2229.7-0832_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/653597/ft2_4FGL_J2229.7-0832_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/653597/Model_4FGL_J2229.7-0832_daily_bin1772.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/653597/ft1_filtered_4FGL_J2229.7-0832_daily_bin1772.fits........................!
real 21.82
user 20.56
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/653597/ft1_filtered_4FGL_J2229.7-0832_daily_bin1772.fits', '/scratch/kocevski/653597/ft2_4FGL_J2229.7-0832_daily_bin1772.fits', expMap='/scratch/kocevski/653597/expmap_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.fits', expCube='/scratch/kocevski/653597/ltcube_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/653597/Model_4FGL_J2229.7-0832_daily_bin1772.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2229.7-0832'

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  8.119e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
256        alpha:  2.473e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.910e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/653597/ft1_filtered_4FGL_J2229.7-0832_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/653597/ft2_4FGL_J2229.7-0832_daily_bin1772.fits
Exposure map: /scratch/kocevski/653597/expmap_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.fits
Exposure cube: /scratch/kocevski/653597/ltcube_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/653597/Model_4FGL_J2229.7-0832_daily_bin1772.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) = 902.421328657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62172E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    .60751E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .71651E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .72680E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    18.682       1.0000          .0000       .10000E+07
     6 'Prefactor '    58.932       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .55511E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .12768E-08   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10483E+06   1.0000          .0000       .10000E+07
    11 'norm      '    .19436E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .74729E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .11299E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10823E-01   1.0000          .0000       .10000E+07
    15 'norm      '    9.6534       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22648E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .96967E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .98211E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.5143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   895.1762     FROM MIGRAD    STATUS=CONVERGED    148 CALLS     2106 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .21336E-04    42.194       -.28448E-06** at limit **
   2  Prefactor     .29103E-05    32.056       -.11423E-05** at limit **
   3  Prefactor     .70036E-05    47.416        .11284E-05** at limit **
   4  Prefactor     .18856E-01    402.74       -.12128E-04** at limit **
   5  Prefactor     18.761        1.2126        .37782E-07    .14637E-02
   6  Prefactor     58.876        1.7476       -.29672E-07   -.49440E-02
   7  Prefactor     .10000E+07    1.0985        .45309E-06** at limit **
   8  Prefactor     .72164E-09    19.293        .19718E-05** at limit **
   9  Prefactor      .0000        6.9695       -.23856E-06** at limit **
  10  Prefactor     .10483E+06    1.0000       -.72349E-12    .23979E-03
  11  norm          .16356E-05    30.504       -.10647E-05** at limit **
  12  Prefactor     .17609E-03    215.43       -.27451E-05** at limit **
  13  norm          .41939E-05    46.351        .20429E-05** at limit **
  14  Prefactor     .60064E-02    341.71       -.11917E-04** at limit **
  15  norm          9.6478        10.775        .15720E-07    .32309E-02
  16  Prefactor     .33320E-04    100.92       -.16722E-05** at limit **
  17  Prefactor     .55511E-10    31.403        .50844E-07** at limit **
  18  norm          .11008E-05    37.605       -.39339E-06** at limit **
  19  Normalizat    .10000E-01    .15328        .36186E-04** at limit **
  20  Prefactor     1.5141        .21688       -.12620E-05    .49715E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.1336e-05
  Prefactor  = 2.91034e-06
  Prefactor  = 7.00356e-06
  Prefactor  = 0.0188559
  Prefactor  = 18.7614
  Prefactor  = 58.8761
  Prefactor  = 1e+06
  Prefactor  = 7.21645e-10
  Prefactor  = 0
  Prefactor  = 104829
  norm       = 1.63558e-06
  Prefactor  = 0.000176086
  norm       = 4.19392e-06
  Prefactor  = 0.00600636
  norm       = 9.64782
  Prefactor  = 3.33197e-05
  Prefactor  = 5.55112e-11
  norm       = 1.10084e-06
  Normalizat = 0.01
  Prefactor  = 1.51414
 **********
 **   18 **HESSE 
 **********

 FCN=   895.1762     FROM HESSE     STATUS=OK           321 CALLS     2427 TOTAL
                     EDM=   .33E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .21336E-04    76.327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .29103E-05    62.611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .70036E-05    47.864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .18856E-01    989.16        .42118E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.761        57.619        .23145E-03   -1.5621    
   6  Prefactor     58.876        74.851        .13027E-03   -1.5555    
   7  Prefactor     .10000E+07    .16747E+06    .11486E-02    1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72164E-09    19.292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        6.9706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10483E+06    .19324E+06    .43457E-04   -.91137    
  11  norm          .16356E-05    63.098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .17609E-03    221.25        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .41939E-05    46.575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .60064E-02    529.20        .42118E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.6478        10.976        .32229E-03   -1.5646    
  16  Prefactor     .33320E-04    103.27        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    31.405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11008E-05    81.538        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .15107        .16412       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5141        .23886        .29647E-01   -.77144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32115e-05
Minuit parameter uncertainties:
  1  0.0807109
  2  0.0269979
  3  0.0366182
  4  8.63891
  5  57.6207
  6  74.8517
  7  370.598
  8  0.000233737
  9  1.49273e-05
  10  209100
  11  0.0203179
  12  0.394774
  13  0.0279524
  14  3.56601
  15  10.9763
  16  0.11732
  17  9.94147e-05
  18  0.0189488
  19  8.15903e-07
  20  0.239034
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.636e-06  2.032e-02  0.000e+00  1.000e+06 ( 1.000e-11)
256        alpha:  2.473e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.910e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.514e+00  2.390e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.000e-02  8.159e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.426 -8.545
Photon Flux Upper Limit: 2.34e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.19e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/653597/likelihoodResults_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.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) = 895.183806429
delta logL = -0.00763607272472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 895.176170458
delta logL = -1.02335206975e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .71726E-06   1.0000          .0000       .10000E+07
     2 'alpha     '    4.4907       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5142       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   895.1762     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      255 TOTAL
                     EDM=   .13E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    3.3819        .42118E-03** at limit **
   2  alpha         2.1559        2.5871        .51000       -.16719E-11
   3  Normalizat    .10000E-01    .21650E-04    .16412    ** at limit **
   4  Prefactor     1.5141        .26447E-02    .29648E-01    .15190E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  alpha      = 2.15591
  Normalizat = 0.01
  Prefactor  = 1.51414
 **********
 **   18 **HESSE 
 **********

 FCN=   895.1762     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .67E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    16.934        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1559        3.2607        .50000       -.13807    
   3  Normalizat    .10000E-01    .11477E-03    .70583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5141        .59195E-02    .17688E-03   -.77144    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.67806e-14
Minuit parameter uncertainties:
  1  5.61593e-05
  2  528258
  3  1.00385e-08
  4  0.00591947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/653597': 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) = 895.176170343
delta logL = 1.29543877847e-08

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  5.551e-11  5.616e-05  0.000e+00  1.000e+06 ( 1.000e-11)
256        alpha:  2.156e+00  5.283e+05  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  9.910e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.514e+00  5.919e-03  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  1.000e-02  1.004e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.426 -8.545

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/653597/cmap_HighResolution_698630401_698889601_4FGL_J2229.7-0832_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.19e-04', job_status='DONE', photon_flux_upper_limit='2.34e-06', time_completed='2023-02-24 03:10:40.074253', job_id='653597', GAL2='1.51', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1677237040.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.51', dlogl='1.30e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1772' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 03:10:40 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 653597: <4FGL_J2229.7-0832_daily_bin1772> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1772> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Feb 24 03:00:29 2023
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 03:00:30 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 03:00:30 2023
Terminated at Fri Feb 24 03:10:40 2023
Results reported at Fri Feb 24 03:10:40 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1772 337.426 -8.5447 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2229.7-0832 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   347.23 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             249.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            611 sec.

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

