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


Performing analysis on: 4FGL_J1421.1-1120_daily_bin288
RA = 215.287, Dec = -11.3393
tmin = 313977601, tmax = 314236801
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='372675', job_status='RUN', time_executed='2021-09-09 11:08:54.368519', time_epoch_executed='1631210934.37' WHERE source_name='4FGL J1421.1-1120' and cadence='daily' and bin_id='288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/372675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/372675/ft1_4FGL_J1421.1-1120_daily_bin288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/372675/ft2_4FGL_J1421.1-1120_daily_bin288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/372675/ft1_4FGL_J1421.1-1120_daily_bin288.fits outfile=/scratch/kocevski/372675/ft1_filteredMKT_4FGL_J1421.1-1120_daily_bin288.fits ra=215.287 dec=-11.3393 rad=12.0 tmin=313977601.0 tmax=314236801.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.46
user 3.23
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/372675/ft2_4FGL_J1421.1-1120_daily_bin288.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/372675/ft1_filteredMKT_4FGL_J1421.1-1120_daily_bin288.fits evtable="EVENTS" outfile="/scratch/kocevski/372675/ft1_filtered_4FGL_J1421.1-1120_daily_bin288.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/372675/ft1_filtered_4FGL_J1421.1-1120_daily_bin288.fits" evtable="EVENTS" scfile=/scratch/kocevski/372675/ft2_4FGL_J1421.1-1120_daily_bin288.fits sctable="SC_DATA" outfile=/scratch/kocevski/372675/ltcube_313977601_314236801_4FGL_J1421.1-1120_daily_bin288.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/372675/ft2_4FGL_J1421.1-1120_daily_bin288.fits
.....................!
real 12.22
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/372675/ft1_filtered_4FGL_J1421.1-1120_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/372675/ft2_4FGL_J1421.1-1120_daily_bin288.fits sctable="SC_DATA" expcube=/scratch/kocevski/372675/ltcube_313977601_314236801_4FGL_J1421.1-1120_daily_bin288.fits outfile=/scratch/kocevski/372675/expmap_313977601_314236801_4FGL_J1421.1-1120_daily_bin288.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/372675/ltcube_313977601_314236801_4FGL_J1421.1-1120_daily_bin288.fits
.....................!
real 191.74
user 185.74
sys 5.59

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/372675/ft1_filtered_4FGL_J1421.1-1120_daily_bin288.fits scfile=/scratch/kocevski/372675/ft2_4FGL_J1421.1-1120_daily_bin288.fits outfile=/scratch/kocevski/372675/cmap_313977601_314236801_4FGL_J1421.1-1120_daily_bin288.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/372675/ft1_filtered_4FGL_J1421.1-1120_daily_bin288.fits scfile=/scratch/kocevski/372675/ft2_4FGL_J1421.1-1120_daily_bin288.fits outfile=/scratch/kocevski/372675/cmap_HighResolution_313977601_314236801_4FGL_J1421.1-1120_daily_bin288.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/372675/ft1_filtered_4FGL_J1421.1-1120_daily_bin288.fits evtable="EVENTS" scfile=/scratch/kocevski/372675/ft2_4FGL_J1421.1-1120_daily_bin288.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/372675/Model_4FGL_J1421.1-1120_daily_bin288.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/372675/ft1_filtered_4FGL_J1421.1-1120_daily_bin288.fits.....................!
real 57.44
user 56.07
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92071E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10489E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5780       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.538       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3825       1.0000         .10000E-03   10000.    
     8 'norm      '    19.860       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    46.587       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    54.089       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14337E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3680       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .93001       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=   6643.955     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1589 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    4.9022       -.88815E-06** at limit **
   2  norm          .10000E-03    3.7737       -.46987E-07** at limit **
   3  norm          .10000E-03    7.7792       -.93639E-06** at limit **
   4  Prefactor     9.5759        6.5531        .11985E-07    .11758E-03
   5  Prefactor     27.489        50.004       -.67663E-06   -.30409E-04
   6  norm          .10000E-03    2.1970        .12123E-07** at limit **
   7  norm          3.3823        2.8868        .90489E-07    .27781E-04
   8  norm          19.862        15.964       -.61114E-07   -.46426E-05
   9  norm          .10000E-03    2.5782        .70515E-07** at limit **
  10  Prefactor     46.591        32.640       -.88705E-07    .19718E-04
  11  Prefactor     .10000E-03    7.2794       -.88862E-08** at limit **
  12  norm          .10000E-03    11.268       -.44423E-06** at limit **
  13  Prefactor     .10000E-03    4.2013       -.35602E-05** at limit **
  14  Prefactor     54.010        72.147        .10690E-05    .40048E-04
  15  Prefactor     .10000E-03    77.678       -.54754E-05** at limit **
  16  Normalizat    1.3681        .26044       -.13829E-05    .16367E-03
  17  Prefactor     .92987        .11675        .86126E-06    .15769E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100023
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.57592
  Prefactor  = 27.4893
  norm       = 0.0001
  norm       = 3.38231
  norm       = 19.8616
  norm       = 0.0001
  Prefactor  = 46.591
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.0098
  Prefactor  = 0.0001
  Normalizat = 1.36813
  Prefactor  = 0.929869
 **********
 **   18 **HESSE 
 **********

 FCN=   6643.955     FROM HESSE     STATUS=OK           221 CALLS     1810 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    19.904        .33602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.7902        .15452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.1062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5759        6.5381        .12949E-03   -1.5089    
   5  Prefactor     27.489        49.966        .76343E-04   -1.4659    
   6  norm          .10000E-03    2.1987        .11796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3823        2.8811        .12228E-03   -1.5340    
   8  norm          19.862        15.969        .89876E-04   -1.4816    
   9  norm          .10000E-03    2.5814        .12779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     46.591        32.714        .58744E-04   -1.4342    
  11  Prefactor     .10000E-03    7.2816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2744        .16357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     54.010        72.612        .27269E-03   -1.4237    
  15  Prefactor     .10000E-03    78.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3681        .30075        .34979E-03   -.81555    
  17  Prefactor     .92987        .13516        .18996E-03   -.95105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23305e-09
Minuit parameter uncertainties:
  1  0.00135907
  2  5.61307e-06
  3  1.4151e-06
  4  6.53858
  5  50.0426
  6  6.2316e-07
  7  2.88125
  8  15.9719
  9  5.46327e-07
  10  32.7261
  11  1.89282e-07
  12  4.06344e-06
  13  3.21151e-05
  14  72.7309
  15  0.000172247
  16  0.301137
  17  0.135209
Done.

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

Extracting fit parameters...

4FGL J1421.1-1120
   Spectrum: PowerLaw
302    Prefactor:  4.659e+01  3.273e+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.299e-01  1.352e-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.368e+00  3.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 215.287 -11.339
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 9.96e-08 +/- 6.99e-08
Energy Flux (Fixed Index): 3.39e-05 +/- 2.38e-05

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

Saving results to:
/scratch/kocevski/372675/likelihoodResults_313977601_314236801_4FGL_J1421.1-1120_daily_bin288.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) = 6643.18840161
delta logL = 0.766507661591

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6643.147259
delta logL = 0.807650269676

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.004       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5139       1.0000          .0000       10.000    
     3 'Normalizat'    1.2386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97191       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6643.147     FROM MIGRAD    STATUS=FAILED        80 CALLS      287 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.001        140.01        .12077E-03   -.27812E-02
   2  Index         3.5141        3.4248        .38555E-02   -.10397E-02
   3  Normalizat    1.2385        .33808        .36441E-03   -.60172E-03
   4  Prefactor     .97197        .15300        .18627E-03   -.11962E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6643.147     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      373 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.001        140.01        .27713E-03   -.27812E-02
   2  Index         3.5141        3.4248        .71691E-03   -.10397E-02
   3  Normalizat    1.2385        .33808        .29969E-03   -.60172E-03
   4  Prefactor     .97197        .15300        .13031E-03   -.11962E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6643.147     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      400 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.000        25.240        .48309E-05   -.29172E-02
   2  Index         3.5142        1.2131        .15422E-03   -.84416E-03
   3  Normalizat    1.2385        .31241        .72883E-04   -.55341E-03
   4  Prefactor     .97197        .13959        .37253E-04   -.11262E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9998
  Index      = 3.51418
  Normalizat = 1.23849
  Prefactor  = 0.971971
 **********
 **   18 **HESSE 
 **********

 FCN=   6643.147     FROM HESSE     STATUS=OK            23 CALLS      423 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.000        24.516        .96619E-06   -1.5045    
   2  Index         3.5142        1.1790        .30844E-04   -.30172    
   3  Normalizat    1.2385        .31211        .14577E-04   -.85422    
   4  Prefactor     .97197        .13943        .74506E-05   -.93670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75628e-09
Minuit parameter uncertainties:
  1  24.5382
  2  1.19131
  3  0.312586
  4  0.139477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/372675': 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) = 6643.14725888
delta logL = 0.807650390374

Extracting fit parameters...

4FGL J1421.1-1120
   Spectrum: PowerLaw
302    Prefactor:  1.100e+01  2.454e+01  1.000e-04  1.000e+04 ( 1.000e-13)
303        Index:  3.514e+00  1.191e+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:  9.720e-01  1.395e-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.238e+00  3.126e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.68
Ra Dec: 215.287 -11.339
Photon Index (Free Index): 3.51 +/- 1.19
Photon Flux (Free Index): 1.99e-07 +/- 1.17e-07
Energy Flux (Free Index): 3.29e-05 +/- 1.83e-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/372675/cmap_HighResolution_313977601_314236801_4FGL_J1421.1-1120_daily_bin288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-02', comment='SUCCESS', photon_flux='9.96e-08', energy_flux2='3.29e-05', photon_flux_error='6.99e-08', dlogl='8.08e-01', energy_flux='3.39e-05', photon_flux2='1.99e-07', job_status='DONE', time_completed='2021-09-09 11:18:01.970000', photon_index_error2='1.19', photon_index2='3.51', ts='2.77', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='2.37e-07', energy_flux_error2='1.83e-05', EG='1.37', time_epoch_completed='1631211481.97', return_code='0', job_id='372675', GAL2='0.97', EG2='1.24', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='1.17e-07', ts2='4.68', photon_index='2.37' WHERE bin_id='288' AND source_name='4FGL J1421.1-1120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 11:18:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 372675: <4FGL_J1421.1-1120_daily_bin288> in cluster <slac> Done

Job <4FGL_J1421.1-1120_daily_bin288> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 11:06:17 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 11:06:19 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:19 2021
Terminated at Thu Sep  9 11:18:02 2021
Results reported at Thu Sep  9 11:18:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1421.1-1120_daily_bin288 215.287 -11.3393 313977601 314236801 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 :                                   546.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

