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


Performing analysis on: 4FGL_J1421.1-1120_daily_bin405
RA = 215.287, Dec = -11.3393
tmin = 344304001, tmax = 344563201
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='372858', job_status='RUN', time_executed='2021-09-09 11:10:36.315149', time_epoch_executed='1631211036.32' WHERE source_name='4FGL J1421.1-1120' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372858

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372858/ft1_4FGL_J1421.1-1120_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372858/ft2_4FGL_J1421.1-1120_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372858/ft1_4FGL_J1421.1-1120_daily_bin405.fits outfile=/scratch/kocevski/372858/ft1_filteredMKT_4FGL_J1421.1-1120_daily_bin405.fits ra=215.287 dec=-11.3393 rad=12.0 tmin=344304001.0 tmax=344563201.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.41
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/372858/ft2_4FGL_J1421.1-1120_daily_bin405.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/372858/ft1_filteredMKT_4FGL_J1421.1-1120_daily_bin405.fits evtable="EVENTS" outfile="/scratch/kocevski/372858/ft1_filtered_4FGL_J1421.1-1120_daily_bin405.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372858/ft1_filtered_4FGL_J1421.1-1120_daily_bin405.fits" evtable="EVENTS" scfile=/scratch/kocevski/372858/ft2_4FGL_J1421.1-1120_daily_bin405.fits sctable="SC_DATA" outfile=/scratch/kocevski/372858/ltcube_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.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/372858/ft2_4FGL_J1421.1-1120_daily_bin405.fits
.....................!
real 12.43
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372858/ft1_filtered_4FGL_J1421.1-1120_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/372858/ft2_4FGL_J1421.1-1120_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/372858/ltcube_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.fits outfile=/scratch/kocevski/372858/expmap_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.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/372858/ltcube_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.fits
.....................!
real 191.03
user 185.63
sys 5.02

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/372858/ft1_filtered_4FGL_J1421.1-1120_daily_bin405.fits scfile=/scratch/kocevski/372858/ft2_4FGL_J1421.1-1120_daily_bin405.fits outfile=/scratch/kocevski/372858/cmap_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372858/ft1_filtered_4FGL_J1421.1-1120_daily_bin405.fits scfile=/scratch/kocevski/372858/ft2_4FGL_J1421.1-1120_daily_bin405.fits outfile=/scratch/kocevski/372858/cmap_HighResolution_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372858/ft1_filtered_4FGL_J1421.1-1120_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/372858/ft2_4FGL_J1421.1-1120_daily_bin405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372858/Model_4FGL_J1421.1-1120_daily_bin405.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/372858/ft1_filtered_4FGL_J1421.1-1120_daily_bin405.fits.....................!
real 78.86
user 77.50
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/372858/ft1_filtered_4FGL_J1421.1-1120_daily_bin405.fits', '/scratch/kocevski/372858/ft2_4FGL_J1421.1-1120_daily_bin405.fits', expMap='/scratch/kocevski/372858/expmap_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.fits', expCube='/scratch/kocevski/372858/ltcube_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/372858/Model_4FGL_J1421.1-1120_daily_bin405.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/372858/ft1_filtered_4FGL_J1421.1-1120_daily_bin405.fits
Spacecraft file(s): /scratch/kocevski/372858/ft2_4FGL_J1421.1-1120_daily_bin405.fits
Exposure map: /scratch/kocevski/372858/expmap_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.fits
Exposure cube: /scratch/kocevski/372858/ltcube_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/372858/Model_4FGL_J1421.1-1120_daily_bin405.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) = 10192.8280914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    4.2293       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    64.979       1.0000         .10000E-03   10000.    
     5 'Prefactor '    30.876       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.6656       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.640       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.517       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7174       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3322       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94903       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10192.83     FROM MIGRAD    STATUS=CONVERGED    324 CALLS     1572 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5527         .0000    ** at limit **
   2  norm          4.2292        4.3156         .0000       -.21577E-02
   3  norm          .10000E-03    .95963         .0000    ** at limit **
   4  Prefactor     64.979        8.7186         .0000       -.43809E-03
   5  Prefactor     30.876        38.770         .0000       -.66042E-04
   6  norm          .10000E-03    1.9967         .0000    ** at limit **
   7  norm          1.6655        2.0288         .0000        .78915E-03
   8  norm          .10000E-03    6.7210         .0000    ** at limit **
   9  norm          16.641        7.9822         .0000       -.30402E-04
  10  Prefactor     19.518        18.871         .0000       -.10221E-03
  11  Prefactor     .10000E-03    7.8866         .0000    ** at limit **
  12  norm          2.7174        9.4680         .0000        .27780E-03
  13  Prefactor     3.9059        4.1272         .0000        .84759E-02
  14  Prefactor     .10000E-03    38.803         .0000    ** at limit **
  15  Prefactor     .10000E-03    15.082         .0000    ** at limit **
  16  Normalizat    1.3321        .21471         .0000        .13808E-04
  17  Prefactor     .94905        .97854E-01     .0000       -.47229E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 4.22917
  norm       = 0.0001
  Prefactor  = 64.9794
  Prefactor  = 30.8757
  norm       = 0.0001
  norm       = 1.66553
  norm       = 0.0001
  norm       = 16.6408
  Prefactor  = 19.5178
  Prefactor  = 0.0001
  norm       = 2.71736
  Prefactor  = 3.90586
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.33211
  Prefactor  = 0.949055
 **********
 **   18 **HESSE 
 **********

 FCN=   10192.83     FROM HESSE     STATUS=OK           221 CALLS     1793 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5599        .12277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2292        4.3080        .19594E-03   -1.5297    
   3  norm          .10000E-03    .96117        .96575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     64.979        8.7406        .49785E-04   -1.4094    
   5  Prefactor     30.876        38.777        .72108E-04   -1.4596    
   6  norm          .10000E-03    2.0010        .13929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.6655        2.0087        .15115E-03   -1.5450    
   8  norm          .10000E-03    6.7674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.641        7.9792        .98184E-04   -1.4892    
  10  Prefactor     19.518        18.871        .90660E-04   -1.4824    
  11  Prefactor     .10000E-03    7.8930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7174        9.4599        .24706E-03   -1.5378    
  13  Prefactor     3.9059        4.1203        .10158E-02   -1.5313    
  14  Prefactor     .10000E-03    38.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3321        .25078        .36384E-03   -.82613    
  17  Prefactor     .94905        .11460        .19642E-03   -.94447    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71486e-09
Minuit parameter uncertainties:
  1  5.68773e-07
  2  4.30834
  3  2.83062e-07
  4  8.74073
  5  38.8082
  6  7.37562e-07
  7  2.00878
  8  1.12976e-05
  9  7.97973
  10  18.877
  11  1.61849e-05
  12  9.46512
  13  4.12064
  14  5.79726e-05
  15  2.50902e-05
  16  0.25101
  17  0.114624
Done.

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

Extracting fit parameters...

4FGL J1421.1-1120
   Spectrum: PowerLaw
302    Prefactor:  1.952e+01  1.888e+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:  9.491e-01  1.146e-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:  1.332e+00  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.68
Ra Dec: 215.287 -11.339
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 4.17e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 1.42e-05 +/- 1.37e-05

TS (Fixed Index): 1.68
Ra Dec: 215.287 -11.339
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/372858/likelihoodResults_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.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) = 10192.8222815
delta logL = 0.00498003200119

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10192.8200901
delta logL = 0.0071714267342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.890       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2738       1.0000          .0000       10.000    
     3 'Normalizat'    1.3374       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94754       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10192.82     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      234 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.889        23.250        .87633E-04    .15646E-03
   2  Index         2.2728        .83323        .98704E-02    .48525E-04
   3  Normalizat    1.3367        .24533        .36333E-03   -.13079E-03
   4  Prefactor     .94777        .11362        .19654E-03   -.28496E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8894
  Index      = 2.2728
  Normalizat = 1.33668
  Prefactor  = 0.947774
 **********
 **   18 **HESSE 
 **********

 FCN=   10192.82     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.889        22.509        .35053E-05   -1.4794    
   2  Index         2.2728        .80596        .39482E-03   -.57691    
   3  Normalizat    1.3367        .24519        .14533E-04   -.82478    
   4  Prefactor     .94777        .11362        .39308E-04   -.94491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14862e-10
Minuit parameter uncertainties:
  1  22.5177
  2  0.811017
  3  0.245406
  4  0.11365
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372858': 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) = 10192.8200841
delta logL = 0.00717746125338

Extracting fit parameters...

4FGL J1421.1-1120
   Spectrum: PowerLaw
302    Prefactor:  2.089e+01  2.252e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  2.273e+00  8.110e-01  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:  9.478e-01  1.137e-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:  1.337e+00  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 215.287 -11.339
Photon Index (Free Index): 2.27 +/- 0.81
Photon Flux (Free Index): 3.80e-08 +/- 4.83e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.64e-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/372858/cmap_HighResolution_344304001_344563201_4FGL_J1421.1-1120_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.17e-08', energy_flux2='1.50e-05', photon_flux_error='4.03e-08', dlogl='7.18e-03', energy_flux='1.42e-05', photon_flux2='3.80e-08', job_status='DONE', time_completed='2021-09-09 11:21:48.595482', photon_index_error2='0.81', photon_index2='2.27', ts='1.68', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.64e-05', EG='1.33', time_epoch_completed='1631211708.6', return_code='0', job_id='372858', GAL2='0.95', EG2='1.34', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='4.83e-08', ts2='1.70', photon_index='2.37' WHERE bin_id='405' AND source_name='4FGL J1421.1-1120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:21:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 372858: <4FGL_J1421.1-1120_daily_bin405> in cluster <slac> Done

Job <4FGL_J1421.1-1120_daily_bin405> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:06:36 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:06:37 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:37 2021
Terminated at Thu Sep  9 11:21:49 2021
Results reported at Thu Sep  9 11:21:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1-1120_daily_bin405 215.287 -11.3393 344304001 344563201 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 :                                   671.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            913 sec.

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

