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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin665
RA = 200.551, Dec = 8.7036
tmin = 411696001, tmax = 411955201
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='513375', job_status='RUN', time_executed='2021-09-07 14:13:13.658253', time_epoch_executed='1631049193.66' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513375

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513375/ft1_4FGL_J1322.2+0842_daily_bin665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513375/ft2_4FGL_J1322.2+0842_daily_bin665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513375/ft1_4FGL_J1322.2+0842_daily_bin665.fits outfile=/scratch/kocevski/513375/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin665.fits ra=200.551 dec=8.7036 rad=12.0 tmin=411696001.0 tmax=411955201.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 6.31
user 6.02
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513375/ft1_filtered_4FGL_J1322.2+0842_daily_bin665.fits" evtable="EVENTS" scfile=/scratch/kocevski/513375/ft2_4FGL_J1322.2+0842_daily_bin665.fits sctable="SC_DATA" outfile=/scratch/kocevski/513375/ltcube_411696001_411955201_4FGL_J1322.2+0842_daily_bin665.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/513375/ft2_4FGL_J1322.2+0842_daily_bin665.fits
.....................!
real 17.85
user 17.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513375/ft1_filtered_4FGL_J1322.2+0842_daily_bin665.fits evtable="EVENTS" scfile=/scratch/kocevski/513375/ft2_4FGL_J1322.2+0842_daily_bin665.fits sctable="SC_DATA" expcube=/scratch/kocevski/513375/ltcube_411696001_411955201_4FGL_J1322.2+0842_daily_bin665.fits outfile=/scratch/kocevski/513375/expmap_411696001_411955201_4FGL_J1322.2+0842_daily_bin665.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/513375/ltcube_411696001_411955201_4FGL_J1322.2+0842_daily_bin665.fits
.....................!
real 192.46
user 188.18
sys 3.82

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/513375/ft1_filtered_4FGL_J1322.2+0842_daily_bin665.fits scfile=/scratch/kocevski/513375/ft2_4FGL_J1322.2+0842_daily_bin665.fits outfile=/scratch/kocevski/513375/cmap_411696001_411955201_4FGL_J1322.2+0842_daily_bin665.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513375/ft1_filtered_4FGL_J1322.2+0842_daily_bin665.fits scfile=/scratch/kocevski/513375/ft2_4FGL_J1322.2+0842_daily_bin665.fits outfile=/scratch/kocevski/513375/cmap_HighResolution_411696001_411955201_4FGL_J1322.2+0842_daily_bin665.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=200.551 yref=8.7036 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4069       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5545       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.643       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0730       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8722       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.407       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.782       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1180       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    54.351       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2738       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.4803       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.740       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1853       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .80434       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=   8703.675     FROM MIGRAD    STATUS=CONVERGED    309 CALLS     1365 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4070        2.4282        .13844E-06    .23797E-03
   2  Prefactor     .10000E-03    18.935        .17582E-05** at limit **
   3  Prefactor     5.4895        49.824       -.24330E-03    .68511E-04
   4  Prefactor     .10000E-03    4.0390        .98873E-06** at limit **
   5  Prefactor     26.645        13.458        .23807E-05    .20790E-03
   6  Prefactor     6.0729        8.8649       -.86289E-06   -.34460E-04
   7  Prefactor     8.8722        8.0747       -.10957E-05    .31487E-04
   8  Prefactor     17.407        15.592        .27541E-06    .26907E-04
   9  Prefactor     11.780        23.575       -.60896E-05    .14820E-04
  10  norm          4.1131        24.275       -.17621E-04   -.35500E-04
  11  Prefactor     .10000E-03    1.2511       -.63295E-06** at limit **
  12  Prefactor     54.350        21.874       -.11838E-05    .66538E-04
  13  Prefactor     1.2738        1.7040       -.31281E-06   -.17761E-03
  14  Prefactor     3.4797        9.0906       -.36297E-05   -.23186E-03
  15  Prefactor     18.740        11.236       -.80540E-06    .38201E-04
  16  Normalizat    1.1853        .16606        .89803E-06    .70424E-03
  17  Prefactor     .80439        .12936        .71732E-05    .18819E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.40697
  Prefactor  = 0.0001
  Prefactor  = 5.48947
  Prefactor  = 0.000100003
  Prefactor  = 26.6448
  Prefactor  = 6.07289
  Prefactor  = 8.87217
  Prefactor  = 17.4072
  Prefactor  = 11.7798
  norm       = 4.11315
  Prefactor  = 0.000100001
  Prefactor  = 54.3498
  Prefactor  = 1.27381
  Prefactor  = 3.47975
  Prefactor  = 18.7402
  Normalizat = 1.1853
  Prefactor  = 0.804392
 **********
 **   18 **HESSE 
 **********

 FCN=   8703.675     FROM HESSE     STATUS=OK           231 CALLS     1596 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4070        2.4274        .94068E-04   -1.5243    
   2  Prefactor     .10000E-03    18.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.4895        50.213        .17047E-03   -1.5239    
   4  Prefactor     .10000E-03    4.0511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.645        13.511        .77611E-04   -1.4675    
   6  Prefactor     6.0729        8.8603        .16292E-03   -1.5215    
   7  Prefactor     8.8722        8.0769        .13456E-03   -1.5112    
   8  Prefactor     17.407        15.595        .95998E-04   -1.4873    
   9  Prefactor     11.780        23.574        .11671E-03   -1.5021    
  10  norm          4.1131        24.436        .19865E-03   -1.5302    
  11  Prefactor     .10000E-03    2.9015        .20181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     54.350        21.872        .54408E-04   -1.4232    
  13  Prefactor     1.2738        1.6787        .13684E-03   -1.5482    
  14  Prefactor     3.4797        9.0817        .21675E-03   -1.5335    
  15  Prefactor     18.740        11.234        .92520E-04   -1.4842    
  16  Normalizat    1.1853        .19975        .25524E-03   -.87058    
  17  Prefactor     .80439        .15533        .23724E-03   -.99567    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54117e-09
Minuit parameter uncertainties:
  1  2.42743
  2  2.77468e-05
  3  33.2416
  4  0.000223825
  5  13.5127
  6  8.86225
  7  8.07788
  8  15.5984
  9  23.5927
  10  20.063
  11  0.00010618
  12  21.8752
  13  1.67873
  14  9.08525
  15  11.2354
  16  0.199874
  17  0.155416
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  8.872e+00  8.078e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.262e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  1.418e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
547    Prefactor:  8.044e-01  1.554e-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.185e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 2.84e-08 +/- 2.58e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/513375/likelihoodResults_411696001_411955201_4FGL_J1322.2+0842_daily_bin665.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) = 8703.67377582
delta logL = 0.00161489361017

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8703.67315909
delta logL = 0.00223163019655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5729       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3109       1.0000          .0000       10.000    
     3 'Normalizat'    1.1832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80528       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=   8703.673     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      254 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5723        9.5676        .13691E-03    .18817E-03
   2  Index         2.3111        .77161        .98632E-02    .10267E-03
   3  Normalizat    1.1832        .19743        .25544E-03   -.20295E-04
   4  Prefactor     .80528        .15315        .23712E-03   -.74124E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.5723
  Index      = 2.31109
  Normalizat = 1.18325
  Prefactor  = 0.805284
 **********
 **   18 **HESSE 
 **********

 FCN=   8703.673     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5723        9.0987        .54763E-05   -1.5122    
   2  Index         2.3111        .73298        .39453E-03   -.56780    
   3  Normalizat    1.1832        .19725        .10217E-04   -.87122    
   4  Prefactor     .80528        .15318        .94846E-05   -.99534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72048e-10
Minuit parameter uncertainties:
  1  9.10012
  2  0.736726
  3  0.197372
  4  0.15326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513375': 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) = 8703.67315907
delta logL = 0.00223165093848

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  8.572e+00  9.100e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.311e+00  7.367e-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.053e-01  1.533e-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.183e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 200.551 8.704
Photon Index (Free Index): 2.31 +/- 0.74
Photon Flux (Free Index): 3.00e-08 +/- 3.69e-08
Energy Flux (Free Index): 1.12e-05 +/- 1.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/513375/cmap_HighResolution_411696001_411955201_4FGL_J1322.2+0842_daily_bin665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', comment='SUCCESS', photon_flux='2.84e-08', energy_flux2='1.12e-05', photon_flux_error='2.58e-08', dlogl='2.23e-03', energy_flux='1.14e-05', photon_flux2='3.00e-08', job_status='DONE', time_completed='2021-09-07 14:23:31.876036', photon_index_error2='0.74', photon_index2='2.31', ts='2.16', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='8.99e-08', energy_flux_error2='1.06e-05', EG='1.19', time_epoch_completed='1631049811.88', return_code='0', job_id='513375', GAL2='0.81', EG2='1.18', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='3.69e-08', ts2='2.16', photon_index='2.26' WHERE bin_id='665' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:23:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 513375: <4FGL_J1322.2+0842_daily_bin665> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin665> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 14:10:21 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:10:36 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:10:36 2021
Terminated at Tue Sep  7 14:23:32 2021
Results reported at Tue Sep  7 14:23:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin665 200.551 8.7036 411696001 411955201 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 :                                   617.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            791 sec.

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

