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


Performing analysis on: 4FGL_J1322.0+8317_daily_bin1239
RA = 200.501, Dec = 83.2845
tmin = 560476801, tmax = 560736001
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='507371', job_status='RUN', time_executed='2021-09-07 13:51:16.399559', time_epoch_executed='1631047876.4' WHERE source_name='4FGL J1322.0+8317' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507371

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507371/ft1_4FGL_J1322.0+8317_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507371/ft2_4FGL_J1322.0+8317_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507371/ft1_4FGL_J1322.0+8317_daily_bin1239.fits outfile=/scratch/kocevski/507371/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin1239.fits ra=200.501 dec=83.2845 rad=12.0 tmin=560476801.0 tmax=560736001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.77
user 3.53
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/507371/ft2_4FGL_J1322.0+8317_daily_bin1239.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/507371/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin1239.fits evtable="EVENTS" outfile="/scratch/kocevski/507371/ft1_filtered_4FGL_J1322.0+8317_daily_bin1239.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.64
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507371/ft1_filtered_4FGL_J1322.0+8317_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/507371/ft2_4FGL_J1322.0+8317_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/507371/ltcube_560476801_560736001_4FGL_J1322.0+8317_daily_bin1239.fits outfile=/scratch/kocevski/507371/expmap_560476801_560736001_4FGL_J1322.0+8317_daily_bin1239.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/507371/ltcube_560476801_560736001_4FGL_J1322.0+8317_daily_bin1239.fits
.....................!
real 191.99
user 187.06
sys 4.33

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/507371/ft1_filtered_4FGL_J1322.0+8317_daily_bin1239.fits scfile=/scratch/kocevski/507371/ft2_4FGL_J1322.0+8317_daily_bin1239.fits outfile=/scratch/kocevski/507371/cmap_560476801_560736001_4FGL_J1322.0+8317_daily_bin1239.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507371/ft1_filtered_4FGL_J1322.0+8317_daily_bin1239.fits scfile=/scratch/kocevski/507371/ft2_4FGL_J1322.0+8317_daily_bin1239.fits outfile=/scratch/kocevski/507371/cmap_HighResolution_560476801_560736001_4FGL_J1322.0+8317_daily_bin1239.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.56
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/507371/ft1_filtered_4FGL_J1322.0+8317_daily_bin1239.fits', '/scratch/kocevski/507371/ft2_4FGL_J1322.0+8317_daily_bin1239.fits', expMap='/scratch/kocevski/507371/expmap_560476801_560736001_4FGL_J1322.0+8317_daily_bin1239.fits', expCube='/scratch/kocevski/507371/ltcube_560476801_560736001_4FGL_J1322.0+8317_daily_bin1239.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/507371/Model_4FGL_J1322.0+8317_daily_bin1239.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/507371/ft1_filtered_4FGL_J1322.0+8317_daily_bin1239.fits
Spacecraft file(s): /scratch/kocevski/507371/ft2_4FGL_J1322.0+8317_daily_bin1239.fits
Exposure map: /scratch/kocevski/507371/expmap_560476801_560736001_4FGL_J1322.0+8317_daily_bin1239.fits
Exposure cube: /scratch/kocevski/507371/ltcube_560476801_560736001_4FGL_J1322.0+8317_daily_bin1239.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/507371/Model_4FGL_J1322.0+8317_daily_bin1239.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) = 4602.13199973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .59729       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.4519       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.477       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18803E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.816       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11266       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11140E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1638       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2422       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.545       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    45.621       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3420       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10378E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.4761       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81840       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97016       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4602.113     FROM MIGRAD    STATUS=CONVERGED   1022 CALLS     3354 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0492        .18142E-02** at limit **
   2  Prefactor     .56134        21.336        .35894E-02    .16577E-03
   3  Prefactor     8.4527        11.286        .68945E-03   -.81705E-04
   4  Prefactor     30.481        24.509        .36288E-03   -.19299E-04
   5  Prefactor     .10000E-03    22.305        .18142E-02** at limit **
   6  Prefactor     .10000E-03    39.403        .18142E-02** at limit **
   7  norm          .10000E-03    2.0583        .94806E-03** at limit **
   8  Prefactor     .10000E-03    3.5170        .12418E-02** at limit **
   9  Prefactor     17.830        14.456        .94889E-04   -.16055E-03
  10  Prefactor     .10000E-03    96.242        .18142E-02** at limit **
  11  norm          .11057        20.031        .19668E-02   -.74733E-03
  12  Prefactor     .10000E-03    76.872        .18142E-02** at limit **
  13  Prefactor     5.1644        14.113        .17691E-03   -.19150E-04
  14  Prefactor     6.2447        8.4851        .16067E-03   -.57101E-04
  15  Prefactor     11.521        30.000        .11790E-03    .43294E-04
  16  Prefactor     .10000E-03    50.107        .18142E-02** at limit **
  17  Prefactor     .10000E-03    31.646        .18142E-02** at limit **
  18  Prefactor     .10000E-03    37.339        .18142E-02** at limit **
  19  norm          45.622        26.803        .59361E-04   -.15360E-04
  20  Prefactor     5.3357        4.6457        .11144E-03   -.23310E-03
  21  Prefactor     .10028E-03    53.166        .11542    ** at limit **
  22  Prefactor     .10000E-03    37.678        .18142E-02** at limit **
  23  norm          1.4756        .94873        .51366E-04   -.88310E-04
  24  Normalizat    .81807        .23922        .30079E-03    .13229E-04
  25  Prefactor     .97040        .14414        .17687E-03   -.19116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.561343
  Prefactor  = 8.45267
  Prefactor  = 30.4807
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.8295
  Prefactor  = 0.000100001
  norm       = 0.11057
  Prefactor  = 0.000100003
  Prefactor  = 5.16438
  Prefactor  = 6.24475
  Prefactor  = 11.521
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 45.6217
  Prefactor  = 5.33568
  Prefactor  = 0.000100282
  Prefactor  = 0.0001
  norm       = 1.47564
  Normalizat = 0.818067
  Prefactor  = 0.970395
 **********
 **   18 **HESSE 
 **********

 FCN=   4602.113     FROM HESSE     STATUS=OK           415 CALLS     3769 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .56134        21.381        .14358E-03   -1.5558    
   3  Prefactor     8.4527        11.284        .27578E-04   -1.5126    
   4  Prefactor     30.481        24.508        .14515E-04   -1.4603    
   5  Prefactor     .10000E-03    22.314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.0584        .18961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.5170        .24835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.830        14.249        .37956E-05   -1.4863    
  10  Prefactor     .10000E-03    96.252        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .11057        19.702        .78671E-04   -1.5641    
  12  Prefactor     .10000E-03    76.882        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1644        14.112        .70765E-05   -1.5253    
  14  Prefactor     6.2447        8.4848        .64268E-05   -1.5208    
  15  Prefactor     11.521        29.999        .47162E-05   -1.5029    
  16  Prefactor     .10000E-03    50.108        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    31.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    37.341        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          45.622        26.803        .11872E-04   -1.4356    
  20  Prefactor     5.3357        4.6374        .44577E-05   -1.5246    
  21  Prefactor     .10028E-03    50.816        .11895       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.679        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.4756        .94872        .20546E-05   -1.5465    
  24  Normalizat    .81807        .23922        .12032E-04   -.99402    
  25  Prefactor     .97040        .14384        .35373E-04   -.93723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33928e-09
Minuit parameter uncertainties:
  1  7.82458e-08
  2  6.93093
  3  11.2869
  4  24.5159
  5  7.84002e-05
  6  0.000223962
  7  1.8905e-06
  8  2.20226e-06
  9  14.2518
  10  0.000536512
  11  2.95154
  12  0.00094778
  13  14.1206
  14  8.48643
  15  30.038
  16  0.000127873
  17  0.00029984
  18  0.000162558
  19  26.8099
  20  4.63773
  21  0.00757215
  22  0.000170599
  23  0.948726
  24  0.239525
  25  0.143899
Done.

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

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  5.164e+00  1.412e+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.704e-01  1.439e-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:  8.181e-01  2.395e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.16
Ra Dec: 200.501 83.284
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507371/likelihoodResults_560476801_560736001_4FGL_J1322.0+8317_daily_bin1239.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) = 4602.08541484
delta logL = 0.0279868386197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4602.0776991
delta logL = 0.0357025700414

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5927       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8236       1.0000          .0000       10.000    
     3 'Normalizat'    .81310       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97128       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4602.078     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      243 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5917        14.282        .21319E-03   -.31793E-03
   2  Index         2.8236        1.9482        .96552E-02   -.77839E-04
   3  Normalizat    .81310        .21905        .30160E-03   -.24057E-03
   4  Prefactor     .97128        .13937        .17678E-03   -.39974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.59165
  Index      = 2.82365
  Normalizat = 0.813099
  Prefactor  = 0.971277
 **********
 **   18 **HESSE 
 **********

 FCN=   4602.078     FROM HESSE     STATUS=OK            25 CALLS      268 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5917        11.833        .85276E-05   -1.5329    
   2  Index         2.8236        1.6305        .38621E-03   -.45034    
   3  Normalizat    .81310        .21905        .12064E-04   -.99585    
   4  Prefactor     .97128        .13935        .35356E-04   -.93693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34638e-10
Minuit parameter uncertainties:
  1  11.8411
  2  1.66847
  3  0.219288
  4  0.1394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507371': 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) = 4602.0776991
delta logL = 0.0357025766889

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  3.592e+00  1.184e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.824e+00  1.668e+00  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.713e-01  1.394e-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:  8.131e-01  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.16
Ra Dec: 200.501 83.284

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/507371/cmap_HighResolution_560476801_560736001_4FGL_J1322.0+8317_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-07 14:03:35.652488', job_id='507371', GAL2='0.97', fit_tolerance='1e-08', EG2='0.81', EG='0.82', time_epoch_completed='1631048615.65', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.57e-02', ts2='0.23', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1239' AND source_name='4FGL J1322.0+8317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 14:03:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 507371: <4FGL_J1322.0+8317_daily_bin1239> in cluster <slac> Done

Job <4FGL_J1322.0+8317_daily_bin1239> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 13:50:20 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:51:00 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:51:00 2021
Terminated at Tue Sep  7 14:03:36 2021
Results reported at Tue Sep  7 14:03:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.0+8317_daily_bin1239 200.501 83.2845 560476801 560736001 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 :                                   738.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            796 sec.

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

