/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 64 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 = 7415
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1121.4-0553_daily_bin1086
RA = 170.364, Dec = -5.8997
tmin = 520819201, tmax = 521078401
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='685671', job_status='RUN', time_executed='2021-09-03 16:47:46.453292', time_epoch_executed='1630712866.45' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='1086'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685671/ft1_4FGL_J1121.4-0553_daily_bin1086.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685671/ft2_4FGL_J1121.4-0553_daily_bin1086.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685671/ft1_4FGL_J1121.4-0553_daily_bin1086.fits outfile=/scratch/kocevski/685671/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1086.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=520819201.0 tmax=521078401.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.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685671/ft1_filtered_4FGL_J1121.4-0553_daily_bin1086.fits" evtable="EVENTS" scfile=/scratch/kocevski/685671/ft2_4FGL_J1121.4-0553_daily_bin1086.fits sctable="SC_DATA" outfile=/scratch/kocevski/685671/ltcube_520819201_521078401_4FGL_J1121.4-0553_daily_bin1086.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/685671/ft2_4FGL_J1121.4-0553_daily_bin1086.fits
.....................!
real 15.90
user 15.43
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685671/ft1_filtered_4FGL_J1121.4-0553_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/685671/ft2_4FGL_J1121.4-0553_daily_bin1086.fits sctable="SC_DATA" expcube=/scratch/kocevski/685671/ltcube_520819201_521078401_4FGL_J1121.4-0553_daily_bin1086.fits outfile=/scratch/kocevski/685671/expmap_520819201_521078401_4FGL_J1121.4-0553_daily_bin1086.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/685671/ltcube_520819201_521078401_4FGL_J1121.4-0553_daily_bin1086.fits
.....................!
real 193.82
user 187.50
sys 5.40

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/685671/ft1_filtered_4FGL_J1121.4-0553_daily_bin1086.fits scfile=/scratch/kocevski/685671/ft2_4FGL_J1121.4-0553_daily_bin1086.fits outfile=/scratch/kocevski/685671/cmap_520819201_521078401_4FGL_J1121.4-0553_daily_bin1086.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.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/685671/ft1_filtered_4FGL_J1121.4-0553_daily_bin1086.fits evtable="EVENTS" scfile=/scratch/kocevski/685671/ft2_4FGL_J1121.4-0553_daily_bin1086.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/685671/Model_4FGL_J1121.4-0553_daily_bin1086.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/685671/ft1_filtered_4FGL_J1121.4-0553_daily_bin1086.fits.....................!
real 48.06
user 46.63
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32016       1.0000         .10000E-03   10000.    
     2 'norm      '    20.137       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.0249       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.532       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .54455E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.7167       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    19.260       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.595       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.4623       1.0000         .10000E-03   10000.    
    15 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12825E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.404       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.629       1.0000         .10000E-03   10000.    
    20 'Prefactor '    47.769       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2306       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .77694       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=   4560.824     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2605 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31997        .45025        .10560E-06    .15518E-02
   2  norm          20.135        12.184        .24967E-06   -.29643E-03
   3  Prefactor     9.0247        8.6237       -.11665E-06   -.13967E-03
   4  Prefactor     13.529        15.190        .35042E-06   -.13971E-03
   5  Prefactor     .10000E-03    5.4962       -.69656E-06** at limit **
   6  Prefactor     .10000E-03    12.068        .13977E-04** at limit **
   7  Prefactor     .10000E-03    91.836       -.96722E-06** at limit **
   8  norm          1.7036        2.9085        .28952E-05   -.83857E-03
   9  Prefactor     .10000E-03    2.8235        .22498E-06** at limit **
  10  Prefactor     .10000E-03    9.4075       -.52936E-06** at limit **
  11  norm          19.260        20.126       -.20566E-07   -.40738E-04
  12  Prefactor     .10000E-03    .71166        .33959E-06** at limit **
  13  Prefactor     34.587        24.964       -.12729E-06    .31275E-04
  14  Prefactor     6.3355        58.356        .53408E-06   -.33996E-04
  15  norm          .10000E-03    10.844        .38269E-06** at limit **
  16  Prefactor     .10000E-03    3.0780       -.33696E-05** at limit **
  17  Prefactor     29.428        23.772        .15549E-05    .60077E-03
  18  Prefactor     .10000E-03    18.731        .86369E-06** at limit **
  19  Prefactor     11.634        31.311        .17450E-05    .17908E-03
  20  Prefactor     47.769        22.309        .32159E-06    .54336E-03
  21  Prefactor     .10000E-03    19.405       -.10127E-05** at limit **
  22  Normalizat    1.2309        .24122        .64982E-06    .18702E-03
  23  Prefactor     .77682        .16929       -.69761E-06    .20958E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.31997
  norm       = 20.1348
  Prefactor  = 9.02473
  Prefactor  = 13.529
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.70359
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 19.2601
  Prefactor  = 0.0001
  Prefactor  = 34.5868
  Prefactor  = 6.33546
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 29.4285
  Prefactor  = 0.0001
  Prefactor  = 11.6335
  Prefactor  = 47.7695
  Prefactor  = 0.0001
  Normalizat = 1.2309
  Prefactor  = 0.776818
 **********
 **   18 **HESSE 
 **********

 FCN=   4560.824     FROM HESSE     STATUS=OK           368 CALLS     2973 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31997        .40861        .48635E-03   -1.5595    
   2  norm          20.135        12.175        .89256E-04   -1.4810    
   3  Prefactor     9.0247        8.5138        .66708E-03   -1.5107    
   4  Prefactor     13.529        15.224        .10889E-03   -1.4972    
   5  Prefactor     .10000E-03    5.5362        .15491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.126        .20023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    92.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.7036        6.4894        .16035E-02   -1.5447    
   9  Prefactor     .10000E-03    2.8721        .11066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          19.260        20.135        .91265E-04   -1.4830    
  12  Prefactor     .10000E-03    1.1077        .11102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.587        24.977        .68132E-04   -1.4531    
  14  Prefactor     6.3355        58.293        .15788E-03   -1.5205    
  15  norm          .10000E-03    11.109        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.587        .20203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.428        23.467        .73885E-04   -1.4622    
  18  Prefactor     .10000E-03    18.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.634        31.296        .11748E-03   -1.5026    
  20  Prefactor     47.769        22.308        .58017E-04   -1.4325    
  21  Prefactor     .10000E-03    19.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2309        .28591        .26491E-03   -.85653    
  23  Prefactor     .77682        .20131        .23330E-03   -1.0059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5515e-09
Minuit parameter uncertainties:
  1  0.40861
  2  12.1767
  3  8.51493
  4  15.2286
  5  0.00014299
  6  0.000126078
  7  0.000612396
  8  6.49213
  9  1.76496e-05
  10  0.000197178
  11  20.1425
  12  2.36541e-05
  13  24.9849
  14  38.4845
  15  9.25004e-05
  16  0.000430111
  17  23.4744
  18  1.66687e-05
  19  31.3404
  20  22.312
  21  0.000129847
  22  0.28627
  23  0.201505
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.704e+00  6.492e+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:  7.768e-01  2.015e-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.231e+00  2.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 170.364 -5.900
Photon Flux Upper Limit: 8.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/685671/likelihoodResults_520819201_521078401_4FGL_J1121.4-0553_daily_bin1086.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) = 4560.80944512
delta logL = 0.0149155282652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4560.80814611
delta logL = 0.0162145406975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0298       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0028       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77553       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=   4560.808     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0298        6.6327        .29037E-03    .71844E-04
   2  alpha         2.0025        1.5109        .38975E-01    .47730E-05
   3  Normalizat    1.2326        .27400        .26475E-03   -.13312E-05
   4  Prefactor     .77552        .19797        .23346E-03   -.38957E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0298
  alpha      = 2.00248
  Normalizat = 1.23261
  Prefactor  = 0.775524
 **********
 **   18 **HESSE 
 **********

 FCN=   4560.808     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0298        6.6326        .11615E-04   -1.5423    
   2  alpha         2.0025        1.5121        .15590E-02   -.20034    
   3  Normalizat    1.2326        .27426        .10590E-04   -.85601    
   4  Prefactor     .77552        .19815        .93385E-05   -1.0064    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35836e-11
Minuit parameter uncertainties:
  1  6.63495
  2  1.62969
  3  0.274585
  4  0.198335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685671': 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) = 4560.80814609
delta logL = 0.0162145584909

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  2.030e+00  6.635e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  2.002e+00  1.630e+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.755e-01  1.983e-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.233e+00  2.746e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/685671/cmap_HighResolution_520819201_521078401_4FGL_J1121.4-0553_daily_bin1086.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-05', job_status='DONE', photon_flux_upper_limit='8.57e-08', time_completed='2021-09-03 16:58:16.741046', job_id='685671', GAL2='0.78', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630713496.74', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.62e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1086' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:58:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 685671: <4FGL_J1121.4-0553_daily_bin1086> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin1086 170.364 -5.8997 520819201 521078401 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 :                                   615.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            711 sec.

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

