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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin859
RA = 200.551, Dec = 8.7036
tmin = 461980801, tmax = 462240001
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='514762', job_status='RUN', time_executed='2021-09-07 14:18:43.425537', time_epoch_executed='1631049523.43' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='859'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514762

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514762/ft1_4FGL_J1322.2+0842_daily_bin859.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514762/ft2_4FGL_J1322.2+0842_daily_bin859.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514762/ft1_4FGL_J1322.2+0842_daily_bin859.fits outfile=/scratch/kocevski/514762/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin859.fits ra=200.551 dec=8.7036 rad=12.0 tmin=461980801.0 tmax=462240001.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.66
user 3.39
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514762/ft1_filtered_4FGL_J1322.2+0842_daily_bin859.fits evtable="EVENTS" scfile=/scratch/kocevski/514762/ft2_4FGL_J1322.2+0842_daily_bin859.fits sctable="SC_DATA" expcube=/scratch/kocevski/514762/ltcube_461980801_462240001_4FGL_J1322.2+0842_daily_bin859.fits outfile=/scratch/kocevski/514762/expmap_461980801_462240001_4FGL_J1322.2+0842_daily_bin859.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/514762/ltcube_461980801_462240001_4FGL_J1322.2+0842_daily_bin859.fits
.....................!
real 192.66
user 186.65
sys 5.41

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/514762/ft1_filtered_4FGL_J1322.2+0842_daily_bin859.fits scfile=/scratch/kocevski/514762/ft2_4FGL_J1322.2+0842_daily_bin859.fits outfile=/scratch/kocevski/514762/cmap_461980801_462240001_4FGL_J1322.2+0842_daily_bin859.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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514762/ft1_filtered_4FGL_J1322.2+0842_daily_bin859.fits scfile=/scratch/kocevski/514762/ft2_4FGL_J1322.2+0842_daily_bin859.fits outfile=/scratch/kocevski/514762/cmap_HighResolution_461980801_462240001_4FGL_J1322.2+0842_daily_bin859.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=200.551 yref=8.7036 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86524E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.372       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.528       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.4683       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11974E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.2871       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .41392E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10739E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6633       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.509       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .91770       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0454       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=   5687.680     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1605 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86460E-01    5.9863        .20510E-05   -.16228E-04
   2  Prefactor     47.375        50.763       -.14616E-06   -.13535E-04
   3  Prefactor     .10000E-03    14.899        .60675E-06** at limit **
   4  Prefactor     18.530        13.764        .95470E-07    .29670E-04
   5  Prefactor     6.4742        10.580       -.12295E-05    .82421E-05
   6  Prefactor     .10000E-03    21.877       -.56067E-06** at limit **
   7  Prefactor     6.2886        8.2470       -.65504E-06   -.80856E-05
   8  Prefactor     .10000E-03    21.929       -.31242E-06** at limit **
   9  Prefactor     .10008E-03    6176.7        .33728E-05** at limit **
  10  norm          .10000E-03    9.3271        .31760E-06** at limit **
  11  Prefactor     .10000E-03    2.9907       -.10262E-06** at limit **
  12  Prefactor     .10000E-03    10.237       -.62193E-06** at limit **
  13  Prefactor     4.6606        4.0998       -.66640E-07   -.96345E-04
  14  Prefactor     .10000E-03    5.6642       -.45754E-07** at limit **
  15  Prefactor     13.510        13.486       -.17277E-06    .16324E-05
  16  Normalizat    .91739        .24657        .36824E-05   -.12079E-03
  17  Prefactor     1.0453        .19182       -.33057E-05   -.11959E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0864603
  Prefactor  = 47.3745
  Prefactor  = 0.0001
  Prefactor  = 18.5296
  Prefactor  = 6.47421
  Prefactor  = 0.0001
  Prefactor  = 6.28865
  Prefactor  = 0.0001
  Prefactor  = 0.000100075
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.66063
  Prefactor  = 0.0001
  Prefactor  = 13.5102
  Normalizat = 0.917393
  Prefactor  = 1.04528
 **********
 **   18 **HESSE 
 **********

 FCN=   5687.680     FROM HESSE     STATUS=OK           233 CALLS     1838 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86460E-01    5.9683        .13537E-02   -1.5649    
   2  Prefactor     47.375        50.643        .58258E-04   -1.4330    
   3  Prefactor     .10000E-03    14.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.530        13.797        .46524E-03   -1.4847    
   5  Prefactor     6.4742        10.620        .78902E-03   -1.5199    
   6  Prefactor     .10000E-03    22.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.2886        8.2540        .80044E-03   -1.5206    
   8  Prefactor     .10000E-03    22.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10008E-03    70.310        .17166       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.3573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.0882        .25457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6606        4.1036        .13833E-03   -1.5276    
  14  Prefactor     .10000E-03    5.6846        .17535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.510        13.486        .10898E-03   -1.4973    
  16  Normalizat    .91739        .24849        .27955E-03   -.95852    
  17  Prefactor     1.0453        .19213        .20955E-03   -.91235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58964e-08
Minuit parameter uncertainties:
  1  1.43601
  2  50.6894
  3  8.41909e-05
  4  13.7995
  5  10.623
  6  1.77115e-05
  7  8.25551
  8  2.64501e-05
  9  0.00460192
  10  4.11527e-05
  11  1.41443e-05
  12  6.28185e-05
  13  4.10384
  14  2.28457e-06
  15  13.4894
  16  0.248798
  17  0.192256
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  6.289e+00  8.256e+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:  1.045e+00  1.923e-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:  9.174e-01  2.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 2.01e-08 +/- 2.64e-08
Energy Flux (Fixed Index): 8.09e-06 +/- 1.06e-05

TS (Fixed Index): 1.08
Ra Dec: 200.551 8.704
Photon Flux Upper Limit: 9.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/514762/likelihoodResults_461980801_462240001_4FGL_J1322.2+0842_daily_bin859.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) = 5687.46194889
delta logL = 0.218300949152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5687.44656322
delta logL = 0.233686622151

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9021       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6611       1.0000          .0000       10.000    
     3 'Normalizat'    .93081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0392       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=   5687.447     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      246 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9036        9.9156        .14264E-03    .28613E-04
   2  Index         1.6611        .78663        .12055E-01   -.79983E-05
   3  Normalizat    .93080        .23819        .27766E-03   -.18589E-04
   4  Prefactor     1.0392        .19038        .21003E-03    .28147E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.90358
  Index      = 1.66107
  Normalizat = 0.930796
  Prefactor  = 1.03923
 **********
 **   18 **HESSE 
 **********

 FCN=   5687.447     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9036        9.9910        .57055E-05   -1.5146    
   2  Index         1.6611        .79266        .48219E-03   -.73123    
   3  Normalizat    .93080        .23845        .11107E-04   -.95386    
   4  Prefactor     1.0392        .19061        .84011E-05   -.91433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38714e-12
Minuit parameter uncertainties:
  1  9.99311
  2  0.798778
  3  0.238726
  4  0.19073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514762': 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) = 5687.44656321
delta logL = 0.233686635505

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  7.904e+00  9.993e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.661e+00  7.988e-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:  1.039e+00  1.907e-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:  9.308e-01  2.387e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 200.551 8.704
Photon Index (Free Index): 1.66 +/- 0.80
Photon Flux (Free Index): 9.69e-09 +/- 1.70e-08
Energy Flux (Free Index): 1.79e-05 +/- 3.28e-05

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/514762/cmap_HighResolution_461980801_462240001_4FGL_J1322.2+0842_daily_bin859.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.27e-03', comment='SUCCESS', photon_flux='2.01e-08', energy_flux2='1.79e-05', photon_flux_error='2.64e-08', dlogl='2.34e-01', energy_flux='8.09e-06', photon_flux2='9.69e-09', job_status='DONE', time_completed='2021-09-07 14:27:24.262193', photon_index_error2='0.80', photon_index2='1.66', ts='1.08', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='3.28e-05', EG='0.92', time_epoch_completed='1631050044.26', return_code='0', job_id='514762', GAL2='1.04', EG2='0.93', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='1.70e-08', ts2='1.54', photon_index='2.26' WHERE bin_id='859' 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@bullet0275>
Subject: Job 514762: <4FGL_J1322.2+0842_daily_bin859> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin859> 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) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:16:13 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:13 2021
Terminated at Tue Sep  7 14:27:24 2021
Results reported at Tue Sep  7 14:27:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin859 200.551 8.7036 461980801 462240001 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 :                                   521.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            718 sec.

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

