/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 116 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 = 7470
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin681
RA = 200.551, Dec = 8.7036
tmin = 415843201, tmax = 416102401
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='513398', job_status='RUN', time_executed='2021-09-07 14:12:50.568641', time_epoch_executed='1631049170.57' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513398

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513398/ft1_4FGL_J1322.2+0842_daily_bin681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513398/ft2_4FGL_J1322.2+0842_daily_bin681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513398/ft1_4FGL_J1322.2+0842_daily_bin681.fits outfile=/scratch/kocevski/513398/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin681.fits ra=200.551 dec=8.7036 rad=12.0 tmin=415843201.0 tmax=416102401.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 5.97
user 5.66
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513398/ft1_filtered_4FGL_J1322.2+0842_daily_bin681.fits evtable="EVENTS" scfile=/scratch/kocevski/513398/ft2_4FGL_J1322.2+0842_daily_bin681.fits sctable="SC_DATA" expcube=/scratch/kocevski/513398/ltcube_415843201_416102401_4FGL_J1322.2+0842_daily_bin681.fits outfile=/scratch/kocevski/513398/expmap_415843201_416102401_4FGL_J1322.2+0842_daily_bin681.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/513398/ltcube_415843201_416102401_4FGL_J1322.2+0842_daily_bin681.fits
.....................!
real 193.27
user 185.95
sys 5.13

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/513398/ft1_filtered_4FGL_J1322.2+0842_daily_bin681.fits scfile=/scratch/kocevski/513398/ft2_4FGL_J1322.2+0842_daily_bin681.fits outfile=/scratch/kocevski/513398/cmap_415843201_416102401_4FGL_J1322.2+0842_daily_bin681.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513398/ft1_filtered_4FGL_J1322.2+0842_daily_bin681.fits scfile=/scratch/kocevski/513398/ft2_4FGL_J1322.2+0842_daily_bin681.fits outfile=/scratch/kocevski/513398/cmap_HighResolution_415843201_416102401_4FGL_J1322.2+0842_daily_bin681.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.0478       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10732E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.977       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.786       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.631       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.8594       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11232E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.2839       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10767E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17514E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10823E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1423       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1259       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .97824       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=   10854.28     FROM MIGRAD    STATUS=CONVERGED    351 CALLS     1405 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0481        1.6251        .18450E-07   -.98334E-04
   2  Prefactor     .10000E-03    9.8464        .13776E-06** at limit **
   3  Prefactor     21.800        22.336       -.27665E-05   -.18356E-03
   4  Prefactor     10.844        10.089        .55276E-06    .36582E-04
   5  Prefactor     10.156        11.705        .12720E-06    .13209E-04
   6  Prefactor     29.522        14.367       -.12683E-05   -.28071E-03
   7  Prefactor     .10000E-03    2.8166        .41432E-07** at limit **
   8  Prefactor     9.9671        18.995       -.69366E-05   -.29981E-03
   9  Prefactor     .10000E-03    26.970        .77248E-06** at limit **
  10  norm          7.2781        15.312       -.30555E-07   -.11153E-04
  11  Prefactor     .10000E-03    1.1048       -.33667E-07** at limit **
  12  Prefactor     .10000E-03    12.958       -.10180E-07** at limit **
  13  Prefactor     .10000E-03    2.9283        .27733E-07** at limit **
  14  Prefactor     .10000E-03    5.2387        .83947E-07** at limit **
  15  Prefactor     4.1414        5.3740        .18201E-05   -.16212E-02
  16  Normalizat    1.1255        .14442        .25554E-06   -.73540E-05
  17  Prefactor     .97860        .11495        .10963E-06   -.48100E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 3.04814
  Prefactor  = 0.0001
  Prefactor  = 21.7997
  Prefactor  = 10.8435
  Prefactor  = 10.1555
  Prefactor  = 29.5217
  Prefactor  = 0.0001
  Prefactor  = 9.96711
  Prefactor  = 0.0001
  norm       = 7.27809
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.14135
  Normalizat = 1.12551
  Prefactor  = 0.978597
 **********
 **   18 **HESSE 
 **********

 FCN=   10854.28     FROM HESSE     STATUS=OK           221 CALLS     1626 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0481        1.6220        .93992E-04   -1.5359    
   2  Prefactor     .10000E-03    9.8555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.800        22.462        .85442E-04   -1.4774    
   4  Prefactor     10.844        10.069        .12199E-03   -1.5049    
   5  Prefactor     10.156        11.738        .12582E-03   -1.5071    
   6  Prefactor     29.522        14.450        .73603E-04   -1.4621    
   7  Prefactor     .10000E-03    2.8364        .17073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.9671        19.527        .12762E-03   -1.5076    
   9  Prefactor     .10000E-03    27.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.2781        15.317        .14862E-03   -1.5168    
  11  Prefactor     .10000E-03    1.1447        .21372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0459        .34780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1414        8.1560        .99024E-03   -1.5301    
  16  Normalizat    1.1255        .17516        .25790E-03   -.88937    
  17  Prefactor     .97860        .13912        .22193E-03   -.93446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75426e-09
Minuit parameter uncertainties:
  1  1.622
  2  5.70454e-06
  3  22.4706
  4  10.0705
  5  11.7408
  6  14.4517
  7  2.84691e-07
  8  19.5399
  9  5.86049e-05
  10  15.3249
  11  2.32331e-06
  12  1.18813e-05
  13  5.44206e-06
  14  2.10974e-06
  15  8.15821
  16  0.175251
  17  0.139174
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.847e-07  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.786e-01  1.392e-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.126e+00  1.753e-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: 3.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513398/likelihoodResults_415843201_416102401_4FGL_J1322.2+0842_daily_bin681.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) = 10854.2831503
delta logL = -0.00168027938344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10854.2814702
delta logL = -1.13304849947e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2622       1.0000          .0000       10.000    
     3 'Normalizat'    1.1254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97865       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=   10854.28     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      204 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.982        .90712E-02** at limit **
   2  Index         2.2622        7.7879        .50000       -.36980E-06
   3  Normalizat    1.1255        .18685E-01    .58316E-01    .51453E-04
   4  Prefactor     .97860        .15184E-01    .46000E-01    .40759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26223
  Normalizat = 1.12551
  Prefactor  = 0.978597
 **********
 **   18 **HESSE 
 **********

 FCN=   10854.28     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4868        .17073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2622        6.0425        .50000       -.57944    
   3  Normalizat    1.1255        .16904        .25790E-03   -.88937    
   4  Prefactor     .97860        .13746        .22193E-03   -.93446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10045e-12
Minuit parameter uncertainties:
  1  2.87774e-06
  2  5.26525
  3  0.169121
  4  0.137508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513398': 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) = 10854.2814701
delta logL = 5.45696821064e-12

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  2.878e-06  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  5.265e+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:  9.786e-01  1.375e-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.126e+00  1.691e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.551 8.704

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/513398/cmap_HighResolution_415843201_416102401_4FGL_J1322.2+0842_daily_bin681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.84e-03', job_status='DONE', photon_flux_upper_limit='3.71e-08', time_completed='2021-09-07 14:24:22.157778', job_id='513398', GAL2='0.98', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631049862.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.46e-12', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='681' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:24:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 513398: <4FGL_J1322.2+0842_daily_bin681> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin681> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 14:10:22 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:10:43 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:10:43 2021
Terminated at Tue Sep  7 14:24:23 2021
Results reported at Tue Sep  7 14:24:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin681 200.551 8.7036 415843201 416102401 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 :                                   688.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            841 sec.

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

