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


Performing analysis on: 4FGL_J1121.4-0553_daily_bin1185
RA = 170.364, Dec = -5.8997
tmin = 546480001, tmax = 546739201
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='685822', job_status='RUN', time_executed='2021-09-03 16:47:00.958921', time_epoch_executed='1630712820.96' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='1185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685822

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685822/ft1_4FGL_J1121.4-0553_daily_bin1185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685822/ft2_4FGL_J1121.4-0553_daily_bin1185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685822/ft1_4FGL_J1121.4-0553_daily_bin1185.fits outfile=/scratch/kocevski/685822/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1185.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=546480001.0 tmax=546739201.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.91
user 3.66
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685822/ft1_filtered_4FGL_J1121.4-0553_daily_bin1185.fits" evtable="EVENTS" scfile=/scratch/kocevski/685822/ft2_4FGL_J1121.4-0553_daily_bin1185.fits sctable="SC_DATA" outfile=/scratch/kocevski/685822/ltcube_546480001_546739201_4FGL_J1121.4-0553_daily_bin1185.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/685822/ft2_4FGL_J1121.4-0553_daily_bin1185.fits
.....................!
real 13.07
user 12.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685822/ft1_filtered_4FGL_J1121.4-0553_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/685822/ft2_4FGL_J1121.4-0553_daily_bin1185.fits sctable="SC_DATA" expcube=/scratch/kocevski/685822/ltcube_546480001_546739201_4FGL_J1121.4-0553_daily_bin1185.fits outfile=/scratch/kocevski/685822/expmap_546480001_546739201_4FGL_J1121.4-0553_daily_bin1185.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/685822/ltcube_546480001_546739201_4FGL_J1121.4-0553_daily_bin1185.fits
.....................!
real 190.09
user 185.38
sys 4.28

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/685822/ft1_filtered_4FGL_J1121.4-0553_daily_bin1185.fits scfile=/scratch/kocevski/685822/ft2_4FGL_J1121.4-0553_daily_bin1185.fits outfile=/scratch/kocevski/685822/cmap_546480001_546739201_4FGL_J1121.4-0553_daily_bin1185.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.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/685822/ft1_filtered_4FGL_J1121.4-0553_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/685822/ft2_4FGL_J1121.4-0553_daily_bin1185.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/685822/Model_4FGL_J1121.4-0553_daily_bin1185.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/685822/ft1_filtered_4FGL_J1121.4-0553_daily_bin1185.fits.....................!
real 99.47
user 98.03
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4850       1.0000         .10000E-03   10000.    
     2 'norm      '    10.485       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4566       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6686       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0106       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.749       1.0000         .10000E-03   10000.    
     8 'norm      '    11.594       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5190       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.3766       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.436       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8990       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.107       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    29.321       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1859       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .92036       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=   12059.99     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2486 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4850        .55756       -.16285E-07    .13267E-03
   2  norm          10.486        4.0329        .11380E-06    .35671E-04
   3  Prefactor     3.4580        4.3294        .69715E-06   -.22286E-02
   4  Prefactor     2.6678        7.0445       -.11673E-06   -.75867E-04
   5  Prefactor     .10000E-03    1.9532        .71956E-07** at limit **
   6  Prefactor     3.0112        4.2761       -.18041E-05   -.49466E-03
   7  Prefactor     22.750        44.190        .15776E-05    .14030E-04
   8  norm          11.595        7.2381       -.29985E-06   -.76223E-05
   9  Prefactor     .10000E-03    2.1592       -.10713E-06** at limit **
  10  Prefactor     4.5183        4.6565        .71848E-06   -.21704E-02
  11  norm          .10000E-03    6.7992       -.35072E-05** at limit **
  12  Prefactor     4.3766        2.0950       -.10322E-06   -.86587E-04
  13  Prefactor     16.442        16.709        .64678E-05    .28544E-03
  14  Prefactor     .10000E-03    10.433       -.32162E-05** at limit **
  15  norm          .10000E-03    1.0299       -.21347E-07** at limit **
  16  Prefactor     1.8992        2.0452        .37067E-07   -.12208E-03
  17  Prefactor     19.106        13.230       -.81830E-06   -.62943E-04
  18  Prefactor     .10000E-03    5.8650        .99805E-06** at limit **
  19  Prefactor     .10000E-03    8.4938        .24731E-05** at limit **
  20  Prefactor     29.320        12.664       -.33641E-06   -.67419E-04
  21  Prefactor     .10000E-03    9.0011        .30028E-05** at limit **
  22  Normalizat    1.1859        .15699       -.78464E-07    .48741E-04
  23  Prefactor     .92037        .10810       -.17197E-06    .75830E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.48496
  norm       = 10.4855
  Prefactor  = 3.45803
  Prefactor  = 2.66782
  Prefactor  = 0.0001
  Prefactor  = 3.01121
  Prefactor  = 22.7502
  norm       = 11.595
  Prefactor  = 0.0001
  Prefactor  = 4.51835
  norm       = 0.0001
  Prefactor  = 4.37661
  Prefactor  = 16.4417
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.89918
  Prefactor  = 19.1058
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3196
  Prefactor  = 0.0001
  Normalizat = 1.18591
  Prefactor  = 0.920369
 **********
 **   18 **HESSE 
 **********

 FCN=   12059.99     FROM HESSE     STATUS=OK           374 CALLS     2860 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4850        .57834        .35881E-04   -1.5393    
   2  norm          10.486        4.0348        .12373E-03   -1.5060    
   3  Prefactor     3.4580        5.8619        .10876E-02   -1.5336    
   4  Prefactor     2.6678        7.0116        .24948E-03   -1.5381    
   5  Prefactor     .10000E-03    1.9560        .14984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.0112        4.2907        .23391E-03   -1.5361    
   7  Prefactor     22.750        44.114        .83981E-04   -1.4754    
   8  norm          11.595        7.1675        .11765E-03   -1.5027    
   9  Prefactor     .10000E-03    2.2132        .31383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.5183        5.6440        .94693E-03   -1.5283    
  11  norm          .10000E-03    6.8757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.3766        2.0986        .10561E-03   -1.5290    
  13  Prefactor     16.442        16.824        .98791E-04   -1.4897    
  14  Prefactor     .10000E-03    10.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0327        .10881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8992        2.0292        .15391E-03   -1.5432    
  17  Prefactor     19.106        13.204        .91627E-04   -1.4833    
  18  Prefactor     .10000E-03    5.8671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     29.320        12.695        .73990E-04   -1.4624    
  21  Prefactor     .10000E-03    9.0088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1859        .18721        .28445E-03   -.87039    
  23  Prefactor     .92037        .12743        .22982E-03   -.95433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82954e-09
Minuit parameter uncertainties:
  1  0.578344
  2  4.0349
  3  5.86285
  4  7.01371
  5  4.85847e-06
  6  4.2911
  7  44.177
  8  7.16799
  9  2.34903e-05
  10  5.64463
  11  9.47802e-05
  12  2.09863
  13  16.8283
  14  6.09956e-05
  15  1.3805e-06
  16  2.02926
  17  13.2055
  18  1.38351e-05
  19  4.56687e-05
  20  12.6958
  21  5.79183e-05
  22  0.187311
  23  0.12747
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.159e+01  7.168e+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.204e-01  1.275e-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.186e+00  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.65
Ra Dec: 170.364 -5.900
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.58e-08 +/- 2.83e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 9.57e-06

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) = 12059.9237557
delta logL = 0.0681688868244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12059.9185597
delta logL = 0.0733648383684

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.008       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5615       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92652       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=   12059.92     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      243 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.005        120.56        .30189E-02    .27773E-03
   2  alpha         2.5610        3.5149        .41167        .65820E-04
   3  Normalizat    1.1720        .87183E-01    .64618E-01    .11924E-03
   4  Prefactor     .92661        .46047E-01    .45342E-01    .46217E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.0051
  alpha      = 2.56103
  Normalizat = 1.172
  Prefactor  = 0.926611
 **********
 **   18 **HESSE 
 **********

 FCN=   12059.92     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.005        6.9666        .12075E-03   -1.5044    
   2  alpha         2.5610        .68447        .19668E-01    .24414E-01
   3  Normalizat    1.1720        .17940        .28585E-03   -.87473    
   4  Prefactor     .92661        .12792        .22912E-03   -.95217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22386e-11
Minuit parameter uncertainties:
  1  6.96713
  2  0.693328
  3  0.179492
  4  0.127963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685822': 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) = 12059.9185581
delta logL = 0.0733664150303

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.101e+01  6.967e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  2.561e+00  6.933e-01  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.266e-01  1.280e-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.172e+00  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.79
Ra Dec: 170.364 -5.900
Photon Index (Free Index): 2.56 +/- 0.69
Photon Flux (Free Index): 5.65e-08 +/- 4.05e-08
Energy Flux (Free Index): 1.54e-05 +/- 8.59e-06

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/685822/cmap_HighResolution_546480001_546739201_4FGL_J1121.4-0553_daily_bin1185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.58e-08', energy_flux2='1.54e-05', photon_flux_error='2.83e-08', dlogl='7.34e-02', energy_flux='1.55e-05', photon_flux2='5.65e-08', job_status='DONE', time_completed='2021-09-03 17:02:54.606441', photon_index_error2='0.69', photon_index2='2.56', ts='5.65', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='8.59e-06', EG='1.19', time_epoch_completed='1630713774.61', return_code='0', job_id='685822', GAL2='0.93', EG2='1.17', return_code2='0', energy_flux_error='9.57e-06', photon_flux_error2='4.05e-08', ts2='5.79', photon_index='2.31' WHERE bin_id='1185' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 17:02:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 685822: <4FGL_J1121.4-0553_daily_bin1185> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin1185 170.364 -5.8997 546480001 546739201 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 :                                   930.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             363.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            977 sec.

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

