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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin679
RA = 200.551, Dec = 8.7036
tmin = 415324801, tmax = 415584001
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='513395', job_status='RUN', time_executed='2021-09-07 14:13:49.708499', time_epoch_executed='1631049229.71' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='679'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513395

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513395/ft1_4FGL_J1322.2+0842_daily_bin679.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513395/ft2_4FGL_J1322.2+0842_daily_bin679.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513395/ft1_4FGL_J1322.2+0842_daily_bin679.fits outfile=/scratch/kocevski/513395/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin679.fits ra=200.551 dec=8.7036 rad=12.0 tmin=415324801.0 tmax=415584001.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 6.12
user 5.83
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513395/ft1_filtered_4FGL_J1322.2+0842_daily_bin679.fits evtable="EVENTS" scfile=/scratch/kocevski/513395/ft2_4FGL_J1322.2+0842_daily_bin679.fits sctable="SC_DATA" expcube=/scratch/kocevski/513395/ltcube_415324801_415584001_4FGL_J1322.2+0842_daily_bin679.fits outfile=/scratch/kocevski/513395/expmap_415324801_415584001_4FGL_J1322.2+0842_daily_bin679.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/513395/ltcube_415324801_415584001_4FGL_J1322.2+0842_daily_bin679.fits
.....................!
real 192.77
user 187.09
sys 4.99

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/513395/ft1_filtered_4FGL_J1322.2+0842_daily_bin679.fits scfile=/scratch/kocevski/513395/ft2_4FGL_J1322.2+0842_daily_bin679.fits outfile=/scratch/kocevski/513395/cmap_415324801_415584001_4FGL_J1322.2+0842_daily_bin679.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=200.551 yref=8.7036 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9282       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.7890       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15905E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12951E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.029       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.585       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.699       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.185       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16655       1.0000         .10000E-03   10000.    
    10 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4172       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.7657       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11590E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2933       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88230       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=   8959.459     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1713 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9277        1.8086       -.41364E-06   -.95705E-03
   2  Prefactor     4.7721        89.447        .54458E-04   -.59385E-05
   3  Prefactor     .10000E-03    42.782       -.31404E-05** at limit **
   4  Prefactor     .10040E-03    10.789       -.91928E-06** at limit **
   5  Prefactor     40.999        17.662        .35156E-05    .12285E-03
   6  Prefactor     14.582        13.582       -.81807E-06   -.39253E-04
   7  Prefactor     13.702        10.865        .39950E-06   -.60077E-04
   8  Prefactor     27.191        20.213        .21611E-04    .89372E-05
   9  Prefactor     .31590E-03    30.789       -.56446E-06** at limit **
  10  norm          .10000E-03    29.401        .82674E-06** at limit **
  11  Prefactor     2.4182        2.7218        .11228E-06   -.78873E-03
  12  Prefactor     6.7383        13.689        .77278E-05   -.56176E-04
  13  Prefactor     .10000E-03    1.3526        .22376E-06** at limit **
  14  Prefactor     .10000E-03    3.2811       -.20564E-08** at limit **
  15  Prefactor     .10000E-03    10.625       -.38058E-06** at limit **
  16  Normalizat    1.2932        .17299       -.25639E-05    .18636E-03
  17  Prefactor     .88228        .12964       -.86124E-06   -.67448E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.92766
  Prefactor  = 4.77206
  Prefactor  = 0.0001
  Prefactor  = 0.000100404
  Prefactor  = 40.9988
  Prefactor  = 14.5816
  Prefactor  = 13.7023
  Prefactor  = 27.1907
  Prefactor  = 0.000315904
  norm       = 0.0001
  Prefactor  = 2.41818
  Prefactor  = 6.73833
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29322
  Prefactor  = 0.882276
 **********
 **   18 **HESSE 
 **********

 FCN=   8959.459     FROM HESSE     STATUS=OK           243 CALLS     1956 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9277        1.7998        .11812E-03   -1.5430    
   2  Prefactor     4.7721        88.837        .18385E-03   -1.5271    
   3  Prefactor     .10000E-03    42.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10040E-03    13.885        .78104E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.999        17.746        .62581E-04   -1.4426    
   6  Prefactor     14.582        13.604        .10488E-03   -1.4944    
   7  Prefactor     13.702        10.889        .10822E-03   -1.4967    
   8  Prefactor     27.191        20.195        .38418E-03   -1.4665    
   9  Prefactor     .31590E-03    30.404        .14733       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    29.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4182        2.7127        .15745E-03   -1.5397    
  12  Prefactor     6.7383        13.663        .15426E-03   -1.5189    
  13  Prefactor     .10000E-03    1.4046        .21494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.2921        .16743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.2932        .20796        .25678E-03   -.83769    
  17  Prefactor     .88228        .15488        .23847E-03   -.96763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20524e-10
Minuit parameter uncertainties:
  1  1.79981
  2  41.25
  3  3.66592e-05
  4  0.00473682
  5  17.7487
  6  13.6072
  7  10.8909
  8  20.2005
  9  0.162124
  10  3.78238e-05
  11  2.71289
  12  13.6695
  13  5.38772e-06
  14  8.26226e-06
  15  3.21564e-05
  16  0.208096
  17  0.15496
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.370e+01  1.089e+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:  8.823e-01  1.550e-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.293e+00  2.081e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 4.38e-08 +/- 3.48e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/513395/likelihoodResults_415324801_415584001_4FGL_J1322.2+0842_daily_bin679.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) = 8958.15787242
delta logL = 1.30076395593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8958.12641531
delta logL = 1.33222106108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4185       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3712       1.0000          .0000       10.000    
     3 'Normalizat'    1.2045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92625       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=   8958.126     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      260 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4060        23.922        .54697E-02   -.27713E-03
   2  Index         3.3727        2.0105        .10260        .84375E-04
   3  Normalizat    1.2043        .57421E-01    .59815E-01   -.79072E-04
   4  Prefactor     .92644        .42278E-01    .45339E-01   -.46581E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.40598
  Index      = 3.37266
  Normalizat = 1.20431
  Prefactor  = 0.926442
 **********
 **   18 **HESSE 
 **********

 FCN=   8958.126     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4060        40.809        .84530E-04   -1.5339    
   2  Index         3.3727        3.0506        .37838E-02   -.33151    
   3  Normalizat    1.2043        .23800        .26455E-03   -.86470    
   4  Prefactor     .92644        .18078        .23325E-03   -.95223    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.34485e-10
Minuit parameter uncertainties:
  1  23.599
  2  3.31579
  3  0.238218
  4  0.180895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513395': 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) = 8958.12641186
delta logL = 1.33222451628

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  3.406e+00  2.360e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  3.373e+00  3.316e+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.264e-01  1.809e-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.204e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.20
Ra Dec: 200.551 8.704
Photon Index (Free Index): 3.37 +/- 3.32
Photon Flux (Free Index): 1.10e-07 +/- 7.89e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513395/cmap_HighResolution_415324801_415584001_4FGL_J1322.2+0842_daily_bin679.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', comment='SUCCESS', photon_flux='4.38e-08', energy_flux2='1.90e-05', photon_flux_error='3.48e-08', dlogl='1.33e+00', energy_flux='1.76e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-07 14:25:05.566119', photon_index_error2='3.32', photon_index2='3.37', ts='2.33', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.16e-07', energy_flux_error2='1.42e-05', EG='1.29', time_epoch_completed='1631049905.57', return_code='0', job_id='513395', GAL2='0.93', EG2='1.20', return_code2='102', energy_flux_error='1.40e-05', photon_flux_error2='7.89e-08', ts2='5.20', photon_index='2.26' WHERE bin_id='679' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:25:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 513395: <4FGL_J1322.2+0842_daily_bin679> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin679> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 14:10:22 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:10:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:10:43 2021
Terminated at Tue Sep  7 14:25:06 2021
Results reported at Tue Sep  7 14:25:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin679 200.551 8.7036 415324801 415584001 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 :                                   674.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             271.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            884 sec.

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

