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


Performing analysis on: 4FGL_J1121.4-0553_daily_bin1765
RA = 170.364, Dec = -5.8997
tmin = 696816001, tmax = 697075201
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='632683', job_status='RUN', time_executed='2023-02-03 00:51:55.770782', time_epoch_executed='1675414315.77' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/632683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/632683/ft1_4FGL_J1121.4-0553_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/632683/ft2_4FGL_J1121.4-0553_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/632683/ft1_4FGL_J1121.4-0553_daily_bin1765.fits outfile=/scratch/kocevski/632683/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1765.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=696816001.0 tmax=697075201.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.71
user 3.43
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/632683/ft2_4FGL_J1121.4-0553_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/632683/ft2_4FGL_J1121.4-0553_daily_bin1765.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/632683/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/632683/ft1_filtered_4FGL_J1121.4-0553_daily_bin1765.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.50
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 699

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/632683/ft1_filtered_4FGL_J1121.4-0553_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/632683/ft2_4FGL_J1121.4-0553_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/632683/ltcube_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.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/632683/ft2_4FGL_J1121.4-0553_daily_bin1765.fits
.....................!
real 15.38
user 14.76
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/632683/ft1_filtered_4FGL_J1121.4-0553_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/632683/ft2_4FGL_J1121.4-0553_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/632683/ltcube_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.fits outfile=/scratch/kocevski/632683/expmap_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.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/632683/ltcube_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.fits
.....................!
real 196.79
user 188.46
sys 6.38

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

Setting source of interest to:
4FGL J1121.4-0553 @ 170.364 -5.8997

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/632683/ft1_filtered_4FGL_J1121.4-0553_daily_bin1765.fits scfile=/scratch/kocevski/632683/ft2_4FGL_J1121.4-0553_daily_bin1765.fits outfile=/scratch/kocevski/632683/cmap_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.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=170.364 yref=-5.8997 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/632683/ft1_filtered_4FGL_J1121.4-0553_daily_bin1765.fits scfile=/scratch/kocevski/632683/ft2_4FGL_J1121.4-0553_daily_bin1765.fits outfile=/scratch/kocevski/632683/cmap_HighResolution_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.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=170.364 yref=-5.8997 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/632683/ft1_filtered_4FGL_J1121.4-0553_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/632683/ft2_4FGL_J1121.4-0553_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/632683/Model_4FGL_J1121.4-0553_daily_bin1765.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/632683/ft1_filtered_4FGL_J1121.4-0553_daily_bin1765.fits.....................!
real 68.67
user 66.45
sys 1.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/632683/ft1_filtered_4FGL_J1121.4-0553_daily_bin1765.fits', '/scratch/kocevski/632683/ft2_4FGL_J1121.4-0553_daily_bin1765.fits', expMap='/scratch/kocevski/632683/expmap_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.fits', expCube='/scratch/kocevski/632683/ltcube_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/632683/Model_4FGL_J1121.4-0553_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1121.4-0553'

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  9.256e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.378e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  6.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/632683/ft1_filtered_4FGL_J1121.4-0553_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/632683/ft2_4FGL_J1121.4-0553_daily_bin1765.fits
Exposure map: /scratch/kocevski/632683/expmap_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.fits
Exposure cube: /scratch/kocevski/632683/ltcube_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/632683/Model_4FGL_J1121.4-0553_daily_bin1765.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) = 7540.87495385

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22776       1.0000          .0000       .10000E+07
     2 'norm      '    2.0387       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.067       1.0000          .0000       .10000E+07
     4 'Prefactor '    .74673E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11916E-03   1.0000          .0000       .10000E+07
     6 'norm      '    8.6793       1.0000          .0000       .10000E+07
     7 'Prefactor '    .99409E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    56.627       1.0000          .0000       .10000E+07
     9 'norm      '    .63008E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.0132       1.0000          .0000       .10000E+07
    11 'Prefactor '    8.6890       1.0000          .0000       .10000E+07
    12 'Prefactor '    1.4909       1.0000          .0000       .10000E+07
    13 'norm      '    7.7701       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.2865       1.0000          .0000       .10000E+07
    15 'Prefactor '    17.979       1.0000          .0000       .10000E+07
    16 'Prefactor '    7.0783       1.0000          .0000       .10000E+07
    17 'Prefactor '    33.774       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.1872       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .70681       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7540.841     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1150 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22755        .35868        .35112E-07** at limit **
   2  norm          2.0466        4.8311       -.99209E-07   -.36302E-03
   3  Prefactor     12.796        12.019       -.20880E-05    .49999E-02
   4  Prefactor     .55511E-10    2.4701        .28618E-06** at limit **
   5  Prefactor      .0000        30.931        .49696E-06** at limit **
   6  norm          8.7838        7.8811        .67540E-06   -.84785E-03
   7  Prefactor     .38858E-09    15.047       -.12439E-05** at limit **
   8  Prefactor     56.708        9.5605        .26113E-06    .24160E-01
   9  norm           .0000        6.7015        .66531E-06** at limit **
  10  Prefactor     2.0142        1.6705       -.16850E-06   -.31362E-02
  11  Prefactor     8.7994        14.865       -.19211E-05   -.83619E-03
  12  Prefactor     1.3310        3.1962       -.12301E-05    .66283E-02
  13  norm          7.7752        5.9049       -.10047E-06    .84227E-04
  14  Prefactor     2.2866        2.3292        .17868E-06    .53526E-03
  15  Prefactor     17.915        2.4688       -.29293E-06   -.37155E-02
  16  Prefactor     7.2607        7.2772       -.53685E-06   -.15109E-01
  17  Prefactor     31.884        28.928       -.13988E-05   -.13792E-02
  18  Normalizat    1.1868        .21123        .10998E-04   -.30156E-04
  19  Prefactor     .70748        .14906       -.38793E-05   -.62469E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.227553
  norm       = 2.04659
  Prefactor  = 12.7957
  Prefactor  = 5.55112e-11
  Prefactor  = 0
  norm       = 8.78379
  Prefactor  = 3.88578e-10
  Prefactor  = 56.7083
  norm       = 0
  Prefactor  = 2.0142
  Prefactor  = 8.79935
  Prefactor  = 1.33098
  norm       = 7.7752
  Prefactor  = 2.28665
  Prefactor  = 17.9147
  Prefactor  = 7.26069
  Prefactor  = 31.8843
  Normalizat = 1.18675
  Prefactor  = 0.707483
 **********
 **   18 **HESSE 
 **********

 FCN=   7540.841     FROM HESSE     STATUS=OK           320 CALLS     1470 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22755        .38670        .11301E-02   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0466        4.8570        .72402E-03   -1.5679    
   3  Prefactor     12.796        12.643        .27684E-03   -1.5636    
   4  Prefactor     .55511E-10    2.4639        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        31.077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.7838        8.2405        .34000E-03   -1.5649    
   7  Prefactor     .38858E-09    1.8865        .61986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     56.708        11.176        .13290E-03   -1.5557    
   9  norm           .0000        6.7573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0142        1.6757        .72929E-03   -1.5680    
  11  Prefactor     8.7994        15.271        .33981E-03   -1.5649    
  12  Prefactor     1.3310        68.004        .87762E-03   -1.5685    
  13  norm          7.7752        5.9447        .35950E-03   -1.5652    
  14  Prefactor     2.2866        2.3526        .67863E-03   -1.5678    
  15  Prefactor     17.915        11.705        .23594E-03   -1.5623    
  16  Prefactor     7.2607        11.465        .37682E-03   -1.5654    
  17  Prefactor     31.884        28.977        .17209E-03   -1.5595    
  18  Normalizat    1.1868        .17968        .57823E-01   -.87013    
  19  Prefactor     .70748        .12717        .42492E-01   -1.0323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51149e-08
Minuit parameter uncertainties:
  1  0.386699
  2  4.85701
  3  12.6434
  4  2.54815e-05
  5  5.5185e-05
  6  8.24049
  7  5.32142e-05
  8  11.1765
  9  1.85736e-05
  10  1.67569
  11  15.2709
  12  19.0277
  13  5.94469
  14  2.3526
  15  11.7053
  16  11.4655
  17  28.9774
  18  0.179769
  19  0.127223
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  8.784e+00  8.240e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.378e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  6.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.075e-01  1.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.187e+00  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 170.364 -5.900
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.47e-08 +/- 3.25e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.10e-05

TS (Fixed Index): 2.02
Ra Dec: 170.364 -5.900
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/632683/likelihoodResults_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.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) = 7540.1766217
delta logL = 0.664842965977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7540.1712144
delta logL = 0.670250265877

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7540.171     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4481        71.280        .43038E-03    .71882E-02
   2  alpha         3.2733        4.1096        .40019        .87991E-04
   3  Normalizat    1.1448        .62093E-01    .58668E-01    .26723E-04
   4  Prefactor     .72752        .44243E-01    .42766E-01    .11655E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.44812
  alpha      = 3.27328
  Normalizat = 1.1448
  Prefactor  = 0.727521
 **********
 **   18 **HESSE 
 **********

 FCN=   7540.171     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4481        7.6834        .12706E-04   -1.5661    
   2  alpha         3.2733        1.0579        .15742E-01    .31447    
   3  Normalizat    1.1448        .20706        .25946E-03   -.88326    
   4  Prefactor     .72752        .14961        .23180E-03   -1.0246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.40309e-11
Minuit parameter uncertainties:
  1  7.68338
  2  1.09634
  3  0.207205
  4  0.149694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/632683': 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) = 7540.17121422
delta logL = 0.670250449695

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  5.448e+00  7.683e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        alpha:  3.273e+00  1.096e+00  0.000e+00  5.000e+00 ( 1.000e+00)
296         beta:  1.378e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  6.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.275e-01  1.497e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  1.145e+00  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.39
Ra Dec: 170.364 -5.900
Photon Index (Free Index): 3.27 +/- 1.10
Photon Flux (Free Index): 6.66e-08 +/- 4.57e-08
Energy Flux (Free Index): 1.26e-05 +/- 8.68e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/632683/cmap_HighResolution_696816001_697075201_4FGL_J1121.4-0553_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.47e-05', comment='SUCCESS', photon_flux='3.47e-08', energy_flux2='1.26e-05', photon_flux_error='3.25e-08', dlogl='6.70e-01', energy_flux='1.17e-05', photon_flux2='6.66e-08', job_status='DONE', time_completed='2023-02-03 01:02:09.522721', photon_index_error2='1.10', photon_index2='3.27', ts='2.02', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='8.68e-06', EG='1.19', time_epoch_completed='1675414929.52', return_code='0', job_id='632683', GAL2='0.73', EG2='1.14', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='4.57e-08', ts2='3.39', photon_index='2.31' WHERE bin_id='1765' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:02:09 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 632683: <4FGL_J1121.4-0553_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1121.4-0553_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:50:18 2023
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:51:05 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:51:05 2023
Terminated at Fri Feb  3 01:02:09 2023
Results reported at Fri Feb  3 01:02:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin1765 170.364 -5.8997 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1121.4-0553 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   611.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   664 sec.
    Turnaround time :                            711 sec.

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

