/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 127 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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 = 7439
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1121.4-0553_daily_bin57
RA = 170.364, Dec = -5.8997
tmin = 254102401, tmax = 254361601
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='678951', job_status='RUN', time_executed='2021-09-03 16:31:04.870815', time_epoch_executed='1630711864.87' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/678951

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/678951/ft1_4FGL_J1121.4-0553_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/678951/ft2_4FGL_J1121.4-0553_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/678951/ft1_4FGL_J1121.4-0553_daily_bin57.fits outfile=/scratch/kocevski/678951/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin57.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=254102401.0 tmax=254361601.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.10
user 1.90
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/678951/ft1_filtered_4FGL_J1121.4-0553_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/678951/ft2_4FGL_J1121.4-0553_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/678951/ltcube_254102401_254361601_4FGL_J1121.4-0553_daily_bin57.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/678951/ft2_4FGL_J1121.4-0553_daily_bin57.fits
.....................!
real 18.91
user 18.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/678951/ft1_filtered_4FGL_J1121.4-0553_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/678951/ft2_4FGL_J1121.4-0553_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/678951/ltcube_254102401_254361601_4FGL_J1121.4-0553_daily_bin57.fits outfile=/scratch/kocevski/678951/expmap_254102401_254361601_4FGL_J1121.4-0553_daily_bin57.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/678951/ltcube_254102401_254361601_4FGL_J1121.4-0553_daily_bin57.fits
.....................!
real 192.80
user 187.38
sys 4.74

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/678951/ft1_filtered_4FGL_J1121.4-0553_daily_bin57.fits scfile=/scratch/kocevski/678951/ft2_4FGL_J1121.4-0553_daily_bin57.fits outfile=/scratch/kocevski/678951/cmap_254102401_254361601_4FGL_J1121.4-0553_daily_bin57.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.62
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/678951/ft1_filtered_4FGL_J1121.4-0553_daily_bin57.fits scfile=/scratch/kocevski/678951/ft2_4FGL_J1121.4-0553_daily_bin57.fits outfile=/scratch/kocevski/678951/cmap_HighResolution_254102401_254361601_4FGL_J1121.4-0553_daily_bin57.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.57
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/678951/ft1_filtered_4FGL_J1121.4-0553_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/678951/ft2_4FGL_J1121.4-0553_daily_bin57.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/678951/Model_4FGL_J1121.4-0553_daily_bin57.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/678951/ft1_filtered_4FGL_J1121.4-0553_daily_bin57.fits.....................!
real 57.77
user 56.42
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/678951/ft1_filtered_4FGL_J1121.4-0553_daily_bin57.fits', '/scratch/kocevski/678951/ft2_4FGL_J1121.4-0553_daily_bin57.fits', expMap='/scratch/kocevski/678951/expmap_254102401_254361601_4FGL_J1121.4-0553_daily_bin57.fits', expCube='/scratch/kocevski/678951/ltcube_254102401_254361601_4FGL_J1121.4-0553_daily_bin57.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/678951/Model_4FGL_J1121.4-0553_daily_bin57.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  1.000e-04  1.000e+04 ( 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  0.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/678951/ft1_filtered_4FGL_J1121.4-0553_daily_bin57.fits
Spacecraft file(s): /scratch/kocevski/678951/ft2_4FGL_J1121.4-0553_daily_bin57.fits
Exposure map: /scratch/kocevski/678951/expmap_254102401_254361601_4FGL_J1121.4-0553_daily_bin57.fits
Exposure cube: /scratch/kocevski/678951/ltcube_254102401_254361601_4FGL_J1121.4-0553_daily_bin57.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/678951/Model_4FGL_J1121.4-0553_daily_bin57.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) = 6356.07818716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25244       1.0000         .10000E-03   10000.    
     2 'norm      '    22.603       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28370E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22316E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    24.389       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9606       1.0000         .10000E-03   10000.    
    10 'Prefactor '    35.976       1.0000         .10000E-03   10000.    
    11 'norm      '    18.311       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8328       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.723       1.0000         .10000E-03   10000.    
    15 'norm      '    7.6448       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4751       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.3732       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.8722       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .78437       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0981       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.

 FCN=   6356.015     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2640 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25259        .61512       -.11525E-06   -.53734E-03
   2  norm          22.604        8.8983        .58445E-06    .58615E-04
   3  Prefactor     20.438        12.279        .20056E-07   -.54321E-06
   4  Prefactor     .10000E-03    12.748       -.27492E-07** at limit **
   5  Prefactor     .10035E-03    7.7147       -.16396E-05** at limit **
   6  Prefactor     .40191E-01    2.6418       -.55563E-08    .48769E-04
   7  Prefactor     .10000E-03    27.924       -.10879E-05** at limit **
   8  norm          24.376        11.354       -.42977E-06    .29733E-03
   9  Prefactor     3.9597        3.7235       -.54259E-07   -.42553E-04
  10  Prefactor     35.978        12.416        .88030E-06    .27545E-04
  11  norm          18.310        19.997       -.13929E-07    .73267E-05
  12  Prefactor     4.8330        2.5739       -.97161E-07   -.94144E-04
  13  Prefactor     .10000E-03    11.813        .68720E-07** at limit **
  14  Prefactor     27.698        44.611       -.15550E-04   -.39998E-05
  15  norm          7.6457        7.5395       -.37589E-06   -.10594E-03
  16  Prefactor     9.4746        4.8736        .73287E-07   -.17852E-03
  17  Prefactor     .10000E-03    32.458        .26678E-05** at limit **
  18  Prefactor     .10000E-03    6.2651       -.23442E-06** at limit **
  19  Prefactor     .10000E-03    72.035        .21548E-06** at limit **
  20  Prefactor     4.3761        12.787       -.76021E-06   -.10441E-03
  21  Prefactor     7.8695        25.369        .83655E-06   -.12875E-04
  22  Normalizat    .78408        .21745        .95157E-08    .10399E-03
  23  Prefactor     1.0983        .15693        .83569E-06    .99460E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.25259
  norm       = 22.6044
  Prefactor  = 20.4385
  Prefactor  = 0.0001
  Prefactor  = 0.00010035
  Prefactor  = 0.0401911
  Prefactor  = 0.0001
  norm       = 24.376
  Prefactor  = 3.95973
  Prefactor  = 35.9784
  norm       = 18.3097
  Prefactor  = 4.833
  Prefactor  = 0.0001
  Prefactor  = 27.6979
  norm       = 7.64574
  Prefactor  = 9.4746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3761
  Prefactor  = 7.86954
  Normalizat = 0.784077
  Prefactor  = 1.09825
 **********
 **   18 **HESSE 
 **********

 FCN=   6356.015     FROM HESSE     STATUS=OK           386 CALLS     3026 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25259        .61028        .40858E-04   -1.5607    
   2  norm          22.604        8.8988        .84251E-04   -1.4757    
   3  Prefactor     20.438        12.177        .88593E-04   -1.4803    
   4  Prefactor     .10000E-03    12.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10035E-03    56.476        .41296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .40191E-01    7.0963        .39108E-01   -1.5668    
   7  Prefactor     .10000E-03    27.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.376        11.376        .81112E-04   -1.4720    
   9  Prefactor     3.9597        3.7236        .13625E-03   -1.5310    
  10  Prefactor     35.978        12.406        .66816E-04   -1.4508    
  11  norm          18.310        20.038        .93599E-04   -1.4852    
  12  Prefactor     4.8330        2.5748        .89661E-04   -1.5268    
  13  Prefactor     .10000E-03    11.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.698        44.654        .76087E-04   -1.4655    
  15  norm          7.6457        7.5291        .14504E-03   -1.5155    
  16  Prefactor     9.4746        4.8598        .11209E-03   -1.5092    
  17  Prefactor     .10000E-03    33.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.2667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    72.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.3761        12.814        .19260E-03   -1.5290    
  21  Prefactor     7.8695        25.345        .14291E-03   -1.5147    
  22  Normalizat    .78408        .24581        .33719E-03   -1.0066    
  23  Prefactor     1.0983        .17854        .21675E-03   -.89522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.24552e-09
Minuit parameter uncertainties:
  1  0.610295
  2  8.8993
  3  12.1785
  4  1.73936e-05
  5  0.0088982
  6  1.0669
  7  1.60432e-06
  8  11.377
  9  3.72378
  10  12.4065
  11  20.0456
  12  2.57482
  13  2.31468e-06
  14  44.7081
  15  7.53001
  16  4.85999
  17  0.000117729
  18  6.09023e-07
  19  3.49054e-05
  20  12.8218
  21  25.3793
  22  0.246157
  23  0.178636
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  2.438e+01  1.138e+01  1.000e-04  1.000e+04 ( 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  0.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.098e+00  1.786e-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:  7.841e-01  2.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.50
Ra Dec: 170.364 -5.900
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 9.63e-08 +/- 4.49e-08
Energy Flux (Fixed Index): 3.25e-05 +/- 1.52e-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) = 6353.15661381
delta logL = 2.85857564394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6352.87352211
delta logL = 3.14166734298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.213       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1569       1.0000          .0000       5.0000    
     3 'Normalizat'    .82934       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0942       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.

 FCN=   6352.874     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      223 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.216        13.318        .21410E-05   -.22688E-03
   2  alpha         1.1569        .53583        .27231E-04    .17970E-04
   3  Normalizat    .82931        .20569        .31016E-06   -.29425E-04
   4  Prefactor     1.0942        .15568       -.47735E-06   -.72128E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.2159
  alpha      = 1.15693
  Normalizat = 0.829313
  Prefactor  = 1.09422
 **********
 **   18 **HESSE 
 **********

 FCN=   6352.874     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.216        12.806        .11020E-03   -1.4981    
   2  alpha         1.1569        .51218        .10384E-01   -.56715    
   3  Normalizat    .82931        .23456        .32911E-03   -.98990    
   4  Prefactor     1.0942        .17760        .21748E-03   -.89651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.77606e-11
Minuit parameter uncertainties:
  1  12.8082
  2  0.517359
  3  0.234848
  4  0.177696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/678951': 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) = 6352.87352203
delta logL = 3.14166742024

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.322e+01  1.281e+01  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  1.157e+00  5.174e-01  0.000e+00  5.000e+00 ( 1.000e+00)
296         beta:  1.378e-01  0.000e+00  0.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.094e+00  1.777e-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:  8.293e-01  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.74
Ra Dec: 170.364 -5.900
Photon Index (Free Index): 1.16 +/- 0.52
Photon Flux (Free Index): 2.96e-08 +/- 2.56e-08
Energy Flux (Free Index): 7.19e-05 +/- 5.50e-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/678951/cmap_HighResolution_254102401_254361601_4FGL_J1121.4-0553_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.63e-08', energy_flux2='7.19e-05', photon_flux_error='4.49e-08', dlogl='3.14e+00', energy_flux='3.25e-05', photon_flux2='2.96e-08', job_status='DONE', time_completed='2021-09-03 16:41:56.996631', photon_index_error2='0.52', photon_index2='1.16', ts='15.50', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='5.50e-05', EG='0.78', time_epoch_completed='1630712517.0', return_code='0', job_id='678951', GAL2='1.09', EG2='0.83', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='2.56e-08', ts2='21.74', photon_index='2.31' WHERE bin_id='57' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 678951: <4FGL_J1121.4-0553_daily_bin57> in cluster <slac> Done

Job <4FGL_J1121.4-0553_daily_bin57> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 16:26:33 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 16:28:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 16:28:48 2021
Terminated at Fri Sep  3 16:41:57 2021
Results reported at Fri Sep  3 16:41:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin57 170.364 -5.8997 254102401 254361601 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 :                                   651.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            924 sec.

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

