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


Performing analysis on: 4FGL_J1121.4-0553_daily_bin835
RA = 170.364, Dec = -5.8997
tmin = 455760001, tmax = 456019201
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='684122', job_status='RUN', time_executed='2021-09-03 16:42:10.611925', time_epoch_executed='1630712530.61' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='835'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684122

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684122/ft1_4FGL_J1121.4-0553_daily_bin835.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684122/ft2_4FGL_J1121.4-0553_daily_bin835.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684122/ft1_4FGL_J1121.4-0553_daily_bin835.fits outfile=/scratch/kocevski/684122/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin835.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=455760001.0 tmax=456019201.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.39
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684122/ft1_filtered_4FGL_J1121.4-0553_daily_bin835.fits" evtable="EVENTS" scfile=/scratch/kocevski/684122/ft2_4FGL_J1121.4-0553_daily_bin835.fits sctable="SC_DATA" outfile=/scratch/kocevski/684122/ltcube_455760001_456019201_4FGL_J1121.4-0553_daily_bin835.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/684122/ft2_4FGL_J1121.4-0553_daily_bin835.fits
.....................!
real 15.93
user 15.51
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684122/ft1_filtered_4FGL_J1121.4-0553_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/684122/ft2_4FGL_J1121.4-0553_daily_bin835.fits sctable="SC_DATA" expcube=/scratch/kocevski/684122/ltcube_455760001_456019201_4FGL_J1121.4-0553_daily_bin835.fits outfile=/scratch/kocevski/684122/expmap_455760001_456019201_4FGL_J1121.4-0553_daily_bin835.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/684122/ltcube_455760001_456019201_4FGL_J1121.4-0553_daily_bin835.fits
.....................!
real 192.06
user 186.41
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/684122/ft1_filtered_4FGL_J1121.4-0553_daily_bin835.fits scfile=/scratch/kocevski/684122/ft2_4FGL_J1121.4-0553_daily_bin835.fits outfile=/scratch/kocevski/684122/cmap_455760001_456019201_4FGL_J1121.4-0553_daily_bin835.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.78
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8115       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2272       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0728       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.470       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .22368E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10298E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11708E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .85665       1.0000         .10000E-03   10000.    
    15 'norm      '    .14077E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2298       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.8950       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.987       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11589E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.389       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1371       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0254       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=   5632.141     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2556 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8117        .72884       -.18227E-07   -.24386E-04
   2  norm          .10000E-03    1.7771       -.56347E-07** at limit **
   3  Prefactor     .10000E-03    10.347       -.16302E-06** at limit **
   4  Prefactor     5.2248        12.082       -.10123E-05   -.43205E-04
   5  Prefactor     4.0746        10.987       -.27637E-06   -.10083E-03
   6  Prefactor     17.474        7.4656       -.13597E-05   -.46546E-04
   7  Prefactor     .10000E-03    46.471        .11773E-05** at limit **
   8  norm          .10000E-03    3.9081        .99506E-07** at limit **
   9  Prefactor     .10000E-03    4.6353        .26049E-07** at limit **
  10  Prefactor     .10000E-03    2.6740       -.19456E-07** at limit **
  11  norm          .10000E-03    13.542        .11229E-05** at limit **
  12  Prefactor     .10000E-03    .94218       -.51259E-07** at limit **
  13  Prefactor     .10000E-03    20.466        .23262E-04** at limit **
  14  Prefactor     .62702        36.991       -.46096E-05    .11468E-03
  15  norm          .10041E-03    7.3340       -.45635E-05** at limit **
  16  Prefactor     9.2316        5.7047        .49243E-06    .19232E-02
  17  Prefactor     6.8863        17.873        .80439E-05    .13661E-03
  18  Prefactor     33.952        30.735        .54631E-05    .15585E-04
  19  Prefactor     .10000E-03    18.479       -.15980E-04** at limit **
  20  Prefactor     10.429        15.932       -.64778E-05    .15163E-03
  21  Prefactor     .10000E-03    24.924        .50028E-05** at limit **
  22  Normalizat    1.1369        .23039        .78218E-06    .44685E-03
  23  Prefactor     1.0255        .16312        .42132E-06    .64846E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.81166
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.22482
  Prefactor  = 4.07455
  Prefactor  = 17.4735
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.627024
  norm       = 0.000100408
  Prefactor  = 9.23161
  Prefactor  = 6.8863
  Prefactor  = 33.9524
  Prefactor  = 0.0001
  Prefactor  = 10.4287
  Prefactor  = 0.0001
  Normalizat = 1.13695
  Prefactor  = 1.02547
 **********
 **   18 **HESSE 
 **********

 FCN=   5632.141     FROM HESSE     STATUS=OK           374 CALLS     2930 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8117        .72667        .38828E-04   -1.5439    
   2  norm          .10000E-03    1.7786        .97702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2248        12.030        .17581E-03   -1.5251    
   5  Prefactor     4.0746        10.925        .19978E-03   -1.5304    
   6  Prefactor     17.474        7.4811        .95822E-04   -1.4872    
   7  Prefactor     .10000E-03    46.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9140        .14485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7788        .31511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6762        .11984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .96430        .71112E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .62702        44.991        .13541       -1.5550    
  15  norm          .10041E-03    26.106        .35765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.2316        5.4036        .12460E-03   -1.5100    
  17  Prefactor     6.8863        17.835        .15279E-03   -1.5183    
  18  Prefactor     33.952        30.746        .68737E-04   -1.4542    
  19  Prefactor     .10000E-03    18.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.429        15.939        .12431E-03   -1.5062    
  21  Prefactor     .10000E-03    24.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1369        .26818        .30006E-03   -.88574    
  23  Prefactor     1.0255        .19018        .22652E-03   -.91885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69959e-08
Minuit parameter uncertainties:
  1  0.726672
  2  3.60092e-07
  3  2.32292e-06
  4  12.0352
  5  10.9308
  6  7.48154
  7  4.67764e-06
  8  1.37424e-05
  9  2.1496e-05
  10  5.25363e-07
  11  4.8938e-06
  12  1.21846e-06
  13  1.00694e-05
  14  10.6302
  15  0.0065335
  16  5.40393
  17  17.8486
  18  30.76
  19  3.108e-05
  20  15.9458
  21  6.73975e-05
  22  0.268499
  23  0.190309
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.000e-04  1.374e-05  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  2.309e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
296         beta:  1.378e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  6.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.025e+00  1.903e-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.137e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/684122/likelihoodResults_455760001_456019201_4FGL_J1121.4-0553_daily_bin835.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): 102
logL (Free Index) = 5632.14218858
delta logL = -0.00121205417872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5632.14097647
delta logL = 6.01166902925e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2964       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1369       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0255       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=   5632.141     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      240 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    187.04        .14571E-01** at limit **
   2  alpha         1.8249        3.3882        .16530       -.98349E-08
   3  Normalizat    1.1369        .39423E-01    .30006E-03    .59371E-04
   4  Prefactor     1.0255        .28604E-01    .22652E-03    .84267E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.82487
  Normalizat = 1.13694
  Prefactor  = 1.02547
 **********
 **   18 **HESSE 
 **********

 FCN=   5632.141     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4799        .15445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8249        3.5263        .66120E-02   -.27345    
   3  Normalizat    1.1369        .25929        .12002E-04   -.88574    
   4  Prefactor     1.0255        .18818        .90608E-05   -.91885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.57591e-12
Minuit parameter uncertainties:
  1  8.77028e-06
  2  255.051
  3  0.259585
  4  0.188297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684122': 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) = 5632.14097494
delta logL = 1.58728562383e-06

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.000e-04  8.770e-06  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  1.825e+00  2.551e+02  0.000e+00  5.000e+00 ( 1.000e+00)
296         beta:  1.378e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
297           Eb:  6.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.025e+00  1.883e-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.137e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/684122/cmap_HighResolution_455760001_456019201_4FGL_J1121.4-0553_daily_bin835.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-03 16:56:15.008339', job_id='684122', GAL2='1.03', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630713375.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='835' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:56:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 684122: <4FGL_J1121.4-0553_daily_bin835> in cluster <slac> Done

Job <4FGL_J1121.4-0553_daily_bin835> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 16:41:15 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 16:41:17 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:41:17 2021
Terminated at Fri Sep  3 16:56:15 2021
Results reported at Fri Sep  3 16:56:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin835 170.364 -5.8997 455760001 456019201 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 :                                   672.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

