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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin404
RA = 200.551, Dec = 8.7036
tmin = 344044801, tmax = 344304001
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='511931', job_status='RUN', time_executed='2021-09-07 14:08:24.620783', time_epoch_executed='1631048904.62' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511931

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511931/ft1_4FGL_J1322.2+0842_daily_bin404.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511931/ft2_4FGL_J1322.2+0842_daily_bin404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511931/ft1_4FGL_J1322.2+0842_daily_bin404.fits outfile=/scratch/kocevski/511931/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin404.fits ra=200.551 dec=8.7036 rad=12.0 tmin=344044801.0 tmax=344304001.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.43
user 3.19
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511931/ft1_filtered_4FGL_J1322.2+0842_daily_bin404.fits" evtable="EVENTS" scfile=/scratch/kocevski/511931/ft2_4FGL_J1322.2+0842_daily_bin404.fits sctable="SC_DATA" outfile=/scratch/kocevski/511931/ltcube_344044801_344304001_4FGL_J1322.2+0842_daily_bin404.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/511931/ft2_4FGL_J1322.2+0842_daily_bin404.fits
.....................!
real 14.54
user 14.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511931/ft1_filtered_4FGL_J1322.2+0842_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/511931/ft2_4FGL_J1322.2+0842_daily_bin404.fits sctable="SC_DATA" expcube=/scratch/kocevski/511931/ltcube_344044801_344304001_4FGL_J1322.2+0842_daily_bin404.fits outfile=/scratch/kocevski/511931/expmap_344044801_344304001_4FGL_J1322.2+0842_daily_bin404.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/511931/ltcube_344044801_344304001_4FGL_J1322.2+0842_daily_bin404.fits
.....................!
real 191.41
user 185.67
sys 5.28

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/511931/ft1_filtered_4FGL_J1322.2+0842_daily_bin404.fits scfile=/scratch/kocevski/511931/ft2_4FGL_J1322.2+0842_daily_bin404.fits outfile=/scratch/kocevski/511931/cmap_344044801_344304001_4FGL_J1322.2+0842_daily_bin404.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.54
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90505       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13580E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.271       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.7923       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5997       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.002       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    65.703       1.0000         .10000E-03   10000.    
    10 'norm      '    .13094E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.6666       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11810E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0773       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7889       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.858       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0099       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0530       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=   7449.483     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     1597 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90504        .81727        .22439E-07    .14479E-03
   2  Prefactor     .10000E-03    11.807        .27322E-06** at limit **
   3  Prefactor     47.914        43.932       -.31396E-05   -.90737E-04
   4  Prefactor     2.6561        14.004        .11438E-04   -.12053E-03
   5  Prefactor     8.7693        10.123       -.53295E-05   -.19119E-03
   6  Prefactor     4.5783        20.446        .38531E-04   -.48830E-04
   7  Prefactor     9.9993        8.0610        .25172E-06   -.63601E-04
   8  Prefactor     .10000E-03    19.661       -.48197E-06** at limit **
   9  Prefactor     65.741        48.075        .20566E-05   -.79192E-05
  10  norm          .10000E-03    13.536        .42779E-06** at limit **
  11  Prefactor     1.6717        2.8386        .17835E-06   -.68365E-03
  12  Prefactor     .10000E-03    21.506        .31234E-05** at limit **
  13  Prefactor     1.0805        2.9575       -.66604E-06   -.12119E-02
  14  Prefactor     7.7927        9.1302        .36832E-05   -.49007E-04
  15  Prefactor     27.829        15.567       -.42788E-05   -.70258E-04
  16  Normalizat    1.0101        .19009       -.25207E-05   -.27030E-03
  17  Prefactor     1.0529        .14953       -.12590E-05   -.30527E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.905044
  Prefactor  = 0.0001
  Prefactor  = 47.9139
  Prefactor  = 2.65607
  Prefactor  = 8.76933
  Prefactor  = 4.57826
  Prefactor  = 9.99927
  Prefactor  = 0.0001
  Prefactor  = 65.741
  norm       = 0.0001
  Prefactor  = 1.67169
  Prefactor  = 0.0001
  Prefactor  = 1.08046
  Prefactor  = 7.79274
  Prefactor  = 27.829
  Normalizat = 1.01007
  Prefactor  = 1.0529
 **********
 **   18 **HESSE 
 **********

 FCN=   7449.483     FROM HESSE     STATUS=OK           225 CALLS     1822 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90504        .83545        .72101E-04   -1.5518    
   2  Prefactor     .10000E-03    11.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.914        43.445        .57715E-04   -1.4322    
   4  Prefactor     2.6561        13.422        .25208E-03   -1.5382    
   5  Prefactor     8.7693        10.119        .13518E-03   -1.5116    
   6  Prefactor     4.5783        19.985        .18768E-03   -1.5280    
   7  Prefactor     9.9993        8.0648        .12670E-03   -1.5075    
   8  Prefactor     .10000E-03    19.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     65.741        48.080        .49512E-04   -1.4085    
  10  norm          .10000E-03    13.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6717        2.8098        .18131E-03   -1.5449    
  12  Prefactor     .10000E-03    21.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0805        2.9241        .23817E-03   -1.5500    
  14  Prefactor     7.7927        9.1249        .14368E-03   -1.5150    
  15  Prefactor     27.829        15.587        .75904E-04   -1.4652    
  16  Normalizat    1.0101        .22281        .27667E-03   -.92694    
  17  Prefactor     1.0529        .17582        .21986E-03   -.90986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46298e-09
Minuit parameter uncertainties:
  1  0.835464
  2  6.40921e-06
  3  43.4737
  4  11.9457
  5  10.1212
  6  19.1412
  7  8.06568
  8  4.63914e-05
  9  48.1086
  10  4.06297e-06
  11  2.81002
  12  0.000191822
  13  2.92452
  14  9.12652
  15  15.5891
  16  0.223019
  17  0.175919
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  9.999e+00  8.066e+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:  1.053e+00  1.759e-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.010e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.56
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 3.20e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.04e-05

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) = 7447.75986078
delta logL = 1.72314849413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7447.25900764
delta logL = 2.22400163564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3439       1.0000         .10000E-03   10000.    
     2 'Index     '    .53361       1.0000          .0000       10.000    
     3 'Normalizat'    1.0323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0516       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=   7447.259     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      229 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3410        1.5727        .94466E-02   -.52071E-03
   2  Index         .53284        .43625        .28556       -.21051E-04
   3  Normalizat    1.0322        .17888        .61976E-01    .62216E-04
   4  Prefactor     1.0518        .14549        .39816E-01   -.10084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.341
  Index      = 0.532839
  Normalizat = 1.0322
  Prefactor  = 1.05175
 **********
 **   18 **HESSE 
 **********

 FCN=   7447.259     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3410        2.9392        .95860E-04   -1.5476    
   2  Index         .53284        .72036        .13795E-01   -1.1049    
   3  Normalizat    1.0322        .21434        .27411E-03   -.91959    
   4  Prefactor     1.0518        .17451        .21998E-03   -.91024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17332e-09
Minuit parameter uncertainties:
  1  2.93951
  2  0.73332
  3  0.214518
  4  0.174604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511931': 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) = 7447.25900692
delta logL = 2.22400235391

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.341e+00  2.940e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  5.328e-01  7.333e-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:  1.052e+00  1.746e-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.032e+00  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.97
Ra Dec: 200.551 8.704
Photon Index (Free Index): 0.53 +/- 0.73
Photon Flux (Free Index): 2.86e-09 +/- 2.92e-09
Energy Flux (Free Index): 9.47e-05 +/- 1.14e-04

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/511931/cmap_HighResolution_344044801_344304001_4FGL_J1322.2+0842_daily_bin404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.20e-08', energy_flux2='9.47e-05', photon_flux_error='2.58e-08', dlogl='2.22e+00', energy_flux='1.29e-05', photon_flux2='2.86e-09', job_status='DONE', time_completed='2021-09-07 14:17:20.992332', photon_index_error2='0.73', photon_index2='0.53', ts='4.56', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.14e-04', EG='1.01', time_epoch_completed='1631049440.99', return_code='0', job_id='511931', GAL2='1.05', EG2='1.03', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.92e-09', ts2='8.97', photon_index='2.26' WHERE bin_id='404' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:17:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 511931: <4FGL_J1322.2+0842_daily_bin404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin404 200.551 8.7036 344044801 344304001 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 :                                   536.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            723 sec.

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

