/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 150 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 = 7361
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1121.4-0553_daily_bin1067
RA = 170.364, Dec = -5.8997
tmin = 515894401, tmax = 516153601
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='685644', job_status='RUN', time_executed='2021-09-03 16:49:07.805082', time_epoch_executed='1630712947.81' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='1067'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685644/ft1_4FGL_J1121.4-0553_daily_bin1067.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685644/ft2_4FGL_J1121.4-0553_daily_bin1067.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685644/ft1_4FGL_J1121.4-0553_daily_bin1067.fits outfile=/scratch/kocevski/685644/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1067.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=515894401.0 tmax=516153601.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.82
user 3.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685644/ft1_filtered_4FGL_J1121.4-0553_daily_bin1067.fits" evtable="EVENTS" scfile=/scratch/kocevski/685644/ft2_4FGL_J1121.4-0553_daily_bin1067.fits sctable="SC_DATA" outfile=/scratch/kocevski/685644/ltcube_515894401_516153601_4FGL_J1121.4-0553_daily_bin1067.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/685644/ft2_4FGL_J1121.4-0553_daily_bin1067.fits
.....................!
real 15.80
user 15.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685644/ft1_filtered_4FGL_J1121.4-0553_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/685644/ft2_4FGL_J1121.4-0553_daily_bin1067.fits sctable="SC_DATA" expcube=/scratch/kocevski/685644/ltcube_515894401_516153601_4FGL_J1121.4-0553_daily_bin1067.fits outfile=/scratch/kocevski/685644/expmap_515894401_516153601_4FGL_J1121.4-0553_daily_bin1067.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/685644/ltcube_515894401_516153601_4FGL_J1121.4-0553_daily_bin1067.fits
.....................!
real 192.18
user 186.58
sys 5.12

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/685644/ft1_filtered_4FGL_J1121.4-0553_daily_bin1067.fits scfile=/scratch/kocevski/685644/ft2_4FGL_J1121.4-0553_daily_bin1067.fits outfile=/scratch/kocevski/685644/cmap_515894401_516153601_4FGL_J1121.4-0553_daily_bin1067.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685644/ft1_filtered_4FGL_J1121.4-0553_daily_bin1067.fits scfile=/scratch/kocevski/685644/ft2_4FGL_J1121.4-0553_daily_bin1067.fits outfile=/scratch/kocevski/685644/cmap_HighResolution_515894401_516153601_4FGL_J1121.4-0553_daily_bin1067.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/685644/ft1_filtered_4FGL_J1121.4-0553_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/685644/ft2_4FGL_J1121.4-0553_daily_bin1067.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/685644/Model_4FGL_J1121.4-0553_daily_bin1067.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/685644/ft1_filtered_4FGL_J1121.4-0553_daily_bin1067.fits....................!
real 54.11
user 52.67
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23409       1.0000         .10000E-03   10000.    
     2 'norm      '    10.704       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6504       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.314       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .19473E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.035       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10567E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0103       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.560       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.1301       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.195       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2139       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91294       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=   5439.467     FROM MIGRAD    STATUS=CONVERGED    517 CALLS     2517 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23414        .41613        .10132E-01    .14492E-02
   2  norm          10.704        9.2025        .30614E-02    .42678E-03
   3  Prefactor     .10000E-03    6.3227        .90712E-02** at limit **
   4  Prefactor     .10006E-03    17.399        .90712E-02** at limit **
   5  Prefactor     .10000E-03    3.6739        .90712E-02** at limit **
   6  Prefactor     7.6509        6.3796        .36246E-02   -.31244E-02
   7  Prefactor     .10003E-03    38.947        .90712E-02** at limit **
   8  norm          11.314        8.3267        .29776E-02   -.15063E-02
   9  Prefactor     .10000E-03    2.0311        .57035E-01** at limit **
  10  Prefactor     37.028        16.058        .16464E-02   -.13214E-03
  11  norm          .10000E-03    9.4423        .90712E-02** at limit **
  12  Prefactor     .10000E-03    1.3341        .90712E-02** at limit **
  13  Prefactor     .10000E-03    6.5387        .90712E-02** at limit **
  14  Prefactor     .10000E-03    94.821        .90712E-02** at limit **
  15  norm          .10000E-03    2.1013        .90712E-02** at limit **
  16  Prefactor     4.0094        3.6069        .50346E-02    .25409E-03
  17  Prefactor     45.558        23.709        .14850E-02    .26811E-03
  18  Prefactor     9.1302        11.132        .33160E-02    .37620E-04
  19  Prefactor     .10003E-03    16.400        .90712E-02** at limit **
  20  Prefactor     16.193        18.801        .24881E-02    .19403E-03
  21  Prefactor     .10002E-03    25.201        .90712E-02** at limit **
  22  Normalizat    1.2138        .23027        .63441E-01    .57824E-03
  23  Prefactor     .91298        .16234        .45170E-01    .73133E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.234139
  norm       = 10.7035
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 0.000100002
  Prefactor  = 7.65089
  Prefactor  = 0.000100026
  norm       = 11.3142
  Prefactor  = 0.0001
  Prefactor  = 37.028
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.00942
  Prefactor  = 45.5583
  Prefactor  = 9.1302
  Prefactor  = 0.000100032
  Prefactor  = 16.1935
  Prefactor  = 0.000100016
  Normalizat = 1.21383
  Prefactor  = 0.912981
 **********
 **   18 **HESSE 
 **********

 FCN=   5439.467     FROM HESSE     STATUS=OK           364 CALLS     2881 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23414        .37725        .60617E-03   -1.5611    
   2  norm          10.704        9.2031        .12246E-03   -1.5054    
   3  Prefactor     .10000E-03    6.3683        .18079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10006E-03    17.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.6769        .13805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.6509        6.3638        .14498E-03   -1.5155    
   7  Prefactor     .10003E-03    38.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.314        8.2887        .11911E-03   -1.5035    
   9  Prefactor     .10000E-03    11.928        .20101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.028        16.079        .65856E-04   -1.4490    
  11  norm          .10000E-03    9.4498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.3652        .16620E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.5431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    95.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.1070        .10437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0094        3.5964        .12559E-03   -1.5307    
  17  Prefactor     45.558        23.690        .59400E-04   -1.4357    
  18  Prefactor     9.1302        11.131        .13264E-03   -1.5104    
  19  Prefactor     .10003E-03    16.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.193        18.839        .99526E-04   -1.4903    
  21  Prefactor     .10002E-03    25.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2138        .27004        .28062E-03   -.86176    
  23  Prefactor     .91298        .19045        .23327E-03   -.95689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64893e-08
Minuit parameter uncertainties:
  1  0.377256
  2  9.2043
  3  1.2381e-05
  4  0.00204921
  5  0.000149742
  6  6.36441
  7  0.00200513
  8  8.28954
  9  1.56436e-05
  10  16.0812
  11  6.32983e-05
  12  2.9878e-05
  13  6.90427e-05
  14  0.000218603
  15  1.75484e-05
  16  3.59664
  17  23.6948
  18  11.1338
  19  0.00144525
  20  18.8456
  21  0.00126416
  22  0.270347
  23  0.190593
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.131e+01  8.290e+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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.130e-01  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.214e+00  2.703e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.31
Ra Dec: 170.364 -5.900
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.47e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.11e-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) = 5438.70636613
delta logL = 0.761128934675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5438.69021857
delta logL = 0.777276488648

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.214       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4706       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90289       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=   5438.690     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.214        7.3831        .31343E-02   -.12279E-02
   2  alpha         1.4706        .47838        .37883       -.26776E-04
   3  Normalizat    1.2374        .21979        .62939E-01    .76887E-05
   4  Prefactor     .90290        .16173        .45042E-01    .92098E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2143
  alpha      = 1.4706
  Normalizat = 1.23738
  Prefactor  = 0.902901
 **********
 **   18 **HESSE 
 **********

 FCN=   5438.690     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.214        8.4103        .12537E-03   -1.5069    
   2  alpha         1.4706        .59812        .15197E-01   -.42438    
   3  Normalizat    1.2374        .25788        .27839E-03   -.85455    
   4  Prefactor     .90290        .18991        .23439E-03   -.96040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6717e-09
Minuit parameter uncertainties:
  1  8.41128
  2  0.605215
  3  0.258147
  4  0.190046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685644': 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) = 5438.69021857
delta logL = 0.777276492294

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.021e+01  8.411e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  1.471e+00  6.052e-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:  9.029e-01  1.900e-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.237e+00  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.89
Ra Dec: 170.364 -5.900
Photon Index (Free Index): 1.47 +/- 0.61
Photon Flux (Free Index): 2.30e-08 +/- 2.08e-08
Energy Flux (Free Index): 2.77e-05 +/- 2.82e-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/685644/cmap_HighResolution_515894401_516153601_4FGL_J1121.4-0553_daily_bin1067.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.47e-08', energy_flux2='2.77e-05', photon_flux_error='3.27e-08', dlogl='7.77e-01', energy_flux='1.51e-05', photon_flux2='2.30e-08', job_status='DONE', time_completed='2021-09-03 17:01:36.256123', photon_index_error2='0.61', photon_index2='1.47', ts='6.31', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='2.82e-05', EG='1.21', time_epoch_completed='1630713696.26', return_code='0', job_id='685644', GAL2='0.90', EG2='1.24', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='2.08e-08', ts2='7.89', photon_index='2.31' WHERE bin_id='1067' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 17:01:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 685644: <4FGL_J1121.4-0553_daily_bin1067> in cluster <slac> Done

Job <4FGL_J1121.4-0553_daily_bin1067> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep  3 16:46:23 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 16:46:26 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:46:26 2021
Terminated at Fri Sep  3 17:01:36 2021
Results reported at Fri Sep  3 17:01:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin1067 170.364 -5.8997 515894401 516153601 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 :                                   604.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            913 sec.

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

