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


Performing analysis on: 4FGL_J1121.4-0553_daily_bin1744
RA = 170.364, Dec = -5.8997
tmin = 691372801, tmax = 691632001
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='576600', job_status='RUN', time_executed='2022-12-02 00:47:18.665129', time_epoch_executed='1669970838.67' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576600

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576600/ft1_4FGL_J1121.4-0553_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576600/ft2_4FGL_J1121.4-0553_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576600/ft1_4FGL_J1121.4-0553_daily_bin1744.fits outfile=/scratch/kocevski/576600/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1744.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.54
user 2.32
sys 0.20

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

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

Number of photons that the gtmktime cut: 997

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576600/ft1_filtered_4FGL_J1121.4-0553_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/576600/ft2_4FGL_J1121.4-0553_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/576600/ltcube_691372801_691632001_4FGL_J1121.4-0553_daily_bin1744.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/576600/ft2_4FGL_J1121.4-0553_daily_bin1744.fits
.....................!
real 12.75
user 12.39
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576600/ft1_filtered_4FGL_J1121.4-0553_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/576600/ft2_4FGL_J1121.4-0553_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/576600/ltcube_691372801_691632001_4FGL_J1121.4-0553_daily_bin1744.fits outfile=/scratch/kocevski/576600/expmap_691372801_691632001_4FGL_J1121.4-0553_daily_bin1744.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/576600/ltcube_691372801_691632001_4FGL_J1121.4-0553_daily_bin1744.fits
.....................!
real 190.90
user 185.48
sys 5.06

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/576600/ft1_filtered_4FGL_J1121.4-0553_daily_bin1744.fits scfile=/scratch/kocevski/576600/ft2_4FGL_J1121.4-0553_daily_bin1744.fits outfile=/scratch/kocevski/576600/cmap_691372801_691632001_4FGL_J1121.4-0553_daily_bin1744.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576600/ft1_filtered_4FGL_J1121.4-0553_daily_bin1744.fits scfile=/scratch/kocevski/576600/ft2_4FGL_J1121.4-0553_daily_bin1744.fits outfile=/scratch/kocevski/576600/cmap_HighResolution_691372801_691632001_4FGL_J1121.4-0553_daily_bin1744.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/576600/ft1_filtered_4FGL_J1121.4-0553_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/576600/ft2_4FGL_J1121.4-0553_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/576600/Model_4FGL_J1121.4-0553_daily_bin1744.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/576600/ft1_filtered_4FGL_J1121.4-0553_daily_bin1744.fits.....................!
real 90.93
user 89.48
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68396       1.0000          .0000       .10000E+07
     2 'norm      '    10.389       1.0000          .0000       .10000E+07
     3 'Prefactor '    15.686       1.0000          .0000       .10000E+07
     4 'Prefactor '    .91537E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .18383       1.0000          .0000       .10000E+07
     6 'norm      '    9.0248       1.0000          .0000       .10000E+07
     7 'Prefactor '    2.7038       1.0000          .0000       .10000E+07
     8 'Prefactor '    25.667       1.0000          .0000       .10000E+07
     9 'norm      '    .70073E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.3751       1.0000          .0000       .10000E+07
    11 'Prefactor '    .94713E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .24611E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .41528E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    3.9142       1.0000          .0000       .10000E+07
    15 'Prefactor '    .22059E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    8.3909       1.0000          .0000       .10000E+07
    17 'Prefactor '    .18847E-02   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2028       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87353       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=   10702.80     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     1448 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68416        .36103       -.18549E-06   -.17807E-01
   2  norm          10.393        4.7551        .26784E-06    .18657E-02
   3  Prefactor     15.594        12.331       -.49144E-05   -.70728E-02
   4  Prefactor      .0000        1.3880        .13793E-05** at limit **
   5  Prefactor     .61563E-05    5.3913       -.24245E-05** at limit **
   6  norm          9.2376        6.9933        .53916E-06   -.57543E-02
   7  Prefactor     2.6787        3.1221        .65626E-06   -.69681E-02
   8  Prefactor     25.624        8.0805       -.25735E-06    .17646E-02
   9  norm          .52736E-08    63.058        .19143E-05** at limit **
  10  Prefactor     1.3743        1.4719       -.54315E-06    .54339E-02
  11  Prefactor      .0000        5.6846        .22138E-06** at limit **
  12  Prefactor     .23037E-07    17.655       -.91813E-05** at limit **
  13  norm          .55511E-10    1.8285        .54464E-06** at limit **
  14  Prefactor     3.9157        2.7553       -.12572E-06   -.19278E-02
  15  Prefactor     .55511E-09    12.163        .90206E-06** at limit **
  16  Prefactor     8.4358        7.3510       -.35777E-06   -.16644E-03
  17  Prefactor     .14100E-07    21.454        .73321E-05** at limit **
  18  Normalizat    1.2028        .18331        .13987E-04   -.34253E-03
  19  Prefactor     .87355        .13104       -.15442E-04   -.49189E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.684157
  norm       = 10.3929
  Prefactor  = 15.5945
  Prefactor  = 0
  Prefactor  = 6.1563e-06
  norm       = 9.23757
  Prefactor  = 2.67866
  Prefactor  = 25.6237
  norm       = 5.27356e-09
  Prefactor  = 1.37428
  Prefactor  = 0
  Prefactor  = 2.30371e-08
  norm       = 5.55112e-11
  Prefactor  = 3.91572
  Prefactor  = 5.55112e-10
  Prefactor  = 8.43578
  Prefactor  = 1.40998e-08
  Normalizat = 1.20275
  Prefactor  = 0.873547
 **********
 **   18 **HESSE 
 **********

 FCN=   10702.80     FROM HESSE     STATUS=OK           306 CALLS     1754 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68416        .36436        .62020E-03   -1.5691    
   2  norm          10.393        4.7498        .31061E-03   -1.5643    
   3  Prefactor     15.594        12.346        .25262E-03   -1.5629    
   4  Prefactor      .0000        1.3824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .61563E-05    108.08        .12071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.2376        7.0342        .33339E-03   -1.5647    
   7  Prefactor     2.6787        3.1473        .61923E-03   -1.5675    
   8  Prefactor     25.624        8.0731        .19742E-03   -1.5607    
   9  norm          .52736E-08    62.351        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3743        1.4928        .92869E-03   -1.5685    
  11  Prefactor      .0000        5.7095        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .23037E-07    18.086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    1.8253        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9157        2.7624        .50970E-03   -1.5668    
  15  Prefactor     .55511E-09    12.340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.4358        7.3620        .34584E-03   -1.5650    
  17  Prefactor     .14100E-07    21.662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2028        .15543        .60260E-01   -.86518    
  19  Prefactor     .87355        .11120        .44667E-01   -.97072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84735e-07
Minuit parameter uncertainties:
  1  0.364359
  2  4.74977
  3  12.346
  4  8.42427e-06
  5  0.0515912
  6  7.03423
  7  3.14727
  8  8.07313
  9  0.00114662
  10  1.49278
  11  1.80469e-06
  12  0.00129157
  13  1.74715e-05
  14  2.76236
  15  0.000167294
  16  7.36196
  17  0.00110554
  18  0.155486
  19  0.111233
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  9.238e+00  7.034e+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.735e-01  1.112e-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.203e+00  1.555e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.12
Ra Dec: 170.364 -5.900
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.65e-08 +/- 2.78e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 9.39e-06

TS (Fixed Index): 3.12
Ra Dec: 170.364 -5.900
Photon Flux Upper Limit: 9.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/576600/likelihoodResults_691372801_691632001_4FGL_J1121.4-0553_daily_bin1744.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) = 10702.6490793
delta logL = 0.152310443604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10702.6377051
delta logL = 0.163684592304

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.2279       1.0000          .0000       .10000E+07
     2 'alpha     '    2.7697       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1810       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88355       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=   10702.64     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      240 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.2308        108.87        .34927E-03    .28036E-02
   2  alpha         2.7708        3.6483        .41458        .67767E-04
   3  Normalizat    1.1809        .69391E-01    .60709E-01    .21702E-04
   4  Prefactor     .88358        .40817E-01    .44795E-01    .99186E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.23085
  alpha      = 2.77082
  Normalizat = 1.18088
  Prefactor  = 0.883576
 **********
 **   18 **HESSE 
 **********

 FCN=   10702.64     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.2308        7.1056        .13971E-04   -1.5651    
   2  alpha         2.7708        .87387        .20272E-01    .10854    
   3  Normalizat    1.1809        .18144        .26851E-03   -.87196    
   4  Prefactor     .88358        .13243        .22649E-03   -.96717    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44062e-11
Minuit parameter uncertainties:
  1  7.10557
  2  0.89296
  3  0.181541
  4  0.132474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576600': 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) = 10702.6377031
delta logL = 0.163686583865

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  8.231e+00  7.106e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        alpha:  2.771e+00  8.930e-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.836e-01  1.325e-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.181e+00  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.46
Ra Dec: 170.364 -5.900
Photon Index (Free Index): 2.77 +/- 0.89
Photon Flux (Free Index): 5.37e-08 +/- 4.36e-08
Energy Flux (Free Index): 1.28e-05 +/- 8.35e-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/576600/cmap_HighResolution_691372801_691632001_4FGL_J1121.4-0553_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', comment='SUCCESS', photon_flux='3.65e-08', energy_flux2='1.28e-05', photon_flux_error='2.78e-08', dlogl='1.64e-01', energy_flux='1.23e-05', photon_flux2='5.37e-08', job_status='DONE', time_completed='2022-12-02 00:59:50.871353', photon_index_error2='0.89', photon_index2='2.77', ts='3.12', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='9.28e-08', energy_flux_error2='8.35e-06', EG='1.20', time_epoch_completed='1669971590.87', return_code='0', job_id='576600', GAL2='0.88', EG2='1.18', return_code2='0', energy_flux_error='9.39e-06', photon_flux_error2='4.36e-08', ts2='3.46', photon_index='2.31' WHERE bin_id='1744' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:59:50 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 576600: <4FGL_J1121.4-0553_daily_bin1744> in cluster <slac> Done

Job <4FGL_J1121.4-0553_daily_bin1744> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec  2 00:45:23 2022
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:45:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:45:25 2022
Terminated at Fri Dec  2 00:59:53 2022
Results reported at Fri Dec  2 00:59:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin1744 170.364 -5.8997 691372801 691632001 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 :                                   754.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            870 sec.

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

