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


Performing analysis on: 4FGL_J1121.4-0553_daily_bin1123
RA = 170.364, Dec = -5.8997
tmin = 530409601, tmax = 530668801
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='685728', job_status='RUN', time_executed='2021-09-03 16:46:44.670620', time_epoch_executed='1630712804.67' WHERE source_name='4FGL J1121.4-0553' and cadence='daily' and bin_id='1123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/685728

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/685728/ft1_4FGL_J1121.4-0553_daily_bin1123.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/685728/ft2_4FGL_J1121.4-0553_daily_bin1123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/685728/ft1_4FGL_J1121.4-0553_daily_bin1123.fits outfile=/scratch/kocevski/685728/ft1_filteredMKT_4FGL_J1121.4-0553_daily_bin1123.fits ra=170.364 dec=-5.8997 rad=12.0 tmin=530409601.0 tmax=530668801.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.67
user 3.43
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/685728/ft1_filtered_4FGL_J1121.4-0553_daily_bin1123.fits" evtable="EVENTS" scfile=/scratch/kocevski/685728/ft2_4FGL_J1121.4-0553_daily_bin1123.fits sctable="SC_DATA" outfile=/scratch/kocevski/685728/ltcube_530409601_530668801_4FGL_J1121.4-0553_daily_bin1123.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/685728/ft2_4FGL_J1121.4-0553_daily_bin1123.fits
.....................!
real 17.43
user 17.02
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/685728/ft1_filtered_4FGL_J1121.4-0553_daily_bin1123.fits evtable="EVENTS" scfile=/scratch/kocevski/685728/ft2_4FGL_J1121.4-0553_daily_bin1123.fits sctable="SC_DATA" expcube=/scratch/kocevski/685728/ltcube_530409601_530668801_4FGL_J1121.4-0553_daily_bin1123.fits outfile=/scratch/kocevski/685728/expmap_530409601_530668801_4FGL_J1121.4-0553_daily_bin1123.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/685728/ltcube_530409601_530668801_4FGL_J1121.4-0553_daily_bin1123.fits
.....................!
real 191.97
user 187.43
sys 4.00

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/685728/ft1_filtered_4FGL_J1121.4-0553_daily_bin1123.fits scfile=/scratch/kocevski/685728/ft2_4FGL_J1121.4-0553_daily_bin1123.fits outfile=/scratch/kocevski/685728/cmap_530409601_530668801_4FGL_J1121.4-0553_daily_bin1123.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/685728/ft1_filtered_4FGL_J1121.4-0553_daily_bin1123.fits scfile=/scratch/kocevski/685728/ft2_4FGL_J1121.4-0553_daily_bin1123.fits outfile=/scratch/kocevski/685728/cmap_HighResolution_530409601_530668801_4FGL_J1121.4-0553_daily_bin1123.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17356E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    15.330       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3370       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.988       1.0000         .10000E-03   10000.    
     8 'norm      '    10.736       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4234       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.927       1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.974       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.920       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4055       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .63508       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=   5459.038     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2546 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .26722        .11172E-06** at limit **
   2  norm          15.330        7.5902       -.34670E-06   -.36384E-04
   3  Prefactor     .10000E-03    2.2827        .50484E-07** at limit **
   4  Prefactor     .10000E-03    5.8224       -.14233E-06** at limit **
   5  Prefactor     4.3390        8.1625        .26044E-05   -.13797E-03
   6  Prefactor     .10000E-03    6.4363        .10317E-05** at limit **
   7  Prefactor     23.768        64.058       -.12694E-04   -.64881E-05
   8  norm          10.737        9.3702       -.11209E-06   -.10611E-03
   9  Prefactor     6.4283        6.5404       -.56068E-05   -.60609E-03
  10  Prefactor     17.927        11.338        .55171E-06   -.48228E-04
  11  norm          .10000E-03    11.203       -.16351E-06** at limit **
  12  Prefactor     .10000E-03    1.9219       -.52071E-07** at limit **
  13  Prefactor     18.817        37.690        .37768E-04    .12943E-04
  14  Prefactor     .10000E-03    89.001        .63737E-06** at limit **
  15  norm          .10000E-03    2.2129       -.21358E-07** at limit **
  16  Prefactor     .10000E-03    1.3813       -.69487E-07** at limit **
  17  Prefactor     22.973        18.474       -.67710E-06   -.24465E-04
  18  Prefactor     .10000E-03    6.9259       -.10178E-05** at limit **
  19  Prefactor     .10000E-03    16.299        .32504E-08** at limit **
  20  Prefactor     .10000E-03    5.8858        .19630E-06** at limit **
  21  Prefactor     35.921        30.357       -.45836E-05   -.48019E-05
  22  Normalizat    1.4054        .21458       -.34722E-05    .68801E-04
  23  Prefactor     .63524        .14689        .75227E-06   -.22824E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 15.3298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.33895
  Prefactor  = 0.0001
  Prefactor  = 23.7681
  norm       = 10.7367
  Prefactor  = 6.42833
  Prefactor  = 17.9268
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8168
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.9212
  Normalizat = 1.40539
  Prefactor  = 0.635238
 **********
 **   18 **HESSE 
 **********

 FCN=   5459.038     FROM HESSE     STATUS=OK           376 CALLS     2922 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .28410        .12733E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          15.330        7.5921        .10230E-03   -1.4925    
   3  Prefactor     .10000E-03    2.2875        .10900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8295        .17407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.3390        8.1300        .19342E-03   -1.5291    
   6  Prefactor     .10000E-03    6.6218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.768        64.029        .81787E-04   -1.4733    
   8  norm          10.737        9.3336        .12228E-03   -1.5053    
   9  Prefactor     6.4283        6.5721        .15574E-03   -1.5201    
  10  Prefactor     17.927        11.351        .94593E-04   -1.4861    
  11  norm          .10000E-03    11.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.0102        .19974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.817        37.817        .92277E-04   -1.4840    
  14  Prefactor     .10000E-03    90.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2203        .10732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3891        .84747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.973        18.472        .83568E-04   -1.4749    
  18  Prefactor     .10000E-03    6.9281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8959        .17505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.921        30.345        .66868E-04   -1.4509    
  22  Normalizat    1.4054        .25158        .24619E-03   -.80473    
  23  Prefactor     .63524        .17144        .24605E-03   -1.0612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66441e-10
Minuit parameter uncertainties:
  1  3.16795e-05
  2  7.59254
  3  2.88169e-06
  4  1.09963e-05
  5  8.1321
  6  3.44504e-06
  7  64.2145
  8  9.33485
  9  6.57281
  10  11.3525
  11  8.70506e-05
  12  1.67591e-05
  13  37.865
  14  0.000192116
  15  1.49926e-05
  16  2.1031e-06
  17  18.4762
  18  3.40937e-06
  19  1.61441e-05
  20  5.67679e-06
  21  30.3577
  22  0.251798
  23  0.171584
Done.

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

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.074e+01  9.335e+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:  6.352e-01  1.716e-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.405e+00  2.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.64
Ra Dec: 170.364 -5.900
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.24e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.43e-05 +/- 1.25e-05

TS (Fixed Index): 3.64
Ra Dec: 170.364 -5.900
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/685728/likelihoodResults_530409601_530668801_4FGL_J1121.4-0553_daily_bin1123.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) = 5458.97656004
delta logL = 0.0617414681865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5458.97456875
delta logL = 0.0637327598779

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.497       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6369       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3886       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64199       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=   5458.975     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      263 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.497        8.6954        .12367E-03   -.10242E-02
   2  alpha         2.6368        .90072        .19074E-01   -.10512E-03
   3  Normalizat    1.3886        .24760        .24731E-03    .13639E-03
   4  Prefactor     .64193        .17123        .24481E-03    .20136E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.4972
  alpha      = 2.63675
  Normalizat = 1.3886
  Prefactor  = 0.641929
 **********
 **   18 **HESSE 
 **********

 FCN=   5458.975     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.497        8.5301        .24734E-04   -1.5060    
   2  alpha         2.6368        .88331        .76296E-03    .54729E-01
   3  Normalizat    1.3886        .24760        .49462E-04   -.80959    
   4  Prefactor     .64193        .17126        .97925E-05   -1.0585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69383e-09
Minuit parameter uncertainties:
  1  8.53106
  2  0.902871
  3  0.247813
  4  0.171403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/685728': 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) = 5458.97456863
delta logL = 0.0637328827142

Extracting fit parameters...

4FGL J1121.4-0553
   Spectrum: LogParabola
294         norm:  1.050e+01  8.531e+00  1.000e-04  1.000e+04 ( 1.000e-12)
295        alpha:  2.637e+00  9.029e-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:  6.419e-01  1.714e-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.389e+00  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 170.364 -5.900
Photon Index (Free Index): 2.64 +/- 0.90
Photon Flux (Free Index): 5.87e-08 +/- 6.31e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.19e-05

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/685728/cmap_HighResolution_530409601_530668801_4FGL_J1121.4-0553_daily_bin1123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.34e-05', comment='SUCCESS', photon_flux='4.24e-08', energy_flux2='1.52e-05', photon_flux_error='3.69e-08', dlogl='6.37e-02', energy_flux='1.43e-05', photon_flux2='5.87e-08', job_status='DONE', time_completed='2021-09-03 16:57:57.077481', photon_index_error2='0.90', photon_index2='2.64', ts='3.64', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.19e-05', EG='1.41', time_epoch_completed='1630713477.08', return_code='0', job_id='685728', GAL2='0.64', EG2='1.39', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='6.31e-08', ts2='3.77', photon_index='2.31' WHERE bin_id='1123' AND source_name='4FGL J1121.4-0553' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 16:57:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 685728: <4FGL_J1121.4-0553_daily_bin1123> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1121.4-0553_daily_bin1123 170.364 -5.8997 530409601 530668801 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 :                                   666.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            686 sec.

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

