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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin331
RA = 200.551, Dec = 8.7036
tmin = 325123201, tmax = 325382401
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='510790', job_status='RUN', time_executed='2021-09-07 14:04:13.513260', time_epoch_executed='1631048653.51' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='331'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510790

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510790/ft1_4FGL_J1322.2+0842_daily_bin331.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510790/ft2_4FGL_J1322.2+0842_daily_bin331.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510790/ft1_4FGL_J1322.2+0842_daily_bin331.fits outfile=/scratch/kocevski/510790/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin331.fits ra=200.551 dec=8.7036 rad=12.0 tmin=325123201.0 tmax=325382401.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.42
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510790/ft1_filtered_4FGL_J1322.2+0842_daily_bin331.fits evtable="EVENTS" scfile=/scratch/kocevski/510790/ft2_4FGL_J1322.2+0842_daily_bin331.fits sctable="SC_DATA" expcube=/scratch/kocevski/510790/ltcube_325123201_325382401_4FGL_J1322.2+0842_daily_bin331.fits outfile=/scratch/kocevski/510790/expmap_325123201_325382401_4FGL_J1322.2+0842_daily_bin331.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/510790/ltcube_325123201_325382401_4FGL_J1322.2+0842_daily_bin331.fits
.....................!
real 193.48
user 187.58
sys 5.01

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/510790/ft1_filtered_4FGL_J1322.2+0842_daily_bin331.fits scfile=/scratch/kocevski/510790/ft2_4FGL_J1322.2+0842_daily_bin331.fits outfile=/scratch/kocevski/510790/cmap_325123201_325382401_4FGL_J1322.2+0842_daily_bin331.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510790/ft1_filtered_4FGL_J1322.2+0842_daily_bin331.fits scfile=/scratch/kocevski/510790/ft2_4FGL_J1322.2+0842_daily_bin331.fits outfile=/scratch/kocevski/510790/cmap_HighResolution_325123201_325382401_4FGL_J1322.2+0842_daily_bin331.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/510790/ft1_filtered_4FGL_J1322.2+0842_daily_bin331.fits evtable="EVENTS" scfile=/scratch/kocevski/510790/ft2_4FGL_J1322.2+0842_daily_bin331.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/510790/Model_4FGL_J1322.2+0842_daily_bin331.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/510790/ft1_filtered_4FGL_J1322.2+0842_daily_bin331.fits.....................!
real 53.48
user 52.14
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0512       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.974       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .42670E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.156       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    72.091       1.0000         .10000E-03   10000.    
    10 'norm      '    14.237       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1057       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2553       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5121       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2255       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .82956       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=   6707.817     FROM MIGRAD    STATUS=CONVERGED    320 CALLS     1562 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0514        1.3525       -.25545E-07   -.19197E-03
   2  Prefactor     .10000E-03    13.578        .38959E-06** at limit **
   3  Prefactor     .10000E-03    62.816       -.60447E-05** at limit **
   4  Prefactor     12.956        12.511       -.66527E-05   -.96534E-04
   5  Prefactor     .10011E-03    6.6918        .91493E-06** at limit **
   6  Prefactor     .10000E-03    42.752        .12297E-04** at limit **
   7  Prefactor     10.157        8.5297       -.11463E-06   -.52352E-05
   8  Prefactor     20.787        26.976       -.18781E-06   -.56383E-05
   9  Prefactor     72.093        54.440        .87138E-06   -.12653E-05
  10  norm          14.237        15.771        .36373E-07    .41690E-05
  11  Prefactor     6.1061        3.7812       -.16355E-06   -.19978E-03
  12  Prefactor     .10000E-03    5.0914        .37695E-07** at limit **
  13  Prefactor     .10000E-03    2.1144        .79226E-07** at limit **
  14  Prefactor     4.2564        10.605        .36544E-05   -.12696E-03
  15  Prefactor     7.5122        6.8755       -.25030E-05   -.58898E-05
  16  Normalizat    1.2255        .19352        .19724E-05   -.30086E-03
  17  Prefactor     .82955        .15004       -.59543E-06   -.82896E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.0514
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 12.9562
  Prefactor  = 0.000100108
  Prefactor  = 0.000100001
  Prefactor  = 10.1566
  Prefactor  = 20.7868
  Prefactor  = 72.0925
  norm       = 14.2366
  Prefactor  = 6.10613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.25644
  Prefactor  = 7.51219
  Normalizat = 1.22547
  Prefactor  = 0.82955
 **********
 **   18 **HESSE 
 **********

 FCN=   6707.817     FROM HESSE     STATUS=OK           225 CALLS     1787 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0514        1.3468        .74987E-04   -1.5422    
   2  Prefactor     .10000E-03    13.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    62.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.956        12.550        .11120E-03   -1.4988    
   5  Prefactor     .10011E-03    46.520        .40508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.157        8.5347        .12573E-03   -1.5070    
   8  Prefactor     20.787        26.978        .87851E-04   -1.4796    
   9  Prefactor     72.093        54.460        .47282E-04   -1.4008    
  10  norm          14.237        15.774        .10615E-03   -1.4953    
  11  Prefactor     6.1061        3.7808        .12032E-03   -1.5214    
  12  Prefactor     .10000E-03    5.0970        .18049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1401        .11627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2564        10.531        .19532E-03   -1.5295    
  15  Prefactor     7.5122        6.8710        .14632E-03   -1.5160    
  16  Normalizat    1.2255        .23138        .25583E-03   -.85819    
  17  Prefactor     .82955        .18044        .23917E-03   -.98648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66662e-09
Minuit parameter uncertainties:
  1  1.34683
  2  5.42578e-06
  3  0.00097354
  4  12.5528
  5  0.00449014
  6  0.000340066
  7  8.53571
  8  26.9936
  9  54.4981
  10  15.7788
  11  3.78099
  12  1.34968e-06
  13  5.1645e-06
  14  10.5357
  15  6.87175
  16  0.231572
  17  0.180571
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.016e+01  8.536e+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:  8.295e-01  1.806e-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.225e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.08
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 3.25e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.10e-05

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) = 6706.66555234
delta logL = 1.1510963369

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6706.58990062
delta logL = 1.22674805376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7160       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1099       1.0000          .0000       10.000    
     3 'Normalizat'    1.2479       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82619       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=   6706.590     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      206 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7160        5.9886        .42001E-02    .15948E-02
   2  Index         1.1099        .43691        .25605       -.82434E-04
   3  Normalizat    1.2479        .18797        .57393E-01    .19941E-05
   4  Prefactor     .82617        .14846        .44057E-01    .18287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.71599
  Index      = 1.10986
  Normalizat = 1.24788
  Prefactor  = 0.826167
 **********
 **   18 **HESSE 
 **********

 FCN=   6706.590     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7160        8.9690        .16801E-03   -1.5230    
   2  Index         1.1099        .69475        .10610E-01   -.89152    
   3  Normalizat    1.2479        .22639        .25381E-03   -.85136    
   4  Prefactor     .82617        .17889        .23965E-03   -.98771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6279e-09
Minuit parameter uncertainties:
  1  8.97106
  2  0.700538
  3  0.226565
  4  0.17902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510790': 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) = 6706.58990049
delta logL = 1.22674819195

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  5.716e+00  8.971e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.110e+00  7.005e-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:  8.262e-01  1.790e-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.248e+00  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.52
Ra Dec: 200.551 8.704
Photon Index (Free Index): 1.11 +/- 0.70
Photon Flux (Free Index): 5.25e-09 +/- 7.25e-09
Energy Flux (Free Index): 5.70e-05 +/- 8.01e-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/510790/cmap_HighResolution_325123201_325382401_4FGL_J1322.2+0842_daily_bin331.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.25e-08', energy_flux2='5.70e-05', photon_flux_error='2.73e-08', dlogl='1.23e+00', energy_flux='1.31e-05', photon_flux2='5.25e-09', job_status='DONE', time_completed='2021-09-07 14:12:45.606083', photon_index_error2='0.70', photon_index2='1.11', ts='6.08', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='8.01e-05', EG='1.23', time_epoch_completed='1631049165.61', return_code='0', job_id='510790', GAL2='0.83', EG2='1.25', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='7.25e-09', ts2='8.52', photon_index='2.26' WHERE bin_id='331' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:12:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 510790: <4FGL_J1322.2+0842_daily_bin331> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin331> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 14:01:02 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:02:06 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:02:06 2021
Terminated at Tue Sep  7 14:12:46 2021
Results reported at Tue Sep  7 14:12:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin331 200.551 8.7036 325123201 325382401 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 :                                   511.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            704 sec.

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

