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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1724
RA = 337.426, Dec = -8.5447
tmin = 686188801, tmax = 686448001
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='707867', job_status='RUN', time_executed='2022-10-03 01:19:21.165724', time_epoch_executed='1664785161.17' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/707867

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/707867/ft1_4FGL_J2229.7-0832_daily_bin1724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/707867/ft2_4FGL_J2229.7-0832_daily_bin1724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/707867/ft1_4FGL_J2229.7-0832_daily_bin1724.fits outfile=/scratch/kocevski/707867/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1724.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=686188801.0 tmax=686448001.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.62
user 4.34
sys 0.23

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

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

Number of photons that the gtmktime cut: 485

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/707867/ft1_filtered_4FGL_J2229.7-0832_daily_bin1724.fits" evtable="EVENTS" scfile=/scratch/kocevski/707867/ft2_4FGL_J2229.7-0832_daily_bin1724.fits sctable="SC_DATA" outfile=/scratch/kocevski/707867/ltcube_686188801_686448001_4FGL_J2229.7-0832_daily_bin1724.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/707867/ft2_4FGL_J2229.7-0832_daily_bin1724.fits
.....................!
real 13.36
user 12.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/707867/ft1_filtered_4FGL_J2229.7-0832_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707867/ft2_4FGL_J2229.7-0832_daily_bin1724.fits sctable="SC_DATA" expcube=/scratch/kocevski/707867/ltcube_686188801_686448001_4FGL_J2229.7-0832_daily_bin1724.fits outfile=/scratch/kocevski/707867/expmap_686188801_686448001_4FGL_J2229.7-0832_daily_bin1724.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/707867/ltcube_686188801_686448001_4FGL_J2229.7-0832_daily_bin1724.fits
.....................!
real 191.84
user 185.76
sys 5.32

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/707867/ft1_filtered_4FGL_J2229.7-0832_daily_bin1724.fits scfile=/scratch/kocevski/707867/ft2_4FGL_J2229.7-0832_daily_bin1724.fits outfile=/scratch/kocevski/707867/cmap_686188801_686448001_4FGL_J2229.7-0832_daily_bin1724.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/707867/ft1_filtered_4FGL_J2229.7-0832_daily_bin1724.fits scfile=/scratch/kocevski/707867/ft2_4FGL_J2229.7-0832_daily_bin1724.fits outfile=/scratch/kocevski/707867/cmap_HighResolution_686188801_686448001_4FGL_J2229.7-0832_daily_bin1724.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/707867/ft1_filtered_4FGL_J2229.7-0832_daily_bin1724.fits evtable="EVENTS" scfile=/scratch/kocevski/707867/ft2_4FGL_J2229.7-0832_daily_bin1724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/707867/Model_4FGL_J2229.7-0832_daily_bin1724.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/707867/ft1_filtered_4FGL_J2229.7-0832_daily_bin1724.fits.....................!
real 55.35
user 53.92
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15521E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    15.401       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.123       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10501E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .98134E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    6.1877       1.0000          .0000       .10000E+07
     7 'Prefactor '    .52939E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .55622E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .41093E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .33500E-01   1.0000          .0000       .10000E+07
    11 'norm      '    8.3346       1.0000          .0000       .10000E+07
    12 'Prefactor '    .44722       1.0000          .0000       .10000E+07
    13 'norm      '    2.9139       1.0000          .0000       .10000E+07
    14 'Prefactor '    .70576E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .97220       1.0000          .0000       .10000E+07
    16 'Prefactor '    .76621E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12432E-03   1.0000          .0000       .10000E+07
    18 'norm      '    1.8018       1.0000          .0000       .10000E+07
    19 'Normalizat'    .90908       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .88840       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=   5572.962     FROM MIGRAD    STATUS=CONVERGED    118 CALLS     1480 TOTAL
                     EDM=   .32E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16653E-09    5.4912        .11268E-06** at limit **
   2  Prefactor     15.474        7.2417        .87469E-08   -.14554E-03
   3  Prefactor     21.181        1.6823        .79926E-08   -.56599E-02
   4  Prefactor     .94924E-08    4.8502        .35409E-08** at limit **
   5  Prefactor     .22204E-08    17.043        .11207E-06** at limit **
   6  Prefactor     6.2770        5.2876       -.32560E-07    .64199E-02
   7  Prefactor      .0000        3.7276       -.13652E-06** at limit **
   8  Prefactor     .16653E-09    15.296       -.16264E-06** at limit **
   9  Prefactor     .66058E-08    4.9731        .63836E-07** at limit **
  10  Prefactor     .11102E-09    32.855       -.68000E-06** at limit **
  11  norm          8.3584        4.8080        .10233E-06   -.86996E-03
  12  Prefactor     .29088E-07    107.54       -.39053E-07** at limit **
  13  norm          2.9143        1.1517        .32503E-07   -.15926E-02
  14  Prefactor     .37192E-08    4.9907        .67144E-07** at limit **
  15  norm          .97318        .75666       -.54169E-07    .15207E-02
  16  Prefactor     .55511E-10    8.5967        .23430E-06** at limit **
  17  Prefactor     .19096E-07    2.5310        .67929E-08** at limit **
  18  norm          1.8429        2.8925       -.29255E-07   -.16572E-02
  19  Normalizat    .90864        .24476        .93226E-06    .14744E-04
  20  Prefactor     .88838        .15957       -.23686E-05    .37457E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.66533e-10
  Prefactor  = 15.4735
  Prefactor  = 21.1807
  Prefactor  = 9.49241e-09
  Prefactor  = 2.22045e-09
  Prefactor  = 6.27704
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 6.60583e-09
  Prefactor  = 1.11022e-10
  norm       = 8.35838
  Prefactor  = 2.90878e-08
  norm       = 2.91432
  Prefactor  = 3.71925e-09
  norm       = 0.973175
  Prefactor  = 5.55112e-11
  Prefactor  = 1.90958e-08
  norm       = 1.84291
  Normalizat = 0.908639
  Prefactor  = 0.888384
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.962     FROM HESSE     STATUS=OK           329 CALLS     1809 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16653E-09    5.5247        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.474        7.2675        .25495E-03   -1.5629    
   3  Prefactor     21.181        15.698        .21765E-03   -1.5616    
   4  Prefactor     .94924E-08    6.6348        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .22204E-08    21.253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2770        21.542        .40334E-03   -1.5658    
   7  Prefactor      .0000        3.7358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16653E-09    15.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .66058E-08    23.972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11102E-09    32.812        .16271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.3584        4.8172        .34701E-03   -1.5650    
  12  Prefactor     .29088E-07    111.50        .84208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9143        1.1534        .59492E-03   -1.5674    
  14  Prefactor     .37192E-08    5.8994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .97318        .75835        .42779E-03   -1.5688    
  16  Prefactor     .55511E-10    8.6482        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19096E-07    6.3271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.8429        20.498        .77843E-03   -1.5681    
  19  Normalizat    .90864        .20705        .66000E-01   -.96157    
  20  Prefactor     .88838        .13379        .44857E-01   -.96548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1196e-07
Minuit parameter uncertainties:
  1  6.13838e-05
  2  7.26746
  3  15.6979
  4  0.000502408
  5  0.000434228
  6  21.5422
  7  1.01501e-05
  8  9.77258e-05
  9  0.000794971
  10  0.000122557
  11  4.81725
  12  0.00360144
  13  1.1534
  14  0.00029723
  15  0.758347
  16  5.1122e-05
  17  0.000694702
  18  12.2925
  19  0.207235
  20  0.133843
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  8.358e+00  4.817e+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

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  8.884e-01  1.338e-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:  9.086e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.50
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.03e-07 +/- 5.91e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.56e-05

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) = 5572.76572943
delta logL = 0.196524258919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5572.76296806
delta logL = 0.199285628898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6050       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9226       1.0000          .0000       5.0000    
     3 'Normalizat'    .86169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90933       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5572.763     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6051        5.0872        .10523E-04   -.59474E-02
   2  alpha         2.9228        .79757        .87444E-01   -.28419E-04
   3  Normalizat    .86144        .25334        .29881E-03   -.34812E-04
   4  Prefactor     .90971        .16416        .19332E-03    .95034E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.60506
  alpha      = 2.92279
  Normalizat = 0.861443
  Prefactor  = 0.90971
 **********
 **   18 **HESSE 
 **********

 FCN=   5572.763     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6051        4.6509        .42092E-06   -1.5649    
   2  alpha         2.9228        .73156        .19679E-02    .16993    
   3  Normalizat    .86144        .25391        .11952E-04   -.97829    
   4  Prefactor     .90971        .16382        .38663E-04   -.95803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6906e-10
Minuit parameter uncertainties:
  1  4.6509
  2  0.742754
  3  0.254263
  4  0.163908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/707867': 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) = 5572.76296254
delta logL = 0.199291149867

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  8.605e+00  4.651e+00  0.000e+00  1.000e+06 ( 1.000e-11)
256        alpha:  2.923e+00  7.428e-01  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:  9.097e-01  1.639e-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:  8.614e-01  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.92 +/- 0.74
Photon Flux (Free Index): 1.38e-07 +/- 8.59e-08
Energy Flux (Free Index): 2.82e-05 +/- 1.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/707867/cmap_HighResolution_686188801_686448001_4FGL_J2229.7-0832_daily_bin1724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.03e-07', energy_flux2='2.82e-05', photon_flux_error='5.91e-08', dlogl='1.99e-01', energy_flux='2.71e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2022-10-03 01:27:20.424827', photon_index_error2='0.74', photon_index2='2.92', ts='5.50', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.46e-05', EG='0.91', time_epoch_completed='1664785640.42', return_code='0', job_id='707867', GAL2='0.91', EG2='0.86', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='8.59e-08', ts2='5.96', photon_index='2.47' WHERE bin_id='1724' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct  3 01:27:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 707867: <4FGL_J2229.7-0832_daily_bin1724> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1724> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Oct  3 01:15:41 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct  3 01:17:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct  3 01:17:48 2022
Terminated at Mon Oct  3 01:27:21 2022
Results reported at Mon Oct  3 01:27:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1724 337.426 -8.5447 686188801 686448001 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 :                                   481.07 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             257.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   572 sec.
    Turnaround time :                            700 sec.

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

