/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 134 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 = 7548
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1322.2+0842_daily_bin149
RA = 200.551, Dec = 8.7036
tmin = 277948801, tmax = 278208001
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='510542', job_status='RUN', time_executed='2021-09-07 14:03:21.342627', time_epoch_executed='1631048601.34' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510542

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510542/ft1_4FGL_J1322.2+0842_daily_bin149.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510542/ft2_4FGL_J1322.2+0842_daily_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510542/ft1_4FGL_J1322.2+0842_daily_bin149.fits outfile=/scratch/kocevski/510542/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin149.fits ra=200.551 dec=8.7036 rad=12.0 tmin=277948801.0 tmax=278208001.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 4.33
user 4.09
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510542/ft1_filtered_4FGL_J1322.2+0842_daily_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/510542/ft2_4FGL_J1322.2+0842_daily_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/510542/ltcube_277948801_278208001_4FGL_J1322.2+0842_daily_bin149.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/510542/ft2_4FGL_J1322.2+0842_daily_bin149.fits
.....................!
real 16.80
user 16.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510542/ft1_filtered_4FGL_J1322.2+0842_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/510542/ft2_4FGL_J1322.2+0842_daily_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/510542/ltcube_277948801_278208001_4FGL_J1322.2+0842_daily_bin149.fits outfile=/scratch/kocevski/510542/expmap_277948801_278208001_4FGL_J1322.2+0842_daily_bin149.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/510542/ltcube_277948801_278208001_4FGL_J1322.2+0842_daily_bin149.fits
.....................!
real 192.68
user 187.72
sys 4.34

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/510542/ft1_filtered_4FGL_J1322.2+0842_daily_bin149.fits scfile=/scratch/kocevski/510542/ft2_4FGL_J1322.2+0842_daily_bin149.fits outfile=/scratch/kocevski/510542/cmap_277948801_278208001_4FGL_J1322.2+0842_daily_bin149.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/510542/ft1_filtered_4FGL_J1322.2+0842_daily_bin149.fits scfile=/scratch/kocevski/510542/ft2_4FGL_J1322.2+0842_daily_bin149.fits outfile=/scratch/kocevski/510542/cmap_HighResolution_277948801_278208001_4FGL_J1322.2+0842_daily_bin149.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.698       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.678       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26643       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3170       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11744E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.4889       1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.254       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.7919       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .72719E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.4423       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94639       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=   6267.459     FROM MIGRAD    STATUS=CONVERGED    367 CALLS     1634 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.696        3.0223        .13227E-07    .39552E-05
   2  Prefactor     .10000E-03    19.099       -.81625E-06** at limit **
   3  Prefactor     .10000E-03    21.709       -.64397E-06** at limit **
   4  Prefactor     .10000E-03    8.0451       -.14017E-07** at limit **
   5  Prefactor     16.678        12.925        .47122E-06   -.25423E-04
   6  Prefactor     .10782        25.023       -.15095E-05    .14716E-03
   7  Prefactor     5.3117        14.671        .16890E-06   -.10022E-04
   8  Prefactor     .10000E-03    10.314        .35925E-07** at limit **
   9  Prefactor     .10000E-03    20.399        .14757E-05** at limit **
  10  norm          .10000E-03    57.940       -.18613E-06** at limit **
  11  Prefactor     1.4805        6.5988       -.96274E-06   -.20320E-04
  12  Prefactor     34.259        26.008       -.14653E-05   -.23068E-04
  13  Prefactor     4.7909        4.7095       -.57480E-06   -.77952E-04
  14  Prefactor     .10000E-03    8.9308       -.40754E-07** at limit **
  15  Prefactor     .10000E-03    89.511        .43202E-05** at limit **
  16  Normalizat    1.4423        .22853        .11660E-06   -.91301E-04
  17  Prefactor     .94695        .17146       -.67754E-06   -.71403E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.6775
  Prefactor  = 0.107819
  Prefactor  = 5.31169
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.48051
  Prefactor  = 34.2595
  Prefactor  = 4.79088
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.4423
  Prefactor  = 0.946947
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.459     FROM HESSE     STATUS=OK           231 CALLS     1865 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.696        3.0264        .67584E-04   -1.5024    
   2  Prefactor     .10000E-03    19.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.678        12.958        .98073E-04   -1.4891    
   6  Prefactor     .10782        28.401        .94188E-01   -1.5642    
   7  Prefactor     5.3117        14.678        .17430E-03   -1.5247    
   8  Prefactor     .10000E-03    10.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    59.376        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4805        6.4800        .35140E-03   -1.5465    
  12  Prefactor     34.259        25.920        .68469E-04   -1.4537    
  13  Prefactor     4.7909        4.7060        .82252E-03   -1.5270    
  14  Prefactor     .10000E-03    8.9675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    87.646        .51702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.4423        .27279        .27515E-03   -.79413    
  17  Prefactor     .94695        .20363        .25566E-03   -.94519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19341e-10
Minuit parameter uncertainties:
  1  3.02648
  2  2.15741e-05
  3  2.15538e-05
  4  3.45934e-07
  5  12.9598
  6  3.49986
  7  14.6878
  8  1.39169e-06
  9  2.69148e-05
  10  0.000184503
  11  6.19569
  12  25.9284
  13  4.70636
  14  8.1918e-06
  15  0.000951882
  16  0.273064
  17  0.203792
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  5.312e+00  1.469e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  9.469e-01  2.038e-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.442e+00  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.15
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/510542/likelihoodResults_277948801_278208001_4FGL_J1322.2+0842_daily_bin149.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) = 6267.0916994
delta logL = 0.367381504202

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6267.07305435
delta logL = 0.386026554858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6314       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2882       1.0000          .0000       10.000    
     3 'Normalizat'    1.3829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97092       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=   6267.073     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      279 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6307        144.95        .13399E-03   -.16696E-02
   2  Index         3.2891        6.5668        .64984E-02   -.35817E-03
   3  Normalizat    1.3828        .29208        .28005E-03   -.74898E-03
   4  Prefactor     .97119        .22928        .25276E-03   -.78986E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.63072
  Index      = 3.28907
  Normalizat = 1.38278
  Prefactor  = 0.971193
 **********
 **   18 **HESSE 
 **********

 FCN=   6267.073     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6307        7.3947        .53595E-05   -1.5384    
   2  Index         3.2891        1.2870        .25993E-03   -.34924    
   3  Normalizat    1.3828        .27442        .56010E-04   -.81128    
   4  Prefactor     .97119        .20676        .50552E-04   -.93696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53062e-09
Minuit parameter uncertainties:
  1  7.39728
  2  1.30362
  3  0.274713
  4  0.206925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510542': 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) = 6267.07305056
delta logL = 0.38603034613

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  2.631e+00  7.397e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.289e+00  1.304e+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.712e-01  2.069e-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.383e+00  2.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/510542/cmap_HighResolution_277948801_278208001_4FGL_J1322.2+0842_daily_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.80e-03', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-07 14:12:35.891160', job_id='510542', GAL2='0.97', fit_tolerance='1e-08', EG2='1.38', EG='1.44', time_epoch_completed='1631049155.89', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='3.86e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='149' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:12:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 510542: <4FGL_J1322.2+0842_daily_bin149> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin149> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 14:00:44 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:00:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:00:58 2021
Terminated at Tue Sep  7 14:12:36 2021
Results reported at Tue Sep  7 14:12:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin149 200.551 8.7036 277948801 278208001 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 :                                   554.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            712 sec.

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

