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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin868
RA = 200.551, Dec = 8.7036
tmin = 464313601, tmax = 464572801
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='514775', job_status='RUN', time_executed='2021-09-07 14:18:48.782351', time_epoch_executed='1631049528.78' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514775/ft1_4FGL_J1322.2+0842_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514775/ft2_4FGL_J1322.2+0842_daily_bin868.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514775/ft1_4FGL_J1322.2+0842_daily_bin868.fits outfile=/scratch/kocevski/514775/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin868.fits ra=200.551 dec=8.7036 rad=12.0 tmin=464313601.0 tmax=464572801.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.43
user 3.18
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514775/ft1_filtered_4FGL_J1322.2+0842_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/514775/ft2_4FGL_J1322.2+0842_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/514775/ltcube_464313601_464572801_4FGL_J1322.2+0842_daily_bin868.fits outfile=/scratch/kocevski/514775/expmap_464313601_464572801_4FGL_J1322.2+0842_daily_bin868.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/514775/ltcube_464313601_464572801_4FGL_J1322.2+0842_daily_bin868.fits
.....................!
real 192.10
user 186.71
sys 4.52

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/514775/ft1_filtered_4FGL_J1322.2+0842_daily_bin868.fits scfile=/scratch/kocevski/514775/ft2_4FGL_J1322.2+0842_daily_bin868.fits outfile=/scratch/kocevski/514775/cmap_464313601_464572801_4FGL_J1322.2+0842_daily_bin868.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/514775/ft1_filtered_4FGL_J1322.2+0842_daily_bin868.fits scfile=/scratch/kocevski/514775/ft2_4FGL_J1322.2+0842_daily_bin868.fits outfile=/scratch/kocevski/514775/cmap_HighResolution_464313601_464572801_4FGL_J1322.2+0842_daily_bin868.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6334       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2304       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6060       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.9450       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25463E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6840       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.633       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2756       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99353       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=   5978.924     FROM MIGRAD    STATUS=CONVERGED    341 CALLS     1375 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6335        2.2946       -.23948E-07    .20816E-04
   2  Prefactor     .10000E-03    21.635       -.54771E-05** at limit **
   3  Prefactor     .10000E-03    19.308        .53205E-05** at limit **
   4  Prefactor     .10000E-03    2.8588       -.30012E-07** at limit **
   5  Prefactor     1.2307        7.9843       -.36647E-05   -.11211E-03
   6  Prefactor     .10000E-03    7.6624        .16053E-06** at limit **
   7  Prefactor     2.6054        3.6863        .90632E-06   -.61134E-03
   8  Prefactor     6.9452        33.337        .28103E-06   -.32681E-04
   9  Prefactor     .10000E-03    26.048        .65451E-06** at limit **
  10  norm          .10000E-03    17.489       -.18248E-05** at limit **
  11  Prefactor     .10000E-03    1.5856        .74924E-07** at limit **
  12  Prefactor     .10023E-03    22.019       -.14449E-05** at limit **
  13  Prefactor     1.6837        4.6119       -.97155E-06   -.94295E-04
  14  Prefactor     28.634        19.377       -.94828E-07    .12431E-04
  15  Prefactor     .10000E-03    4.3059        .15175E-06** at limit **
  16  Normalizat    1.2756        .21066        .47326E-06    .10013E-03
  17  Prefactor     .99350        .16565       -.10540E-06    .11822E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.63352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.23071
  Prefactor  = 0.0001
  Prefactor  = 2.60541
  Prefactor  = 6.94521
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100228
  Prefactor  = 1.68372
  Prefactor  = 28.6335
  Prefactor  = 0.0001
  Normalizat = 1.27559
  Prefactor  = 0.993503
 **********
 **   18 **HESSE 
 **********

 FCN=   5978.924     FROM HESSE     STATUS=OK           225 CALLS     1600 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6335        2.2949        .72243E-04   -1.5233    
   2  Prefactor     .10000E-03    21.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8619        .12767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2307        8.2098        .40543E-03   -1.5486    
   6  Prefactor     .10000E-03    7.6710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.6054        8.7481        .12635E-02   -1.5385    
   8  Prefactor     6.9452        33.902        .76117E-03   -1.5181    
   9  Prefactor     .10000E-03    26.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    17.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5953        .95058E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10023E-03    174.39        .69051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6837        4.6139        .26505E-03   -1.5448    
  14  Prefactor     28.634        19.394        .74871E-04   -1.4637    
  15  Prefactor     .10000E-03    4.3083        .15669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2756        .25172        .26752E-03   -.84298    
  17  Prefactor     .99350        .19931        .23642E-03   -.92946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41614e-09
Minuit parameter uncertainties:
  1  2.29498
  2  3.59642e-05
  3  2.82774e-05
  4  1.28066e-06
  5  6.3583
  6  7.45144e-07
  7  8.75236
  8  30.7172
  9  6.41347e-06
  10  1.01832e-05
  11  3.27632e-09
  12  0.0126555
  13  4.61483
  14  19.3984
  15  1.79026e-06
  16  0.251963
  17  0.199458
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  2.605e+00  8.752e+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

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.935e-01  1.995e-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.276e+00  2.520e-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: 8.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514775/likelihoodResults_464313601_464572801_4FGL_J1322.2+0842_daily_bin868.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) = 5978.91720015
delta logL = 0.00657031082483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5978.9164977
delta logL = 0.00727275533973

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3173       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4524       1.0000          .0000       10.000    
     3 'Normalizat'    1.2733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99426       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=   5978.916     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      239 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3170        9.0657        .26948E-03   -.25646E-03
   2  Index         2.4524        1.7084        .14547E-01   -.38249E-04
   3  Normalizat    1.2733        .24931        .26773E-03   -.10837E-03
   4  Prefactor     .99428        .19777        .23634E-03   -.12983E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.31703
  Index      = 2.45245
  Normalizat = 1.2733
  Prefactor  = 0.994281
 **********
 **   18 **HESSE 
 **********

 FCN=   5978.916     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3170        8.2726        .10779E-04   -1.5404    
   2  Index         2.4524        1.5667        .58186E-03   -.53462    
   3  Normalizat    1.2733        .24944        .10709E-04   -.84367    
   4  Prefactor     .99428        .19786        .94535E-05   -.92920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51097e-10
Minuit parameter uncertainties:
  1  8.27672
  2  1.60361
  3  0.249675
  4  0.198001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514775': 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) = 5978.9164977
delta logL = 0.00727276074667

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  2.317e+00  8.277e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.452e+00  1.604e+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.943e-01  1.980e-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.273e+00  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/514775/cmap_HighResolution_464313601_464572801_4FGL_J1322.2+0842_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', job_status='DONE', photon_flux_upper_limit='8.95e-08', time_completed='2021-09-07 14:27:24.931640', job_id='514775', GAL2='0.99', fit_tolerance='1e-08', EG2='1.27', EG='1.28', time_epoch_completed='1631050044.93', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.27e-03', ts2='0.12', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='868' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:27:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 514775: <4FGL_J1322.2+0842_daily_bin868> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin868> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:15:26 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:16:18 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:16:18 2021
Terminated at Tue Sep  7 14:27:25 2021
Results reported at Tue Sep  7 14:27:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin868 200.551 8.7036 464313601 464572801 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.62 sec.
    Max Memory :                                 1070 MB
    Average Memory :                             273.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            719 sec.

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

