/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 53 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 = 7378
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin29
RA = 200.551, Dec = 8.7036
tmin = 246844801, tmax = 247104001
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='510369', job_status='RUN', time_executed='2021-09-07 14:01:37.302830', time_epoch_executed='1631048497.3' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='29'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510369

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510369/ft1_4FGL_J1322.2+0842_daily_bin29.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510369/ft2_4FGL_J1322.2+0842_daily_bin29.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510369/ft1_4FGL_J1322.2+0842_daily_bin29.fits outfile=/scratch/kocevski/510369/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin29.fits ra=200.551 dec=8.7036 rad=12.0 tmin=246844801.0 tmax=247104001.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 1.48
user 1.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510369/ft1_filtered_4FGL_J1322.2+0842_daily_bin29.fits" evtable="EVENTS" scfile=/scratch/kocevski/510369/ft2_4FGL_J1322.2+0842_daily_bin29.fits sctable="SC_DATA" outfile=/scratch/kocevski/510369/ltcube_246844801_247104001_4FGL_J1322.2+0842_daily_bin29.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/510369/ft2_4FGL_J1322.2+0842_daily_bin29.fits
.....................!
real 17.77
user 17.34
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510369/ft1_filtered_4FGL_J1322.2+0842_daily_bin29.fits evtable="EVENTS" scfile=/scratch/kocevski/510369/ft2_4FGL_J1322.2+0842_daily_bin29.fits sctable="SC_DATA" expcube=/scratch/kocevski/510369/ltcube_246844801_247104001_4FGL_J1322.2+0842_daily_bin29.fits outfile=/scratch/kocevski/510369/expmap_246844801_247104001_4FGL_J1322.2+0842_daily_bin29.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/510369/ltcube_246844801_247104001_4FGL_J1322.2+0842_daily_bin29.fits
.....................!
real 192.44
user 186.55
sys 4.85

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/510369/ft1_filtered_4FGL_J1322.2+0842_daily_bin29.fits scfile=/scratch/kocevski/510369/ft2_4FGL_J1322.2+0842_daily_bin29.fits outfile=/scratch/kocevski/510369/cmap_246844801_247104001_4FGL_J1322.2+0842_daily_bin29.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510369/ft1_filtered_4FGL_J1322.2+0842_daily_bin29.fits scfile=/scratch/kocevski/510369/ft2_4FGL_J1322.2+0842_daily_bin29.fits outfile=/scratch/kocevski/510369/cmap_HighResolution_246844801_247104001_4FGL_J1322.2+0842_daily_bin29.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .93899       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7612       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4308       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.182       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8802       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0561       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.350       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8873       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0644       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.365       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.8713       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .51737       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=   9824.684     FROM MIGRAD    STATUS=CONVERGED    309 CALLS     1365 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .93893        .95496        .12173E-07    .59727E-04
   2  Prefactor     .10000E-03    7.8447        .65651E-06** at limit **
   3  Prefactor     2.7182        89.950       -.21228E-03   -.48933E-04
   4  Prefactor     9.4362        10.732        .16764E-04    .12857E-02
   5  Prefactor     11.181        12.149       -.25708E-05    .50055E-04
   6  Prefactor     4.8836        17.361        .56319E-05   -.67405E-04
   7  Prefactor     2.0568        6.2009       -.18247E-05   -.57436E-03
   8  Prefactor     .10000E-03    17.799        .23629E-05** at limit **
   9  Prefactor     38.354        30.648        .45980E-05    .18563E-05
  10  norm          .10000E-03    9.6187       -.15858E-05** at limit **
  11  Prefactor     .10000E-03    2.8295       -.11316E-06** at limit **
  12  Prefactor     6.8855        15.510       -.35085E-05   -.50877E-04
  13  Prefactor     .10000E-03    .78720       -.27454E-07** at limit **
  14  Prefactor     9.0651        7.0443       -.99807E-07    .21174E-03
  15  Prefactor     12.366        9.8292        .63954E-07   -.23895E-04
  16  Normalizat    1.8709        .17292       -.50857E-06    .68081E-03
  17  Prefactor     .51764        .12876        .33861E-05    .26999E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.938932
  Prefactor  = 0.0001
  Prefactor  = 2.71817
  Prefactor  = 9.43621
  Prefactor  = 11.1808
  Prefactor  = 4.88358
  Prefactor  = 2.05675
  Prefactor  = 0.0001
  Prefactor  = 38.3538
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.88552
  Prefactor  = 0.0001
  Prefactor  = 9.06508
  Prefactor  = 12.366
  Normalizat = 1.87093
  Prefactor  = 0.517641
 **********
 **   18 **HESSE 
 **********

 FCN=   9824.684     FROM HESSE     STATUS=OK           229 CALLS     1594 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .93893        .94563        .94707E-04   -1.5514    
   2  Prefactor     .10000E-03    7.8469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7182        91.150        .24495E-03   -1.5378    
   4  Prefactor     9.4362        10.760        .13050E-03   -1.5094    
   5  Prefactor     11.181        12.196        .11981E-03   -1.5039    
   6  Prefactor     4.8836        17.396        .18208E-03   -1.5266    
   7  Prefactor     2.0568        6.1827        .28824E-03   -1.5421    
   8  Prefactor     .10000E-03    17.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     38.354        30.654        .32361E-03   -1.4469    
  10  norm          .10000E-03    9.6270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9508        .32517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.8855        15.495        .15288E-03   -1.5183    
  13  Prefactor     .10000E-03    .78887        .85878E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.0651        7.0460        .66561E-03   -1.5106    
  15  Prefactor     12.366        9.8235        .11392E-03   -1.5005    
  16  Normalizat    1.8709        .20499        .22827E-03   -.67826    
  17  Prefactor     .51764        .15061        .30756E-03   -1.1117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40233e-09
Minuit parameter uncertainties:
  1  0.945641
  2  2.38636e-06
  3  31.5326
  4  10.7618
  5  12.1988
  6  17.4138
  7  6.1846
  8  4.3285e-05
  9  30.6663
  10  4.39482e-06
  11  2.22089e-05
  12  15.5041
  13  2.292e-06
  14  7.04667
  15  9.82482
  16  0.205083
  17  0.150726
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  2.057e+00  6.185e+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.176e-01  1.507e-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.871e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/510369/likelihoodResults_246844801_247104001_4FGL_J1322.2+0842_daily_bin29.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) = 9824.6589759
delta logL = 0.0247436164937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9824.65721275
delta logL = 0.0265067696218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7919       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5895       1.0000          .0000       10.000    
     3 'Normalizat'    1.8666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51901       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9824.657     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      258 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7806        6.6805        .15622E-02    .11600E-02
   2  Index         2.5944        1.7419        .14317E-01    .29726E-03
   3  Normalizat    1.8664        .19656        .22849E-03   -.13235E-04
   4  Prefactor     .51916        .14940        .30713E-03   -.11105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78058
  Index      = 2.59444
  Normalizat = 1.86644
  Prefactor  = 0.519159
 **********
 **   18 **HESSE 
 **********

 FCN=   9824.657     FROM HESSE     STATUS=OK            27 CALLS      285 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7806        5.4898        .31244E-03   -1.5441    
   2  Index         2.5944        1.4459        .28634E-02   -.50192    
   3  Normalizat    1.8664        .19657        .91395E-05   -.67942    
   4  Prefactor     .51916        .14934        .12285E-04   -1.1111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01991e-12
Minuit parameter uncertainties:
  1  5.49132
  2  1.47349
  3  0.196651
  4  0.149454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510369': 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) = 9824.65720633
delta logL = 0.0265131880824

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.781e+00  5.491e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.594e+00  1.473e+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:  5.192e-01  1.495e-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.866e+00  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/510369/cmap_HighResolution_246844801_247104001_4FGL_J1322.2+0842_daily_bin29.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.26e-08', time_completed='2021-09-07 14:12:17.210243', job_id='510369', GAL2='0.52', fit_tolerance='1e-08', EG2='1.87', EG='1.87', time_epoch_completed='1631049137.21', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='2.65e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='29' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:12:17 PDT 2021


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

Job <4FGL_J1322.2+0842_daily_bin29> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 14:00:30 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:00:33 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:00:33 2021
Terminated at Tue Sep  7 14:12:17 2021
Results reported at Tue Sep  7 14:12:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin29 200.551 8.7036 246844801 247104001 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 :                                   639.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            707 sec.

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

