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


Performing analysis on: 4FGL_J1121.4-0553_daily_bin878
RA = 170.364, Dec = -5.8997
tmin = 466905601, tmax = 467164801
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='684188', job_status='RUN', time_executed='2021-09-03 16:42:11.691386', time_epoch_executed='1630712531.69' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='878'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684188

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684188/ft1_4FGL_J1121.4-0553_daily_bin878.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684188/ft2_4FGL_J1121.4-0553_daily_bin878.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684188/ft1_4FGL_J1121.4-0553_daily_bin878.fits outfile=/scratch/kocevski/684188/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin878.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=466905601.0 tmax=467164801.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.66
user 3.41
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/684188/ft2_4FGL_J1121.4-0553_daily_bin878.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/684188/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin878.fits evtable="EVENTS" outfile="/scratch/kocevski/684188/ft1_filtered_4FGL_J1121.4-0553_daily_bin878.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.54
user 0.34
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684188/ft1_filtered_4FGL_J1121.4-0553_daily_bin878.fits" evtable="EVENTS" scfile=/scratch/kocevski/684188/ft2_4FGL_J1121.4-0553_daily_bin878.fits sctable="SC_DATA" outfile=/scratch/kocevski/684188/ltcube_466905601_467164801_4FGL_J1121.4-0553_daily_bin878.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/684188/ft2_4FGL_J1121.4-0553_daily_bin878.fits
.....................!
real 17.24
user 16.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684188/ft1_filtered_4FGL_J1121.4-0553_daily_bin878.fits evtable="EVENTS" scfile=/scratch/kocevski/684188/ft2_4FGL_J1121.4-0553_daily_bin878.fits sctable="SC_DATA" expcube=/scratch/kocevski/684188/ltcube_466905601_467164801_4FGL_J1121.4-0553_daily_bin878.fits outfile=/scratch/kocevski/684188/expmap_466905601_467164801_4FGL_J1121.4-0553_daily_bin878.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/684188/ltcube_466905601_467164801_4FGL_J1121.4-0553_daily_bin878.fits
.....................!
real 192.07
user 186.02
sys 5.15

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/684188/ft1_filtered_4FGL_J1121.4-0553_daily_bin878.fits scfile=/scratch/kocevski/684188/ft2_4FGL_J1121.4-0553_daily_bin878.fits outfile=/scratch/kocevski/684188/cmap_466905601_467164801_4FGL_J1121.4-0553_daily_bin878.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684188/ft1_filtered_4FGL_J1121.4-0553_daily_bin878.fits scfile=/scratch/kocevski/684188/ft2_4FGL_J1121.4-0553_daily_bin878.fits outfile=/scratch/kocevski/684188/cmap_HighResolution_466905601_467164801_4FGL_J1121.4-0553_daily_bin878.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=170.364 yref=-5.8997 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684188/ft1_filtered_4FGL_J1121.4-0553_daily_bin878.fits evtable="EVENTS" scfile=/scratch/kocevski/684188/ft2_4FGL_J1121.4-0553_daily_bin878.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684188/Model_4FGL_J1121.4-0553_daily_bin878.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/684188/ft1_filtered_4FGL_J1121.4-0553_daily_bin878.fits.....................!
real 63.44
user 61.98
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2019       1.0000         .10000E-03   10000.    
     2 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6598       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .44254       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    27.653       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .97706       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.016       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0637       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7670       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31338       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1843       1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.523       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6241       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.9175       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1942       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93924       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=   6836.316     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2588 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2016        .58035        .78504E-08   -.26704E-03
   2  norm          .10000E-03    2.8943        .10099E-06** at limit **
   3  Prefactor     .10000E-03    8.9973        .72089E-07** at limit **
   4  Prefactor     .10000E-03    16.932        .56460E-06** at limit **
   5  Prefactor     6.6611        7.3281        .26478E-06    .11915E-03
   6  Prefactor     .10000E-03    2.4097       -.46219E-06** at limit **
   7  Prefactor     .10000E-03    26.131        .75670E-07** at limit **
   8  norm          .42844        8.7290        .58733E-05   -.47305E-03
   9  Prefactor     .10000E-03    2.8183       -.10279E-05** at limit **
  10  Prefactor     .10000E-03    4.1763        .99284E-07** at limit **
  11  norm          27.661        33.662       -.62488E-06   -.13927E-03
  12  Prefactor     .97447        2.3860        .87093E-06    .74018E-03
  13  Prefactor     10.927        34.477        .79591E-06   -.26311E-04
  14  Prefactor     .10000E-03    19.427       -.35812E-06** at limit **
  15  norm          2.0629        3.7765        .56376E-06    .22605E-03
  16  Prefactor     6.7707        4.4168       -.32566E-06   -.91479E-03
  17  Prefactor     .19844        11.508        .39514E-05   -.50182E-03
  18  Prefactor     1.1257        117.26        .93109E-05    .82702E-04
  19  Prefactor     45.540        38.595        .18242E-06   -.10890E-04
  20  Prefactor     2.6154        21.015       -.85240E-06   -.34834E-04
  21  Prefactor     8.8780        32.398        .12177E-05   -.21540E-04
  22  Normalizat    1.1951        .22487        .53046E-05   -.25257E-03
  23  Prefactor     .93877        .15941       -.52513E-05   -.65579E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.20164
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.66112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.42844
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 27.6607
  Prefactor  = 0.974465
  Prefactor  = 10.927
  Prefactor  = 0.0001
  norm       = 2.06294
  Prefactor  = 6.77067
  Prefactor  = 0.198437
  Prefactor  = 1.12568
  Prefactor  = 45.5396
  Prefactor  = 2.61541
  Prefactor  = 8.87802
  Normalizat = 1.19508
  Prefactor  = 0.938774
 **********
 **   18 **HESSE 
 **********

 FCN=   6836.316     FROM HESSE     STATUS=OK           378 CALLS     2966 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2016        .57611        .41911E-04   -1.5489    
   2  norm          .10000E-03    2.9273        .13737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.1450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.6611        7.3188        .15549E-03   -1.5192    
   6  Prefactor     .10000E-03    2.4487        .12563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .42844        12.235        .33268E-02   -1.5577    
   9  Prefactor     .10000E-03    2.9082        .13649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2235        .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          27.661        33.642        .76183E-04   -1.4656    
  12  Prefactor     .97447        2.4025        .19012E-03   -1.5511    
  13  Prefactor     10.927        34.538        .12071E-03   -1.5047    
  14  Prefactor     .10000E-03    19.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0629        3.7501        .20687E-03   -1.5421    
  16  Prefactor     6.7707        4.4083        .12533E-03   -1.5187    
  17  Prefactor     .19844        12.870        .77194E-01   -1.5619    
  18  Prefactor     1.1257        124.06        .41951E-03   -1.5496    
  19  Prefactor     45.540        38.516        .59424E-04   -1.4357    
  20  Prefactor     2.6154        20.728        .25176E-03   -1.5385    
  21  Prefactor     8.8780        32.291        .13422E-03   -1.5112    
  22  Normalizat    1.1951        .25000        .27795E-03   -.86755    
  23  Prefactor     .93877        .17728        .22451E-03   -.94799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68532e-09
Minuit parameter uncertainties:
  1  0.576108
  2  1.05847e-05
  3  9.41174e-06
  4  9.37558e-05
  5  7.31982
  6  4.85956e-05
  7  2.5723e-05
  8  4.57958
  9  0.000104352
  10  1.13334e-05
  11  33.6655
  12  2.40278
  13  34.6008
  14  0.0001043
  15  3.75056
  16  4.40853
  17  3.19603
  18  23.6842
  19  38.5371
  20  14.7324
  21  32.3548
  22  0.250247
  23  0.177389
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.388e-01  1.774e-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.195e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/684188/likelihoodResults_466905601_467164801_4FGL_J1121.4-0553_daily_bin878.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) = 6836.27483018
delta logL = 0.0409157568765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6836.2431482
delta logL = 0.0725977344346

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3586       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5411       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93417       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6836.243     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      213 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3532        4.4721        .93705E-02    .81799E-03
   2  alpha         1.5371        1.3047        .45840       -.31940E-04
   3  Normalizat    1.1994        .19641        .62737E-01    .10116E-04
   4  Prefactor     .93418        .14357        .45439E-01    .95828E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35319
  alpha      = 1.53708
  Normalizat = 1.19944
  Prefactor  = 0.934175
 **********
 **   18 **HESSE 
 **********

 FCN=   6836.243     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3532        4.0221        .27409E-03   -1.5475    
   2  alpha         1.5371        1.4013        .42965E-01   -.39539    
   3  Normalizat    1.1994        .23632        .27750E-03   -.86620    
   4  Prefactor     .93418        .17275        .22498E-03   -.94957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96147e-09
Minuit parameter uncertainties:
  1  4.0229
  2  1.50605
  3  0.236531
  4  0.172855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684188': 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) = 6836.2431447
delta logL = 0.0726012351843

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.353e+00  4.023e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  1.537e+00  1.506e+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:  9.342e-01  1.729e-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.199e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/684188/cmap_HighResolution_466905601_467164801_4FGL_J1121.4-0553_daily_bin878.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.09e-05', job_status='DONE', photon_flux_upper_limit='6.19e-08', time_completed='2021-09-03 16:57:45.552238', job_id='684188', GAL2='0.93', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1630713465.55', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='7.26e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='878' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:57:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 684188: <4FGL_J1121.4-0553_daily_bin878> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin878 170.364 -5.8997 466905601 467164801 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 :                                   747.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            988 sec.

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

