/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 236 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 = 7390
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1421.1-1120_daily_bin401
RA = 215.287, Dec = -11.3393
tmin = 343267201, tmax = 343526401
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='372852', job_status='RUN', time_executed='2021-09-09 11:10:41.435084', time_epoch_executed='1631211041.44' WHERE source_name='4FGL J1421.1-1120' and cadence='daily' and bin_id='401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372852/ft1_4FGL_J1421.1-1120_daily_bin401.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372852/ft2_4FGL_J1421.1-1120_daily_bin401.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372852/ft1_4FGL_J1421.1-1120_daily_bin401.fits outfile=/scratch/kocevski/372852/ft1_filteredMKT_4FGL_J1421.1-1120_daily_bin401.fits ra=215.287 dec=-11.3393 rad=12.0 tmin=343267201.0 tmax=343526401.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.51
user 3.28
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/372852/ft2_4FGL_J1421.1-1120_daily_bin401.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/372852/ft2_4FGL_J1421.1-1120_daily_bin401.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/372852/ft1_filteredMKT_4FGL_J1421.1-1120_daily_bin401.fits evtable="EVENTS" outfile="/scratch/kocevski/372852/ft1_filtered_4FGL_J1421.1-1120_daily_bin401.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372852/ft1_filtered_4FGL_J1421.1-1120_daily_bin401.fits" evtable="EVENTS" scfile=/scratch/kocevski/372852/ft2_4FGL_J1421.1-1120_daily_bin401.fits sctable="SC_DATA" outfile=/scratch/kocevski/372852/ltcube_343267201_343526401_4FGL_J1421.1-1120_daily_bin401.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/372852/ft2_4FGL_J1421.1-1120_daily_bin401.fits
.....................!
real 11.69
user 11.33
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372852/ft1_filtered_4FGL_J1421.1-1120_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/372852/ft2_4FGL_J1421.1-1120_daily_bin401.fits sctable="SC_DATA" expcube=/scratch/kocevski/372852/ltcube_343267201_343526401_4FGL_J1421.1-1120_daily_bin401.fits outfile=/scratch/kocevski/372852/expmap_343267201_343526401_4FGL_J1421.1-1120_daily_bin401.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/372852/ltcube_343267201_343526401_4FGL_J1421.1-1120_daily_bin401.fits
.....................!
real 191.95
user 186.23
sys 5.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 167 point sources and 0 extended sources

Setting source of interest to:
4FGL J1421.1-1120 @ 215.287 -11.3393

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/372852/ft1_filtered_4FGL_J1421.1-1120_daily_bin401.fits scfile=/scratch/kocevski/372852/ft2_4FGL_J1421.1-1120_daily_bin401.fits outfile=/scratch/kocevski/372852/cmap_343267201_343526401_4FGL_J1421.1-1120_daily_bin401.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=215.287 yref=-11.3393 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372852/ft1_filtered_4FGL_J1421.1-1120_daily_bin401.fits scfile=/scratch/kocevski/372852/ft2_4FGL_J1421.1-1120_daily_bin401.fits outfile=/scratch/kocevski/372852/cmap_HighResolution_343267201_343526401_4FGL_J1421.1-1120_daily_bin401.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=215.287 yref=-11.3393 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372852/ft1_filtered_4FGL_J1421.1-1120_daily_bin401.fits evtable="EVENTS" scfile=/scratch/kocevski/372852/ft2_4FGL_J1421.1-1120_daily_bin401.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372852/Model_4FGL_J1421.1-1120_daily_bin401.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/372852/ft1_filtered_4FGL_J1421.1-1120_daily_bin401.fits.....................!
real 88.53
user 87.21
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/372852/ft1_filtered_4FGL_J1421.1-1120_daily_bin401.fits', '/scratch/kocevski/372852/ft2_4FGL_J1421.1-1120_daily_bin401.fits', expMap='/scratch/kocevski/372852/expmap_343267201_343526401_4FGL_J1421.1-1120_daily_bin401.fits', expCube='/scratch/kocevski/372852/ltcube_343267201_343526401_4FGL_J1421.1-1120_daily_bin401.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/372852/Model_4FGL_J1421.1-1120_daily_bin401.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1421.1-1120'

4FGL J1421.1-1120
   Spectrum: PowerLaw
302    Prefactor:  4.817e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.097e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/372852/ft1_filtered_4FGL_J1421.1-1120_daily_bin401.fits
Spacecraft file(s): /scratch/kocevski/372852/ft2_4FGL_J1421.1-1120_daily_bin401.fits
Exposure map: /scratch/kocevski/372852/expmap_343267201_343526401_4FGL_J1421.1-1120_daily_bin401.fits
Exposure cube: /scratch/kocevski/372852/ltcube_343267201_343526401_4FGL_J1421.1-1120_daily_bin401.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/372852/Model_4FGL_J1421.1-1120_daily_bin401.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) = 11829.7735523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .49472       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.936       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.825       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.0790       1.0000         .10000E-03   10000.    
     9 'norm      '    7.4745       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.944       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4414       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13431E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.290       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .51014       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.3711       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11829.76     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     1373 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2850        .11443E-05** at limit **
   2  norm          .49469        6.3902        .10357E-04    .15556E-03
   3  norm          .10000E-03    2.8550       -.23129E-05** at limit **
   4  Prefactor     29.934        4.7869       -.54891E-06   -.37904E-02
   5  Prefactor     42.803        5.7450       -.47637E-06   -.71488E-02
   6  norm          .10000E-03    2.0404        .31376E-06** at limit **
   7  norm          .10000E-03    .54478        .63782E-06** at limit **
   8  norm          7.0789        1.2452        .10747E-06    .19531E-02
   9  norm          7.4752        3.7541       -.10892E-05    .27951E-02
  10  Prefactor     39.919        23.706       -.20463E-05    .13585E-02
  11  Prefactor     .10000E-03    4.1795        .78974E-06** at limit **
  12  norm          4.4426        7.8454       -.15431E-05    .15241E-03
  13  Prefactor     .10000E-03    11.336       -.32486E-05** at limit **
  14  Prefactor     44.538        54.361        .23840E-05   -.56836E-03
  15  Prefactor     .10000E-03    17.479       -.65160E-05** at limit **
  16  Normalizat    .51047        .22538       -.44197E-05   -.34904E-05
  17  Prefactor     1.3710        .11053        .13073E-05   -.67325E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.494694
  norm       = 0.0001
  Prefactor  = 29.9338
  Prefactor  = 42.8025
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.07889
  norm       = 7.47524
  Prefactor  = 39.9186
  Prefactor  = 0.0001
  norm       = 4.44255
  Prefactor  = 0.0001
  Prefactor  = 44.5378
  Prefactor  = 0.0001
  Normalizat = 0.510469
  Prefactor  = 1.37096
 **********
 **   18 **HESSE 
 **********

 FCN=   11829.76     FROM HESSE     STATUS=OK           269 CALLS     1642 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2776        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .49469        2.6200        .55051E-01   -1.5567    
   3  norm          .10000E-03    2.7690        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.934        5.9327        .18307E-02   -1.4613    
   5  Prefactor     42.803        32.536        .15315E-02   -1.4399    
   6  norm          .10000E-03    2.0331        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .54073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.0789        6.8642        .37693E-02   -1.5176    
   9  norm          7.4752        5.8901        .36673E-02   -1.5161    
  10  Prefactor     39.919        23.960        .15855E-02   -1.4443    
  11  Prefactor     .10000E-03    4.1768        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4426        7.9294        .47769E-02   -1.5286    
  13  Prefactor     .10000E-03    4.8217        .57010E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     44.538        71.263        .15061E-02   -1.4372    
  15  Prefactor     .10000E-03    17.417        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .51047        .22891        .12060       -1.1193    
  17  Prefactor     1.3710        .11000        .31473E-01   -.81221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42232e-07
Minuit parameter uncertainties:
  1  6.91586e-07
  2  2.27684
  3  1.79306e-06
  4  5.9328
  5  32.549
  6  3.17795e-07
  7  2.43337e-07
  8  6.86499
  9  5.89053
  10  23.9657
  11  1.22468e-06
  12  7.93126
  13  7.68229e-06
  14  71.4002
  15  1.33753e-05
  16  0.229329
  17  0.11002
Done.

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

Extracting fit parameters...

4FGL J1421.1-1120
   Spectrum: PowerLaw
302    Prefactor:  3.992e+01  2.397e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.097e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.371e+00  1.100e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  5.105e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 215.287 -11.339
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 8.54e-08 +/- 5.12e-08
Energy Flux (Fixed Index): 2.91e-05 +/- 1.75e-05

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) = 11827.5522766
delta logL = 2.20519565844

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11827.4681249
delta logL = 2.28934743011

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9241       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7110       1.0000          .0000       10.000    
     3 'Normalizat'    .39761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4087       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11827.47     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      266 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9158        29.630        .41246E-02    .67513E-03
   2  Index         3.7119        1.8918        .94443E-01    .33375E-03
   3  Normalizat    .39712        .76065E-01    .13596        .10746E-03
   4  Prefactor     1.4089        .36523E-01    .30943E-01   -.24986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.91584
  Index      = 3.71187
  Normalizat = 0.397116
  Prefactor  = 1.40886
 **********
 **   18 **HESSE 
 **********

 FCN=   11827.47     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      299 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9158        45.070        .10072E-03   -1.5221    
   2  Index         3.7119        2.5756        .37096E-02   -.26057    
   3  Normalizat    .39712        .21920        .60214E-03   -1.1745    
   4  Prefactor     1.4089        .11034        .16871E-03   -.80125    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.6899e-10
Minuit parameter uncertainties:
  1  32.6913
  2  2.71644
  3  0.219674
  4  0.110358
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372852': 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): 102
logL (Free Index) = 11827.4681222
delta logL = 2.28935008058

Extracting fit parameters...

4FGL J1421.1-1120
   Spectrum: PowerLaw
302    Prefactor:  5.916e+00  3.269e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  3.712e+00  2.716e+00  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.097e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.409e+00  1.104e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  3.971e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.56
Ra Dec: 215.287 -11.339
Photon Index (Free Index): 3.71 +/- 2.72
Photon Flux (Free Index): 1.59e-07 +/- 6.49e-08
Energy Flux (Free Index): 2.51e-05 +/- 1.80e-05

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/372852/cmap_HighResolution_343267201_343526401_4FGL_J1421.1-1120_daily_bin401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.54e-08', energy_flux2='2.51e-05', photon_flux_error='5.12e-08', dlogl='2.29e+00', energy_flux='2.91e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-09 11:21:26.357218', photon_index_error2='2.72', photon_index2='3.71', ts='4.03', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', energy_flux_error2='1.80e-05', EG='0.51', time_epoch_completed='1631211686.36', return_code='0', job_id='372852', GAL2='1.41', EG2='0.40', return_code2='102', energy_flux_error='1.75e-05', photon_flux_error2='6.49e-08', ts2='9.56', photon_index='2.37' WHERE bin_id='401' AND source_name='4FGL J1421.1-1120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:21:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 372852: <4FGL_J1421.1-1120_daily_bin401> in cluster <slac> Done

Job <4FGL_J1421.1-1120_daily_bin401> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:06:35 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:06:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 11:06:36 2021
Terminated at Thu Sep  9 11:21:27 2021
Results reported at Thu Sep  9 11:21:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1-1120_daily_bin401 215.287 -11.3393 343267201 343526401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1421.1-1120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   643.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             248.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

