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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin238
RA = 200.551, Dec = 8.7036
tmin = 301017601, tmax = 301276801
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='510670', job_status='RUN', time_executed='2021-09-07 14:04:01.279360', time_epoch_executed='1631048641.28' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='238'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510670

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510670/ft1_4FGL_J1322.2+0842_daily_bin238.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510670/ft2_4FGL_J1322.2+0842_daily_bin238.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510670/ft1_4FGL_J1322.2+0842_daily_bin238.fits outfile=/scratch/kocevski/510670/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin238.fits ra=200.551 dec=8.7036 rad=12.0 tmin=301017601.0 tmax=301276801.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.65
user 3.40
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510670/ft1_filtered_4FGL_J1322.2+0842_daily_bin238.fits evtable="EVENTS" scfile=/scratch/kocevski/510670/ft2_4FGL_J1322.2+0842_daily_bin238.fits sctable="SC_DATA" expcube=/scratch/kocevski/510670/ltcube_301017601_301276801_4FGL_J1322.2+0842_daily_bin238.fits outfile=/scratch/kocevski/510670/expmap_301017601_301276801_4FGL_J1322.2+0842_daily_bin238.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/510670/ltcube_301017601_301276801_4FGL_J1322.2+0842_daily_bin238.fits
.....................!
real 193.44
user 188.07
sys 4.71

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/510670/ft1_filtered_4FGL_J1322.2+0842_daily_bin238.fits scfile=/scratch/kocevski/510670/ft2_4FGL_J1322.2+0842_daily_bin238.fits outfile=/scratch/kocevski/510670/cmap_301017601_301276801_4FGL_J1322.2+0842_daily_bin238.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510670/ft1_filtered_4FGL_J1322.2+0842_daily_bin238.fits scfile=/scratch/kocevski/510670/ft2_4FGL_J1322.2+0842_daily_bin238.fits outfile=/scratch/kocevski/510670/cmap_HighResolution_301017601_301276801_4FGL_J1322.2+0842_daily_bin238.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.59
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6471       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.272       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7663       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7806       1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.714       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.540       1.0000         .10000E-03   10000.    
    10 'norm      '    15.759       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.1764       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4092       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3207       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94187       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=   7070.045     FROM MIGRAD    STATUS=CONVERGED    321 CALLS     1573 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6471        1.4317        .13148E-06    .41181E-04
   2  Prefactor     .10000E-03    11.537       -.10426E-04** at limit **
   3  Prefactor     .10000E-03    25.927       -.64508E-05** at limit **
   4  Prefactor     16.270        12.679       -.51025E-06    .25415E-04
   5  Prefactor     1.7660        3.9792        .16615E-05   -.15546E-02
   6  Prefactor     5.7806        18.494       -.88155E-06   -.67646E-05
   7  Prefactor     18.714        13.207       -.13053E-06    .56773E-04
   8  Prefactor     .10000E-03    15.624        .12569E-04** at limit **
   9  Prefactor     15.538        29.789       -.21745E-05   -.79836E-05
  10  norm          15.759        24.627        .16835E-06    .21862E-05
  11  Prefactor     .10011E-03    2.0088       -.10992E-05** at limit **
  12  Prefactor     6.1763        13.200       -.76796E-07    .73326E-05
  13  Prefactor     5.4093        3.9790        .30965E-06    .10589E-03
  14  Prefactor     .10000E-03    10.674        .71578E-05** at limit **
  15  Prefactor     .10000E-03    3.9707        .41332E-06** at limit **
  16  Normalizat    1.3208        .19972        .23322E-06    .18757E-03
  17  Prefactor     .94182        .15572        .98766E-07    .20732E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.64715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2703
  Prefactor  = 1.76604
  Prefactor  = 5.78056
  Prefactor  = 18.7135
  Prefactor  = 0.000100001
  Prefactor  = 15.5381
  norm       = 15.7588
  Prefactor  = 0.000100107
  Prefactor  = 6.17631
  Prefactor  = 5.40929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.32079
  Prefactor  = 0.941822
 **********
 **   18 **HESSE 
 **********

 FCN=   7070.045     FROM HESSE     STATUS=OK           227 CALLS     1800 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6471        1.4186        .90890E-04   -1.5451    
   2  Prefactor     .10000E-03    11.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.270        12.812        .99289E-04   -1.4901    
   5  Prefactor     1.7660        12.190        .15758E-02   -1.5442    
   6  Prefactor     5.7806        18.488        .16705E-03   -1.5227    
   7  Prefactor     18.714        13.238        .92585E-04   -1.4843    
   8  Prefactor     .10000E-03    15.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.538        29.801        .10160E-03   -1.4919    
  10  norm          15.759        24.640        .10089E-03   -1.4914    
  11  Prefactor     .10011E-03    13.700        .22471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.1763        13.195        .16154E-03   -1.5211    
  13  Prefactor     5.4093        3.9781        .13933E-03   -1.5243    
  14  Prefactor     .10000E-03    10.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9753        .16363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3208        .24126        .26505E-03   -.82948    
  17  Prefactor     .94182        .18741        .24348E-03   -.94695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94983e-08
Minuit parameter uncertainties:
  1  1.41863
  2  0.000138542
  3  0.000118383
  4  12.814
  5  9.28199
  6  18.506
  7  13.2398
  8  0.000185753
  9  29.8296
  10  24.6561
  11  0.00242288
  12  13.2012
  13  3.97833
  14  7.04759e-05
  15  3.40813e-06
  16  0.241464
  17  0.187543
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.871e+01  1.324e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.418e-01  1.875e-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.321e+00  2.415e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 2.41e-05 +/- 1.70e-05

TS (Fixed Index): 3.00
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/510670/likelihoodResults_301017601_301276801_4FGL_J1322.2+0842_daily_bin238.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7069.42454155
delta logL = 0.620436592516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7069.22236593
delta logL = 0.822612212131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .53199E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.0323       1.0000          .0000       10.000    
     3 'Normalizat'    1.2118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0262       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=   7069.222     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      399 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51317E-03    .50902E-02    .28410E-03** at limit **
   2  Index         7.0466        1.8927        .91083E-01    .19197E-03
   3  Normalizat    1.2116        .52974E-01    .62108E-01   -.33234E-04
   4  Prefactor     1.0264        .42211E-01    .41568E-01   -.19512E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000513171
  Index      = 7.04658
  Normalizat = 1.21164
  Prefactor  = 1.02642
 **********
 **   18 **HESSE 
 **********

 FCN=   7069.222     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      434 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51317E-03    .10875E-01    .12197E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.0466        3.0007        .36569E-02    .42171    
   3  Normalizat    1.2116        .18519        .27471E-03   -.86244    
   4  Prefactor     1.0264        .14526        .23467E-03   -.91854    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.4539e-08
Minuit parameter uncertainties:
  1  0.00423948
  2  3.27476
  3  0.185287
  4  0.145314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510670': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7069.22235987
delta logL = 0.82261827709

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  5.132e-04  4.239e-03  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  7.047e+00  3.275e+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:  1.026e+00  1.453e-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.212e+00  1.853e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.94
Ra Dec: 200.551 8.704
Photon Index (Free Index): 7.05 +/- 3.27
Photon Flux (Free Index): 1.13e-07 +/- 6.31e-08
Energy Flux (Free Index): 1.34e-05 +/- 7.94e-06

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/510670/cmap_HighResolution_301017601_301276801_4FGL_J1322.2+0842_daily_bin238.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='1.34e-05', photon_flux_error='4.23e-08', dlogl='8.23e-01', energy_flux='2.41e-05', photon_flux2='1.13e-07', job_status='DONE', time_completed='2021-09-07 14:13:44.014760', photon_index_error2='3.27', photon_index2='7.05', ts='3.00', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='7.94e-06', EG='1.32', time_epoch_completed='1631049224.01', return_code='0', job_id='510670', GAL2='1.03', EG2='1.21', return_code2='102', energy_flux_error='1.70e-05', photon_flux_error2='6.31e-08', ts2='4.94', photon_index='2.26' WHERE bin_id='238' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:13:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 510670: <4FGL_J1322.2+0842_daily_bin238> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin238> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 14:00:52 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:01:21 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:01:21 2021
Terminated at Tue Sep  7 14:13:44 2021
Results reported at Tue Sep  7 14:13:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin238 200.551 8.7036 301017601 301276801 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 :                                   583.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             243.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            772 sec.

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

