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


Performing analysis on: 4FGL_J1322.2+0842_daily_bin519
RA = 200.551, Dec = 8.7036
tmin = 373852801, tmax = 374112001
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='512097', job_status='RUN', time_executed='2021-09-07 14:08:42.210521', time_epoch_executed='1631048922.21' WHERE source_name='4FGL J1322.2+0842' and cadence='daily' and bin_id='519'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/512097

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/512097/ft1_4FGL_J1322.2+0842_daily_bin519.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/512097/ft2_4FGL_J1322.2+0842_daily_bin519.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/512097/ft1_4FGL_J1322.2+0842_daily_bin519.fits outfile=/scratch/kocevski/512097/ft1_filteredMKT_4FGL_J1322.2+0842_daily_bin519.fits ra=200.551 dec=8.7036 rad=12.0 tmin=373852801.0 tmax=374112001.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 4.51
user 4.26
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/512097/ft1_filtered_4FGL_J1322.2+0842_daily_bin519.fits evtable="EVENTS" scfile=/scratch/kocevski/512097/ft2_4FGL_J1322.2+0842_daily_bin519.fits sctable="SC_DATA" expcube=/scratch/kocevski/512097/ltcube_373852801_374112001_4FGL_J1322.2+0842_daily_bin519.fits outfile=/scratch/kocevski/512097/expmap_373852801_374112001_4FGL_J1322.2+0842_daily_bin519.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/512097/ltcube_373852801_374112001_4FGL_J1322.2+0842_daily_bin519.fits
.....................!
real 193.33
user 187.28
sys 5.44

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/512097/ft1_filtered_4FGL_J1322.2+0842_daily_bin519.fits scfile=/scratch/kocevski/512097/ft2_4FGL_J1322.2+0842_daily_bin519.fits outfile=/scratch/kocevski/512097/cmap_373852801_374112001_4FGL_J1322.2+0842_daily_bin519.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.55
user 0.38
sys 0.16

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

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.942       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.033       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7675       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.6579       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    24.590       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    37.026       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5425       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .67099       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=   5680.899     FROM MIGRAD    STATUS=CONVERGED    323 CALLS     1568 TOTAL
                     EDM=   .99E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.942        3.0700        .27837E-02   -.15392E-03
   2  Prefactor     .10005E-03    25.245        .90712E-02** at limit **
   3  Prefactor     .10006E-03    31.693        .90712E-02** at limit **
   4  Prefactor     28.035        18.949        .18917E-02    .72290E-03
   5  Prefactor     4.7755        15.348        .46067E-02   -.12602E-03
   6  Prefactor     .10006E-03    30.390        .90712E-02** at limit **
   7  Prefactor     9.6584        7.5434        .32237E-02   -.39402E-03
   8  Prefactor     .10000E-03    18.071        .90712E-02** at limit **
   9  Prefactor     .10000E-03    13.357        .90712E-02** at limit **
  10  norm          24.589        26.797        .20195E-02    .29452E-03
  11  Prefactor     3.4347        2.9845        .54565E-02    .10982E-03
  12  Prefactor     37.025        27.937        .16466E-02    .42638E-03
  13  Prefactor     .10000E-03    1.5243        .90712E-02** at limit **
  14  Prefactor     .10008E-03    35.723        .90712E-02** at limit **
  15  Prefactor     .10000E-03    4.3925        .90712E-02** at limit **
  16  Normalizat    1.5419        .21943        .55556E-01   -.16783E-03
  17  Prefactor     .67144        .16651        .62698E-01   -.15692E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9421
  Prefactor  = 0.000100051
  Prefactor  = 0.00010006
  Prefactor  = 28.0346
  Prefactor  = 4.77547
  Prefactor  = 0.000100063
  Prefactor  = 9.65838
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 24.5891
  Prefactor  = 3.43468
  Prefactor  = 37.0254
  Prefactor  = 0.0001
  Prefactor  = 0.000100079
  Prefactor  = 0.0001
  Normalizat = 1.54185
  Prefactor  = 0.671437
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.899     FROM HESSE     STATUS=OK           213 CALLS     1781 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.942        3.0721        .62152E-04   -1.4988    
   2  Prefactor     .10005E-03    25.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10006E-03    31.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.035        19.057        .75666E-04   -1.4649    
   5  Prefactor     4.7755        15.245        .18427E-03   -1.5271    
   6  Prefactor     .10006E-03    31.373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.6584        7.5447        .12895E-03   -1.5086    
   8  Prefactor     .10000E-03    18.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          24.589        26.801        .80781E-04   -1.4716    
  11  Prefactor     3.4347        2.9829        .11769E-03   -1.5337    
  12  Prefactor     37.025        27.938        .65865E-04   -1.4490    
  13  Prefactor     .10000E-03    1.5314        .90873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10008E-03    36.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.3949        .15427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.5419        .26519        .24565E-03   -.76609    
  17  Prefactor     .67144        .19961        .27737E-03   -1.0466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01745e-08
Minuit parameter uncertainties:
  1  3.07215
  2  0.00226464
  3  0.00276059
  4  19.0608
  5  15.2579
  6  0.00280255
  7  7.54548
  8  0.000353251
  9  8.33198e-06
  10  26.8137
  11  2.98299
  12  27.9478
  13  3.5404e-07
  14  0.00339232
  15  4.97864e-06
  16  0.265433
  17  0.19982
Done.

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

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  9.658e+00  7.545e+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:  6.714e-01  1.998e-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.542e+00  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.04
Ra Dec: 200.551 8.704
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 3.09e-08 +/- 2.41e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 9.71e-06

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) = 5680.49554887
delta logL = 0.403733790729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5680.49533252
delta logL = 0.403950141525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.778       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7698       1.0000          .0000       10.000    
     3 'Normalizat'    1.5524       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66654       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=   5680.495     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      308 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.772        11.994        .10419E-03    .39764E-03
   2  Index         1.7695        .51177        .79111E-02    .91414E-04
   3  Normalizat    1.5524        .25057        .24494E-03   -.58481E-04
   4  Prefactor     .66656        .19642        .27829E-03   -.68427E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7719
  Index      = 1.76945
  Normalizat = 1.5524
  Prefactor  = 0.66656
 **********
 **   18 **HESSE 
 **********

 FCN=   5680.495     FROM HESSE     STATUS=OK            23 CALLS      331 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.772        11.918        .20838E-04   -1.4939    
   2  Index         1.7695        .50859        .31644E-03   -.70248    
   3  Normalizat    1.5524        .25077        .48988E-04   -.76316    
   4  Prefactor     .66656        .19658        .11132E-04   -1.0485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43007e-10
Minuit parameter uncertainties:
  1  11.9199
  2  0.510112
  3  0.250969
  4  0.196779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/512097': 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) = 5680.49533203
delta logL = 0.403950632945

Extracting fit parameters...

4FGL J1322.2+0842
   Spectrum: PowerLaw
297    Prefactor:  1.477e+01  1.192e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.769e+00  5.101e-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:  6.666e-01  1.968e-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.552e+00  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.85
Ra Dec: 200.551 8.704
Photon Index (Free Index): 1.77 +/- 0.51
Photon Flux (Free Index): 2.09e-08 +/- 2.00e-08
Energy Flux (Free Index): 2.74e-05 +/- 3.54e-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/512097/cmap_HighResolution_373852801_374112001_4FGL_J1322.2+0842_daily_bin519.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.09e-08', energy_flux2='2.74e-05', photon_flux_error='2.41e-08', dlogl='4.04e-01', energy_flux='1.24e-05', photon_flux2='2.09e-08', job_status='DONE', time_completed='2021-09-07 14:17:01.872750', photon_index_error2='0.51', photon_index2='1.77', ts='6.04', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', energy_flux_error2='3.54e-05', EG='1.54', time_epoch_completed='1631049421.87', return_code='0', job_id='512097', GAL2='0.67', EG2='1.55', return_code2='0', energy_flux_error='9.71e-06', photon_flux_error2='2.00e-08', ts2='6.85', photon_index='2.26' WHERE bin_id='519' AND source_name='4FGL J1322.2+0842' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:17:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 512097: <4FGL_J1322.2+0842_daily_bin519> in cluster <slac> Done

Job <4FGL_J1322.2+0842_daily_bin519> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:05:30 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:05:44 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:05:44 2021
Terminated at Tue Sep  7 14:17:02 2021
Results reported at Tue Sep  7 14:17:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.2+0842_daily_bin519 200.551 8.7036 373852801 374112001 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 :                                   500.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            692 sec.

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

