/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 37 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1322.0+8317_daily_bin95
RA = 200.501, Dec = 83.2845
tmin = 263952001, tmax = 264211201
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='501160', job_status='RUN', time_executed='2021-09-07 13:32:07.933282', time_epoch_executed='1631046727.93' WHERE source_name='4FGL J1322.0+8317' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501160

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501160/ft1_4FGL_J1322.0+8317_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501160/ft2_4FGL_J1322.0+8317_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501160/ft1_4FGL_J1322.0+8317_daily_bin95.fits outfile=/scratch/kocevski/501160/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin95.fits ra=200.501 dec=83.2845 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.79
user 1.29
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/501160/ft2_4FGL_J1322.0+8317_daily_bin95.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/501160/ft2_4FGL_J1322.0+8317_daily_bin95.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/501160/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/501160/ft1_filtered_4FGL_J1322.0+8317_daily_bin95.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.49
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/501160/ft1_filtered_4FGL_J1322.0+8317_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/501160/ft2_4FGL_J1322.0+8317_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/501160/ltcube_263952001_264211201_4FGL_J1322.0+8317_daily_bin95.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/501160/ft2_4FGL_J1322.0+8317_daily_bin95.fits
.....................!
real 17.08
user 16.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501160/ft1_filtered_4FGL_J1322.0+8317_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/501160/ft2_4FGL_J1322.0+8317_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/501160/ltcube_263952001_264211201_4FGL_J1322.0+8317_daily_bin95.fits outfile=/scratch/kocevski/501160/expmap_263952001_264211201_4FGL_J1322.0+8317_daily_bin95.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/501160/ltcube_263952001_264211201_4FGL_J1322.0+8317_daily_bin95.fits
.....................!
real 187.30
user 152.51
sys 4.24

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 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1322.0+8317 @ 200.501 83.2845

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/501160/ft1_filtered_4FGL_J1322.0+8317_daily_bin95.fits scfile=/scratch/kocevski/501160/ft2_4FGL_J1322.0+8317_daily_bin95.fits outfile=/scratch/kocevski/501160/cmap_263952001_264211201_4FGL_J1322.0+8317_daily_bin95.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.501 yref=83.2845 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.50
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/501160/ft1_filtered_4FGL_J1322.0+8317_daily_bin95.fits scfile=/scratch/kocevski/501160/ft2_4FGL_J1322.0+8317_daily_bin95.fits outfile=/scratch/kocevski/501160/cmap_HighResolution_263952001_264211201_4FGL_J1322.0+8317_daily_bin95.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.501 yref=83.2845 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.52
user 0.33
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/501160/ft1_filtered_4FGL_J1322.0+8317_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/501160/ft2_4FGL_J1322.0+8317_daily_bin95.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/501160/Model_4FGL_J1322.0+8317_daily_bin95.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/501160/ft1_filtered_4FGL_J1322.0+8317_daily_bin95.fits.....................!
real 107.18
user 93.21
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/501160/ft1_filtered_4FGL_J1322.0+8317_daily_bin95.fits', '/scratch/kocevski/501160/ft2_4FGL_J1322.0+8317_daily_bin95.fits', expMap='/scratch/kocevski/501160/expmap_263952001_264211201_4FGL_J1322.0+8317_daily_bin95.fits', expCube='/scratch/kocevski/501160/ltcube_263952001_264211201_4FGL_J1322.0+8317_daily_bin95.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/501160/Model_4FGL_J1322.0+8317_daily_bin95.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1322.0+8317'

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  2.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.133e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/501160/ft1_filtered_4FGL_J1322.0+8317_daily_bin95.fits
Spacecraft file(s): /scratch/kocevski/501160/ft2_4FGL_J1322.0+8317_daily_bin95.fits
Exposure map: /scratch/kocevski/501160/expmap_263952001_264211201_4FGL_J1322.0+8317_daily_bin95.fits
Exposure cube: /scratch/kocevski/501160/ltcube_263952001_264211201_4FGL_J1322.0+8317_daily_bin95.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/501160/Model_4FGL_J1322.0+8317_daily_bin95.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) = 8803.28054121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.9154       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.529       1.0000         .10000E-03   10000.    
     6 'Prefactor '    21.115       1.0000         .10000E-03   10000.    
     7 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .83400       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .97736       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4666       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.054       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5353       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8574       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.6967       1.0000         .10000E-03   10000.    
    19 'norm      '    19.698       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10570E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.692       1.0000         .10000E-03   10000.    
    22 'Prefactor '    81.820       1.0000         .10000E-03   10000.    
    23 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97267       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8803.276     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2970 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.999       -.81378E-05** at limit **
   2  Prefactor     2.9132        8.0654       -.39120E-06   -.27896E-03
   3  Prefactor     .10000E-03    4.1391       -.25661E-07** at limit **
   4  Prefactor     .10000E-03    7.4929       -.79927E-07** at limit **
   5  Prefactor     12.529        12.325       -.96369E-06   -.30890E-03
   6  Prefactor     21.118        21.333        .27310E-05   -.67513E-05
   7  norm          .10000E-03    2.1836       -.34099E-06** at limit **
   8  Prefactor     .10015E-03    5.0256        .20349E-05** at limit **
   9  Prefactor     .83213        1.3461        .36013E-06   -.20625E-02
  10  Prefactor     .10000E-03    25.568        .95911E-05** at limit **
  11  norm          .97717        2.1719       -.68171E-06   -.33275E-03
  12  Prefactor     6.4664        23.822       -.75044E-06   -.23191E-04
  13  Prefactor     40.055        14.577        .37108E-07   -.41570E-04
  14  Prefactor     3.5345        6.2943       -.27372E-06   -.37749E-03
  15  Prefactor     .10000E-03    28.782        .17188E-05** at limit **
  16  Prefactor     .10000E-03    16.692       -.48093E-05** at limit **
  17  Prefactor     5.8410        61.398       -.50212E-04   -.31019E-05
  18  Prefactor     6.7009        65.410        .13003E-04    .17301E-04
  19  norm          19.701        18.732        .14717E-05    .24773E-04
  20  Prefactor     .10000E-03    1.8764        .70767E-07** at limit **
  21  Prefactor     22.691        24.587       -.74958E-06    .14265E-04
  22  Prefactor     81.788        64.883       -.31498E-04    .16745E-04
  23  norm          .10000E-03    .18683       -.48527E-07** at limit **
  24  Normalizat    .97283        .15005        .21649E-05   -.94372E-04
  25  Prefactor     .91763        .92471E-01    .18605E-05   -.26846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.91317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.5293
  Prefactor  = 21.1178
  norm       = 0.0001
  Prefactor  = 0.00010015
  Prefactor  = 0.832134
  Prefactor  = 0.0001
  norm       = 0.97717
  Prefactor  = 6.46642
  Prefactor  = 40.0548
  Prefactor  = 3.53451
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.84098
  Prefactor  = 6.70092
  norm       = 19.7006
  Prefactor  = 0.0001
  Prefactor  = 22.6911
  Prefactor  = 81.7884
  norm       = 0.0001
  Normalizat = 0.972826
  Prefactor  = 0.917627
 **********
 **   18 **HESSE 
 **********

 FCN=   8803.276     FROM HESSE     STATUS=OK           431 CALLS     3401 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.9132        8.1784        .11897E-02   -1.5367    
   3  Prefactor     .10000E-03    4.1777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.529        12.071        .11317E-03   -1.5000    
   6  Prefactor     21.118        21.285        .87167E-04   -1.4789    
   7  norm          .10000E-03    2.2312        .26938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10015E-03    17.964        .39019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .83213        9.1431        .25132E-02   -1.5526    
  10  Prefactor     .10000E-03    25.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .97717        2.1423        .19777E-03   -1.5510    
  12  Prefactor     6.4664        23.814        .78912E-03   -1.5199    
  13  Prefactor     40.055        14.574        .63335E-04   -1.4441    
  14  Prefactor     3.5345        6.3421        .10749E-02   -1.5332    
  15  Prefactor     .10000E-03    29.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8410        61.687        .16593E-03   -1.5225    
  18  Prefactor     6.7009        65.372        .15506E-03   -1.5190    
  19  norm          19.701        18.722        .90245E-04   -1.4820    
  20  Prefactor     .10000E-03    1.9119        .24967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.691        24.403        .42043E-03   -1.4755    
  22  Prefactor     81.788        64.956        .44404E-04   -1.3897    
  23  norm          .10000E-03    .40772        .78495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97283        .16623        .28330E-03   -.93946    
  25  Prefactor     .91763        .10301        .18257E-03   -.95528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.23666e-08
Minuit parameter uncertainties:
  1  7.09206e-05
  2  8.18155
  3  9.28284e-06
  4  8.53681e-05
  5  12.0737
  6  21.2922
  7  3.1709e-05
  8  0.00328079
  9  5.51737
  10  4.55083e-05
  11  2.14249
  12  23.8493
  13  14.5755
  14  6.34327
  15  2.97595e-05
  16  1.85797e-06
  17  38.0139
  18  41.9189
  19  18.7274
  20  1.02752e-05
  21  24.4136
  22  65.0128
  23  4.05021e-06
  24  0.166318
  25  0.103027
Done.

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

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  4.005e+01  1.458e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.133e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  9.176e-01  1.030e-01  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.728e-01  1.663e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.42
Ra Dec: 200.501 83.284
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 9.63e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 3.18e-05 +/- 1.16e-05

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) = 8802.13750739
delta logL = 1.13860158671

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8802.13695645
delta logL = 1.13915252698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.224       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9439       1.0000          .0000       10.000    
     3 'Normalizat'    .99640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91101       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8802.137     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      261 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.296        426.03        .13144E-02   -.31206E-04
   2  Index         1.9449        3.0749        .13919        .33392E-04
   3  Normalizat    .99630        .19559        .46122E-01    .66756E-04
   4  Prefactor     .91099        .84186E-01    .45145E-01    .88318E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.296
  Index      = 1.94486
  Normalizat = 0.996301
  Prefactor  = 0.910988
 **********
 **   18 **HESSE 
 **********

 FCN=   8802.137     FROM HESSE     STATUS=OK            29 CALLS      290 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.296        23.017        .52577E-04   -1.4179    
   2  Index         1.9449        .28281        .55072E-02   -.65736    
   3  Normalizat    .99630        .15899        .28048E-03   -.93154    
   4  Prefactor     .91099        .99971E-01    .18316E-03   -.95758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.98178e-12
Minuit parameter uncertainties:
  1  23.0204
  2  0.283055
  3  0.159065
  4  0.0999913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501160': 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) = 8802.13694088
delta logL = 1.13916809981

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  5.830e+01  2.302e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  1.945e+00  2.831e-01  0.000e+00  1.000e+01 (-1.000e+00)
369        Scale:  1.133e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  9.110e-01  9.999e-02  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  9.963e-01  1.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.73
Ra Dec: 200.501 83.284
Photon Index (Free Index): 1.94 +/- 0.28
Photon Flux (Free Index): 6.92e-08 +/- 3.21e-08
Energy Flux (Free Index): 5.51e-05 +/- 3.32e-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/501160/cmap_HighResolution_263952001_264211201_4FGL_J1322.0+8317_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.63e-08', energy_flux2='5.51e-05', photon_flux_error='3.50e-08', dlogl='1.14e+00', energy_flux='3.18e-05', photon_flux2='6.92e-08', job_status='DONE', time_completed='2021-09-07 13:45:43.653705', photon_index_error2='0.28', photon_index2='1.94', ts='19.42', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='3.32e-05', EG='0.97', time_epoch_completed='1631047543.65', return_code='0', job_id='501160', GAL2='0.91', EG2='1.00', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='3.21e-08', ts2='21.73', photon_index='2.40' WHERE bin_id='95' AND source_name='4FGL J1322.0+8317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:45:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 501160: <4FGL_J1322.0+8317_daily_bin95> in cluster <slac> Done

Job <4FGL_J1322.0+8317_daily_bin95> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 13:30:28 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:30:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 13:30:51 2021
Terminated at Tue Sep  7 13:45:44 2021
Results reported at Tue Sep  7 13:45:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.0+8317_daily_bin95 200.501 83.2845 263952001 264211201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1322.0+8317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   759.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            916 sec.

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

