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


Performing analysis on: 4FGL_J1121.4-0553_daily_bin1755
RA = 170.364, Dec = -5.8997
tmin = 694224001, tmax = 694483201
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='820624', job_status='RUN', time_executed='2023-01-04 00:55:25.664967', time_epoch_executed='1672822525.67' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/820624

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/820624/ft1_4FGL_J1121.4-0553_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/820624/ft2_4FGL_J1121.4-0553_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/820624/ft1_4FGL_J1121.4-0553_daily_bin1755.fits outfile=/scratch/kocevski/820624/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1755.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=694224001.0 tmax=694483201.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.03
user 2.77
sys 0.22

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

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

Number of photons that the gtmktime cut: 418

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/820624/ft1_filtered_4FGL_J1121.4-0553_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/820624/ft2_4FGL_J1121.4-0553_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/820624/ltcube_694224001_694483201_4FGL_J1121.4-0553_daily_bin1755.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/820624/ft2_4FGL_J1121.4-0553_daily_bin1755.fits
.....................!
real 15.96
user 15.39
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/820624/ft1_filtered_4FGL_J1121.4-0553_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/820624/ft2_4FGL_J1121.4-0553_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/820624/ltcube_694224001_694483201_4FGL_J1121.4-0553_daily_bin1755.fits outfile=/scratch/kocevski/820624/expmap_694224001_694483201_4FGL_J1121.4-0553_daily_bin1755.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/820624/ltcube_694224001_694483201_4FGL_J1121.4-0553_daily_bin1755.fits
.....................!
real 192.81
user 186.72
sys 5.71

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/820624/ft1_filtered_4FGL_J1121.4-0553_daily_bin1755.fits scfile=/scratch/kocevski/820624/ft2_4FGL_J1121.4-0553_daily_bin1755.fits outfile=/scratch/kocevski/820624/cmap_694224001_694483201_4FGL_J1121.4-0553_daily_bin1755.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/820624/ft1_filtered_4FGL_J1121.4-0553_daily_bin1755.fits scfile=/scratch/kocevski/820624/ft2_4FGL_J1121.4-0553_daily_bin1755.fits outfile=/scratch/kocevski/820624/cmap_HighResolution_694224001_694483201_4FGL_J1121.4-0553_daily_bin1755.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.62
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/820624/ft1_filtered_4FGL_J1121.4-0553_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/820624/ft2_4FGL_J1121.4-0553_daily_bin1755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/820624/Model_4FGL_J1121.4-0553_daily_bin1755.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/820624/ft1_filtered_4FGL_J1121.4-0553_daily_bin1755.fits.....................!
real 47.41
user 46.00
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5244       1.0000          .0000       .10000E+07
     2 'norm      '    7.5539       1.0000          .0000       .10000E+07
     3 'Prefactor '    .22633E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .89904E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .47623E-02   1.0000          .0000       .10000E+07
     6 'norm      '    5.5126       1.0000          .0000       .10000E+07
     7 'Prefactor '    .16425E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    33.990       1.0000          .0000       .10000E+07
     9 'norm      '    .40867E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.3935       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.5339       1.0000          .0000       .10000E+07
    12 'Prefactor '    .21699E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .31544E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .12168E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .11927E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    38.292       1.0000          .0000       .10000E+07
    17 'Prefactor '    .37764E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.0165       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1135       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=   4658.830     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1101 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5228        .89321        .23304E-07    .50979E-03
   2  norm          7.5284        9.5478       -.18030E-06    .13650E-02
   3  Prefactor     .44964E-07    7.6262        .10432E-05** at limit **
   4  Prefactor     .13323E-08    2.5679        .86215E-07** at limit **
   5  Prefactor     .71609E-08    63.822       -.21719E-05** at limit **
   6  norm          5.4869        9.6300        .25974E-06   -.13815E-02
   7  Prefactor     .16653E-09    3.9566        .32563E-06** at limit **
   8  Prefactor     33.918        13.890        .24632E-05    .65726E-02
   9  norm          .61340E-07    6.6731        .19623E-06** at limit **
  10  Prefactor     2.3938        2.0393        .39051E-07   -.16189E-01
  11  Prefactor     8.4623        3.3615       -.31793E-06    .56898E-02
  12  Prefactor     .21094E-08    12.062       -.10024E-05** at limit **
  13  norm          .55511E-10    2.4616        .14034E-07** at limit **
  14  Prefactor     .22204E-09    4.9722       -.28476E-06** at limit **
  15  Prefactor     .49960E-09    32.131        .48294E-05** at limit **
  16  Prefactor     37.887        2.2494       -.10587E-06   -.25267E-01
  17  Prefactor     .23093E-07    24.932       -.38889E-05** at limit **
  18  Normalizat    1.0195        .31422       -.55696E-05    .27330E-03
  19  Prefactor     1.1130        .22554       -.31533E-05    .36842E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.52277
  norm       = 7.52836
  Prefactor  = 4.4964e-08
  Prefactor  = 1.33227e-09
  Prefactor  = 7.16094e-09
  norm       = 5.48688
  Prefactor  = 1.66533e-10
  Prefactor  = 33.918
  norm       = 6.13398e-08
  Prefactor  = 2.39381
  Prefactor  = 8.46229
  Prefactor  = 2.10942e-09
  norm       = 5.55112e-11
  Prefactor  = 2.22045e-10
  Prefactor  = 4.996e-10
  Prefactor  = 37.887
  Prefactor  = 2.30926e-08
  Normalizat = 1.01951
  Prefactor  = 1.11301
 **********
 **   18 **HESSE 
 **********

 FCN=   4658.830     FROM HESSE     STATUS=OK           302 CALLS     1403 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5228        .89557        .86470E-03   -1.5683    
   2  norm          7.5284        9.5829        .36465E-03   -1.5653    
   3  Prefactor     .44964E-07    14.146        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .13323E-08    2.5701        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .71609E-08    63.831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.4869        9.6673        .42769E-03   -1.5661    
   7  Prefactor     .16653E-09    3.9476        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.918        13.998        .17155E-03   -1.5591    
   9  norm          .61340E-07    13.898        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3938        2.0346        .66168E-03   -1.5677    
  11  Prefactor     8.4623        23.873        .32431E-03   -1.5650    
  12  Prefactor     .21094E-08    12.120        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55511E-10    2.4609        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22204E-09    4.8871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .49960E-09    32.330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     37.887        19.757        .16162E-03   -1.5585    
  17  Prefactor     .23093E-07    25.358        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0195        .27009        .71334E-01   -.92380    
  19  Prefactor     1.1130        .19049        .37096E-01   -.89052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95947e-08
Minuit parameter uncertainties:
  1  0.895575
  2  9.58288
  3  0.00159483
  4  0.000117174
  5  0.00135408
  6  9.66733
  7  4.75779e-05
  8  13.9978
  9  0.00184625
  10  2.03461
  11  23.8736
  12  0.000318631
  13  1.75654e-05
  14  6.94978e-05
  15  0.000254927
  16  19.7566
  17  0.00153112
  18  0.27045
  19  0.190604
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  5.487e+00  9.667e+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:  1.113e+00  1.906e-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.020e+00  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/820624/likelihoodResults_694224001_694483201_4FGL_J1121.4-0553_daily_bin1755.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) = 4658.23259904
delta logL = 0.597491140445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4658.23216524
delta logL = 0.597924941068

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4658.232     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      298 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4568        8.6014        .10997E-04    .11235E-01
   2  alpha         3.7261        1.6390        .19212E-01    .64049E-04
   3  Normalizat    .94735        .31853        .32588E-03   -.11153E-03
   4  Prefactor     1.1454        .22890        .21749E-03   -.25042E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.45681
  alpha      = 3.72607
  Normalizat = 0.947352
  Prefactor  = 1.14544
 **********
 **   18 **HESSE 
 **********

 FCN=   4658.232     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4568        6.3608        .43987E-06   -1.5671    
   2  alpha         3.7261        1.2819        .76849E-03    .51258    
   3  Normalizat    .94735        .31815        .13035E-04   -.94816    
   4  Prefactor     1.1454        .22843        .43499E-04   -.88027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84197e-10
Minuit parameter uncertainties:
  1  6.36086
  2  1.37046
  3  0.318783
  4  0.228625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/820624': 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) = 4658.23216387
delta logL = 0.597926315087

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  3.457e+00  6.361e+00  0.000e+00  1.000e+06 ( 1.000e-12)
295        alpha:  3.726e+00  1.370e+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:  1.145e+00  2.286e-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:  9.474e-01  3.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 170.364 -5.900
Photon Index (Free Index): 3.73 +/- 1.37
Photon Flux (Free Index): 7.81e-08 +/- 7.58e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/820624/cmap_HighResolution_694224001_694483201_4FGL_J1121.4-0553_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.07e-05', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='5.98e-01', photon_flux2='7.81e-08', job_status='DONE', time_completed='2023-01-04 01:03:38.616193', photon_index_error2='1.37', photon_index2='3.73', ts='0.43', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.19e-05', EG='1.02', time_epoch_completed='1672823018.62', return_code='0', job_id='820624', GAL2='1.15', EG2='0.95', return_code2='0', photon_flux_error2='7.58e-08', ts2='1.68', photon_index='2.31' WHERE bin_id='1755' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:03:38 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 820624: <4FGL_J1121.4-0553_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1121.4-0553_daily_bin1755> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Jan  4 00:50:24 2023
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:51:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:51:23 2023
Terminated at Wed Jan  4 01:03:39 2023
Results reported at Wed Jan  4 01:03:39 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin1755 170.364 -5.8997 694224001 694483201 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 :                                   495.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            795 sec.

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

