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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin452
RA = 200.551, Dec = 8.7036
tmin = 356486401, tmax = 356745601
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='513322', job_status='RUN', time_executed='2021-09-07 14:13:15.298367', time_epoch_executed='1631049195.3' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513322/ft1_4FGL_J1322.2+0842_daily_bin452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513322/ft2_4FGL_J1322.2+0842_daily_bin452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513322/ft1_4FGL_J1322.2+0842_daily_bin452.fits outfile=/scratch/kocevski/513322/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin452.fits ra=200.551 dec=8.7036 rad=12.0 tmin=356486401.0 tmax=356745601.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.61
user 3.27
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513322/ft1_filtered_4FGL_J1322.2+0842_daily_bin452.fits evtable="EVENTS" scfile=/scratch/kocevski/513322/ft2_4FGL_J1322.2+0842_daily_bin452.fits sctable="SC_DATA" expcube=/scratch/kocevski/513322/ltcube_356486401_356745601_4FGL_J1322.2+0842_daily_bin452.fits outfile=/scratch/kocevski/513322/expmap_356486401_356745601_4FGL_J1322.2+0842_daily_bin452.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/513322/ltcube_356486401_356745601_4FGL_J1322.2+0842_daily_bin452.fits
.....................!
real 195.09
user 189.35
sys 5.25

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/513322/ft1_filtered_4FGL_J1322.2+0842_daily_bin452.fits scfile=/scratch/kocevski/513322/ft2_4FGL_J1322.2+0842_daily_bin452.fits outfile=/scratch/kocevski/513322/cmap_356486401_356745601_4FGL_J1322.2+0842_daily_bin452.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513322/ft1_filtered_4FGL_J1322.2+0842_daily_bin452.fits scfile=/scratch/kocevski/513322/ft2_4FGL_J1322.2+0842_daily_bin452.fits outfile=/scratch/kocevski/513322/cmap_HighResolution_356486401_356745601_4FGL_J1322.2+0842_daily_bin452.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.877       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.583       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2357       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.082       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1273       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.265       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1640       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71490       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4315       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .82870       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.3155       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=   6479.177     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     1573 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .51973       -.36745E-07** at limit **
   2  Prefactor     40.873        47.118        .23732E-05    .21657E-03
   3  Prefactor     .10000E-03    28.873        .34560E-06** at limit **
   4  Prefactor     .10000E-03    18.541        .25332E-05** at limit **
   5  Prefactor     32.574        17.915        .16200E-05    .75897E-03
   6  Prefactor     4.2364        15.836        .59738E-06    .73956E-04
   7  Prefactor     .10000E-03    4.2581       -.59573E-07** at limit **
   8  Prefactor     .10000E-03    22.861       -.25921E-05** at limit **
   9  Prefactor     24.083        29.414       -.58593E-06   -.11206E-03
  10  norm          .10000E-03    16.746       -.15144E-05** at limit **
  11  Prefactor     5.1280        4.5968        .57907E-06    .86282E-03
  12  Prefactor     11.265        13.451        .12378E-06    .33586E-04
  13  Prefactor     1.1611        5.6800        .86009E-06    .69774E-03
  14  Prefactor     .70415        95.244       -.16474E-04    .25147E-03
  15  Prefactor     9.4320        10.591        .92208E-07    .36010E-04
  16  Normalizat    .82868        .21831        .51020E-06   -.29131E-04
  17  Prefactor     1.3155        .16791       -.85343E-06   -.32071E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 40.8734
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 32.5738
  Prefactor  = 4.23641
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 24.0834
  norm       = 0.000100002
  Prefactor  = 5.12796
  Prefactor  = 11.2651
  Prefactor  = 1.16106
  Prefactor  = 0.704151
  Prefactor  = 9.432
  Normalizat = 0.828678
  Prefactor  = 1.31546
 **********
 **   18 **HESSE 
 **********

 FCN=   6479.177     FROM HESSE     STATUS=OK           219 CALLS     1792 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .52410        .56659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.873        47.968        .62697E-04   -1.4428    
   3  Prefactor     .10000E-03    28.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.574        18.630        .70198E-04   -1.4566    
   6  Prefactor     4.2364        15.914        .19579E-03   -1.5296    
   7  Prefactor     .10000E-03    4.2739        .16221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.083        29.505        .81626E-04   -1.4726    
  10  norm          .10000E-03    16.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1280        4.6734        .15721E-03   -1.5255    
  12  Prefactor     11.265        13.455        .11936E-03   -1.5037    
  13  Prefactor     1.1611        6.1852        .37239E-03   -1.5492    
  14  Prefactor     .70415        123.95        .51527E-02   -1.5540    
  15  Prefactor     9.4320        10.594        .13049E-03   -1.5094    
  16  Normalizat    .82868        .25879        .32501E-03   -.99014    
  17  Prefactor     1.3155        .20213        .21283E-03   -.82849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35006e-09
Minuit parameter uncertainties:
  1  1.59194e-06
  2  48.0131
  3  7.34948e-05
  4  0.000419966
  5  18.6333
  6  15.9297
  7  3.27654e-06
  8  0.000658187
  9  29.5232
  10  0.000332101
  11  4.67376
  12  13.4583
  13  5.36027
  14  18.723
  15  10.5957
  16  0.259181
  17  0.20225
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  3.277e-06  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.315e+00  2.022e-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:  8.287e-01  2.592e-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: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/513322/likelihoodResults_356486401_356745601_4FGL_J1322.2+0842_daily_bin452.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) = 6479.17843173
delta logL = -0.00111062274573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6479.17732102
delta logL = 7.74734871811e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2457       1.0000          .0000       10.000    
     3 'Normalizat'    .82867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3155       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=   6479.177     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10113E-03    50.100        .16396E-02** at limit **
   2  Index         2.1910        6.0366        .50000        .27354E-04
   3  Normalizat    .82867        .17121E-01    .32501E-03   -.17420E-04
   4  Prefactor     1.3155        .13853E-01    .21283E-03   -.19006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101132
  Index      = 2.19102
  Normalizat = 0.828674
  Prefactor  = 1.31546
 **********
 **   18 **HESSE 
 **********

 FCN=   6479.177     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10113E-03    212.86        .32793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1910        5.6628        .50000       -.59655    
   3  Normalizat    .82867        .36952E-01    .13000E-04   -.99014    
   4  Prefactor     1.3155        .29897E-01    .42566E-04   -.82848    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.6341e-08
Minuit parameter uncertainties:
  1  0.0311527
  2  547.342
  3  0.0369535
  4  0.0298973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513322': 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) = 6479.17732072
delta logL = 3.86839928979e-07

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.011e-04  3.115e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.191e+00  5.473e+02  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.315e+00  2.990e-02  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:  8.287e-01  3.695e-02  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/513322/cmap_HighResolution_356486401_356745601_4FGL_J1322.2+0842_daily_bin452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2021-09-07 14:22:19.880372', job_id='513322', GAL2='1.32', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1631049739.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='3.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='452' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:22:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0154>
Subject: Job 513322: <4FGL_J1322.2+0842_daily_bin452> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin452 200.551 8.7036 356486401 356745601 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 :                                   546.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            723 sec.

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

