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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin938
RA = 200.551, Dec = 8.7036
tmin = 482457601, tmax = 482716801
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='514881', job_status='RUN', time_executed='2021-09-07 14:20:08.305665', time_epoch_executed='1631049608.31' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='938'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514881/ft1_4FGL_J1322.2+0842_daily_bin938.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514881/ft2_4FGL_J1322.2+0842_daily_bin938.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514881/ft1_4FGL_J1322.2+0842_daily_bin938.fits outfile=/scratch/kocevski/514881/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin938.fits ra=200.551 dec=8.7036 rad=12.0 tmin=482457601.0 tmax=482716801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.56
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/514881/ft2_4FGL_J1322.2+0842_daily_bin938.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/514881/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin938.fits evtable="EVENTS" outfile="/scratch/kocevski/514881/ft1_filtered_4FGL_J1322.2+0842_daily_bin938.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514881/ft1_filtered_4FGL_J1322.2+0842_daily_bin938.fits" evtable="EVENTS" scfile=/scratch/kocevski/514881/ft2_4FGL_J1322.2+0842_daily_bin938.fits sctable="SC_DATA" outfile=/scratch/kocevski/514881/ltcube_482457601_482716801_4FGL_J1322.2+0842_daily_bin938.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/514881/ft2_4FGL_J1322.2+0842_daily_bin938.fits
.....................!
real 14.56
user 14.17
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514881/ft1_filtered_4FGL_J1322.2+0842_daily_bin938.fits evtable="EVENTS" scfile=/scratch/kocevski/514881/ft2_4FGL_J1322.2+0842_daily_bin938.fits sctable="SC_DATA" expcube=/scratch/kocevski/514881/ltcube_482457601_482716801_4FGL_J1322.2+0842_daily_bin938.fits outfile=/scratch/kocevski/514881/expmap_482457601_482716801_4FGL_J1322.2+0842_daily_bin938.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/514881/ltcube_482457601_482716801_4FGL_J1322.2+0842_daily_bin938.fits
.....................!
real 191.69
user 186.65
sys 4.61

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/514881/ft1_filtered_4FGL_J1322.2+0842_daily_bin938.fits scfile=/scratch/kocevski/514881/ft2_4FGL_J1322.2+0842_daily_bin938.fits outfile=/scratch/kocevski/514881/cmap_482457601_482716801_4FGL_J1322.2+0842_daily_bin938.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.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .89392E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.240       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4440       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8407       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .34139E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4445       1.0000         .10000E-03   10000.    
    10 'norm      '    19.355       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.245       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.6849       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .53222       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=   5697.862     FROM MIGRAD    STATUS=CONVERGED    340 CALLS     1619 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .87812E-01    .82729       -.66428E-06   -.30980E-03
   2  Prefactor     .10000E-03    14.331        .33902E-08** at limit **
   3  Prefactor     28.218        40.751       -.18356E-05    .18897E-03
   4  Prefactor     1.4534        35.096        .23933E-04   -.71487E-04
   5  Prefactor     1.8268        40.052       -.10147E-04   -.14057E-03
   6  Prefactor     .10000E-03    17.645       -.33253E-06** at limit **
   7  Prefactor     .10000E-03    9.7232        .37535E-06** at limit **
   8  Prefactor     .10000E-03    14.649       -.18643E-06** at limit **
   9  Prefactor     7.4530        51.009       -.18549E-05   -.58355E-04
  10  norm          19.356        25.820       -.32656E-07   -.12068E-04
  11  Prefactor     .10000E-03    2.9515        .35492E-06** at limit **
  12  Prefactor     11.246        16.483        .31240E-06    .42086E-04
  13  Prefactor     .10000E-03    4.1568        .59873E-06** at limit **
  14  Prefactor     .10000E-03    13.306        .79824E-06** at limit **
  15  Prefactor     .10000E-03    10.653        .21626E-07** at limit **
  16  Normalizat    1.6849        .20725       -.12655E-05   -.83943E-04
  17  Prefactor     .53207        .15187        .41081E-06   -.14250E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0878122
  Prefactor  = 0.0001
  Prefactor  = 28.2176
  Prefactor  = 1.45339
  Prefactor  = 1.82677
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.45295
  norm       = 19.3559
  Prefactor  = 0.0001
  Prefactor  = 11.2463
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.68489
  Prefactor  = 0.532074
 **********
 **   18 **HESSE 
 **********

 FCN=   5697.862     FROM HESSE     STATUS=OK           225 CALLS     1844 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .87812E-01    3.9351        .13134E-02   -1.5649    
   2  Prefactor     .10000E-03    14.337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.218        41.075        .75389E-04   -1.4645    
   4  Prefactor     1.4534        36.144        .17942E-02   -1.5467    
   5  Prefactor     1.8268        40.739        .30746E-03   -1.5438    
   6  Prefactor     .10000E-03    98.134        .60518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.7925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.4530        51.025        .14699E-03   -1.5162    
  10  norm          19.356        25.846        .91040E-04   -1.4828    
  11  Prefactor     .10000E-03    3.0945        .25330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.246        16.480        .11947E-03   -1.5037    
  13  Prefactor     .10000E-03    4.3298        .30096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.6849        .24323        .22207E-03   -.72708    
  17  Prefactor     .53207        .17832        .27943E-03   -1.1053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7752e-10
Minuit parameter uncertainties:
  1  1.17508
  2  3.52794e-06
  3  41.1165
  4  14.505
  5  17.2663
  6  0.000366665
  7  6.7373e-05
  8  1.58984e-05
  9  39.0494
  10  25.8613
  11  5.33754e-05
  12  16.4864
  13  0.000100398
  14  0.000123267
  15  6.01842e-05
  16  0.243402
  17  0.178509
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  6.737e-05  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:  5.321e-01  1.785e-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.685e+00  2.434e-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: 8.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514881/likelihoodResults_482457601_482716801_4FGL_J1322.2+0842_daily_bin938.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) = 5697.86293484
delta logL = -0.000486492475829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5697.86245091
delta logL = -2.55545091932e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2973       1.0000          .0000       10.000    
     3 'Normalizat'    1.6844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53248       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=   5697.862     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      246 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    479.76        .90712E-02** at limit **
   2  Index         2.3242        5.9444        .50000       -.24490E-04
   3  Normalizat    1.6849        .36447E-01    .50234E-01    .67131E-04
   4  Prefactor     .53208        .27560E-01    .63148E-01    .78219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.32418
  Normalizat = 1.68488
  Prefactor  = 0.532075
 **********
 **   18 **HESSE 
 **********

 FCN=   5697.862     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      277 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    550.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3242        6.1601        .50000       -.56470    
   3  Normalizat    1.6849        .39157E-01    .22207E-03   -.72708    
   4  Prefactor     .53208        .29573E-01    .27943E-03   -1.1053    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.04067e-09
Minuit parameter uncertainties:
  1  0.00188769
  2  30.9569
  3  0.0391575
  4  0.0295736
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514881': 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) = 5697.86244802
delta logL = 3.32648596668e-07

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.888e-03  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.324e+00  3.096e+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:  5.321e-01  2.957e-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:  1.685e+00  3.916e-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/514881/cmap_HighResolution_482457601_482716801_4FGL_J1322.2+0842_daily_bin938.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-09-07 14:28:47.347873', job_id='514881', GAL2='0.53', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1631050127.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.53', dlogl='3.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='938' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:28:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 514881: <4FGL_J1322.2+0842_daily_bin938> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin938> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:15:34 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:17:01 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:17:01 2021
Terminated at Tue Sep  7 14:28:47 2021
Results reported at Tue Sep  7 14:28:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin938 200.551 8.7036 482457601 482716801 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 :                                   519.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            793 sec.

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

