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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin55
RA = 200.551, Dec = 8.7036
tmin = 253584001, tmax = 253843201
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='510407', job_status='RUN', time_executed='2021-09-07 14:00:47.848581', time_epoch_executed='1631048447.85' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510407/ft1_4FGL_J1322.2+0842_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510407/ft2_4FGL_J1322.2+0842_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510407/ft1_4FGL_J1322.2+0842_daily_bin55.fits outfile=/scratch/kocevski/510407/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin55.fits ra=200.551 dec=8.7036 rad=12.0 tmin=253584001.0 tmax=253843201.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.43
user 1.25
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510407/ft1_filtered_4FGL_J1322.2+0842_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/510407/ft2_4FGL_J1322.2+0842_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/510407/ltcube_253584001_253843201_4FGL_J1322.2+0842_daily_bin55.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/510407/ft2_4FGL_J1322.2+0842_daily_bin55.fits
.....................!
real 14.53
user 14.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510407/ft1_filtered_4FGL_J1322.2+0842_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/510407/ft2_4FGL_J1322.2+0842_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/510407/ltcube_253584001_253843201_4FGL_J1322.2+0842_daily_bin55.fits outfile=/scratch/kocevski/510407/expmap_253584001_253843201_4FGL_J1322.2+0842_daily_bin55.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/510407/ltcube_253584001_253843201_4FGL_J1322.2+0842_daily_bin55.fits
.....................!
real 193.14
user 187.69
sys 4.88

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/510407/ft1_filtered_4FGL_J1322.2+0842_daily_bin55.fits scfile=/scratch/kocevski/510407/ft2_4FGL_J1322.2+0842_daily_bin55.fits outfile=/scratch/kocevski/510407/cmap_253584001_253843201_4FGL_J1322.2+0842_daily_bin55.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510407/ft1_filtered_4FGL_J1322.2+0842_daily_bin55.fits scfile=/scratch/kocevski/510407/ft2_4FGL_J1322.2+0842_daily_bin55.fits outfile=/scratch/kocevski/510407/cmap_HighResolution_253584001_253843201_4FGL_J1322.2+0842_daily_bin55.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=200.551 yref=8.7036 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7491       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.9518       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.359       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8049       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.1434       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    25.775       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6552       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2236       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .81634       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=   5411.859     FROM MIGRAD    STATUS=CONVERGED    330 CALLS     1564 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7493        1.8506       -.10273E-06   -.54002E-03
   2  Prefactor     7.9508        19.680       -.53600E-06    .52997E-05
   3  Prefactor     18.366        42.774        .11516E-04   -.17982E-03
   4  Prefactor     2.8004        10.818       -.52150E-05   -.19569E-03
   5  Prefactor     .10000E-03    7.4862        .13319E-06** at limit **
   6  Prefactor     .10000E-03    8.2910       -.10624E-07** at limit **
   7  Prefactor     3.1396        10.759       -.95109E-06   -.11175E-03
   8  Prefactor     .10000E-03    11.146       -.81480E-07** at limit **
   9  Prefactor     .10000E-03    31.003       -.90848E-07** at limit **
  10  norm          25.775        28.803       -.23208E-07   -.13290E-05
  11  Prefactor     2.6548        3.3965       -.12562E-06   -.22354E-03
  12  Prefactor     .10000E-03    44.493        .27990E-06** at limit **
  13  Prefactor     .10000E-03    2.8530        .20366E-07** at limit **
  14  Prefactor     .10000E-03    4.2733        .99179E-07** at limit **
  15  Prefactor     .10000E-03    5.9591        .82519E-07** at limit **
  16  Normalizat    1.2238        .20006        .48810E-06    .31828E-05
  17  Prefactor     .81612        .15761       -.20717E-06    .30755E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.74927
  Prefactor  = 7.95085
  Prefactor  = 18.3658
  Prefactor  = 2.80039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.13964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.7746
  Prefactor  = 2.65484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2238
  Prefactor  = 0.816122
 **********
 **   18 **HESSE 
 **********

 FCN=   5411.859     FROM HESSE     STATUS=OK           221 CALLS     1785 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7493        1.8488        .99207E-04   -1.5443    
   2  Prefactor     7.9508        19.680        .14219E-03   -1.5144    
   3  Prefactor     18.366        42.742        .93475E-04   -1.4851    
   4  Prefactor     2.8004        11.824        .24290E-03   -1.5373    
   5  Prefactor     .10000E-03    7.5964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.3254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1396        10.895        .22864E-03   -1.5354    
   8  Prefactor     .10000E-03    11.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          25.775        28.823        .78905E-04   -1.4692    
  11  Prefactor     2.6548        3.3982        .14751E-03   -1.5382    
  12  Prefactor     .10000E-03    45.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8831        .12131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2776        .14851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9839        .17538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2238        .24409        .23770E-03   -.85870    
  17  Prefactor     .81612        .19160        .22867E-03   -.99137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4e-10
Minuit parameter uncertainties:
  1  1.84884
  2  19.6955
  3  42.8129
  4  11.5123
  5  1.384e-05
  6  1.17797e-06
  7  10.9018
  8  5.91946e-06
  9  1.03429e-05
  10  28.8389
  11  3.39848
  12  5.78629e-05
  13  1.28068e-06
  14  4.81772e-06
  15  5.0971e-06
  16  0.244318
  17  0.191753
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  3.140e+00  1.090e+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:  8.161e-01  1.918e-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.224e+00  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/510407/likelihoodResults_253584001_253843201_4FGL_J1322.2+0842_daily_bin55.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) = 5410.21502254
delta logL = 1.643560026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5409.65903685
delta logL = 2.19954571776

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    7.6133       1.0000          .0000       10.000    
     3 'Normalizat'    1.1039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88554       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=   5409.659     FROM MIGRAD    STATUS=CONVERGED    201 CALLS      557 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .33773E-02    .27027E-03** at limit **
   2  Index         7.6133        2.2289        .88373E-01    .15066E-03
   3  Normalizat    1.1040        .62043E-01    .56074E-01    .11548E-04
   4  Prefactor     .88538        .49424E-01    .44820E-01    .31345E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.61326
  Normalizat = 1.10395
  Prefactor  = 0.885384
 **********
 **   18 **HESSE 
 **********

 FCN=   5409.659     FROM HESSE     STATUS=OK            33 CALLS      590 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .98804E-03    .77945E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.6133        .24478        .36876E-02    .54996    
   3  Normalizat    1.1040        .24334        .24796E-03   -.89625    
   4  Prefactor     .88538        .19460        .22038E-03   -.96654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.32187e-12
Minuit parameter uncertainties:
  1  5.57526e-10
  2  0.244919
  3  0.243588
  4  0.194757
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510407': 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) = 5409.65902922
delta logL = 2.19955335017

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  5.575e-10  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  7.613e+00  2.449e-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:  8.854e-01  1.948e-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.104e+00  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.72
Ra Dec: 200.551 8.704
Photon Index (Free Index): 7.61 +/- 0.24
Photon Flux (Free Index): 9.04e-08 +/- 5.44e-08
Energy Flux (Free Index): 1.06e-05 +/- 6.34e-06

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/510407/cmap_HighResolution_253584001_253843201_4FGL_J1322.2+0842_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='2.20e+00', photon_flux2='9.04e-08', job_status='DONE', time_completed='2021-09-07 14:09:23.285320', photon_index_error2='0.24', photon_index2='7.61', ts='0.10', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='9.68e-08', energy_flux_error2='6.34e-06', EG='1.22', time_epoch_completed='1631048963.29', return_code='0', job_id='510407', GAL2='0.89', EG2='1.10', return_code2='0', photon_flux_error2='5.44e-08', ts2='4.72', photon_index='2.26' WHERE bin_id='55' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:09:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 510407: <4FGL_J1322.2+0842_daily_bin55> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin55 200.551 8.7036 253584001 253843201 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 :                                   515.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             361.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   525 sec.
    Turnaround time :                            531 sec.

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

