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


Performing analysis on: 4FGL_J1121.4-0553_daily_bin639
RA = 170.364, Dec = -5.8997
tmin = 404956801, tmax = 405216001
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='682570', job_status='RUN', time_executed='2021-09-03 16:38:47.472631', time_epoch_executed='1630712327.47' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/682570

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/682570/ft1_4FGL_J1121.4-0553_daily_bin639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/682570/ft2_4FGL_J1121.4-0553_daily_bin639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/682570/ft1_4FGL_J1121.4-0553_daily_bin639.fits outfile=/scratch/kocevski/682570/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin639.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=404956801.0 tmax=405216001.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.87
user 3.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/682570/ft1_filtered_4FGL_J1121.4-0553_daily_bin639.fits" evtable="EVENTS" scfile=/scratch/kocevski/682570/ft2_4FGL_J1121.4-0553_daily_bin639.fits sctable="SC_DATA" outfile=/scratch/kocevski/682570/ltcube_404956801_405216001_4FGL_J1121.4-0553_daily_bin639.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/682570/ft2_4FGL_J1121.4-0553_daily_bin639.fits
.....................!
real 14.48
user 13.67
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/682570/ft1_filtered_4FGL_J1121.4-0553_daily_bin639.fits evtable="EVENTS" scfile=/scratch/kocevski/682570/ft2_4FGL_J1121.4-0553_daily_bin639.fits sctable="SC_DATA" expcube=/scratch/kocevski/682570/ltcube_404956801_405216001_4FGL_J1121.4-0553_daily_bin639.fits outfile=/scratch/kocevski/682570/expmap_404956801_405216001_4FGL_J1121.4-0553_daily_bin639.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/682570/ltcube_404956801_405216001_4FGL_J1121.4-0553_daily_bin639.fits
.....................!
real 194.86
user 189.39
sys 4.51

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/682570/ft1_filtered_4FGL_J1121.4-0553_daily_bin639.fits scfile=/scratch/kocevski/682570/ft2_4FGL_J1121.4-0553_daily_bin639.fits outfile=/scratch/kocevski/682570/cmap_404956801_405216001_4FGL_J1121.4-0553_daily_bin639.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=170.364 yref=-5.8997 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/682570/ft1_filtered_4FGL_J1121.4-0553_daily_bin639.fits scfile=/scratch/kocevski/682570/ft2_4FGL_J1121.4-0553_daily_bin639.fits outfile=/scratch/kocevski/682570/cmap_HighResolution_404956801_405216001_4FGL_J1121.4-0553_daily_bin639.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/682570/ft1_filtered_4FGL_J1121.4-0553_daily_bin639.fits evtable="EVENTS" scfile=/scratch/kocevski/682570/ft2_4FGL_J1121.4-0553_daily_bin639.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/682570/Model_4FGL_J1121.4-0553_daily_bin639.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/682570/ft1_filtered_4FGL_J1121.4-0553_daily_bin639.fits.....................!
real 63.26
user 61.76
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .62426       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8015       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0575       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5230       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.0361       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9575       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27106       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.848       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .70559       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.268       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.049       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2954       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83087       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=   6703.713     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     2930 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .62426        .40569        .39359E-04    .43038E-04
   2  norm          5.8015        5.7764        .16674E-03    .10786E-03
   3  Prefactor     6.0576        6.1735        .16313E-03    .37214E-04
   4  Prefactor     .10000E-03    79.131        .52027E-02** at limit **
   5  Prefactor     .10000E-03    10.840        .18142E-02** at limit **
   6  Prefactor     5.5237        5.2432        .80817E-03    .89699E-03
   7  Prefactor     .10000E-03    62.265        .18142E-02** at limit **
   8  norm          9.0371        9.9608        .13333E-03    .63685E-03
   9  Prefactor     .10000E-03    2.9982        .13698E-02** at limit **
  10  Prefactor     4.9574        8.2659        .90313E-03    .10604E-03
  11  norm          .10000E-03    11.452        .18142E-02** at limit **
  12  Prefactor     .27116        1.4111        .19006E-03   -.12316E-03
  13  Prefactor     .10000E-03    9.3000        .18142E-02** at limit **
  14  Prefactor     22.846        31.614        .83800E-04    .78686E-05
  15  norm          .10000E-03    1.6389        .10223E-02** at limit **
  16  Prefactor     .70557        2.7691        .25387E-03    .11822E-03
  17  Prefactor     .10000E-03    4.3499        .16663E-02** at limit **
  18  Prefactor     11.267        22.173        .11935E-03    .15527E-04
  19  Prefactor     .10000E-03    35.111        .18142E-02** at limit **
  20  Prefactor     14.049        16.489        .10686E-03    .13724E-03
  21  Prefactor     .10000E-03    13.907        .18142E-02** at limit **
  22  Normalizat    1.2954        .23396        .26054E-03    .42311E-03
  23  Prefactor     .83085        .16514        .22882E-03    .63269E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.624263
  norm       = 5.80146
  Prefactor  = 6.05759
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 5.5237
  Prefactor  = 0.000100001
  norm       = 9.03707
  Prefactor  = 0.0001
  Prefactor  = 4.95737
  norm       = 0.0001
  Prefactor  = 0.271164
  Prefactor  = 0.0001
  Prefactor  = 22.8463
  norm       = 0.0001
  Prefactor  = 0.705573
  Prefactor  = 0.0001
  Prefactor  = 11.2665
  Prefactor  = 0.0001
  Prefactor  = 14.0485
  Prefactor  = 0.0001
  Normalizat = 1.29537
  Prefactor  = 0.830847
 **********
 **   18 **HESSE 
 **********

 FCN=   6703.713     FROM HESSE     STATUS=OK           348 CALLS     3278 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .62426        .40566        .15744E-05   -1.5550    
   2  norm          5.8015        5.7761        .66698E-05   -1.5226    
   3  Prefactor     6.0576        6.1731        .65253E-05   -1.5216    
   4  Prefactor     .10000E-03    81.149        .20811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.5237        5.2391        .32327E-04   -1.5238    
   7  Prefactor     .10000E-03    62.270        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.0371        9.9534        .53333E-05   -1.5107    
   9  Prefactor     .10000E-03    2.9994        .27397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9574        8.2626        .36125E-04   -1.5263    
  11  norm          .10000E-03    11.454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .27116        1.4107        .76023E-05   -1.5604    
  13  Prefactor     .10000E-03    9.3007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.846        31.612        .33520E-05   -1.4752    
  15  norm          .10000E-03    1.6389        .20447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .70557        2.7683        .10155E-04   -1.5540    
  17  Prefactor     .10000E-03    4.3501        .33326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.267        22.174        .47739E-05   -1.5037    
  19  Prefactor     .10000E-03    35.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.049        16.487        .42745E-05   -1.4958    
  21  Prefactor     .10000E-03    13.907        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2954        .23398        .52109E-04   -.83705    
  23  Prefactor     .83085        .16526        .45765E-04   -.98601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.83555e-10
Minuit parameter uncertainties:
  1  0.405662
  2  5.7767
  3  6.17377
  4  0.000727931
  5  4.46838e-05
  6  5.23953
  7  0.000595145
  8  9.95526
  9  7.1158e-05
  10  8.26453
  11  5.19218e-05
  12  1.23679
  13  4.08713e-05
  14  31.6355
  15  5.39556e-06
  16  2.76885
  17  7.78864e-06
  18  22.1905
  19  4.11446e-05
  20  16.4921
  21  1.69367e-06
  22  0.234174
  23  0.16536
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  9.037e+00  9.955e+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:  8.308e-01  1.654e-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.295e+00  2.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 170.364 -5.900
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.57e-08 +/- 3.93e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.33e-05

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

Saving results to:
/scratch/kocevski/682570/likelihoodResults_404956801_405216001_4FGL_J1121.4-0553_daily_bin639.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) = 6703.52142181
delta logL = 0.191837677648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6703.51147645
delta logL = 0.201783040049

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6676       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9996       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2577       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84800       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=   6703.511     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      266 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6671        11.231        .14482E-03    .64293E-04
   2  alpha         2.9988        1.3095        .19494E-01    .12010E-04
   3  Normalizat    1.2578        .23730        .26367E-03   -.13004E-03
   4  Prefactor     .84793        .16782        .22671E-03   -.22084E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.6671
  alpha      = 2.99876
  Normalizat = 1.2578
  Prefactor  = 0.847933
 **********
 **   18 **HESSE 
 **********

 FCN=   6703.511     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6671        9.7073        .57928E-05   -1.5154    
   2  alpha         2.9988        1.1448        .77977E-03    .20085    
   3  Normalizat    1.2578        .23563        .10547E-04   -.84835    
   4  Prefactor     .84793        .16670        .90686E-05   -.97985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.17421e-11
Minuit parameter uncertainties:
  1  9.70934
  2  1.19124
  3  0.235829
  4  0.166802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/682570': 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) = 6703.51147581
delta logL = 0.201783679675

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  7.667e+00  9.709e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  2.999e+00  1.191e+00  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:  8.479e-01  1.668e-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.258e+00  2.358e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 170.364 -5.900
Photon Index (Free Index): 3.00 +/- 1.19
Photon Flux (Free Index): 6.59e-08 +/- 6.73e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.20e-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/682570/cmap_HighResolution_404956801_405216001_4FGL_J1121.4-0553_daily_bin639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-05', comment='SUCCESS', photon_flux='3.57e-08', energy_flux2='1.39e-05', photon_flux_error='3.93e-08', dlogl='2.02e-01', energy_flux='1.21e-05', photon_flux2='6.59e-08', job_status='DONE', time_completed='2021-09-03 16:51:49.880925', photon_index_error2='1.19', photon_index2='3.00', ts='1.29', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.20e-05', EG='1.30', time_epoch_completed='1630713109.88', return_code='0', job_id='682570', GAL2='0.85', EG2='1.26', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='6.73e-08', ts2='1.72', photon_index='2.31' WHERE bin_id='639' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:51:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 682570: <4FGL_J1121.4-0553_daily_bin639> in cluster <slac> Done

Job <4FGL_J1121.4-0553_daily_bin639> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 16:36:20 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 16:38:25 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:38:25 2021
Terminated at Fri Sep  3 16:51:50 2021
Results reported at Fri Sep  3 16:51:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin639 170.364 -5.8997 404956801 405216001 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 :                                   776.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            930 sec.

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

