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


Performing analysis on: 4FGL_J1121.4-0553_daily_bin1766
RA = 170.364, Dec = -5.8997
tmin = 697075201, tmax = 697334401
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='846545', job_status='RUN', time_executed='2023-02-06 00:45:02.323932', time_epoch_executed='1675673102.32' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846545

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846545/ft1_4FGL_J1121.4-0553_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846545/ft2_4FGL_J1121.4-0553_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846545/ft1_4FGL_J1121.4-0553_daily_bin1766.fits outfile=/scratch/kocevski/846545/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1766.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=697075201.0 tmax=697334401.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.75
user 3.50
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846545/ft2_4FGL_J1121.4-0553_daily_bin1766.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/846545/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/846545/ft1_filtered_4FGL_J1121.4-0553_daily_bin1766.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.16

Number of photons that the gtmktime cut: 670

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/846545/ft1_filtered_4FGL_J1121.4-0553_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/846545/ft2_4FGL_J1121.4-0553_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/846545/ltcube_697075201_697334401_4FGL_J1121.4-0553_daily_bin1766.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/846545/ft2_4FGL_J1121.4-0553_daily_bin1766.fits
.....................!
real 16.20
user 15.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846545/ft1_filtered_4FGL_J1121.4-0553_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/846545/ft2_4FGL_J1121.4-0553_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/846545/ltcube_697075201_697334401_4FGL_J1121.4-0553_daily_bin1766.fits outfile=/scratch/kocevski/846545/expmap_697075201_697334401_4FGL_J1121.4-0553_daily_bin1766.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/846545/ltcube_697075201_697334401_4FGL_J1121.4-0553_daily_bin1766.fits
.....................!
real 192.90
user 187.49
sys 4.91

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/846545/ft1_filtered_4FGL_J1121.4-0553_daily_bin1766.fits scfile=/scratch/kocevski/846545/ft2_4FGL_J1121.4-0553_daily_bin1766.fits outfile=/scratch/kocevski/846545/cmap_697075201_697334401_4FGL_J1121.4-0553_daily_bin1766.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/846545/ft1_filtered_4FGL_J1121.4-0553_daily_bin1766.fits scfile=/scratch/kocevski/846545/ft2_4FGL_J1121.4-0553_daily_bin1766.fits outfile=/scratch/kocevski/846545/cmap_HighResolution_697075201_697334401_4FGL_J1121.4-0553_daily_bin1766.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/846545/ft1_filtered_4FGL_J1121.4-0553_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/846545/ft2_4FGL_J1121.4-0553_daily_bin1766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/846545/Model_4FGL_J1121.4-0553_daily_bin1766.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/846545/ft1_filtered_4FGL_J1121.4-0553_daily_bin1766.fits.....................!
real 68.46
user 67.08
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/846545/ft1_filtered_4FGL_J1121.4-0553_daily_bin1766.fits', '/scratch/kocevski/846545/ft2_4FGL_J1121.4-0553_daily_bin1766.fits', expMap='/scratch/kocevski/846545/expmap_697075201_697334401_4FGL_J1121.4-0553_daily_bin1766.fits', expCube='/scratch/kocevski/846545/ltcube_697075201_697334401_4FGL_J1121.4-0553_daily_bin1766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/846545/Model_4FGL_J1121.4-0553_daily_bin1766.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/846545/ft1_filtered_4FGL_J1121.4-0553_daily_bin1766.fits
Spacecraft file(s): /scratch/kocevski/846545/ft2_4FGL_J1121.4-0553_daily_bin1766.fits
Exposure map: /scratch/kocevski/846545/expmap_697075201_697334401_4FGL_J1121.4-0553_daily_bin1766.fits
Exposure cube: /scratch/kocevski/846545/ltcube_697075201_697334401_4FGL_J1121.4-0553_daily_bin1766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/846545/Model_4FGL_J1121.4-0553_daily_bin1766.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) = 7327.06467771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12974       1.0000          .0000       .10000E+07
     2 'norm      '    .22826E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.9555       1.0000          .0000       .10000E+07
     4 'Prefactor '    .79170       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14198E-01   1.0000          .0000       .10000E+07
     6 'norm      '    14.233       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.1916       1.0000          .0000       .10000E+07
     8 'Prefactor '    22.198       1.0000          .0000       .10000E+07
     9 'norm      '    .10505       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.7911       1.0000          .0000       .10000E+07
    11 'Prefactor '    8.3304       1.0000          .0000       .10000E+07
    12 'Prefactor '    14.123       1.0000          .0000       .10000E+07
    13 'norm      '    4.3058       1.0000          .0000       .10000E+07
    14 'Prefactor '    .53139E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .40126       1.0000          .0000       .10000E+07
    16 'Prefactor '    .44599E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .37527E-01   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2224       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87872       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=   7327.007     FROM MIGRAD    STATUS=CONVERGED    142 CALLS     1149 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12970        .44133        .61093E-07** at limit **
   2  norm          .31641E-08    3.0802       -.18888E-06** at limit **
   3  Prefactor     3.0578        7.6575       -.22023E-07    .30246E-01
   4  Prefactor     .80979        4.6748       -.10160E-07    .16059E-01
   5  Prefactor     .34306E-07    50.823       -.51876E-06** at limit **
   6  norm          13.990        7.6688       -.17038E-06   -.13740E-01
   7  Prefactor     4.2269        4.6380        .21541E-06   -.28029E-04
   8  Prefactor     22.159        9.1423        .14084E-06   -.33716E-01
   9  norm          .16342E-06    65.327        .29359E-05** at limit **
  10  Prefactor     2.7888        1.7447       -.22813E-07    .17741E-03
  11  Prefactor     8.4399        3.9361        .28972E-06   -.20639E-01
  12  Prefactor     13.854        7.4554       -.37867E-06    .96855E-01
  13  norm          4.3148        5.5736        .24869E-06    .11391E-02
  14  Prefactor     .99920E-09    3.5436        .70995E-06** at limit **
  15  Prefactor     .60154        46.593        .24947E-05    .58543E-02
  16  Prefactor     .60840E-07    31.496        .74560E-06** at limit **
  17  Prefactor     .49571E-05    18.882        .92520E-06** at limit **
  18  Normalizat    1.2219        .22309       -.88482E-05   -.77097E-05
  19  Prefactor     .87898        .15854        .72083E-05    .10514E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.129698
  norm       = 3.16414e-09
  Prefactor  = 3.05783
  Prefactor  = 0.809795
  Prefactor  = 3.43059e-08
  norm       = 13.9903
  Prefactor  = 4.22692
  Prefactor  = 22.159
  norm       = 1.63425e-07
  Prefactor  = 2.78876
  Prefactor  = 8.43992
  Prefactor  = 13.8539
  norm       = 4.31481
  Prefactor  = 9.99201e-10
  Prefactor  = 0.60154
  Prefactor  = 6.08402e-08
  Prefactor  = 4.95715e-06
  Normalizat = 1.22194
  Prefactor  = 0.878981
 **********
 **   18 **HESSE 
 **********

 FCN=   7327.007     FROM HESSE     STATUS=OK           318 CALLS     1467 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12970        .35102        .20498E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .31641E-08    3.0928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0578        18.574        .59045E-03   -1.5673    
   4  Prefactor     .80979        8.3170        .53556E-03   -1.5690    
   5  Prefactor     .34306E-07    50.998        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.990        9.0793        .26523E-03   -1.5633    
   7  Prefactor     4.2269        4.8763        .49200E-03   -1.5667    
   8  Prefactor     22.159        9.5730        .21231E-03   -1.5614    
   9  norm          .16342E-06    65.408        .13795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7888        1.7391        .60875E-03   -1.5675    
  11  Prefactor     8.4399        18.222        .34710E-03   -1.5650    
  12  Prefactor     13.854        20.062        .26626E-03   -1.5634    
  13  norm          4.3148        5.6358        .48525E-03   -1.5666    
  14  Prefactor     .99920E-09    3.4868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .60154        9.8262        .89341E-02   -1.5692    
  16  Prefactor     .60840E-07    31.585        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .49571E-05    47.702        .16077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2219        .19264        .60277E-01   -.85928    
  19  Prefactor     .87898        .13401        .44733E-01   -.96879    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04939e-07
Minuit parameter uncertainties:
  1  0.351016
  2  0.000198553
  3  15.0726
  4  5.1904
  5  0.00264577
  6  9.07932
  7  4.87634
  8  9.57303
  9  0.00653943
  10  1.73907
  11  18.2219
  12  20.0616
  13  5.63578
  14  0.000116715
  15  4.86245
  16  0.00277254
  17  0.030755
  18  0.192752
  19  0.134056
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.399e+01  9.079e+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:  8.790e-01  1.341e-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.222e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.50
Ra Dec: 170.364 -5.900
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.53e-08 +/- 3.58e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.21e-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) = 7326.66738251
delta logL = 0.339606990186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7326.64483383
delta logL = 0.362155665178

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.152       1.0000          .0000       .10000E+07
     2 'alpha     '    1.7412       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86970       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=   7326.645     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.165        7.7360        .28711E-03    .39715E-03
   2  alpha         1.7427        .47705        .43849       -.40779E-04
   3  Normalizat    1.2476        .18271        .59777E-01    .11647E-04
   4  Prefactor     .86976        .13315        .44618E-01    .12604E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.1649
  alpha      = 1.74273
  Normalizat = 1.24756
  Prefactor  = 0.869762
 **********
 **   18 **HESSE 
 **********

 FCN=   7326.645     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.165        9.0294        .11485E-04   -1.5638    
   2  alpha         1.7427        .64752        .16536E-01   -.30774    
   3  Normalizat    1.2476        .21670        .26438E-03   -.85146    
   4  Prefactor     .86976        .15794        .22582E-03   -.97206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1694e-11
Minuit parameter uncertainties:
  1  9.0294
  2  0.655766
  3  0.216853
  4  0.158022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846545': 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) = 7326.64483078
delta logL = 0.362158718282

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.216e+01  9.029e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        alpha:  1.743e+00  6.558e-01  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:  8.698e-01  1.580e-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.248e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.25
Ra Dec: 170.364 -5.900
Photon Index (Free Index): 1.74 +/- 0.66
Photon Flux (Free Index): 3.06e-08 +/- 3.03e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.59e-05

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/846545/cmap_HighResolution_697075201_697334401_4FGL_J1121.4-0553_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.53e-08', energy_flux2='2.19e-05', photon_flux_error='3.58e-08', dlogl='3.62e-01', energy_flux='1.87e-05', photon_flux2='3.06e-08', job_status='DONE', time_completed='2023-02-06 00:54:17.525740', photon_index_error2='0.66', photon_index2='1.74', ts='6.50', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.59e-05', EG='1.22', time_epoch_completed='1675673657.53', return_code='0', job_id='846545', GAL2='0.87', EG2='1.25', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='3.03e-08', ts2='7.25', photon_index='2.31' WHERE bin_id='1766' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 00:54:17 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 846545: <4FGL_J1121.4-0553_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1121.4-0553_daily_bin1766> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Feb  6 00:40:27 2023
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 00:43:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 00:43:24 2023
Terminated at Mon Feb  6 00:54:18 2023
Results reported at Mon Feb  6 00:54:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin1766 170.364 -5.8997 697075201 697334401 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 :                                   556.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   654 sec.
    Turnaround time :                            831 sec.

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

