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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin208
RA = 200.551, Dec = 8.7036
tmin = 293241601, tmax = 293500801
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='510626', job_status='RUN', time_executed='2021-09-07 14:03:12.937198', time_epoch_executed='1631048592.94' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510626

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510626/ft1_4FGL_J1322.2+0842_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510626/ft2_4FGL_J1322.2+0842_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510626/ft1_4FGL_J1322.2+0842_daily_bin208.fits outfile=/scratch/kocevski/510626/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin208.fits ra=200.551 dec=8.7036 rad=12.0 tmin=293241601.0 tmax=293500801.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/510626/ft2_4FGL_J1322.2+0842_daily_bin208.fits

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/510626/ft1_filtered_4FGL_J1322.2+0842_daily_bin208.fits" evtable="EVENTS" scfile=/scratch/kocevski/510626/ft2_4FGL_J1322.2+0842_daily_bin208.fits sctable="SC_DATA" outfile=/scratch/kocevski/510626/ltcube_293241601_293500801_4FGL_J1322.2+0842_daily_bin208.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/510626/ft2_4FGL_J1322.2+0842_daily_bin208.fits
.....................!
real 16.94
user 16.49
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510626/ft1_filtered_4FGL_J1322.2+0842_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/510626/ft2_4FGL_J1322.2+0842_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/510626/ltcube_293241601_293500801_4FGL_J1322.2+0842_daily_bin208.fits outfile=/scratch/kocevski/510626/expmap_293241601_293500801_4FGL_J1322.2+0842_daily_bin208.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/510626/ltcube_293241601_293500801_4FGL_J1322.2+0842_daily_bin208.fits
.....................!
real 192.21
user 186.97
sys 4.61

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

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12089E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21957E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10801E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.307       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4640       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.228       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7190       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    30.546       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.909       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.1187       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9007       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .91759       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0462       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=   6457.814     FROM MIGRAD    STATUS=CONVERGED    346 CALLS     1662 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .60524        .27836E-07** at limit **
   2  Prefactor     .10000E-03    80.295       -.32940E-06** at limit **
   3  Prefactor     .10000E-03    45.250        .42769E-06** at limit **
   4  Prefactor     11.303        12.920        .79363E-06   -.47029E-04
   5  Prefactor     1.4569        24.286        .44620E-05   -.56760E-04
   6  Prefactor     15.229        15.720       -.43546E-07   -.12415E-04
   7  Prefactor     2.7190        2.1867       -.63321E-07   -.12530E-02
   8  Prefactor     .10000E-03    14.157       -.45598E-07** at limit **
   9  Prefactor     .10000E-03    28.311       -.51720E-06** at limit **
  10  norm          30.552        31.861        .28546E-05    .34057E-04
  11  Prefactor     .10000E-03    1.1852        .17314E-07** at limit **
  12  Prefactor     20.910        24.216        .22018E-08   -.61965E-05
  13  Prefactor     9.1196        5.5299        .47505E-07   -.54267E-03
  14  Prefactor     9.9024        13.636       -.55489E-07   -.14544E-04
  15  Prefactor     .10000E-03    7.6616       -.16087E-07** at limit **
  16  Normalizat    .91774        .19541       -.54972E-06   -.59775E-04
  17  Prefactor     1.0460        .15402       -.21750E-06   -.70734E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.3027
  Prefactor  = 1.45693
  Prefactor  = 15.2287
  Prefactor  = 2.71903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 30.5518
  Prefactor  = 0.0001
  Prefactor  = 20.9104
  Prefactor  = 9.11963
  Prefactor  = 9.90238
  Prefactor  = 0.0001
  Normalizat = 0.917741
  Prefactor  = 1.04599
 **********
 **   18 **HESSE 
 **********

 FCN=   6457.814     FROM HESSE     STATUS=OK           227 CALLS     1889 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.0609        .12081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    82.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    45.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.303        12.746        .11914E-03   -1.5035    
   5  Prefactor     1.4569        24.181        .35546E-03   -1.5467    
   6  Prefactor     15.229        15.729        .10264E-03   -1.4927    
   7  Prefactor     2.7190        4.5073        .10730E-02   -1.5378    
   8  Prefactor     .10000E-03    14.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    28.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          30.552        32.091        .72495E-04   -1.4602    
  11  Prefactor     .10000E-03    1.1909        .85424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.910        24.216        .87594E-04   -1.4793    
  13  Prefactor     9.1196        5.7397        .66362E-03   -1.5104    
  14  Prefactor     9.9024        13.626        .12735E-03   -1.5079    
  15  Prefactor     .10000E-03    7.6897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .91774        .22979        .27824E-03   -.95839    
  17  Prefactor     1.0460        .18229        .21137E-03   -.91212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28807e-09
Minuit parameter uncertainties:
  1  2.03601e-05
  2  5.63493e-05
  3  6.14864e-05
  4  12.7495
  5  11.8764
  6  15.733
  7  4.50784
  8  1.11391e-06
  9  2.37612e-06
  10  32.1091
  11  1.17095e-06
  12  24.227
  13  5.74006
  14  13.63
  15  4.24022e-06
  16  0.230036
  17  0.182402
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  2.719e+00  4.508e+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.046e+00  1.824e-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.177e-01  2.300e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/510626/likelihoodResults_293241601_293500801_4FGL_J1322.2+0842_daily_bin208.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) = 6457.78436257
delta logL = 0.0292004402545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6457.7826297
delta logL = 0.0309333025816

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6016       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9874       1.0000          .0000       10.000    
     3 'Normalizat'    .91971       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0449       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=   6457.783     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      256 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6011        6.6108        .21292E-03    .78779E-03
   2  Index         1.9877        1.0701        .13536E-01    .13392E-03
   3  Normalizat    .91986        .22091        .27794E-03   -.13821E-03
   4  Prefactor     1.0448        .17899        .21147E-03   -.36917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.60107
  Index      = 1.98766
  Normalizat = 0.919862
  Prefactor  = 1.04479
 **********
 **   18 **HESSE 
 **********

 FCN=   6457.783     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6011        6.3927        .85166E-05   -1.5328    
   2  Index         1.9877        1.0363        .54144E-03   -.64659    
   3  Normalizat    .91986        .22110        .11118E-04   -.95766    
   4  Prefactor     1.0448        .17915        .42294E-04   -.91251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27907e-09
Minuit parameter uncertainties:
  1  6.39396
  2  1.0483
  3  0.22132
  4  0.179256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510626': 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) = 6457.78262943
delta logL = 0.0309335759339

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  3.601e+00  6.394e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.988e+00  1.048e+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:  1.045e+00  1.793e-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.199e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.63
Ra Dec: 200.551 8.704

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/510626/cmap_HighResolution_293241601_293500801_4FGL_J1322.2+0842_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.52e-03', job_status='DONE', photon_flux_upper_limit='5.90e-08', time_completed='2021-09-07 14:12:24.991443', job_id='510626', GAL2='1.04', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1631049144.99', return_code2='0', ts='0.63', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.09e-02', ts2='0.69', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='208' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:12:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 510626: <4FGL_J1322.2+0842_daily_bin208> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin208 200.551 8.7036 293241601 293500801 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 :                                   551.62 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            695 sec.

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

