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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1720
RA = 337.426, Dec = -8.5447
tmin = 685152001, tmax = 685411201
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='849888', job_status='RUN', time_executed='2022-09-21 00:58:03.386175', time_epoch_executed='1663747083.39' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/849888

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/849888/ft1_4FGL_J2229.7-0832_daily_bin1720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/849888/ft2_4FGL_J2229.7-0832_daily_bin1720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/849888/ft1_4FGL_J2229.7-0832_daily_bin1720.fits outfile=/scratch/kocevski/849888/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1720.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=685152001.0 tmax=685411201.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.74
user 3.50
sys 0.19

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

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

Number of photons that the gtmktime cut: 252

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/849888/ft1_filtered_4FGL_J2229.7-0832_daily_bin1720.fits" evtable="EVENTS" scfile=/scratch/kocevski/849888/ft2_4FGL_J2229.7-0832_daily_bin1720.fits sctable="SC_DATA" outfile=/scratch/kocevski/849888/ltcube_685152001_685411201_4FGL_J2229.7-0832_daily_bin1720.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/849888/ft2_4FGL_J2229.7-0832_daily_bin1720.fits
.....................!
real 14.81
user 14.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/849888/ft1_filtered_4FGL_J2229.7-0832_daily_bin1720.fits evtable="EVENTS" scfile=/scratch/kocevski/849888/ft2_4FGL_J2229.7-0832_daily_bin1720.fits sctable="SC_DATA" expcube=/scratch/kocevski/849888/ltcube_685152001_685411201_4FGL_J2229.7-0832_daily_bin1720.fits outfile=/scratch/kocevski/849888/expmap_685152001_685411201_4FGL_J2229.7-0832_daily_bin1720.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/849888/ltcube_685152001_685411201_4FGL_J2229.7-0832_daily_bin1720.fits
.....................!
real 191.79
user 185.46
sys 4.85

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/849888/ft1_filtered_4FGL_J2229.7-0832_daily_bin1720.fits scfile=/scratch/kocevski/849888/ft2_4FGL_J2229.7-0832_daily_bin1720.fits outfile=/scratch/kocevski/849888/cmap_685152001_685411201_4FGL_J2229.7-0832_daily_bin1720.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/849888/ft1_filtered_4FGL_J2229.7-0832_daily_bin1720.fits scfile=/scratch/kocevski/849888/ft2_4FGL_J2229.7-0832_daily_bin1720.fits outfile=/scratch/kocevski/849888/cmap_HighResolution_685152001_685411201_4FGL_J2229.7-0832_daily_bin1720.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27070E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    13.827       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14262E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .50698E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.754       1.0000          .0000       .10000E+07
     6 'Prefactor '    .55204       1.0000          .0000       .10000E+07
     7 'Prefactor '    28.212       1.0000          .0000       .10000E+07
     8 'Prefactor '    16.454       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16499E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .34965       1.0000          .0000       .10000E+07
    11 'norm      '    .60069E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .87727       1.0000          .0000       .10000E+07
    13 'norm      '    2.1895       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.3035       1.0000          .0000       .10000E+07
    15 'norm      '    .94980E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.262       1.0000          .0000       .10000E+07
    17 'Prefactor '    .81844E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .43014E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    .83446       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92231       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=   2769.872     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1528 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .83267E-09    5.4673       -.69560E-06** at limit **
   2  Prefactor     13.831        9.7802        .21970E-06   -.76732E-03
   3  Prefactor     .27756E-08    16.070       -.17804E-05** at limit **
   4  Prefactor     .15543E-08    8.6870       -.27153E-05** at limit **
   5  Prefactor     19.967        9.0390        .78785E-06   -.65676E-01
   6  Prefactor     .15978E-05    123.15        .59518E-05** at limit **
   7  Prefactor     28.180        3.5159       -.44649E-06   -.26140E-02
   8  Prefactor     16.454        3.5198        .33651E-07    .99569E-02
   9  Prefactor     .11102E-09    4.0280       -.59489E-06** at limit **
  10  Prefactor     .27756E-09    6.9982       -.38806E-05** at limit **
  11  norm          .14100E-07    11.351        .48747E-05** at limit **
  12  Prefactor     .41633E-08    435.97       -.20712E-04** at limit **
  13  norm          2.1905        1.4069       -.41702E-07   -.22924E-02
  14  Prefactor     7.1784        12.809        .25742E-05    .13923E-02
  15  norm          .11102E-09    1.5401       -.12245E-06** at limit **
  16  Prefactor     16.321        4.6740        .41171E-06    .63735E-02
  17  Prefactor     .38303E-07    14.612        .46623E-05** at limit **
  18  norm          .83822E-08    9.8415       -.24312E-05** at limit **
  19  Normalizat    .83575        .33414        .89277E-05    .88281E-04
  20  Prefactor     .92216        .22800       -.76688E-05    .12604E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.32667e-10
  Prefactor  = 13.8311
  Prefactor  = 2.77556e-09
  Prefactor  = 1.55431e-09
  Prefactor  = 19.967
  Prefactor  = 1.59783e-06
  Prefactor  = 28.1804
  Prefactor  = 16.4545
  Prefactor  = 1.11022e-10
  Prefactor  = 2.77556e-10
  norm       = 1.40998e-08
  Prefactor  = 4.16334e-09
  norm       = 2.19054
  Prefactor  = 7.17842
  norm       = 1.11022e-10
  Prefactor  = 16.3211
  Prefactor  = 3.83027e-08
  norm       = 8.38218e-09
  Normalizat = 0.835751
  Prefactor  = 0.922165
 **********
 **   18 **HESSE 
 **********

 FCN=   2769.872     FROM HESSE     STATUS=OK           331 CALLS     1859 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .83267E-09    5.4684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.831        9.8719        .26911E-03   -1.5634    
   3  Prefactor     .27756E-08    16.381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15543E-08    8.7182        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.967        28.590        .22507E-03   -1.5619    
   6  Prefactor     .15978E-05    130.77        .73638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.180        18.882        .18830E-03   -1.5602    
   8  Prefactor     16.454        15.349        .24665E-03   -1.5627    
   9  Prefactor     .11102E-09    4.0264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27756E-09    59.248        .95568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .14100E-07    11.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .41633E-08    435.91        .47345E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1905        1.4088        .69528E-03   -1.5678    
  14  Prefactor     7.1784        15.212        .37090E-03   -1.5654    
  15  norm          .11102E-09    1.5316        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.321        21.650        .24810E-03   -1.5627    
  17  Prefactor     .38303E-07    14.994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .83822E-08    11.107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .83575        .28555        .65909E-01   -.98756    
  20  Prefactor     .92216        .19233        .45289E-01   -.95371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89346e-07
Minuit parameter uncertainties:
  1  0.000134818
  2  9.87191
  3  0.000428016
  4  0.000233117
  5  28.5905
  6  0.0289108
  7  18.8821
  8  15.3487
  9  3.76854e-05
  10  0.000268696
  11  0.000802514
  12  0.00268569
  13  1.40882
  14  15.2118
  15  2.301e-05
  16  21.6505
  17  0.00151518
  18  0.000610855
  19  0.286063
  20  0.192474
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.410e-08  8.025e-04  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:  9.222e-01  1.925e-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.358e-01  2.861e-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.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/849888/likelihoodResults_685152001_685411201_4FGL_J2229.7-0832_daily_bin1720.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) = 2769.93508769
delta logL = -0.0631997849287

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2769.73023354
delta logL = 0.141654363315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .67956       1.0000          .0000       .10000E+07
     2 'alpha     '    4.4816       1.0000          .0000       5.0000    
     3 'Normalizat'    .78548       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94213       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=   2769.730     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      242 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .67913        3.1253        .82730E-05    .27044E-02
   2  alpha         4.4814        4.6840        .75902E-01   -.16125E-04
   3  Normalizat    .78549        .34096        .29997E-03   -.35871E-04
   4  Prefactor     .94212        .22999        .18893E-03   -.49524E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.679133
  alpha      = 4.48143
  Normalizat = 0.785488
  Prefactor  = 0.942117
 **********
 **   18 **HESSE 
 **********

 FCN=   2769.730     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .67913        2.3128        .33092E-06   -1.5691    
   2  alpha         4.4814        4.6924        .15180E-01    .91502    
   3  Normalizat    .78549        .34169        .11999E-04   -1.0061    
   4  Prefactor     .94212        .23034        .37786E-04   -.94685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59743e-11
Minuit parameter uncertainties:
  1  2.31279
  2  3.3641
  3  0.34263
  4  0.230577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/849888': 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) = 2769.73023346
delta logL = 0.14165444197

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  6.791e-01  2.313e+00  0.000e+00  1.000e+06 ( 1.000e-11)
256        alpha:  4.481e+00  3.364e+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:  9.421e-01  2.306e-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:  7.855e-01  3.426e-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/849888/cmap_HighResolution_685152001_685411201_4FGL_J2229.7-0832_daily_bin1720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-05', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2022-09-21 01:04:59.031312', job_id='849888', GAL2='0.94', fit_tolerance='1e-08', EG2='0.79', EG='0.84', time_epoch_completed='1663747499.03', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.42e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1720' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 21 01:04:59 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 849888: <4FGL_J2229.7-0832_daily_bin1720> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1720> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Sep 21 00:55:16 2022
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 21 00:56:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 21 00:56:22 2022
Terminated at Wed Sep 21 01:04:59 2022
Results reported at Wed Sep 21 01:04:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1720 337.426 -8.5447 685152001 685411201 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 :                                   416.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             217.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   517 sec.
    Turnaround time :                            583 sec.

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

