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


Performing analysis on: 4FGL_J1421.1-1120_daily_bin682
RA = 215.287, Dec = -11.3393
tmin = 416102401, tmax = 416361601
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='375362', job_status='RUN', time_executed='2021-09-09 11:19:28.357324', time_epoch_executed='1631211568.36' WHERE source_name='4FGL J1421.1-1120' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375362

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375362/ft1_4FGL_J1421.1-1120_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375362/ft2_4FGL_J1421.1-1120_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375362/ft1_4FGL_J1421.1-1120_daily_bin682.fits outfile=/scratch/kocevski/375362/ft1_filteredMKT_4FGL_J1421.1-1120_daily_bin682.fits ra=215.287 dec=-11.3393 rad=12.0 tmin=416102401.0 tmax=416361601.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 6.52
user 6.24
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/375362/ft2_4FGL_J1421.1-1120_daily_bin682.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/375362/ft1_filteredMKT_4FGL_J1421.1-1120_daily_bin682.fits evtable="EVENTS" outfile="/scratch/kocevski/375362/ft1_filtered_4FGL_J1421.1-1120_daily_bin682.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.56
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375362/ft1_filtered_4FGL_J1421.1-1120_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/375362/ft2_4FGL_J1421.1-1120_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/375362/ltcube_416102401_416361601_4FGL_J1421.1-1120_daily_bin682.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/375362/ft2_4FGL_J1421.1-1120_daily_bin682.fits
.....................!
real 15.45
user 15.09
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375362/ft1_filtered_4FGL_J1421.1-1120_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/375362/ft2_4FGL_J1421.1-1120_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/375362/ltcube_416102401_416361601_4FGL_J1421.1-1120_daily_bin682.fits outfile=/scratch/kocevski/375362/expmap_416102401_416361601_4FGL_J1421.1-1120_daily_bin682.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/375362/ltcube_416102401_416361601_4FGL_J1421.1-1120_daily_bin682.fits
.....................!
real 193.67
user 188.36
sys 4.68

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/375362/ft1_filtered_4FGL_J1421.1-1120_daily_bin682.fits scfile=/scratch/kocevski/375362/ft2_4FGL_J1421.1-1120_daily_bin682.fits outfile=/scratch/kocevski/375362/cmap_416102401_416361601_4FGL_J1421.1-1120_daily_bin682.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/375362/ft1_filtered_4FGL_J1421.1-1120_daily_bin682.fits scfile=/scratch/kocevski/375362/ft2_4FGL_J1421.1-1120_daily_bin682.fits outfile=/scratch/kocevski/375362/cmap_HighResolution_416102401_416361601_4FGL_J1421.1-1120_daily_bin682.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/375362/ft1_filtered_4FGL_J1421.1-1120_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/375362/ft2_4FGL_J1421.1-1120_daily_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/375362/Model_4FGL_J1421.1-1120_daily_bin682.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/375362/ft1_filtered_4FGL_J1421.1-1120_daily_bin682.fits.....................!
real 84.52
user 83.06
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.623       1.0000         .10000E-03   10000.    
     2 'norm      '    6.4312       1.0000         .10000E-03   10000.    
     3 'norm      '    .14751       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1393       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.3591       1.0000         .10000E-03   10000.    
     7 'norm      '    .73343       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    32.980       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.6901       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.163       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5608       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .73536       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=   10918.93     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     1370 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.621        9.0572       -.27449E-05    .14876E-03
   2  norm          6.4308        10.120       -.52193E-05   -.74504E-04
   3  norm          .18696        2.8853       -.12557E-05    .28397E-03
   4  Prefactor     6.1375        6.6480       -.13692E-05   -.17915E-03
   5  Prefactor     .10000E-03    17.587        .17359E-05** at limit **
   6  norm          3.3590        6.2822        .23838E-05   -.28122E-03
   7  norm          .73344        1.8183       -.12854E-05   -.24448E-02
   8  norm          .10000E-03    2.7837       -.49301E-08** at limit **
   9  norm          32.979        9.6253       -.69527E-06    .23830E-03
  10  Prefactor     6.0355        20.493        .38140E-06   -.28694E-05
  11  Prefactor     .10000E-03    51.660       -.10609E-05** at limit **
  12  norm          3.6891        10.602       -.36686E-05   -.12993E-03
  13  Prefactor     .10000E-03    1.2955        .17516E-06** at limit **
  14  Prefactor     .10000E-03    13.622       -.12313E-05** at limit **
  15  Prefactor     14.146        22.352       -.13112E-04    .74477E-05
  16  Normalizat    1.5609        .18811        .29245E-05    .18249E-03
  17  Prefactor     .73526        .82713E-01    .60799E-06    .47870E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.6211
  norm       = 6.43083
  norm       = 0.18696
  Prefactor  = 6.13753
  Prefactor  = 0.0001
  norm       = 3.35903
  norm       = 0.73344
  norm       = 0.0001
  norm       = 32.9787
  Prefactor  = 6.03547
  Prefactor  = 0.0001
  norm       = 3.68908
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1459
  Normalizat = 1.56091
  Prefactor  = 0.735259
 **********
 **   18 **HESSE 
 **********

 FCN=   10918.93     FROM HESSE     STATUS=OK           227 CALLS     1597 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.621        8.9659        .98234E-04   -1.4892    
   2  norm          6.4308        10.079        .15826E-03   -1.5201    
   3  norm          .18696        19.113        .34166E-02   -1.5622    
   4  Prefactor     6.1375        6.5789        .16203E-03   -1.5212    
   5  Prefactor     .10000E-03    17.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.3590        6.1757        .22080E-03   -1.5341    
   7  norm          .73344        1.8419        .21321E-03   -1.5537    
   8  norm          .10000E-03    2.7882        .17026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          32.979        9.5384        .69775E-04   -1.4559    
  10  Prefactor     6.0355        20.457        .16343E-03   -1.5217    
  11  Prefactor     .10000E-03    52.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.6891        10.627        .21025E-03   -1.5324    
  13  Prefactor     .10000E-03    1.3073        .11613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.146        22.232        .10643E-03   -1.4956    
  16  Normalizat    1.5609        .22002        .30589E-03   -.76081    
  17  Prefactor     .73526        .96883E-01    .19439E-03   -1.0216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37473e-09
Minuit parameter uncertainties:
  1  8.96666
  2  10.0817
  3  3.78093
  4  6.57965
  5  2.98707e-05
  6  6.17683
  7  1.84209
  8  3.47973e-06
  9  9.53882
  10  20.4809
  11  0.000108322
  12  10.6329
  13  1.20032e-05
  14  4.64267e-05
  15  22.2449
  16  0.22016
  17  0.0969053
Done.

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

Extracting fit parameters...

4FGL J1421.1-1120
   Spectrum: PowerLaw
302    Prefactor:  6.035e+00  2.048e+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:  7.353e-01  9.691e-02  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.561e+00  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 215.287 -11.339
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375362/likelihoodResults_416102401_416361601_4FGL_J1421.1-1120_daily_bin682.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) = 10917.3031599
delta logL = 1.62598565274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10917.2968008
delta logL = 1.6323446923

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34558       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8991       1.0000          .0000       10.000    
     3 'Normalizat'    1.4463       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76757       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=   10917.30     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      276 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34512        2.0625        .79472E-02    .27512E-02
   2  Index         4.8998        1.6779        .12369        .27052E-03
   3  Normalizat    1.4463        .42735E-01    .71188E-01    .18310E-04
   4  Prefactor     .76758        .19609E-01    .43294E-01    .23021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.345122
  Index      = 4.89979
  Normalizat = 1.44634
  Prefactor  = 0.767581
 **********
 **   18 **HESSE 
 **********

 FCN=   10917.30     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      311 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34512        6.0781        .36044E-03   -1.5590    
   2  Index         4.8998        3.4881        .42947E-02   -.20044E-01
   3  Normalizat    1.4463        .16861        .31497E-03   -.79298    
   4  Prefactor     .76758        .75767E-01    .19055E-03   -1.0093    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.61934e-07
Minuit parameter uncertainties:
  1  2.8966
  2  3.8606
  3  0.168676
  4  0.0757768
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375362': 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) = 10917.2968007
delta logL = 1.63234483565

Extracting fit parameters...

4FGL J1421.1-1120
   Spectrum: PowerLaw
302    Prefactor:  3.451e-01  2.897e+00  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  4.900e+00  3.861e+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:  7.676e-01  7.578e-02  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.446e+00  1.687e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 215.287 -11.339
Photon Index (Free Index): 4.90 +/- 3.86
Photon Flux (Free Index): 1.11e-07 +/- 6.56e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.10e-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/375362/cmap_HighResolution_416102401_416361601_4FGL_J1421.1-1120_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.09e-03', comment='SUCCESS', energy_flux2='1.49e-05', dlogl='1.63e+00', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-09 11:31:11.116620', photon_index_error2='3.86', photon_index2='4.90', ts='0.10', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='1.10e-05', EG='1.56', time_epoch_completed='1631212271.12', return_code='0', job_id='375362', GAL2='0.77', EG2='1.45', return_code2='102', photon_flux_error2='6.56e-08', ts2='3.72', photon_index='2.37' WHERE bin_id='682' AND source_name='4FGL J1421.1-1120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:31:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 375362: <4FGL_J1421.1-1120_daily_bin682> in cluster <slac> Done

Job <4FGL_J1421.1-1120_daily_bin682> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 11:16:14 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:16:16 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:16:16 2021
Terminated at Thu Sep  9 11:31:11 2021
Results reported at Thu Sep  9 11:31:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1-1120_daily_bin682 215.287 -11.3393 416102401 416361601 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 :                                   699.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

