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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin330
RA = 200.551, Dec = 8.7036
tmin = 324864001, tmax = 325123201
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='510789', job_status='RUN', time_executed='2021-09-07 14:04:10.090152', time_epoch_executed='1631048650.09' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/510789

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/510789/ft1_4FGL_J1322.2+0842_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/510789/ft2_4FGL_J1322.2+0842_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/510789/ft1_4FGL_J1322.2+0842_daily_bin330.fits outfile=/scratch/kocevski/510789/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin330.fits ra=200.551 dec=8.7036 rad=12.0 tmin=324864001.0 tmax=325123201.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 5.72
user 5.43
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/510789/ft2_4FGL_J1322.2+0842_daily_bin330.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/510789/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin330.fits evtable="EVENTS" outfile="/scratch/kocevski/510789/ft1_filtered_4FGL_J1322.2+0842_daily_bin330.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/510789/ft1_filtered_4FGL_J1322.2+0842_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/510789/ft2_4FGL_J1322.2+0842_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/510789/ltcube_324864001_325123201_4FGL_J1322.2+0842_daily_bin330.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/510789/ft2_4FGL_J1322.2+0842_daily_bin330.fits
.....................!
real 16.26
user 15.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/510789/ft1_filtered_4FGL_J1322.2+0842_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/510789/ft2_4FGL_J1322.2+0842_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/510789/ltcube_324864001_325123201_4FGL_J1322.2+0842_daily_bin330.fits outfile=/scratch/kocevski/510789/expmap_324864001_325123201_4FGL_J1322.2+0842_daily_bin330.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/510789/ltcube_324864001_325123201_4FGL_J1322.2+0842_daily_bin330.fits
.....................!
real 191.75
user 186.66
sys 4.47

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/510789/ft1_filtered_4FGL_J1322.2+0842_daily_bin330.fits scfile=/scratch/kocevski/510789/ft2_4FGL_J1322.2+0842_daily_bin330.fits outfile=/scratch/kocevski/510789/cmap_324864001_325123201_4FGL_J1322.2+0842_daily_bin330.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/510789/ft1_filtered_4FGL_J1322.2+0842_daily_bin330.fits scfile=/scratch/kocevski/510789/ft2_4FGL_J1322.2+0842_daily_bin330.fits outfile=/scratch/kocevski/510789/cmap_HighResolution_324864001_325123201_4FGL_J1322.2+0842_daily_bin330.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/510789/ft1_filtered_4FGL_J1322.2+0842_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/510789/ft2_4FGL_J1322.2+0842_daily_bin330.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/510789/Model_4FGL_J1322.2+0842_daily_bin330.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/510789/ft1_filtered_4FGL_J1322.2+0842_daily_bin330.fits.....................!
real 45.24
user 43.84
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8383       1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.650       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48601E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.229       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3385       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.971       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.020       1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.674       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.564       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91734       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1533       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .85601       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=   5308.602     FROM MIGRAD    STATUS=CONVERGED    332 CALLS     1605 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8384        2.4297       -.22546E-07    .16796E-04
   2  Prefactor     23.650        30.298        .39147E-08    .10092E-05
   3  Prefactor     .10000E-03    80.577        .38260E-05** at limit **
   4  Prefactor     .10000E-03    75.069        .18508E-04** at limit **
   5  Prefactor     13.230        13.569        .55833E-06    .64617E-04
   6  Prefactor     5.3387        8.7497       -.88416E-06   -.42763E-04
   7  Prefactor     .10000E-03    6.5381        .10275E-06** at limit **
   8  Prefactor     25.969        41.894        .53133E-06    .80886E-05
   9  Prefactor     17.997        37.849        .11869E-04    .26692E-04
  10  norm          .10000E-03    24.153       -.93679E-07** at limit **
  11  Prefactor     12.674        6.2863        .49555E-06    .41971E-04
  12  Prefactor     18.565        20.153        .10285E-05    .49392E-04
  13  Prefactor     2.5686        2.8559        .17672E-06    .45674E-04
  14  Prefactor     8.3779        8.4901       -.18357E-07    .21543E-04
  15  Prefactor     .93050        10.310       -.67998E-06   -.10813E-03
  16  Normalizat    1.1532        .22046        .19214E-05    .22444E-04
  17  Prefactor     .85612        .17133       -.13684E-05    .26702E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.83836
  Prefactor  = 23.6496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.2303
  Prefactor  = 5.33873
  Prefactor  = 0.0001
  Prefactor  = 25.9691
  Prefactor  = 17.9972
  norm       = 0.0001
  Prefactor  = 12.6741
  Prefactor  = 18.5652
  Prefactor  = 2.5686
  Prefactor  = 8.37794
  Prefactor  = 0.930497
  Normalizat = 1.15317
  Prefactor  = 0.856123
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8384        2.4309        .70514E-04   -1.5225    
   2  Prefactor     23.650        30.298        .82368E-04   -1.4735    
   3  Prefactor     .10000E-03    81.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    73.583        .36147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.230        13.446        .11013E-03   -1.4980    
   6  Prefactor     5.3387        8.7502        .17394E-03   -1.5246    
   7  Prefactor     .10000E-03    6.5513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.969        41.906        .78607E-04   -1.4688    
   9  Prefactor     17.997        37.864        .94351E-04   -1.4859    
  10  norm          .10000E-03    24.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.674        6.2967        .11252E-03   -1.4996    
  12  Prefactor     18.565        20.104        .92957E-04   -1.4846    
  13  Prefactor     2.5686        2.8576        .12642E-03   -1.5387    
  14  Prefactor     8.3779        8.4930        .13850E-03   -1.5129    
  15  Prefactor     .93050        31.283        .44490E-02   -1.5515    
  16  Normalizat    1.1532        .26117        .26417E-03   -.88062    
  17  Prefactor     .85612        .20373        .23673E-03   -.97692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70595e-08
Minuit parameter uncertainties:
  1  2.43093
  2  30.3172
  3  1.88419e-06
  4  0.000308103
  5  13.4491
  6  8.7523
  7  1.2874e-05
  8  41.9537
  9  37.9145
  10  7.23181e-06
  11  6.29704
  12  20.1114
  13  2.8577
  14  8.49419
  15  10.7961
  16  0.261468
  17  0.203909
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.287e-05  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.561e-01  2.039e-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.153e+00  2.615e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/510789/likelihoodResults_324864001_325123201_4FGL_J1322.2+0842_daily_bin330.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): 102
logL (Free Index) = 5308.60269092
delta logL = -0.000726930450583

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5308.60196399
delta logL = -1.91084836842e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2553       1.0000          .0000       10.000    
     3 'Normalizat'    1.1532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85613       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=   5308.602     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064E-03    173.61        .18142E-02** at limit **
   2  Index         2.1860        6.6944        .50000        .64289E-05
   3  Normalizat    1.1532        .27726E-01    .26417E-03   -.20356E-04
   4  Prefactor     .85612        .21865E-01    .23673E-03   -.17529E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100643
  Index      = 2.18595
  Normalizat = 1.15318
  Prefactor  = 0.856119
 **********
 **   18 **HESSE 
 **********

 FCN=   5308.602     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10064E-03    797.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1860        6.5303        .50000       -.59778    
   3  Normalizat    1.1532        .70626E-01    .10567E-04   -.88062    
   4  Prefactor     .85612        .55400E-01    .94693E-05   -.97692    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43648e-08
Minuit parameter uncertainties:
  1  0.0459266
  2  2243.96
  3  0.0706318
  4  0.0554041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/510789': 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): 102
logL (Free Index) = 5308.6019639
delta logL = 9.18907971936e-08

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.006e-04  4.593e-02  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.186e+00  2.244e+03  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.561e-01  5.540e-02  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.153e+00  7.063e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/510789/cmap_HighResolution_324864001_325123201_4FGL_J1322.2+0842_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', job_status='DONE', photon_flux_upper_limit='8.66e-08', time_completed='2021-09-07 14:12:46.210852', job_id='510789', GAL2='0.86', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631049166.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='9.19e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='330' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:12:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 510789: <4FGL_J1322.2+0842_daily_bin330> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin330> 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) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:02:05 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:05 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_bin330 200.551 8.7036 324864001 325123201 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 :                                   515.60 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.59 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.

