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


Performing analysis on: 4FGL_J1121.4-0553_daily_bin1022
RA = 170.364, Dec = -5.8997
tmin = 504230401, tmax = 504489601
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='685576', job_status='RUN', time_executed='2021-09-03 16:49:05.190928', time_epoch_executed='1630712945.19' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='1022'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685576

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685576/ft1_4FGL_J1121.4-0553_daily_bin1022.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685576/ft2_4FGL_J1121.4-0553_daily_bin1022.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685576/ft1_4FGL_J1121.4-0553_daily_bin1022.fits outfile=/scratch/kocevski/685576/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1022.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=504230401.0 tmax=504489601.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.61
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685576/ft1_filtered_4FGL_J1121.4-0553_daily_bin1022.fits" evtable="EVENTS" scfile=/scratch/kocevski/685576/ft2_4FGL_J1121.4-0553_daily_bin1022.fits sctable="SC_DATA" outfile=/scratch/kocevski/685576/ltcube_504230401_504489601_4FGL_J1121.4-0553_daily_bin1022.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/685576/ft2_4FGL_J1121.4-0553_daily_bin1022.fits
.....................!
real 15.73
user 15.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685576/ft1_filtered_4FGL_J1121.4-0553_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/685576/ft2_4FGL_J1121.4-0553_daily_bin1022.fits sctable="SC_DATA" expcube=/scratch/kocevski/685576/ltcube_504230401_504489601_4FGL_J1121.4-0553_daily_bin1022.fits outfile=/scratch/kocevski/685576/expmap_504230401_504489601_4FGL_J1121.4-0553_daily_bin1022.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/685576/ltcube_504230401_504489601_4FGL_J1121.4-0553_daily_bin1022.fits
.....................!
real 191.08
user 186.12
sys 4.36

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/685576/ft1_filtered_4FGL_J1121.4-0553_daily_bin1022.fits scfile=/scratch/kocevski/685576/ft2_4FGL_J1121.4-0553_daily_bin1022.fits outfile=/scratch/kocevski/685576/cmap_504230401_504489601_4FGL_J1121.4-0553_daily_bin1022.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.54
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/685576/ft1_filtered_4FGL_J1121.4-0553_daily_bin1022.fits evtable="EVENTS" scfile=/scratch/kocevski/685576/ft2_4FGL_J1121.4-0553_daily_bin1022.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/685576/Model_4FGL_J1121.4-0553_daily_bin1022.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/685576/ft1_filtered_4FGL_J1121.4-0553_daily_bin1022.fits.....................!
real 67.01
user 65.73
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3440       1.0000         .10000E-03   10000.    
     2 'norm      '    14.671       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.2500       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10800E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8868       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54858E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10623E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6969       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9098       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.1033       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.978       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6828       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.985       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0164       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .95760       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=   7517.101     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2221 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3441        .58165         .0000        .27975E-03
   2  norm          14.671        5.9593         .0000        .44305E-04
   3  Prefactor     .10000E-03    9.4250         .0000    ** at limit **
   4  Prefactor     .10000E-03    6.5251         .0000    ** at limit **
   5  Prefactor     4.2493        7.8658         .0000        .34581E-03
   6  Prefactor     .10000E-03    1.5080         .0000    ** at limit **
   7  Prefactor     .10000E-03    108.39         .0000    ** at limit **
   8  norm          .10000E-03    7.3649         .0000    ** at limit **
   9  Prefactor     5.8897        4.1942         .0000        .30476E-03
  10  Prefactor     .10000E-03    4.7458         .0000    ** at limit **
  11  norm          .10000E-03    33.557         .0000    ** at limit **
  12  Prefactor     2.6974        1.9933         .0000        .23981E-03
  13  Prefactor     3.9206        21.164         .0000        .14919E-03
  14  Prefactor     .10000E-03    58.131         .0000    ** at limit **
  15  norm          7.1043        6.4937         .0000        .60473E-02
  16  Prefactor     .10000E-03    1.2542         .0000    ** at limit **
  17  Prefactor     16.978        13.386         .0000       -.25356E-04
  18  Prefactor     .10000E-03    5.9793         .0000    ** at limit **
  19  Prefactor     9.6811        23.039         .0000        .32536E-04
  20  Prefactor     13.988        12.061         .0000        .35022E-03
  21  Prefactor     .10000E-03    8.7509         .0000    ** at limit **
  22  Normalizat    1.0162        .18187         .0000        .29665E-05
  23  Prefactor     .95761        .13190         .0000       -.27613E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.3441
  norm       = 14.6713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.24926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.8897
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.6974
  Prefactor  = 3.92062
  Prefactor  = 0.0001
  norm       = 7.10429
  Prefactor  = 0.0001
  Prefactor  = 16.9783
  Prefactor  = 0.0001
  Prefactor  = 9.68107
  Prefactor  = 13.988
  Prefactor  = 0.0001
  Normalizat = 1.01622
  Prefactor  = 0.957613
 **********
 **   18 **HESSE 
 **********

 FCN=   7517.101     FROM HESSE     STATUS=OK           372 CALLS     2593 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3441        .57716        .41516E-04   -1.5476    
   2  norm          14.671        5.9592        .10457E-03   -1.4942    
   3  Prefactor     .10000E-03    9.6175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.5559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.2493        7.8409        .19545E-03   -1.5296    
   6  Prefactor     .10000E-03    1.5281        .10388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    109.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.5753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.8897        4.1551        .13482E-03   -1.5223    
  10  Prefactor     .10000E-03    15.689        .36064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    34.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.6974        1.9883        .10102E-03   -1.5379    
  13  Prefactor     3.9206        20.841        .20404E-03   -1.5312    
  14  Prefactor     .10000E-03    59.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.1043        6.4705        .75256E-03   -1.5175    
  16  Prefactor     .10000E-03    1.2632        .94527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.978        13.383        .97203E-04   -1.4884    
  18  Prefactor     .10000E-03    5.9831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.6811        23.028        .12878E-03   -1.5086    
  20  Prefactor     13.988        12.071        .10710E-03   -1.4960    
  21  Prefactor     .10000E-03    8.7528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0162        .21459        .27884E-03   -.92489    
  23  Prefactor     .95761        .15653        .21416E-03   -.94156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15978e-10
Minuit parameter uncertainties:
  1  0.577161
  2  5.95943
  3  1.59918e-05
  4  1.63353e-05
  5  7.8428
  6  3.73848e-06
  7  0.000284292
  8  3.50596e-06
  9  4.15527
  10  3.36096e-05
  11  6.21478e-05
  12  1.9883
  13  18.0881
  14  2.66562e-05
  15  6.47115
  16  1.67237e-07
  17  13.3854
  18  7.58371e-07
  19  23.0495
  20  12.0728
  21  1.31341e-05
  22  0.214775
  23  0.156603
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.000e-04  3.506e-06  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.576e-01  1.566e-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.016e+00  2.148e-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: 5.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.03e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/685576/likelihoodResults_504230401_504489601_4FGL_J1121.4-0553_daily_bin1022.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) = 7517.10169207
delta logL = -0.000630121458016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7517.1010648
delta logL = -2.84501220449e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11185E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3350       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95794       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=   7517.101     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      251 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    40.188        .36285E-02** at limit **
   2  alpha         2.9477        3.4054        .16506E-01   -.68875E-08
   3  Normalizat    1.0162        .20672        .27884E-03   -.23182E-03
   4  Prefactor     .95761        .15547        .21416E-03   -.31532E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.94769
  Normalizat = 1.01622
  Prefactor  = 0.957613
 **********
 **   18 **HESSE 
 **********

 FCN=   7517.101     FROM HESSE     STATUS=OK            23 CALLS      274 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.618        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.9477        3.5006        .66025E-03    .18005    
   3  Normalizat    1.0162        .20679        .11154E-04   -.92489    
   4  Prefactor     .95761        .15561        .42831E-04   -.94156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77934e-11
Minuit parameter uncertainties:
  1  0.000131176
  2  269.24
  3  0.206955
  4  0.155683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685576': 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) = 7517.10105965
delta logL = 2.29694796872e-06

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.000e-04  1.312e-04  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  2.948e+00  2.692e+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:  9.576e-01  1.557e-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.016e+00  2.070e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/685576/cmap_HighResolution_504230401_504489601_4FGL_J1121.4-0553_daily_bin1022.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-05', job_status='DONE', photon_flux_upper_limit='5.99e-08', time_completed='2021-09-03 17:02:50.622071', job_id='685576', GAL2='0.96', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630713770.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1022' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 17:02:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 685576: <4FGL_J1121.4-0553_daily_bin1022> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin1022 170.364 -5.8997 504230401 504489601 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 :                                   772.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

