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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin339
RA = 200.551, Dec = 8.7036
tmin = 327196801, tmax = 327456001
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='510803', job_status='RUN', time_executed='2021-09-07 14:04:25.676298', time_epoch_executed='1631048665.68' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510803/ft1_4FGL_J1322.2+0842_daily_bin339.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510803/ft2_4FGL_J1322.2+0842_daily_bin339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510803/ft1_4FGL_J1322.2+0842_daily_bin339.fits outfile=/scratch/kocevski/510803/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin339.fits ra=200.551 dec=8.7036 rad=12.0 tmin=327196801.0 tmax=327456001.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.31
user 3.08
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510803/ft1_filtered_4FGL_J1322.2+0842_daily_bin339.fits evtable="EVENTS" scfile=/scratch/kocevski/510803/ft2_4FGL_J1322.2+0842_daily_bin339.fits sctable="SC_DATA" expcube=/scratch/kocevski/510803/ltcube_327196801_327456001_4FGL_J1322.2+0842_daily_bin339.fits outfile=/scratch/kocevski/510803/expmap_327196801_327456001_4FGL_J1322.2+0842_daily_bin339.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/510803/ltcube_327196801_327456001_4FGL_J1322.2+0842_daily_bin339.fits
.....................!
real 190.90
user 185.69
sys 4.78

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/510803/ft1_filtered_4FGL_J1322.2+0842_daily_bin339.fits scfile=/scratch/kocevski/510803/ft2_4FGL_J1322.2+0842_daily_bin339.fits outfile=/scratch/kocevski/510803/cmap_327196801_327456001_4FGL_J1322.2+0842_daily_bin339.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510803/ft1_filtered_4FGL_J1322.2+0842_daily_bin339.fits scfile=/scratch/kocevski/510803/ft2_4FGL_J1322.2+0842_daily_bin339.fits outfile=/scratch/kocevski/510803/cmap_HighResolution_327196801_327456001_4FGL_J1322.2+0842_daily_bin339.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6808       1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.086       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.485       1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.938       1.0000         .10000E-03   10000.    
     5 'Prefactor '    33.020       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.784       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    62.272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7599       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7412       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.637       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0393       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2113       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .88516       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=   5903.869     FROM MIGRAD    STATUS=CONVERGED    313 CALLS     1557 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6809        2.6228        .69180E-07    .20972E-04
   2  Prefactor     61.086        46.422        .16388E-06   -.18401E-06
   3  Prefactor     20.428        49.533       -.11090E-03   -.92345E-05
   4  Prefactor     15.942        18.217        .18751E-04    .84061E-04
   5  Prefactor     33.020        16.370       -.70241E-06   -.16744E-04
   6  Prefactor     .10000E-03    13.915       -.13582E-05** at limit **
   7  Prefactor     16.784        10.528       -.32531E-06   -.54220E-05
   8  Prefactor     .10000E-03    10.391        .35360E-06** at limit **
   9  Prefactor     .10000E-03    22.532        .15103E-05** at limit **
  10  norm          62.269        45.236       -.38175E-05    .37002E-05
  11  Prefactor     5.7598        3.8895        .16584E-07   -.14868E-03
  12  Prefactor     7.7406        15.857       -.10115E-05   -.26409E-04
  13  Prefactor     .10000E-03    1.5330       -.36674E-07** at limit **
  14  Prefactor     21.637        14.785       -.29179E-06   -.11742E-04
  15  Prefactor     7.0389        11.837       -.51797E-06   -.54764E-04
  16  Normalizat    1.2112        .21361       -.19038E-05    .16315E-03
  17  Prefactor     .88530        .16874        .37205E-05   -.14050E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.68086
  Prefactor  = 61.0864
  Prefactor  = 20.4281
  Prefactor  = 15.9421
  Prefactor  = 33.0203
  Prefactor  = 0.0001
  Prefactor  = 16.7841
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 62.269
  Prefactor  = 5.7598
  Prefactor  = 7.7406
  Prefactor  = 0.0001
  Prefactor  = 21.6372
  Prefactor  = 7.03895
  Normalizat = 1.21117
  Prefactor  = 0.885304
 **********
 **   18 **HESSE 
 **********

 FCN=   5903.869     FROM HESSE     STATUS=OK           225 CALLS     1782 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6809        2.6239        .66062E-04   -1.5119    
   2  Prefactor     61.086        46.423        .51337E-04   -1.4143    
   3  Prefactor     20.428        49.561        .88495E-04   -1.4804    
   4  Prefactor     15.942        18.257        .10032E-03   -1.4909    
   5  Prefactor     33.020        16.381        .69734E-04   -1.4558    
   6  Prefactor     .10000E-03    13.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.784        10.531        .97762E-04   -1.4888    
   8  Prefactor     .10000E-03    10.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          62.269        45.275        .50849E-04   -1.4128    
  11  Prefactor     5.7598        3.8883        .11982E-03   -1.5228    
  12  Prefactor     7.7406        15.847        .14412E-03   -1.5151    
  13  Prefactor     .10000E-03    1.5360        .92898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.637        14.806        .86109E-04   -1.4777    
  15  Prefactor     7.0389        11.828        .15120E-03   -1.5177    
  16  Normalizat    1.2112        .25468        .26910E-03   -.86258    
  17  Prefactor     .88530        .20020        .24912E-03   -.96657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89348e-10
Minuit parameter uncertainties:
  1  2.62396
  2  46.4509
  3  49.6614
  4  18.2633
  5  16.3836
  6  1.69849e-05
  7  10.5326
  8  6.75163e-06
  9  1.57666e-05
  10  45.3004
  11  3.88847
  12  15.8552
  13  2.43873e-06
  14  14.8084
  15  11.8319
  16  0.254942
  17  0.200361
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.678e+01  1.053e+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.853e-01  2.004e-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.211e+00  2.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.39
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 5.36e-08 +/- 3.36e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.36e-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) = 5902.6960175
delta logL = 1.17274529787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5902.55529722
delta logL = 1.31346558139

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.056       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5732       1.0000          .0000       10.000    
     3 'Normalizat'    1.2382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87445       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=   5902.555     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      219 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.032        21.934        .20007E-02   -.20286E-05
   2  Index         1.5730        .45456        .18558       -.86388E-05
   3  Normalizat    1.2385        .20710        .60260E-01   -.24724E-05
   4  Prefactor     .87428        .16728        .44679E-01   -.16861E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.0317
  Index      = 1.57297
  Normalizat = 1.23853
  Prefactor  = 0.874283
 **********
 **   18 **HESSE 
 **********

 FCN=   5902.555     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.032        17.542        .80026E-04   -1.4707    
   2  Index         1.5730        .41146        .72270E-02   -.75516    
   3  Normalizat    1.2385        .24393        .26652E-03   -.85420    
   4  Prefactor     .87428        .19772        .25055E-03   -.97046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61031e-13
Minuit parameter uncertainties:
  1  17.5457
  2  0.412337
  3  0.244158
  4  0.197882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510803': 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) = 5902.55529477
delta logL = 1.31346802701

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  2.503e+01  1.755e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.573e+00  4.123e-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.743e-01  1.979e-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.239e+00  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.00
Ra Dec: 200.551 8.704
Photon Index (Free Index): 1.57 +/- 0.41
Photon Flux (Free Index): 2.78e-08 +/- 2.51e-08
Energy Flux (Free Index): 6.88e-05 +/- 7.11e-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/510803/cmap_HighResolution_327196801_327456001_4FGL_J1322.2+0842_daily_bin339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.36e-08', energy_flux2='6.88e-05', photon_flux_error='3.36e-08', dlogl='1.31e+00', energy_flux='2.16e-05', photon_flux2='2.78e-08', job_status='DONE', time_completed='2021-09-07 14:12:36.047661', photon_index_error2='0.41', photon_index2='1.57', ts='8.39', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='7.11e-05', EG='1.21', time_epoch_completed='1631049156.05', return_code='0', job_id='510803', GAL2='0.87', EG2='1.24', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='2.51e-08', ts2='11.00', photon_index='2.26' WHERE bin_id='339' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:12:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 510803: <4FGL_J1322.2+0842_daily_bin339> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin339> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep  7 14:01:03 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:02:15 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:15 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_bin339 200.551 8.7036 327196801 327456001 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 :                                   489.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            693 sec.

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

