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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin883
RA = 200.551, Dec = 8.7036
tmin = 468201601, tmax = 468460801
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='514797', job_status='RUN', time_executed='2021-09-07 14:18:32.471232', time_epoch_executed='1631049512.47' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='883'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514797/ft1_4FGL_J1322.2+0842_daily_bin883.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514797/ft2_4FGL_J1322.2+0842_daily_bin883.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514797/ft1_4FGL_J1322.2+0842_daily_bin883.fits outfile=/scratch/kocevski/514797/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin883.fits ra=200.551 dec=8.7036 rad=12.0 tmin=468201601.0 tmax=468460801.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.62
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514797/ft1_filtered_4FGL_J1322.2+0842_daily_bin883.fits" evtable="EVENTS" scfile=/scratch/kocevski/514797/ft2_4FGL_J1322.2+0842_daily_bin883.fits sctable="SC_DATA" outfile=/scratch/kocevski/514797/ltcube_468201601_468460801_4FGL_J1322.2+0842_daily_bin883.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/514797/ft2_4FGL_J1322.2+0842_daily_bin883.fits
.....................!
real 17.79
user 17.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514797/ft1_filtered_4FGL_J1322.2+0842_daily_bin883.fits evtable="EVENTS" scfile=/scratch/kocevski/514797/ft2_4FGL_J1322.2+0842_daily_bin883.fits sctable="SC_DATA" expcube=/scratch/kocevski/514797/ltcube_468201601_468460801_4FGL_J1322.2+0842_daily_bin883.fits outfile=/scratch/kocevski/514797/expmap_468201601_468460801_4FGL_J1322.2+0842_daily_bin883.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/514797/ltcube_468201601_468460801_4FGL_J1322.2+0842_daily_bin883.fits
.....................!
real 192.26
user 186.83
sys 4.75

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

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514797/ft1_filtered_4FGL_J1322.2+0842_daily_bin883.fits scfile=/scratch/kocevski/514797/ft2_4FGL_J1322.2+0842_daily_bin883.fits outfile=/scratch/kocevski/514797/cmap_HighResolution_468201601_468460801_4FGL_J1322.2+0842_daily_bin883.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1887       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    75.441       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2977       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.788       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.1254       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0920       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94282       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=   6630.462     FROM MIGRAD    STATUS=CONVERGED    326 CALLS     1562 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1886        1.8202       -.98712E-07    .22093E-04
   2  Prefactor     .10000E-03    26.176       -.29079E-05** at limit **
   3  Prefactor     75.430        51.215       -.10879E-04    .12615E-04
   4  Prefactor     .10000E-03    8.3810        .50639E-06** at limit **
   5  Prefactor     .10000E-03    4.0895        .45545E-08** at limit **
   6  Prefactor     6.2656        19.406       -.25622E-04   -.27632E-04
   7  Prefactor     10.786        12.195       -.13628E-05   -.74593E-05
   8  Prefactor     .10000E-03    10.386        .80855E-06** at limit **
   9  Prefactor     .10000E-03    39.782        .76639E-05** at limit **
  10  norm          .10000E-03    8.3923        .76685E-06** at limit **
  11  Prefactor     .10000E-03    1.6260       -.62257E-07** at limit **
  12  Prefactor     23.872        23.685       -.35372E-05    .27438E-04
  13  Prefactor     .10000E-03    1.6955       -.12474E-07** at limit **
  14  Prefactor     1.1192        9.5823       -.33447E-05    .13900E-03
  15  Prefactor     .10000E-03    8.7615       -.15184E-05** at limit **
  16  Normalizat    1.0919        .19135        .43638E-05    .18683E-03
  17  Prefactor     .94296        .14788        .69107E-06    .48289E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.18858
  Prefactor  = 0.0001
  Prefactor  = 75.4305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.26556
  Prefactor  = 10.786
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.8721
  Prefactor  = 0.0001
  Prefactor  = 1.11915
  Prefactor  = 0.0001
  Normalizat = 1.09194
  Prefactor  = 0.942965
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.462     FROM HESSE     STATUS=OK           219 CALLS     1781 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1886        1.8207        .69875E-04   -1.5299    
   2  Prefactor     .10000E-03    26.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     75.430        51.274        .46228E-04   -1.3969    
   4  Prefactor     .10000E-03    8.4347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0986        .16080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2656        19.528        .15995E-03   -1.5207    
   7  Prefactor     10.786        12.215        .12198E-03   -1.5051    
   8  Prefactor     .10000E-03    10.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.3927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6443        .10137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.872        23.700        .81978E-04   -1.4730    
  13  Prefactor     .10000E-03    1.7053        .10353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1192        49.181        .47391E-02   -1.5496    
  15  Prefactor     .10000E-03    8.8078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0919        .22967        .26700E-03   -.90011    
  17  Prefactor     .94296        .17885        .22531E-03   -.94656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09652e-10
Minuit parameter uncertainties:
  1  1.82073
  2  3.24844e-05
  3  51.3038
  4  9.15257e-05
  5  5.61664e-06
  6  19.5474
  7  12.2183
  8  1.50043e-05
  9  9.40074e-05
  10  2.14373e-06
  11  8.71701e-06
  12  23.7091
  13  5.24158e-06
  14  14.8503
  15  4.61866e-06
  16  0.229879
  17  0.178964
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.079e+01  1.222e+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:  9.430e-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.092e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/514797/likelihoodResults_468201601_468460801_4FGL_J1322.2+0842_daily_bin883.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) = 6630.33272441
delta logL = 0.129604122843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6630.32859832
delta logL = 0.133730220987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4345       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6555       1.0000          .0000       10.000    
     3 'Normalizat'    1.0711       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95256       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=   6630.329     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      261 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4345        207.41        .36773E-02    .57738E-03
   2  Index         2.6554        6.3225        .11813        .14354E-03
   3  Normalizat    1.0715        .75526E-01    .60881E-01    .10422E-04
   4  Prefactor     .95233        .51574E-01    .45671E-01    .11075E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.43452
  Index      = 2.65539
  Normalizat = 1.07147
  Prefactor  = 0.952334
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.329     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4345        13.859        .14709E-03   -1.5163    
   2  Index         2.6554        .97609        .72130E-02   -.48807    
   3  Normalizat    1.0715        .23051        .26927E-03   -.90673    
   4  Prefactor     .95233        .18013        .22431E-03   -.94336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2634e-08
Minuit parameter uncertainties:
  1  13.8645
  2  0.984216
  3  0.230728
  4  0.180242
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514797': 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) = 6630.32859693
delta logL = 0.133731607183

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  7.435e+00  1.386e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.655e+00  9.842e-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:  9.523e-01  1.802e-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.071e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 200.551 8.704
Photon Index (Free Index): 2.66 +/- 0.98
Photon Flux (Free Index): 5.14e-08 +/- 5.55e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.37e-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/514797/cmap_HighResolution_468201601_468460801_4FGL_J1322.2+0842_daily_bin883.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-03', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='1.34e-01', photon_flux2='5.14e-08', job_status='DONE', time_completed='2021-09-07 14:27:41.573159', photon_index_error2='0.98', photon_index2='2.66', ts='0.99', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.37e-05', EG='1.09', time_epoch_completed='1631050061.57', return_code='0', job_id='514797', GAL2='0.95', EG2='1.07', return_code2='0', photon_flux_error2='5.55e-08', ts2='1.25', photon_index='2.26' WHERE bin_id='883' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:27:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 514797: <4FGL_J1322.2+0842_daily_bin883> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin883> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:15:28 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:16:22 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:22 2021
Terminated at Tue Sep  7 14:27:42 2021
Results reported at Tue Sep  7 14:27:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin883 200.551 8.7036 468201601 468460801 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 :                                   548.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            734 sec.

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

