/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 117 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1320.7+3314_daily_bin69
RA = 200.185, Dec = 33.2378
tmin = 257212801, tmax = 257472001
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='487856', job_status='RUN', time_executed='2021-09-07 12:38:52.799415', time_epoch_executed='1631043532.8' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487856

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487856/ft1_4FGL_J1320.7+3314_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487856/ft2_4FGL_J1320.7+3314_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487856/ft1_4FGL_J1320.7+3314_daily_bin69.fits outfile=/scratch/kocevski/487856/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin69.fits ra=200.185 dec=33.2378 rad=12.0 tmin=257212801.0 tmax=257472001.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 2.37
user 2.16
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/487856/ft2_4FGL_J1320.7+3314_daily_bin69.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/487856/ft2_4FGL_J1320.7+3314_daily_bin69.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/487856/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin69.fits evtable="EVENTS" outfile="/scratch/kocevski/487856/ft1_filtered_4FGL_J1320.7+3314_daily_bin69.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487856/ft1_filtered_4FGL_J1320.7+3314_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/487856/ft2_4FGL_J1320.7+3314_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/487856/ltcube_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.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/487856/ft2_4FGL_J1320.7+3314_daily_bin69.fits
.....................!
real 17.29
user 16.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487856/ft1_filtered_4FGL_J1320.7+3314_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/487856/ft2_4FGL_J1320.7+3314_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/487856/ltcube_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.fits outfile=/scratch/kocevski/487856/expmap_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.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/487856/ltcube_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.fits
.....................!
real 192.12
user 186.49
sys 4.83

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

Setting source of interest to:
4FGL J1320.7+3314 @ 200.185 33.2378

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/487856/ft1_filtered_4FGL_J1320.7+3314_daily_bin69.fits scfile=/scratch/kocevski/487856/ft2_4FGL_J1320.7+3314_daily_bin69.fits outfile=/scratch/kocevski/487856/cmap_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.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.185 yref=33.2378 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487856/ft1_filtered_4FGL_J1320.7+3314_daily_bin69.fits scfile=/scratch/kocevski/487856/ft2_4FGL_J1320.7+3314_daily_bin69.fits outfile=/scratch/kocevski/487856/cmap_HighResolution_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.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.185 yref=33.2378 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/487856/ft1_filtered_4FGL_J1320.7+3314_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/487856/ft2_4FGL_J1320.7+3314_daily_bin69.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487856/Model_4FGL_J1320.7+3314_daily_bin69.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/487856/ft1_filtered_4FGL_J1320.7+3314_daily_bin69.fits.....................!
real 51.89
user 50.48
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/487856/ft1_filtered_4FGL_J1320.7+3314_daily_bin69.fits', '/scratch/kocevski/487856/ft2_4FGL_J1320.7+3314_daily_bin69.fits', expMap='/scratch/kocevski/487856/expmap_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.fits', expCube='/scratch/kocevski/487856/ltcube_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/487856/Model_4FGL_J1320.7+3314_daily_bin69.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1320.7+3314'

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.871e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.508e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/487856/ft1_filtered_4FGL_J1320.7+3314_daily_bin69.fits
Spacecraft file(s): /scratch/kocevski/487856/ft2_4FGL_J1320.7+3314_daily_bin69.fits
Exposure map: /scratch/kocevski/487856/expmap_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.fits
Exposure cube: /scratch/kocevski/487856/ltcube_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/487856/Model_4FGL_J1320.7+3314_daily_bin69.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) = 6256.90269617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    12.909       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.302       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.097       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2047       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.449       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .68978E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.588       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10552E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.4758       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1889       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81589       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6256.885     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3329 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7274       -.90990E-08** at limit **
   2  Prefactor     12.909        12.401       -.54744E-07   -.21231E-04
   3  Prefactor     .10001E-03    40.938       -.17666E-05** at limit **
   4  Prefactor     .10000E-03    1.9731       -.23175E-07** at limit **
   5  norm          .10000E-03    9.2548        .57318E-05** at limit **
   6  Prefactor     .10000E-03    14.267        .35225E-06** at limit **
   7  Prefactor     28.345        27.726        .22956E-05    .36969E-03
   8  norm          .10000E-03    1.1323       -.28036E-08** at limit **
   9  Prefactor     13.097        14.852        .87374E-07    .15370E-03
  10  norm          3.2055        3.7925        .26336E-07    .21650E-03
  11  norm          .10000E-03    4.8267       -.52897E-07** at limit **
  12  norm          13.457        5.1480       -.19759E-07    .67289E-03
  13  norm          .10000E-03    4.3930        .31486E-06** at limit **
  14  norm          .10000E-03    15.225       -.44499E-06** at limit **
  15  Prefactor     .10000E-03    2.7679        .22034E-08** at limit **
  16  Prefactor     .10192E-03    21.172       -.48960E-05** at limit **
  17  norm          .10000E-03    4.8595        .13734E-06** at limit **
  18  Prefactor     .10001E-03    38.754        .16936E-05** at limit **
  19  norm          15.585        8.4264        .25127E-07    .53509E-04
  20  Prefactor     .10000E-03    9.8657       -.38074E-06** at limit **
  21  Prefactor     .10000E-03    8.6712       -.20587E-06** at limit **
  22  Prefactor     .10001E-03    145.65        .25187E-05** at limit **
  23  Prefactor     .10000E-03    1.6697        .11446E-07** at limit **
  24  norm          4.4743        11.197        .11399E-05    .27838E-03
  25  Prefactor     .10000E-03    4.6669        .33013E-07** at limit **
  26  Normalizat    1.1891        .16656        .16200E-06    .35513E-03
  27  Prefactor     .81571        .19709       -.15090E-06    .18157E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.9087
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 28.3445
  norm       = 0.0001
  Prefactor  = 13.097
  norm       = 3.2055
  norm       = 0.0001
  norm       = 13.4573
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101922
  norm       = 0.0001
  Prefactor  = 0.000100007
  norm       = 15.5853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  norm       = 4.47431
  Prefactor  = 0.0001
  Normalizat = 1.18913
  Prefactor  = 0.815714
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.885     FROM HESSE     STATUS=OK           490 CALLS     3819 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7359        .14914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.909        12.402        .11149E-03   -1.4989    
   3  Prefactor     .10001E-03    41.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9776        .10845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.1160        .26853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.345        26.611        .75306E-04   -1.4643    
   8  norm          .10000E-03    1.1409        .82185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.097        14.821        .11068E-03   -1.4984    
  10  norm          3.2055        3.7687        .15792E-03   -1.5350    
  11  norm          .10000E-03    4.8333        .16974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.457        5.1312        .98010E-04   -1.4974    
  13  norm          .10000E-03    4.4210        .16149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    15.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0318        .23565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10192E-03    20.265        .75354E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9838        .34005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    39.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.585        8.4138        .10145E-03   -1.4918    
  20  Prefactor     .10000E-03    9.9470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.6970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10001E-03    147.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2759        .19825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.4743        11.305        .19032E-03   -1.5285    
  25  Prefactor     .10000E-03    4.6674        .16690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1891        .19535        .21268E-03   -.86939    
  27  Prefactor     .81571        .23033        .30523E-03   -.99152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46598e-09
Minuit parameter uncertainties:
  1  2.10254e-06
  2  12.4041
  3  0.00117296
  4  3.62736e-06
  5  0.000139918
  6  0.000132463
  7  26.6225
  8  2.69086e-07
  9  14.8249
  10  3.769
  11  1.18838e-05
  12  5.13138
  13  4.12219e-05
  14  0.000159925
  15  5.95739e-05
  16  0.0124871
  17  2.3535e-05
  18  0.00105049
  19  8.4144
  20  0.000105256
  21  5.56968e-05
  22  0.00272012
  23  3.12066e-06
  24  11.3103
  25  6.74959e-06
  26  0.195465
  27  0.230598
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.019e-04  1.249e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.508e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  8.157e-01  2.306e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.189e+00  1.955e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 9.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487856/likelihoodResults_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6256.88490924
delta logL = -1.53829869305e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6256.88490902
delta logL = -1.51700860442e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96298E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5089       1.0000          .0000       10.000    
     3 'Normalizat'    1.1890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81586       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6256.155     FROM MIGRAD    STATUS=CONVERGED    151 CALLS      328 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51915E-02    .22477        .25919E-04   -.12476E-01
   2  Index         6.5847        7.7778        .55446E-02   -.71932E-04
   3  Normalizat    1.1187        .14483        .21797E-03   -.25699E-03
   4  Prefactor     .87352        .17337        .29598E-03   -.33404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0051915
  Index      = 6.58474
  Normalizat = 1.11873
  Prefactor  = 0.873518
 **********
 **   18 **HESSE 
 **********

 FCN=   6256.155     FROM HESSE     STATUS=OK            25 CALLS      353 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51915E-02    1.9595        .10367E-05   -1.5694    
   2  Index         6.5847        5.3089        .22178E-03    .32251    
   3  Normalizat    1.1187        .19933        .43593E-04   -.89153    
   4  Prefactor     .87352        .23572        .59197E-04   -.97073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35509e-10
Minuit parameter uncertainties:
  1  0.199772
  2  17.3503
  3  0.199461
  4  0.23599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487856': 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) = 6256.15507068
delta logL = 0.729823170321

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  5.191e-03  1.998e-01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  6.585e+00  1.735e+01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  8.735e-01  2.360e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.119e+00  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 200.185 33.238
Photon Index (Free Index): 6.58 +/- 17.35
Photon Flux (Free Index): 5.80e-08 +/- 5.85e-08
Energy Flux (Free Index): 7.03e-06 +/- 9.92e-06

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/487856/cmap_HighResolution_257212801_257472001_4FGL_J1320.7+3314_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-03', comment='SUCCESS', energy_flux2='7.03e-06', dlogl='7.30e-01', photon_flux2='5.80e-08', job_status='DONE', time_completed='2021-09-07 12:51:49.650379', photon_index_error2='17.35', photon_index2='6.58', ts='-0.00', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='9.19e-08', energy_flux_error2='9.92e-06', EG='1.19', time_epoch_completed='1631044309.65', return_code='0', job_id='487856', GAL2='0.87', EG2='1.12', return_code2='0', photon_flux_error2='5.85e-08', ts2='1.56', photon_index='2.51' WHERE bin_id='69' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:51:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 487856: <4FGL_J1320.7+3314_daily_bin69> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin69> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:35:47 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:36:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 12:36:43 2021
Terminated at Tue Sep  7 12:51:50 2021
Results reported at Tue Sep  7 12:51:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin69 200.185 33.2378 257212801 257472001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1320.7+3314 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   776.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            963 sec.

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

