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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin195
RA = 200.551, Dec = 8.7036
tmin = 289872001, tmax = 290131201
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='510608', job_status='RUN', time_executed='2021-09-07 14:04:06.337038', time_epoch_executed='1631048646.34' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510608

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510608/ft1_4FGL_J1322.2+0842_daily_bin195.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510608/ft2_4FGL_J1322.2+0842_daily_bin195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510608/ft1_4FGL_J1322.2+0842_daily_bin195.fits outfile=/scratch/kocevski/510608/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin195.fits ra=200.551 dec=8.7036 rad=12.0 tmin=289872001.0 tmax=290131201.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.56
user 3.32
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510608/ft1_filtered_4FGL_J1322.2+0842_daily_bin195.fits evtable="EVENTS" scfile=/scratch/kocevski/510608/ft2_4FGL_J1322.2+0842_daily_bin195.fits sctable="SC_DATA" expcube=/scratch/kocevski/510608/ltcube_289872001_290131201_4FGL_J1322.2+0842_daily_bin195.fits outfile=/scratch/kocevski/510608/expmap_289872001_290131201_4FGL_J1322.2+0842_daily_bin195.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/510608/ltcube_289872001_290131201_4FGL_J1322.2+0842_daily_bin195.fits
.....................!
real 191.38
user 186.19
sys 4.53

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/510608/ft1_filtered_4FGL_J1322.2+0842_daily_bin195.fits scfile=/scratch/kocevski/510608/ft2_4FGL_J1322.2+0842_daily_bin195.fits outfile=/scratch/kocevski/510608/cmap_289872001_290131201_4FGL_J1322.2+0842_daily_bin195.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/510608/ft1_filtered_4FGL_J1322.2+0842_daily_bin195.fits scfile=/scratch/kocevski/510608/ft2_4FGL_J1322.2+0842_daily_bin195.fits outfile=/scratch/kocevski/510608/cmap_HighResolution_289872001_290131201_4FGL_J1322.2+0842_daily_bin195.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33333       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2578       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.508       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.667       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.523       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1347       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .40921E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.253       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.238       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2707       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0808       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=   6258.131     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1651 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32869        1.3117        .72233E-06   -.51282E-03
   2  Prefactor     7.2364        66.681       -.40009E-04   -.28703E-04
   3  Prefactor     .10000E-03    35.322       -.13429E-04** at limit **
   4  Prefactor     .10000E-03    5.7299        .23247E-07** at limit **
   5  Prefactor     14.517        12.021       -.13619E-05   -.26931E-04
   6  Prefactor     13.152        22.663        .19310E-04   -.23791E-04
   7  Prefactor     24.666        16.110        .13750E-05    .36415E-06
   8  Prefactor     36.538        37.145        .21572E-04    .19606E-04
   9  Prefactor     4.0934        142.25       -.14477E-03    .26460E-05
  10  norm          .10000E-03    30.847        .87673E-05** at limit **
  11  Prefactor     .11539        2.3775        .27089E-06    .11356E-03
  12  Prefactor     14.254        29.788        .63369E-05   -.22983E-04
  13  Prefactor     .10000E-03    1.5738        .10242E-06** at limit **
  14  Prefactor     28.244        16.347        .35981E-05    .43289E-04
  15  Prefactor     .10000E-03    7.3491       -.67227E-07** at limit **
  16  Normalizat    1.2702        .22516       -.26312E-05    .10548E-03
  17  Prefactor     1.0808        .17530        .17960E-05   -.11964E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.328689
  Prefactor  = 7.23642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5168
  Prefactor  = 13.1518
  Prefactor  = 24.6657
  Prefactor  = 36.5379
  Prefactor  = 4.09338
  norm       = 0.0001
  Prefactor  = 0.115393
  Prefactor  = 14.2537
  Prefactor  = 0.0001
  Prefactor  = 28.2443
  Prefactor  = 0.0001
  Normalizat = 1.27021
  Prefactor  = 1.08084
 **********
 **   18 **HESSE 
 **********

 FCN=   6258.131     FROM HESSE     STATUS=OK           233 CALLS     1884 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32869        4.5436        .16735E-02   -1.5593    
   2  Prefactor     7.2364        66.450        .14889E-03   -1.5170    
   3  Prefactor     .10000E-03    35.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.7465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.517        12.074        .10515E-03   -1.4946    
   6  Prefactor     13.152        22.691        .11050E-03   -1.4982    
   7  Prefactor     24.666        16.175        .80654E-04   -1.4714    
   8  Prefactor     36.538        37.183        .66315E-04   -1.4498    
   9  Prefactor     4.0934        143.58        .19823E-03   -1.5303    
  10  norm          .10000E-03    30.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11539        46.783        .22951E-02   -1.5640    
  12  Prefactor     14.254        29.796        .10609E-03   -1.4953    
  13  Prefactor     .10000E-03    1.5849        .96911E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.244        16.368        .75393E-04   -1.4645    
  15  Prefactor     .10000E-03    7.3785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2702        .26816        .27897E-03   -.84460    
  17  Prefactor     1.0808        .20624        .24131E-03   -.90081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24228e-10
Minuit parameter uncertainties:
  1  2.44397
  2  43.9215
  3  3.0708e-05
  4  9.61958e-06
  5  12.0761
  6  22.7061
  7  16.1781
  8  37.2068
  9  48.6128
  10  6.17943e-05
  11  4.64855
  12  29.8273
  13  1.29751e-05
  14  16.3704
  15  2.31759e-05
  16  0.268454
  17  0.206395
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  2.467e+01  1.618e+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:  1.081e+00  2.064e-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.270e+00  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.58
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 7.88e-08 +/- 5.17e-08
Energy Flux (Fixed Index): 3.17e-05 +/- 2.08e-05

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

Saving results to:
/scratch/kocevski/510608/likelihoodResults_289872001_290131201_4FGL_J1322.2+0842_daily_bin195.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) = 6255.91838159
delta logL = 2.21273488412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6255.89594031
delta logL = 2.23517616725

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4216       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3979       1.0000          .0000       10.000    
     3 'Normalizat'    1.1409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1433       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6255.896     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      281 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4207        13.630        .73949E-04   -.87000E-03
   2  Index         3.3981        1.1475        .28405E-02   -.31687E-03
   3  Normalizat    1.1410        .26589        .29163E-03   -.44736E-03
   4  Prefactor     1.1432        .21054        .23539E-03   -.58918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.42072
  Index      = 3.39808
  Normalizat = 1.14102
  Prefactor  = 1.1432
 **********
 **   18 **HESSE 
 **********

 FCN=   6255.896     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4207        7.4308        .29580E-05   -1.5242    
   2  Index         3.3981        .62911        .11362E-03   -.32613    
   3  Normalizat    1.1410        .26341        .58325E-04   -.88445    
   4  Prefactor     1.1432        .20800        .47077E-04   -.88098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45231e-10
Minuit parameter uncertainties:
  1  7.43204
  2  0.630974
  3  0.263719
  4  0.208149
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510608': 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) = 6255.89593999
delta logL = 2.23517649108

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  5.421e+00  7.432e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.398e+00  6.310e-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.143e+00  2.081e-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.141e+00  2.637e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.38
Ra Dec: 200.551 8.704
Photon Index (Free Index): 3.40 +/- 0.63
Photon Flux (Free Index): 1.86e-07 +/- 8.36e-08
Energy Flux (Free Index): 3.18e-05 +/- 1.41e-05

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/510608/cmap_HighResolution_289872001_290131201_4FGL_J1322.2+0842_daily_bin195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.39e-02', comment='SUCCESS', photon_flux='7.88e-08', energy_flux2='3.18e-05', photon_flux_error='5.17e-08', dlogl='2.24e+00', energy_flux='3.17e-05', photon_flux2='1.86e-07', job_status='DONE', time_completed='2021-09-07 14:13:17.831620', photon_index_error2='0.63', photon_index2='3.40', ts='3.58', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.41e-05', EG='1.27', time_epoch_completed='1631049197.83', return_code='0', job_id='510608', GAL2='1.14', EG2='1.14', return_code2='0', energy_flux_error='2.08e-05', photon_flux_error2='8.36e-08', ts2='8.38', photon_index='2.26' WHERE bin_id='195' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:13:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 510608: <4FGL_J1322.2+0842_daily_bin195> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin195 200.551 8.7036 289872001 290131201 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 :                                   551.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            750 sec.

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

