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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin423
RA = 200.551, Dec = 8.7036
tmin = 348969601, tmax = 349228801
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='511959', job_status='RUN', time_executed='2021-09-07 14:07:25.293522', time_epoch_executed='1631048845.29' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511959

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511959/ft1_4FGL_J1322.2+0842_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511959/ft2_4FGL_J1322.2+0842_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511959/ft1_4FGL_J1322.2+0842_daily_bin423.fits outfile=/scratch/kocevski/511959/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin423.fits ra=200.551 dec=8.7036 rad=12.0 tmin=348969601.0 tmax=349228801.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.79
user 3.55
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511959/ft2_4FGL_J1322.2+0842_daily_bin423.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/511959/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin423.fits evtable="EVENTS" outfile="/scratch/kocevski/511959/ft1_filtered_4FGL_J1322.2+0842_daily_bin423.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.51
user 0.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511959/ft1_filtered_4FGL_J1322.2+0842_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/511959/ft2_4FGL_J1322.2+0842_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/511959/ltcube_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.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/511959/ft2_4FGL_J1322.2+0842_daily_bin423.fits
.....................!
real 14.08
user 13.73
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511959/ft1_filtered_4FGL_J1322.2+0842_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/511959/ft2_4FGL_J1322.2+0842_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/511959/ltcube_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.fits outfile=/scratch/kocevski/511959/expmap_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.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/511959/ltcube_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.fits
.....................!
real 191.65
user 185.93
sys 5.23

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/511959/ft1_filtered_4FGL_J1322.2+0842_daily_bin423.fits scfile=/scratch/kocevski/511959/ft2_4FGL_J1322.2+0842_daily_bin423.fits outfile=/scratch/kocevski/511959/cmap_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511959/ft1_filtered_4FGL_J1322.2+0842_daily_bin423.fits scfile=/scratch/kocevski/511959/ft2_4FGL_J1322.2+0842_daily_bin423.fits outfile=/scratch/kocevski/511959/cmap_HighResolution_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511959/ft1_filtered_4FGL_J1322.2+0842_daily_bin423.fits', '/scratch/kocevski/511959/ft2_4FGL_J1322.2+0842_daily_bin423.fits', expMap='/scratch/kocevski/511959/expmap_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.fits', expCube='/scratch/kocevski/511959/ltcube_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511959/Model_4FGL_J1322.2+0842_daily_bin423.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/511959/ft1_filtered_4FGL_J1322.2+0842_daily_bin423.fits
Spacecraft file(s): /scratch/kocevski/511959/ft2_4FGL_J1322.2+0842_daily_bin423.fits
Exposure map: /scratch/kocevski/511959/expmap_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.fits
Exposure cube: /scratch/kocevski/511959/ltcube_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511959/Model_4FGL_J1322.2+0842_daily_bin423.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) = 7515.47532518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5068       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .35916       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.183       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.2853       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.5542       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.179       1.0000         .10000E-03   10000.    
    10 'norm      '    5.7215       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.542       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3604       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6438       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.6817       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .69411       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7515.466     FROM MIGRAD    STATUS=CONVERGED    359 CALLS     1646 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5075        1.4053       -.12940E-06   -.71290E-03
   2  Prefactor     .10000E-03    139.48        .36899E-04** at limit **
   3  Prefactor     .27298        24.099       -.38136E-05    .24789E-03
   4  Prefactor     .10000E-03    4.0458        .14902E-07** at limit **
   5  Prefactor     11.188        13.216        .23936E-05    .28552E-04
   6  Prefactor     5.2883        11.183        .86705E-06   -.76590E-04
   7  Prefactor     3.5644        11.953       -.66455E-05   -.11977E-03
   8  Prefactor     .10000E-03    13.020        .85045E-08** at limit **
   9  Prefactor     18.178        33.792       -.24441E-05    .92608E-07
  10  norm          5.8039        27.165        .30481E-04   -.20082E-04
  11  Prefactor     .10000E-03    2.7912        .50206E-07** at limit **
  12  Prefactor     47.519        24.083       -.28518E-05   -.46079E-05
  13  Prefactor     2.3606        2.3783        .67830E-07    .26847E-03
  14  Prefactor     7.6353        8.1943        .92513E-07    .19187E-04
  15  Prefactor     .10000E-03    25.570       -.10127E-06** at limit **
  16  Normalizat    1.6817        .19438        .12673E-05   -.33474E-04
  17  Prefactor     .69415        .14975       -.13502E-05    .11300E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.50746
  Prefactor  = 0.000100002
  Prefactor  = 0.272981
  Prefactor  = 0.0001
  Prefactor  = 11.1876
  Prefactor  = 5.28825
  Prefactor  = 3.56441
  Prefactor  = 0.0001
  Prefactor  = 18.1784
  norm       = 5.80394
  Prefactor  = 0.0001
  Prefactor  = 47.5189
  Prefactor  = 2.36061
  Prefactor  = 7.63535
  Prefactor  = 0.0001
  Normalizat = 1.68167
  Prefactor  = 0.694152
 **********
 **   18 **HESSE 
 **********

 FCN=   7515.466     FROM HESSE     STATUS=OK           235 CALLS     1881 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5075        1.3919        .95923E-04   -1.5462    
   2  Prefactor     .10000E-03    142.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .27298        25.991        .13895       -1.5603    
   4  Prefactor     .10000E-03    4.0544        .17023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.188        13.256        .11980E-03   -1.5039    
   6  Prefactor     5.2883        11.166        .17483E-03   -1.5248    
   7  Prefactor     3.5644        12.019        .21439E-03   -1.5330    
   8  Prefactor     .10000E-03    13.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.178        33.800        .93937E-04   -1.4855    
  10  norm          5.8039        26.977        .16792E-03   -1.5226    
  11  Prefactor     .10000E-03    2.8525        .14132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.519        24.078        .58154E-04   -1.4328    
  13  Prefactor     2.3606        2.3879        .13071E-03   -1.5401    
  14  Prefactor     7.6353        8.1947        .14505E-03   -1.5155    
  15  Prefactor     .10000E-03    26.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.6817        .23444        .24238E-03   -.72794    
  17  Prefactor     .69415        .17933        .27664E-03   -1.0376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76664e-09
Minuit parameter uncertainties:
  1  1.39198
  2  0.0011564
  3  5.32868
  4  2.49013e-06
  5  13.2592
  6  11.1706
  7  12.0271
  8  4.24351e-06
  9  33.8358
  10  25.0442
  11  8.6539e-06
  12  24.0825
  13  2.38802
  14  8.1959
  15  0.000174243
  16  0.234594
  17  0.179481
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  3.564e+00  1.203e+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:  6.942e-01  1.795e-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.682e+00  2.346e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/511959/likelihoodResults_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.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): 102
logL (Free Index) = 7514.70367311
delta logL = 0.762449522387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7514.69464774
delta logL = 0.771474887543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .82442E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.8322       1.0000          .0000       10.000    
     3 'Normalizat'    1.5870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74456       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=   7514.695     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      337 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79949E-01    .93932        .44064E-02    .76353E-02
   2  Index         4.8451        2.1599        .91554E-01    .33317E-03
   3  Normalizat    1.5877        .42525E-01    .56079E-01    .17457E-04
   4  Prefactor     .74413        .33092E-01    .42991E-01   -.14133E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0799493
  Index      = 4.84506
  Normalizat = 1.58769
  Prefactor  = 0.744132
 **********
 **   18 **HESSE 
 **********

 FCN=   7514.695     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      370 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79949E-01    2.6479        .20042E-03   -1.5651    
   2  Index         4.8451        4.0151        .46214E-02   -.30993E-01
   3  Normalizat    1.5877        .16212        .24796E-03   -.75343    
   4  Prefactor     .74413        .12349        .26780E-03   -1.0182    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.58876e-10
Minuit parameter uncertainties:
  1  0.919682
  2  4.6627
  3  0.162178
  4  0.123531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511959': 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) = 7514.6946377
delta logL = 0.771484931034

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  7.995e-02  9.197e-01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  4.845e+00  4.663e+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:  7.441e-01  1.235e-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.588e+00  1.622e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 200.551 8.704
Photon Index (Free Index): 4.85 +/- 4.66
Photon Flux (Free Index): 7.96e-08 +/- 6.75e-08
Energy Flux (Free Index): 1.07e-05 +/- 1.16e-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/511959/cmap_HighResolution_348969601_349228801_4FGL_J1322.2+0842_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', comment='SUCCESS', energy_flux2='1.07e-05', dlogl='7.71e-01', photon_flux2='7.96e-08', job_status='DONE', time_completed='2021-09-07 14:17:23.525912', photon_index_error2='4.66', photon_index2='4.85', ts='0.10', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.16e-05', EG='1.68', time_epoch_completed='1631049443.53', return_code='0', job_id='511959', GAL2='0.74', EG2='1.59', return_code2='102', photon_flux_error2='6.75e-08', ts2='1.76', photon_index='2.26' WHERE bin_id='423' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:17:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 511959: <4FGL_J1322.2+0842_daily_bin423> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin423> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:05:20 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:05:26 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:05:26 2021
Terminated at Tue Sep  7 14:17:24 2021
Results reported at Tue Sep  7 14:17:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin423 200.551 8.7036 348969601 349228801 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 :                                   598.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            724 sec.

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

