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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1748
RA = 337.426, Dec = -8.5447
tmin = 692409601, tmax = 692668801
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='898177', job_status='RUN', time_executed='2022-12-14 01:23:45.178404', time_epoch_executed='1671009825.18' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/898177

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/898177/ft1_4FGL_J2229.7-0832_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/898177/ft2_4FGL_J2229.7-0832_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/898177/ft1_4FGL_J2229.7-0832_daily_bin1748.fits outfile=/scratch/kocevski/898177/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1748.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=692409601.0 tmax=692668801.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.57
user 3.36
sys 0.18

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

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

Number of photons that the gtmktime cut: 452

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/898177/ft1_filtered_4FGL_J2229.7-0832_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/898177/ft2_4FGL_J2229.7-0832_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/898177/ltcube_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.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/898177/ft2_4FGL_J2229.7-0832_daily_bin1748.fits
.....................!
real 12.24
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/898177/ft1_filtered_4FGL_J2229.7-0832_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/898177/ft2_4FGL_J2229.7-0832_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/898177/ltcube_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.fits outfile=/scratch/kocevski/898177/expmap_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.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/898177/ltcube_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.fits
.....................!
real 190.03
user 185.97
sys 3.67

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/898177/ft1_filtered_4FGL_J2229.7-0832_daily_bin1748.fits scfile=/scratch/kocevski/898177/ft2_4FGL_J2229.7-0832_daily_bin1748.fits outfile=/scratch/kocevski/898177/cmap_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/898177/ft1_filtered_4FGL_J2229.7-0832_daily_bin1748.fits scfile=/scratch/kocevski/898177/ft2_4FGL_J2229.7-0832_daily_bin1748.fits outfile=/scratch/kocevski/898177/cmap_HighResolution_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.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.54
user 0.36
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/898177/ft1_filtered_4FGL_J2229.7-0832_daily_bin1748.fits', '/scratch/kocevski/898177/ft2_4FGL_J2229.7-0832_daily_bin1748.fits', expMap='/scratch/kocevski/898177/expmap_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.fits', expCube='/scratch/kocevski/898177/ltcube_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/898177/Model_4FGL_J2229.7-0832_daily_bin1748.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/898177/ft1_filtered_4FGL_J2229.7-0832_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/898177/ft2_4FGL_J2229.7-0832_daily_bin1748.fits
Exposure map: /scratch/kocevski/898177/expmap_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.fits
Exposure cube: /scratch/kocevski/898177/ltcube_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/898177/Model_4FGL_J2229.7-0832_daily_bin1748.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) = 5090.93912188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93697E-06   1.0000          .0000       .10000E+07
     2 'Prefactor '    .71592E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .55783E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    14.660       1.0000          .0000       .10000E+07
     5 'Prefactor '    .63986E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .53438       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14221E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .27174       1.0000          .0000       .10000E+07
     9 'Prefactor '    .46447E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    21.432       1.0000          .0000       .10000E+07
    11 'norm      '    .11395E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    40.056       1.0000          .0000       .10000E+07
    13 'norm      '    2.5407       1.0000          .0000       .10000E+07
    14 'Prefactor '    27.694       1.0000          .0000       .10000E+07
    15 'norm      '    .14194E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .28911       1.0000          .0000       .10000E+07
    17 'Prefactor '    .25468E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .12866E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2983       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83376       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=   5090.935     FROM MIGRAD    STATUS=CONVERGED    178 CALLS     1734 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        2.6242       -.79726E-07** at limit **
   2  Prefactor     .74496E-07    11.087       -.74388E-06** at limit **
   3  Prefactor     .23315E-08    8.3644       -.19320E-05** at limit **
   4  Prefactor     14.678        13.476        .75926E-06   -.28148E-01
   5  Prefactor     .23870E-08    45.523        .46202E-05** at limit **
   6  Prefactor     .59027        1.8372        .69801E-06    .60325E-02
   7  Prefactor     .16653E-09    4.3444       -.71026E-06** at limit **
   8  Prefactor     .23059E-06    175.07        .12581E-04** at limit **
   9  Prefactor     .14433E-08    5.7947       -.31390E-06** at limit **
  10  Prefactor     21.045        13.398       -.18025E-05   -.18912    
  11  norm          .22204E-09    6.3606       -.89790E-06** at limit **
  12  Prefactor     43.897        124.81        .14372E-04   -.27704E-01
  13  norm          2.5420        1.4531        .22443E-06    .30599E-03
  14  Prefactor     27.697        15.745        .30657E-06    .65932E-02
  15  norm          .55511E-10    4.4358       -.21602E-05** at limit **
  16  Prefactor     .11364E-04    18.917       -.22720E-05** at limit **
  17  Prefactor     .11102E-08    4.4083        .14402E-05** at limit **
  18  norm           .0000        3.8322        .82285E-07** at limit **
  19  Normalizat    1.2980        .27521       -.19057E-04    .15879E-03
  20  Prefactor     .83400        .17461       -.12110E-04    .16962E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 7.4496e-08
  Prefactor  = 2.33147e-09
  Prefactor  = 14.6784
  Prefactor  = 2.38698e-09
  Prefactor  = 0.590275
  Prefactor  = 1.66533e-10
  Prefactor  = 2.30593e-07
  Prefactor  = 1.44329e-09
  Prefactor  = 21.0451
  norm       = 2.22045e-10
  Prefactor  = 43.8965
  norm       = 2.54198
  Prefactor  = 27.6966
  norm       = 5.55112e-11
  Prefactor  = 1.13635e-05
  Prefactor  = 1.11022e-09
  norm       = 0
  Normalizat = 1.29803
  Prefactor  = 0.834003
 **********
 **   18 **HESSE 
 **********

 FCN=   5090.935     FROM HESSE     STATUS=OK           341 CALLS     2075 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        2.6244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .74496E-07    13.816        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .23315E-08    14.834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.678        18.356        .26133E-03   -1.5631    
   5  Prefactor     .23870E-08    10.252        .74323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .59027        38.516        .75324E-03   -1.5693    
   7  Prefactor     .16653E-09    4.3303        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23059E-06    10.022        .79842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14433E-08    5.6600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.045        88.978        .21607E-03   -1.5616    
  11  norm          .22204E-09    6.1690        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     43.897        126.59        .15802E-03   -1.5575    
  13  norm          2.5420        1.4842        .64043E-03   -1.5676    
  14  Prefactor     27.697        22.835        .19006E-03   -1.5603    
  15  norm          .55511E-10    1.9836        .24453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .11364E-04    66.805        .10366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11102E-08    4.3929        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        3.8225        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2980        .23206        .60632E-01   -.83625    
  20  Prefactor     .83400        .14639        .44155E-01   -.98487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33855e-05
Minuit parameter uncertainties:
  1  8.52335e-06
  2  0.00202924
  3  0.000374009
  4  18.3558
  5  0.000314094
  6  9.53628
  7  5.38271e-05
  8  0.0030405
  9  0.000180696
  10  86.548
  11  7.29581e-05
  12  126.598
  13  1.4842
  14  22.8353
  15  1.89621e-05
  16  0.0551055
  17  0.000139387
  18  9.17437e-06
  19  0.232248
  20  0.146458
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  2.220e-10  7.296e-05  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:  8.340e-01  1.465e-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.298e+00  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.426 -8.545
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/898177/likelihoodResults_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.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) = 5091.02735568
delta logL = -0.0919848871526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5090.87212205
delta logL = 0.0632487403482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85286       1.0000          .0000       .10000E+07
     2 'alpha     '    3.8528       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84426       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5090.872     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      274 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85839        3.4574        .17504E-04   -.60273E-03
   2  alpha         3.8558        4.0489        .68821E-01    .44779E-04
   3  Normalizat    1.2676        .28006        .27089E-03   -.49103E-05
   4  Prefactor     .84437        .17666        .21061E-03   -.11174E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.858389
  alpha      = 3.85584
  Normalizat = 1.26755
  Prefactor  = 0.844371
 **********
 **   18 **HESSE 
 **********

 FCN=   5090.872     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .45E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85839        2.9837        .70015E-06   -1.5689    
   2  alpha         3.8558        3.8724        .13764E-01    .57321    
   3  Normalizat    1.2676        .28032        .10836E-04   -.84540    
   4  Prefactor     .84437        .17694        .84243E-05   -.98113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51839e-12
Minuit parameter uncertainties:
  1  2.98372
  2  2.44128
  3  0.280653
  4  0.177061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/898177': 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) = 5090.87211684
delta logL = 0.0632539507815

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  8.584e-01  2.984e+00  0.000e+00  1.000e+06 ( 1.000e-11)
256        alpha:  3.856e+00  2.441e+00  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:  8.444e-01  1.771e-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.268e+00  2.807e-01  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/898177/cmap_HighResolution_692409601_692668801_4FGL_J2229.7-0832_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-05', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2022-12-14 01:32:00.278265', job_id='898177', GAL2='0.84', fit_tolerance='1e-08', EG2='1.27', EG='1.30', time_epoch_completed='1671010320.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='6.33e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1748' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:32:00 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 898177: <4FGL_J2229.7-0832_daily_bin1748> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 01:20:25 2022
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 01:20:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 01:20:26 2022
Terminated at Wed Dec 14 01:32:00 2022
Results reported at Wed Dec 14 01:32:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1748 337.426 -8.5447 692409601 692668801 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 :                                   497.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            695 sec.

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

