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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin570
RA = 200.551, Dec = 8.7036
tmin = 387072001, tmax = 387331201
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='512171', job_status='RUN', time_executed='2021-09-07 14:06:06.173936', time_epoch_executed='1631048766.17' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512171/ft1_4FGL_J1322.2+0842_daily_bin570.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512171/ft2_4FGL_J1322.2+0842_daily_bin570.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512171/ft1_4FGL_J1322.2+0842_daily_bin570.fits outfile=/scratch/kocevski/512171/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin570.fits ra=200.551 dec=8.7036 rad=12.0 tmin=387072001.0 tmax=387331201.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.41
user 3.20
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512171/ft1_filtered_4FGL_J1322.2+0842_daily_bin570.fits evtable="EVENTS" scfile=/scratch/kocevski/512171/ft2_4FGL_J1322.2+0842_daily_bin570.fits sctable="SC_DATA" expcube=/scratch/kocevski/512171/ltcube_387072001_387331201_4FGL_J1322.2+0842_daily_bin570.fits outfile=/scratch/kocevski/512171/expmap_387072001_387331201_4FGL_J1322.2+0842_daily_bin570.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/512171/ltcube_387072001_387331201_4FGL_J1322.2+0842_daily_bin570.fits
.....................!
real 194.52
user 188.48
sys 5.54

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/512171/ft1_filtered_4FGL_J1322.2+0842_daily_bin570.fits scfile=/scratch/kocevski/512171/ft2_4FGL_J1322.2+0842_daily_bin570.fits outfile=/scratch/kocevski/512171/cmap_387072001_387331201_4FGL_J1322.2+0842_daily_bin570.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/512171/ft1_filtered_4FGL_J1322.2+0842_daily_bin570.fits scfile=/scratch/kocevski/512171/ft2_4FGL_J1322.2+0842_daily_bin570.fits outfile=/scratch/kocevski/512171/cmap_HighResolution_387072001_387331201_4FGL_J1322.2+0842_daily_bin570.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.58
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3813       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.598       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2240       1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.446       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.412       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6281       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.846       1.0000         .10000E-03   10000.    
     9 'Prefactor '    99.572       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 '    .10146E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .45065       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2826       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .86194       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=   5508.802     FROM MIGRAD    STATUS=CONVERGED    333 CALLS     1632 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3805        2.2668        .18883E-07    .73138E-04
   2  Prefactor     23.587        38.517       -.18986E-04    .10940E-05
   3  Prefactor     19.972        38.081       -.26774E-04   -.11969E-04
   4  Prefactor     3.2221        13.936        .46823E-05   -.66492E-04
   5  Prefactor     13.434        14.423        .20537E-05   -.22431E-04
   6  Prefactor     13.403        18.499       -.49768E-05   -.31241E-06
   7  Prefactor     7.6235        9.7773       -.23844E-05   -.37465E-04
   8  Prefactor     23.834        30.310       -.16847E-04    .88794E-05
   9  Prefactor     99.545        67.357       -.26728E-04    .93187E-05
  10  norm          .10000E-03    23.245        .15921E-06** at limit **
  11  Prefactor     .10000E-03    2.7216       -.19872E-07** at limit **
  12  Prefactor     .10000E-03    32.485       -.14913E-05** at limit **
  13  Prefactor     .10000E-03    8.2506        .39195E-06** at limit **
  14  Prefactor     .10000E-03    5.9905        .17465E-07** at limit **
  15  Prefactor     .16419        11.200       -.20529E-05    .42123E-04
  16  Normalizat    1.2827        .21383        .31014E-05    .10028E-03
  17  Prefactor     .86216        .16945        .35148E-05    .15038E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.38051
  Prefactor  = 23.5868
  Prefactor  = 19.9724
  Prefactor  = 3.22212
  Prefactor  = 13.4337
  Prefactor  = 13.4028
  Prefactor  = 7.62349
  Prefactor  = 23.8339
  Prefactor  = 99.545
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.164185
  Normalizat = 1.28272
  Prefactor  = 0.862159
 **********
 **   18 **HESSE 
 **********

 FCN=   5508.802     FROM HESSE     STATUS=OK           237 CALLS     1869 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3805        2.2679        .64471E-04   -1.5203    
   2  Prefactor     23.587        38.530        .82458E-04   -1.4736    
   3  Prefactor     19.972        37.874        .89574E-04   -1.4814    
   4  Prefactor     3.2221        13.590        .22561E-03   -1.5349    
   5  Prefactor     13.434        14.386        .10924E-03   -1.4975    
   6  Prefactor     13.403        18.506        .10937E-03   -1.4976    
   7  Prefactor     7.6235        9.7793        .14520E-03   -1.5156    
   8  Prefactor     23.834        30.318        .82028E-04   -1.4731    
   9  Prefactor     99.545        67.447        .20144E-03   -1.3709    
  10  norm          .10000E-03    23.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7655        .11949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    32.929        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.6157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.0080        .17741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .16419        18.730        .77263E-01   -1.5627    
  16  Normalizat    1.2827        .25677        .25223E-03   -.84084    
  17  Prefactor     .86216        .20278        .24293E-03   -.97476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3379e-10
Minuit parameter uncertainties:
  1  2.26791
  2  38.5705
  3  37.9191
  4  13.2397
  5  14.3901
  6  18.5143
  7  9.78134
  8  30.3373
  9  67.4994
  10  3.49457e-05
  11  5.09757e-06
  12  0.000115483
  13  0.000117881
  14  5.34519e-06
  15  3.50732
  16  0.257029
  17  0.202961
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  7.623e+00  9.781e+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:  8.622e-01  2.030e-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.283e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/512171/likelihoodResults_387072001_387331201_4FGL_J1322.2+0842_daily_bin570.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) = 5508.7574516
delta logL = 0.0445517948283

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5508.75396054
delta logL = 0.0480428584178

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8981       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0068       1.0000          .0000       10.000    
     3 'Normalizat'    1.2904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85735       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=   5508.754     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      241 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8919        550.78        .31842E-02    .17402E-03
   2  Index         2.0075        5.2137        .19227        .12193E-03
   3  Normalizat    1.2903        .11539        .56889E-01   -.12480E-03
   4  Prefactor     .85749        .68400E-01    .44459E-01   -.50758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.89191
  Index      = 2.00753
  Normalizat = 1.29032
  Prefactor  = 0.857493
 **********
 **   18 **HESSE 
 **********

 FCN=   5508.754     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8919        13.626        .12737E-03   -1.5079    
   2  Index         2.0075        .77948        .10247E-01   -.64162    
   3  Normalizat    1.2903        .24877        .25157E-03   -.83856    
   4  Prefactor     .85749        .20189        .24349E-03   -.97643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10552e-09
Minuit parameter uncertainties:
  1  13.6304
  2  0.784482
  3  0.248998
  4  0.202065
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512171': 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) = 5508.75395967
delta logL = 0.0480437302776

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  9.892e+00  1.363e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.008e+00  7.845e-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:  8.575e-01  2.021e-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.290e+00  2.490e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.87
Ra Dec: 200.551 8.704

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/512171/cmap_HighResolution_387072001_387331201_4FGL_J1322.2+0842_daily_bin570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.90e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-07 14:14:49.644944', job_id='512171', GAL2='0.86', fit_tolerance='1e-08', EG2='1.29', EG='1.28', time_epoch_completed='1631049289.65', return_code2='0', ts='0.87', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='4.80e-02', ts2='0.96', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='570' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:14:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 512171: <4FGL_J1322.2+0842_daily_bin570> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin570 200.551 8.7036 387072001 387331201 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 :                                   523.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             389.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            555 sec.

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

