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


Performing analysis on: 4FGL_J1121.4-0553_daily_bin1433
RA = 170.364, Dec = -5.8997
tmin = 610761601, tmax = 611020801
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='687345', job_status='RUN', time_executed='2021-09-03 16:54:17.965239', time_epoch_executed='1630713257.97' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='1433'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/687345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/687345/ft1_4FGL_J1121.4-0553_daily_bin1433.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/687345/ft2_4FGL_J1121.4-0553_daily_bin1433.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/687345/ft1_4FGL_J1121.4-0553_daily_bin1433.fits outfile=/scratch/kocevski/687345/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1433.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=610761601.0 tmax=611020801.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.64
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/687345/ft1_filtered_4FGL_J1121.4-0553_daily_bin1433.fits" evtable="EVENTS" scfile=/scratch/kocevski/687345/ft2_4FGL_J1121.4-0553_daily_bin1433.fits sctable="SC_DATA" outfile=/scratch/kocevski/687345/ltcube_610761601_611020801_4FGL_J1121.4-0553_daily_bin1433.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/687345/ft2_4FGL_J1121.4-0553_daily_bin1433.fits
.....................!
real 16.11
user 15.70
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/687345/ft1_filtered_4FGL_J1121.4-0553_daily_bin1433.fits evtable="EVENTS" scfile=/scratch/kocevski/687345/ft2_4FGL_J1121.4-0553_daily_bin1433.fits sctable="SC_DATA" expcube=/scratch/kocevski/687345/ltcube_610761601_611020801_4FGL_J1121.4-0553_daily_bin1433.fits outfile=/scratch/kocevski/687345/expmap_610761601_611020801_4FGL_J1121.4-0553_daily_bin1433.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/687345/ltcube_610761601_611020801_4FGL_J1121.4-0553_daily_bin1433.fits
.....................!
real 192.88
user 186.32
sys 5.17

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/687345/ft1_filtered_4FGL_J1121.4-0553_daily_bin1433.fits scfile=/scratch/kocevski/687345/ft2_4FGL_J1121.4-0553_daily_bin1433.fits outfile=/scratch/kocevski/687345/cmap_610761601_611020801_4FGL_J1121.4-0553_daily_bin1433.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.57
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/687345/ft1_filtered_4FGL_J1121.4-0553_daily_bin1433.fits scfile=/scratch/kocevski/687345/ft2_4FGL_J1121.4-0553_daily_bin1433.fits outfile=/scratch/kocevski/687345/cmap_HighResolution_610761601_611020801_4FGL_J1121.4-0553_daily_bin1433.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.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45799       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4968       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.851       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11709E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4217       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21784E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2364       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5150       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10630E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6385       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.364       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8928       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.1082       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4560       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    44.221       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10692E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4962       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .72411       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=   5978.078     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2566 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .45805        .47460       -.11452E-07   -.26576E-03
   2  norm          1.4943        5.5855        .52393E-05   -.14185E-03
   3  Prefactor     11.853        9.4299        .22036E-06    .19409E-04
   4  Prefactor     .10000E-03    11.308       -.73239E-06** at limit **
   5  Prefactor     .10002E-03    33.033       -.35654E-05** at limit **
   6  Prefactor     1.4190        6.7789        .69218E-05   -.35544E-03
   7  Prefactor     .10003E-03    118.67        .65235E-05** at limit **
   8  norm          4.2643        13.260        .14277E-05   -.53619E-04
   9  Prefactor     1.4988        8.5750       -.42675E-05   -.15580E-03
  10  Prefactor     .10000E-03    3.9996       -.99695E-07** at limit **
  11  norm          .10000E-03    16.712        .15181E-05** at limit **
  12  Prefactor     3.6390        2.9809        .37448E-06    .11228E-03
  13  Prefactor     20.406        35.141        .12193E-05   -.27522E-03
  14  Prefactor     .10000E-03    17.836       -.29023E-06** at limit **
  15  norm          1.8940        6.0317        .51960E-06    .23427E-03
  16  Prefactor     5.1082        5.1305        .15835E-06    .57726E-03
  17  Prefactor     3.4556        12.687        .17439E-05    .38603E-04
  18  Prefactor     .10000E-03    11.487        .12520E-06** at limit **
  19  Prefactor     .10003E-03    84.126       -.63955E-05** at limit **
  20  Prefactor     44.236        21.963        .54646E-06    .38089E-03
  21  Prefactor     .10000E-03    19.982       -.84295E-06** at limit **
  22  Normalizat    1.4962        .22655       -.20179E-05   -.21817E-04
  23  Prefactor     .72420        .15100        .44740E-06    .10544E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.458049
  norm       = 1.49426
  Prefactor  = 11.8533
  Prefactor  = 0.000100001
  Prefactor  = 0.000100022
  Prefactor  = 1.41896
  Prefactor  = 0.00010003
  norm       = 4.26426
  Prefactor  = 1.49881
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 3.63902
  Prefactor  = 20.4057
  Prefactor  = 0.0001
  norm       = 1.89403
  Prefactor  = 5.10815
  Prefactor  = 3.45558
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Prefactor  = 44.2356
  Prefactor  = 0.000100001
  Normalizat = 1.49615
  Prefactor  = 0.724205
 **********
 **   18 **HESSE 
 **********

 FCN=   5978.078     FROM HESSE     STATUS=OK           374 CALLS     2940 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .45805        .45514        .48833E-03   -1.5573    
   2  norm          1.4943        5.5347        .16773E-02   -1.5463    
   3  Prefactor     11.853        9.3407        .58183E-03   -1.5019    
   4  Prefactor     .10000E-03    11.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    34.759        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.4190        6.7397        .16515E-02   -1.5470    
   7  Prefactor     .10003E-03    118.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2643        13.180        .97885E-03   -1.5295    
   9  Prefactor     1.4988        8.7067        .34641E-03   -1.5463    
  10  Prefactor     .10000E-03    4.0167        .15100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.6390        2.9784        .57238E-03   -1.5326    
  13  Prefactor     20.406        35.138        .88758E-04   -1.4804    
  14  Prefactor     .10000E-03    17.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8940        5.9125        .29756E-03   -1.5433    
  16  Prefactor     5.1082        5.0432        .14996E-03   -1.5256    
  17  Prefactor     3.4556        12.673        .10877E-02   -1.5336    
  18  Prefactor     .10000E-03    11.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10003E-03    84.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     44.236        22.020        .60289E-04   -1.4377    
  21  Prefactor     .10000E-03    19.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4962        .26513        .26069E-03   -.77886    
  23  Prefactor     .72420        .17688        .25037E-03   -1.0259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46565e-09
Minuit parameter uncertainties:
  1  0.455146
  2  5.53663
  3  9.34182
  4  0.000204444
  5  0.00174878
  6  6.18586
  7  0.0037745
  8  13.189
  9  7.22622
  10  1.88445e-05
  11  0.000370079
  12  2.97851
  13  35.174
  14  8.61411e-05
  15  5.91434
  16  5.04361
  17  12.6824
  18  2.59155e-05
  19  0.00334273
  20  22.0236
  21  0.000219939
  22  0.265381
  23  0.177021
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  4.264e+00  1.319e+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:  7.242e-01  1.770e-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.496e+00  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/687345/likelihoodResults_610761601_611020801_4FGL_J1121.4-0553_daily_bin1433.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) = 5977.84512717
delta logL = 0.23259343825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5977.83899009
delta logL = 0.238730517784

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4199       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2171       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73608       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5977.839     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      279 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4286        11.149        .95776E-03    .40979E-03
   2  alpha         3.2183        1.6160        .24410E-01    .15951E-03
   3  Normalizat    1.4626        .25518        .26301E-03   -.24639E-05
   4  Prefactor     .73610        .17576        .24843E-03   -.13409E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.4286
  alpha      = 3.21833
  Normalizat = 1.46265
  Prefactor  = 0.736099
 **********
 **   18 **HESSE 
 **********

 FCN=   5977.839     FROM HESSE     STATUS=OK            27 CALLS      306 TOTAL
                     EDM=   .69E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4286        8.8551        .19155E-03   -1.5287    
   2  alpha         3.2183        1.3280        .48820E-02    .29144    
   3  Normalizat    1.4626        .25538        .10520E-04   -.78833    
   4  Prefactor     .73610        .17541        .99370E-05   -1.0213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86232e-13
Minuit parameter uncertainties:
  1  8.85771
  2  1.40765
  3  0.255607
  4  0.175541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/687345': 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) = 5977.83898423
delta logL = 0.238736375796

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  4.429e+00  8.858e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  3.218e+00  1.408e+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:  7.361e-01  1.755e-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.463e+00  2.556e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
Ra Dec: 170.364 -5.900

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/687345/cmap_HighResolution_610761601_611020801_4FGL_J1121.4-0553_daily_bin1433.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-05', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-03 17:06:43.820465', job_id='687345', GAL2='0.74', fit_tolerance='1e-08', EG2='1.46', EG='1.50', time_epoch_completed='1630714003.82', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.39e-01', ts2='0.66', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1433' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 17:06:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 687345: <4FGL_J1121.4-0553_daily_bin1433> in cluster <slac> Done

Job <4FGL_J1121.4-0553_daily_bin1433> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 16:51:32 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 16:52:18 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:52:18 2021
Terminated at Fri Sep  3 17:06:44 2021
Results reported at Fri Sep  3 17:06:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin1433 170.364 -5.8997 610761601 611020801 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 :                                   700.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   866 sec.
    Turnaround time :                            912 sec.

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

