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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin47
RA = 200.551, Dec = 8.7036
tmin = 251510401, tmax = 251769601
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='510395', job_status='RUN', time_executed='2021-09-07 14:03:03.811680', time_epoch_executed='1631048583.81' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='47'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510395

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510395/ft1_4FGL_J1322.2+0842_daily_bin47.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510395/ft2_4FGL_J1322.2+0842_daily_bin47.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510395/ft1_4FGL_J1322.2+0842_daily_bin47.fits outfile=/scratch/kocevski/510395/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin47.fits ra=200.551 dec=8.7036 rad=12.0 tmin=251510401.0 tmax=251769601.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.49
user 1.30
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510395/ft1_filtered_4FGL_J1322.2+0842_daily_bin47.fits" evtable="EVENTS" scfile=/scratch/kocevski/510395/ft2_4FGL_J1322.2+0842_daily_bin47.fits sctable="SC_DATA" outfile=/scratch/kocevski/510395/ltcube_251510401_251769601_4FGL_J1322.2+0842_daily_bin47.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/510395/ft2_4FGL_J1322.2+0842_daily_bin47.fits
.....................!
real 16.23
user 15.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510395/ft1_filtered_4FGL_J1322.2+0842_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/510395/ft2_4FGL_J1322.2+0842_daily_bin47.fits sctable="SC_DATA" expcube=/scratch/kocevski/510395/ltcube_251510401_251769601_4FGL_J1322.2+0842_daily_bin47.fits outfile=/scratch/kocevski/510395/expmap_251510401_251769601_4FGL_J1322.2+0842_daily_bin47.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/510395/ltcube_251510401_251769601_4FGL_J1322.2+0842_daily_bin47.fits
.....................!
real 192.47
user 185.75
sys 6.21

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/510395/ft1_filtered_4FGL_J1322.2+0842_daily_bin47.fits scfile=/scratch/kocevski/510395/ft2_4FGL_J1322.2+0842_daily_bin47.fits outfile=/scratch/kocevski/510395/cmap_251510401_251769601_4FGL_J1322.2+0842_daily_bin47.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510395/ft1_filtered_4FGL_J1322.2+0842_daily_bin47.fits scfile=/scratch/kocevski/510395/ft2_4FGL_J1322.2+0842_daily_bin47.fits outfile=/scratch/kocevski/510395/cmap_HighResolution_251510401_251769601_4FGL_J1322.2+0842_daily_bin47.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/510395/ft1_filtered_4FGL_J1322.2+0842_daily_bin47.fits evtable="EVENTS" scfile=/scratch/kocevski/510395/ft2_4FGL_J1322.2+0842_daily_bin47.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/510395/Model_4FGL_J1322.2+0842_daily_bin47.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/510395/ft1_filtered_4FGL_J1322.2+0842_daily_bin47.fits.....................!
real 63.00
user 61.59
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .37684E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .91963       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10767E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.015       1.0000         .10000E-03   10000.    
    10 'norm      '    26.832       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13343E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.762       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9610       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2254       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .85893       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=   8836.383     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     1880 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1545        1.0250        .88780E-04   -.76320E-04
   2  Prefactor     .10000E-03    7.4201        .18142E-02** at limit **
   3  Prefactor     .10000E-03    8.5087        .18142E-02** at limit **
   4  Prefactor     .10005E-03    14.971        .39000E-02** at limit **
   5  Prefactor     .89384        4.5988        .13286        .16265E-04
   6  Prefactor     .10000E-03    4.1809        .18142E-02** at limit **
   7  Prefactor     .10025E-03    59.699        .37253E-02** at limit **
   8  Prefactor     .10000E-03    5.1823        .18142E-02** at limit **
   9  Prefactor     33.049        30.279        .34869E-03   -.46900E-03
  10  norm          26.846        25.678        .77339E-04   -.16270E-03
  11  Prefactor     .10002E-03    18.373        .20950E-02** at limit **
  12  Prefactor     .10000E-03    5.4813        .18142E-02** at limit **
  13  Prefactor     .10000E-03    1.3328        .20843E-03** at limit **
  14  Prefactor     18.762        11.161        .92465E-04   -.14705E-03
  15  Prefactor     4.9669        9.4315        .18056E-03   -.11358E-03
  16  Normalizat    1.2256        .19192        .24427E-03   -.14264E-02
  17  Prefactor     .85872        .15082        .22947E-03   -.13738E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100046
  Prefactor  = 0.893838
  Prefactor  = 0.0001
  Prefactor  = 0.000100247
  Prefactor  = 0.0001
  Prefactor  = 33.0493
  norm       = 26.8464
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7623
  Prefactor  = 4.96691
  Normalizat = 1.22559
  Prefactor  = 0.858718
 **********
 **   18 **HESSE 
 **********

 FCN=   8836.383     FROM HESSE     STATUS=OK           209 CALLS     2089 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1545        1.0251        .35512E-05   -1.5493    
   2  Prefactor     .10000E-03    7.4203        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.5088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10005E-03    15.092        .78000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .89384        37.282        .37089E-02   -1.5519    
   6  Prefactor     .10000E-03    4.1811        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10025E-03    61.236        .14901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.1824        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     33.049        30.281        .69739E-04   -1.4558    
  10  norm          26.846        25.678        .15468E-04   -1.4671    
  11  Prefactor     .10002E-03    18.667        .41900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.4816        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.3329        .41686E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.762        11.163        .36986E-05   -1.4841    
  15  Prefactor     4.9669        9.4322        .72225E-05   -1.5262    
  16  Normalizat    1.2256        .19189        .48853E-04   -.85816    
  17  Prefactor     .85872        .15083        .45895E-04   -.97599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00226e-08
Minuit parameter uncertainties:
  1  1.02512
  2  3.37411e-05
  3  1.54701e-05
  4  0.00166649
  5  11.5524
  6  2.6472e-05
  7  0.00778134
  8  1.64904e-05
  9  30.2955
  10  25.6884
  11  0.00110817
  12  1.47027e-05
  13  7.39481e-06
  14  11.1641
  15  9.43499
  16  0.191999
  17  0.150902
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.587e-01  1.509e-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.226e+00  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/510395/likelihoodResults_251510401_251769601_4FGL_J1322.2+0842_daily_bin47.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) = 8836.38296819
delta logL = -7.82575443736e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8835.64480936
delta logL = 0.738080571371

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85671       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6784       1.0000          .0000       10.000    
     3 'Normalizat'    1.1599       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88545       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=   8835.645     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      301 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85702        10.908        .12650E-01    .58356E-03
   2  Index         3.6785        2.3546        .10065        .18546E-03
   3  Normalizat    1.1599        .35423E-01    .56569E-01   -.69531E-03
   4  Prefactor     .88554        .28520E-01    .44819E-01   -.77861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.857022
  Index      = 3.67853
  Normalizat = 1.15987
  Prefactor  = 0.885536
 **********
 **   18 **HESSE 
 **********

 FCN=   8835.645     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      330 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85702        30.708        .72785E-04   -1.5523    
   2  Index         3.6785        6.7779        .56193E-02   -.26747    
   3  Normalizat    1.1599        .17315        .25016E-03   -.87852    
   4  Prefactor     .88554        .13832        .22626E-03   -.96648    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3181e-06
Minuit parameter uncertainties:
  1  10.2652
  2  5.21408
  3  0.173235
  4  0.138377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510395': 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) = 8835.6448086
delta logL = 0.738081326173

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  8.570e-01  1.027e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.679e+00  5.214e+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:  8.855e-01  1.384e-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.160e+00  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 200.551 8.704
Photon Index (Free Index): 3.68 +/- 5.21
Photon Flux (Free Index): 5.54e-08 +/- 4.83e-08
Energy Flux (Free Index): 8.82e-06 +/- 1.32e-05

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/510395/cmap_HighResolution_251510401_251769601_4FGL_J1322.2+0842_daily_bin47.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.12e-03', comment='SUCCESS', energy_flux2='8.82e-06', dlogl='7.38e-01', photon_flux2='5.54e-08', job_status='DONE', time_completed='2021-09-07 14:13:53.491149', photon_index_error2='5.21', photon_index2='3.68', ts='-0.00', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='6.69e-08', energy_flux_error2='1.32e-05', EG='1.23', time_epoch_completed='1631049233.49', return_code='0', job_id='510395', GAL2='0.89', EG2='1.16', return_code2='102', photon_flux_error2='4.83e-08', ts2='1.55', photon_index='2.26' WHERE bin_id='47' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:13:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 510395: <4FGL_J1322.2+0842_daily_bin47> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin47 200.551 8.7036 251510401 251769601 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 :                                   650.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            802 sec.

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

