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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin867
RA = 200.551, Dec = 8.7036
tmin = 464054401, tmax = 464313601
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='514774', job_status='RUN', time_executed='2021-09-07 14:18:28.698098', time_epoch_executed='1631049508.7' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='867'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514774/ft1_4FGL_J1322.2+0842_daily_bin867.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514774/ft2_4FGL_J1322.2+0842_daily_bin867.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514774/ft1_4FGL_J1322.2+0842_daily_bin867.fits outfile=/scratch/kocevski/514774/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin867.fits ra=200.551 dec=8.7036 rad=12.0 tmin=464054401.0 tmax=464313601.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.44
user 3.20
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/514774/ft2_4FGL_J1322.2+0842_daily_bin867.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514774/ft2_4FGL_J1322.2+0842_daily_bin867.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/514774/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin867.fits evtable="EVENTS" outfile="/scratch/kocevski/514774/ft1_filtered_4FGL_J1322.2+0842_daily_bin867.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.53
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514774/ft1_filtered_4FGL_J1322.2+0842_daily_bin867.fits" evtable="EVENTS" scfile=/scratch/kocevski/514774/ft2_4FGL_J1322.2+0842_daily_bin867.fits sctable="SC_DATA" outfile=/scratch/kocevski/514774/ltcube_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.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/514774/ft2_4FGL_J1322.2+0842_daily_bin867.fits
.....................!
real 15.43
user 15.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514774/ft1_filtered_4FGL_J1322.2+0842_daily_bin867.fits evtable="EVENTS" scfile=/scratch/kocevski/514774/ft2_4FGL_J1322.2+0842_daily_bin867.fits sctable="SC_DATA" expcube=/scratch/kocevski/514774/ltcube_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.fits outfile=/scratch/kocevski/514774/expmap_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.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/514774/ltcube_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.fits
.....................!
real 193.38
user 188.29
sys 4.63

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J1322.2+0842 @ 200.551 8.7036

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/514774/ft1_filtered_4FGL_J1322.2+0842_daily_bin867.fits scfile=/scratch/kocevski/514774/ft2_4FGL_J1322.2+0842_daily_bin867.fits outfile=/scratch/kocevski/514774/cmap_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.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=200.551 yref=8.7036 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514774/ft1_filtered_4FGL_J1322.2+0842_daily_bin867.fits scfile=/scratch/kocevski/514774/ft2_4FGL_J1322.2+0842_daily_bin867.fits outfile=/scratch/kocevski/514774/cmap_HighResolution_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.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=200.551 yref=8.7036 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/514774/ft1_filtered_4FGL_J1322.2+0842_daily_bin867.fits evtable="EVENTS" scfile=/scratch/kocevski/514774/ft2_4FGL_J1322.2+0842_daily_bin867.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/514774/Model_4FGL_J1322.2+0842_daily_bin867.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/514774/ft1_filtered_4FGL_J1322.2+0842_daily_bin867.fits.....................!
real 52.60
user 51.09
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514774/ft1_filtered_4FGL_J1322.2+0842_daily_bin867.fits', '/scratch/kocevski/514774/ft2_4FGL_J1322.2+0842_daily_bin867.fits', expMap='/scratch/kocevski/514774/expmap_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.fits', expCube='/scratch/kocevski/514774/ltcube_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514774/Model_4FGL_J1322.2+0842_daily_bin867.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1322.2+0842'

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.652e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/514774/ft1_filtered_4FGL_J1322.2+0842_daily_bin867.fits
Spacecraft file(s): /scratch/kocevski/514774/ft2_4FGL_J1322.2+0842_daily_bin867.fits
Exposure map: /scratch/kocevski/514774/expmap_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.fits
Exposure cube: /scratch/kocevski/514774/ltcube_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514774/Model_4FGL_J1322.2+0842_daily_bin867.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) = 6312.97210127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.675       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6268       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.740       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9461       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.3854       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .28181E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6547       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5795       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .81447       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5500E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6312.964     FROM MIGRAD    STATUS=CONVERGED    338 CALLS     1613 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .81064        .90712E-02** at limit **
   2  Prefactor     .10000E-03    22.147        .90712E-02** at limit **
   3  Prefactor     .10011E-03    42.666        .90712E-02** at limit **
   4  Prefactor     19.672        17.856        .22574E-02   -.23509E-03
   5  Prefactor     7.6302        16.375        .36302E-02    .12016E-02
   6  Prefactor     24.739        20.127        .20134E-02    .15176E-03
   7  Prefactor     8.9467        15.194        .33501E-02    .10663E-02
   8  Prefactor     2.2606        140.88        .66300E-02    .47755E-04
   9  Prefactor     .10001E-03    60.624        .90712E-02** at limit **
  10  norm          .10000E-03    8.0171        .90712E-02** at limit **
  11  Prefactor     .10000E-03    2.7312        .90712E-02** at limit **
  12  Prefactor     .10023E-03    43.126        .90712E-02** at limit **
  13  Prefactor     .10000E-03    2.7292        .68129E-01** at limit **
  14  Prefactor     2.6563        17.668        .62547E-02    .28485E-03
  15  Prefactor     .10000E-03    18.208        .90712E-02** at limit **
  16  Normalizat    1.5792        .22098        .57852E-01   -.19727E-03
  17  Prefactor     .81481        .16390        .43905E-01   -.20118E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100107
  Prefactor  = 19.6721
  Prefactor  = 7.63019
  Prefactor  = 24.7387
  Prefactor  = 8.94668
  Prefactor  = 2.26058
  Prefactor  = 0.000100014
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100228
  Prefactor  = 0.0001
  Prefactor  = 2.65634
  Prefactor  = 0.000100001
  Normalizat = 1.57918
  Prefactor  = 0.814814
 **********
 **   18 **HESSE 
 **********

 FCN=   6312.964     FROM HESSE     STATUS=OK           221 CALLS     1834 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .83099        .13963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10011E-03    42.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.672        17.922        .90296E-04   -1.4821    
   5  Prefactor     7.6302        16.380        .72605E-03   -1.5155    
   6  Prefactor     24.739        20.132        .80535E-04   -1.4713    
   7  Prefactor     8.9467        15.266        .67003E-03   -1.5110    
   8  Prefactor     2.2606        141.37        .26520E-03   -1.5407    
   9  Prefactor     .10001E-03    60.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.0172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7653        .12815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10023E-03    43.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8035        .25252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6563        17.594        .25019E-03   -1.5382    
  15  Prefactor     .10000E-03    18.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.5792        .26516        .25582E-03   -.75577    
  17  Prefactor     .81481        .19390        .26072E-03   -.99185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49492e-09
Minuit parameter uncertainties:
  1  3.98026e-06
  2  0.000275737
  3  0.00426868
  4  17.9273
  5  16.3901
  6  20.1376
  7  15.2726
  8  35.8419
  9  0.00186878
  10  3.36901e-05
  11  1.62025e-05
  12  0.00632697
  13  2.23184e-05
  14  13.6782
  15  0.000240898
  16  0.265394
  17  0.19406
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  8.947e+00  1.527e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.148e-01  1.941e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.579e+00  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.41
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514774/likelihoodResults_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.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) = 6310.27705438
delta logL = 2.68723229236

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6310.22007383
delta logL = 2.74421284321

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6310.220     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      265 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .89088        5.4534        .74991E-02    .79497E-03
   2  Index         4.2035        1.8780        .68560E-01    .22088E-03
   3  Normalizat    1.3892        .70104E-01    .60815E-01    .33222E-05
   4  Prefactor     .90374        .53399E-01    .45052E-01    .67982E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.890883
  Index      = 4.20349
  Normalizat = 1.38917
  Prefactor  = 0.903744
 **********
 **   18 **HESSE 
 **********

 FCN=   6310.220     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .89088        9.2269        .33599E-04   -1.5519    
   2  Index         4.2035        2.6195        .28056E-02   -.15998    
   3  Normalizat    1.3892        .24113        .26897E-03   -.80942    
   4  Prefactor     .90374        .18216        .24864E-03   -.96010    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.35984e-10
Minuit parameter uncertainties:
  1  5.73496
  2  2.76125
  3  0.241329
  4  0.182279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514774': 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) = 6310.2200729
delta logL = 2.74421376908

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  8.909e-01  5.735e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  4.203e+00  2.761e+00  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.037e-01  1.823e-01  0.000e+00  1.000e+01 ( 1.000e+00)
548        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
549        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.389e+00  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.37
Ra Dec: 200.551 8.704
Photon Index (Free Index): 4.20 +/- 2.76
Photon Flux (Free Index): 1.94e-07 +/- 9.24e-08
Energy Flux (Free Index): 2.81e-05 +/- 1.66e-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/514774/cmap_HighResolution_464054401_464313601_4FGL_J1322.2+0842_daily_bin867.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', energy_flux2='2.81e-05', dlogl='2.74e+00', photon_flux2='1.94e-07', job_status='DONE', time_completed='2021-09-07 14:27:30.982326', photon_index_error2='2.76', photon_index2='4.20', ts='0.41', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.66e-05', EG='1.58', time_epoch_completed='1631050050.98', return_code='0', job_id='514774', GAL2='0.90', EG2='1.39', return_code2='102', photon_flux_error2='9.24e-08', ts2='6.37', photon_index='2.26' WHERE bin_id='867' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:27:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 514774: <4FGL_J1322.2+0842_daily_bin867> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin867> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:15:26 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:16:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:16:17 2021
Terminated at Tue Sep  7 14:27:31 2021
Results reported at Tue Sep  7 14:27:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin867 200.551 8.7036 464054401 464313601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1322.2+0842 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   542.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            725 sec.

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

