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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin754
RA = 200.551, Dec = 8.7036
tmin = 434764801, tmax = 435024001
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='513502', job_status='RUN', time_executed='2021-09-07 14:14:19.034781', time_epoch_executed='1631049259.03' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513502

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513502/ft1_4FGL_J1322.2+0842_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513502/ft2_4FGL_J1322.2+0842_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513502/ft1_4FGL_J1322.2+0842_daily_bin754.fits outfile=/scratch/kocevski/513502/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin754.fits ra=200.551 dec=8.7036 rad=12.0 tmin=434764801.0 tmax=435024001.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 5.77
user 5.50
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/513502/ft2_4FGL_J1322.2+0842_daily_bin754.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/513502/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/513502/ft1_filtered_4FGL_J1322.2+0842_daily_bin754.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.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513502/ft1_filtered_4FGL_J1322.2+0842_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/513502/ft2_4FGL_J1322.2+0842_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/513502/ltcube_434764801_435024001_4FGL_J1322.2+0842_daily_bin754.fits outfile=/scratch/kocevski/513502/expmap_434764801_435024001_4FGL_J1322.2+0842_daily_bin754.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/513502/ltcube_434764801_435024001_4FGL_J1322.2+0842_daily_bin754.fits
.....................!
real 192.74
user 186.93
sys 5.13

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/513502/ft1_filtered_4FGL_J1322.2+0842_daily_bin754.fits scfile=/scratch/kocevski/513502/ft2_4FGL_J1322.2+0842_daily_bin754.fits outfile=/scratch/kocevski/513502/cmap_434764801_435024001_4FGL_J1322.2+0842_daily_bin754.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513502/ft1_filtered_4FGL_J1322.2+0842_daily_bin754.fits scfile=/scratch/kocevski/513502/ft2_4FGL_J1322.2+0842_daily_bin754.fits outfile=/scratch/kocevski/513502/cmap_HighResolution_434764801_435024001_4FGL_J1322.2+0842_daily_bin754.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5585       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7804       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.611       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5244       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.2452       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.466       1.0000         .10000E-03   10000.    
    10 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0844       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10811E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.8064       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .55618       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=   8788.441     FROM MIGRAD    STATUS=CONVERGED    328 CALLS     1792 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5583        2.0481        .47136E-02    .53537E-04
   2  Prefactor     .10000E-03    12.794        .90712E-02** at limit **
   3  Prefactor     .10000E-03    22.673        .90712E-02** at limit **
   4  Prefactor     5.7744        13.158        .41763E-02   -.80571E-03
   5  Prefactor     24.976        19.130        .20036E-02   -.19123E-03
   6  Prefactor     23.607        21.057        .20609E-02    .74904E-03
   7  Prefactor     7.5227        6.9607        .36551E-02    .10047E-03
   8  Prefactor     6.2453        14.506        .40158E-02    .67361E-04
   9  Prefactor     13.470        16.546        .27288E-02    .57492E-03
  10  norm          .10000E-03    9.7435        .90712E-02** at limit **
  11  Prefactor     1.0831        2.2536        .11534E-01    .12373E-02
  12  Prefactor     .10000E-03    11.870        .90712E-02** at limit **
  13  Prefactor     .10000E-03    1.1002        .90712E-02** at limit **
  14  Prefactor     .10000E-03    2.4419        .90712E-02** at limit **
  15  Prefactor     .10000E-03    7.7065        .90712E-01** at limit **
  16  Normalizat    1.8066        .18215        .53287E-01   -.10872E-04
  17  Prefactor     .55613        .13157        .66704E-01    .45649E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.5583
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.77443
  Prefactor  = 24.9756
  Prefactor  = 23.6067
  Prefactor  = 7.5227
  Prefactor  = 6.24532
  Prefactor  = 13.4701
  norm       = 0.0001
  Prefactor  = 1.08313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.8066
  Prefactor  = 0.556127
 **********
 **   18 **HESSE 
 **********

 FCN=   8788.441     FROM HESSE     STATUS=OK           225 CALLS     2017 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5583        2.0476        .87352E-04   -1.5281    
   2  Prefactor     .10000E-03    12.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.7744        13.124        .16705E-03   -1.5227    
   5  Prefactor     24.976        19.223        .80143E-04   -1.4708    
   6  Prefactor     23.607        21.086        .82435E-04   -1.4736    
   7  Prefactor     7.5227        6.9623        .14620E-03   -1.5159    
   8  Prefactor     6.2453        14.493        .16063E-03   -1.5208    
   9  Prefactor     13.470        16.545        .10915E-03   -1.4974    
  10  norm          .10000E-03    9.7500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0831        2.1940        .19433E-03   -1.5500    
  12  Prefactor     .10000E-03    11.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1076        .96006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4465        .14306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    74.951        .49987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.8066        .21678        .23557E-03   -.69491    
  17  Prefactor     .55613        .15501        .29521E-03   -1.0947    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.81527e-09
Minuit parameter uncertainties:
  1  2.04764
  2  4.22551e-05
  3  4.7461e-05
  4  13.1309
  5  19.2279
  6  21.0931
  7  6.96303
  8  14.5015
  9  16.5508
  10  1.54009e-06
  11  2.19416
  12  1.53507e-05
  13  1.68318e-06
  14  5.3504e-06
  15  0.000171426
  16  0.216893
  17  0.155129
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  7.523e+00  6.963e+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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  5.561e-01  1.551e-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.807e+00  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.47
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 2.22e-08
Energy Flux (Fixed Index): 9.68e-06 +/- 8.96e-06

TS (Fixed Index): 3.47
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 8.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513502/likelihoodResults_434764801_435024001_4FGL_J1322.2+0842_daily_bin754.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) = 8787.32394985
delta logL = 1.11690054128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8787.30400474
delta logL = 1.13684564508

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6923       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2279       1.0000          .0000       10.000    
     3 'Normalizat'    1.8216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55383       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=   8787.304     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      215 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7056        5.7531        .42090E-02    .47201E-03
   2  Index         1.2290        .41646        .29534       -.20808E-03
   3  Normalizat    1.8216        .17468        .53110E-01    .22738E-03
   4  Prefactor     .55379        .13075        .66841E-01    .43833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.70561
  Index      = 1.22905
  Normalizat = 1.82164
  Prefactor  = 0.553787
 **********
 **   18 **HESSE 
 **********

 FCN=   8787.304     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7056        8.2350        .16836E-03   -1.5230    
   2  Index         1.2290        .66784        .11603E-01   -.85442    
   3  Normalizat    1.8216        .20479        .23479E-03   -.69100    
   4  Prefactor     .55379        .15307        .29583E-03   -1.0957    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26627e-10
Minuit parameter uncertainties:
  1  8.2366
  2  0.672537
  3  0.204885
  4  0.153188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513502': 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) = 8787.3040033
delta logL = 1.13684709117

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  5.706e+00  8.237e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.229e+00  6.725e-01  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:  5.538e-01  1.532e-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.822e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.74
Ra Dec: 200.551 8.704
Photon Index (Free Index): 1.23 +/- 0.67
Photon Flux (Free Index): 5.15e-09 +/- 7.62e-09
Energy Flux (Free Index): 3.94e-05 +/- 5.53e-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/513502/cmap_HighResolution_434764801_435024001_4FGL_J1322.2+0842_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.38e-03', comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='3.94e-05', photon_flux_error='2.22e-08', dlogl='1.14e+00', energy_flux='9.68e-06', photon_flux2='5.15e-09', job_status='DONE', time_completed='2021-09-07 14:25:19.180230', photon_index_error2='0.67', photon_index2='1.23', ts='3.47', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='8.33e-08', energy_flux_error2='5.53e-05', EG='1.81', time_epoch_completed='1631049919.18', return_code='0', job_id='513502', GAL2='0.55', EG2='1.82', return_code2='0', energy_flux_error='8.96e-06', photon_flux_error2='7.62e-09', ts2='5.74', photon_index='2.26' WHERE bin_id='754' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:25:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 513502: <4FGL_J1322.2+0842_daily_bin754> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin754> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 14:10:31 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:11:04 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:11:04 2021
Terminated at Tue Sep  7 14:25:19 2021
Results reported at Tue Sep  7 14:25:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin754 200.551 8.7036 434764801 435024001 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 :                                   659.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            888 sec.

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

