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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin563
RA = 200.185, Dec = 33.2378
tmin = 385257601, tmax = 385516801
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='490891', job_status='RUN', time_executed='2021-09-07 12:46:39.319422', time_epoch_executed='1631043999.32' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='563'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490891

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490891/ft1_4FGL_J1320.7+3314_daily_bin563.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490891/ft2_4FGL_J1320.7+3314_daily_bin563.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490891/ft1_4FGL_J1320.7+3314_daily_bin563.fits outfile=/scratch/kocevski/490891/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin563.fits ra=200.185 dec=33.2378 rad=12.0 tmin=385257601.0 tmax=385516801.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.56
user 3.30
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/490891/ft2_4FGL_J1320.7+3314_daily_bin563.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/490891/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin563.fits evtable="EVENTS" outfile="/scratch/kocevski/490891/ft1_filtered_4FGL_J1320.7+3314_daily_bin563.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/490891/ft1_filtered_4FGL_J1320.7+3314_daily_bin563.fits" evtable="EVENTS" scfile=/scratch/kocevski/490891/ft2_4FGL_J1320.7+3314_daily_bin563.fits sctable="SC_DATA" outfile=/scratch/kocevski/490891/ltcube_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.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/490891/ft2_4FGL_J1320.7+3314_daily_bin563.fits
.....................!
real 17.25
user 16.83
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490891/ft1_filtered_4FGL_J1320.7+3314_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/490891/ft2_4FGL_J1320.7+3314_daily_bin563.fits sctable="SC_DATA" expcube=/scratch/kocevski/490891/ltcube_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.fits outfile=/scratch/kocevski/490891/expmap_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.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/490891/ltcube_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.fits
.....................!
real 192.73
user 186.63
sys 5.43

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/490891/ft1_filtered_4FGL_J1320.7+3314_daily_bin563.fits scfile=/scratch/kocevski/490891/ft2_4FGL_J1320.7+3314_daily_bin563.fits outfile=/scratch/kocevski/490891/cmap_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/490891/ft1_filtered_4FGL_J1320.7+3314_daily_bin563.fits scfile=/scratch/kocevski/490891/ft2_4FGL_J1320.7+3314_daily_bin563.fits outfile=/scratch/kocevski/490891/cmap_HighResolution_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.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/490891/ft1_filtered_4FGL_J1320.7+3314_daily_bin563.fits evtable="EVENTS" scfile=/scratch/kocevski/490891/ft2_4FGL_J1320.7+3314_daily_bin563.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/490891/Model_4FGL_J1320.7+3314_daily_bin563.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/490891/ft1_filtered_4FGL_J1320.7+3314_daily_bin563.fits.....................!
real 49.93
user 48.37
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/490891/ft1_filtered_4FGL_J1320.7+3314_daily_bin563.fits', '/scratch/kocevski/490891/ft2_4FGL_J1320.7+3314_daily_bin563.fits', expMap='/scratch/kocevski/490891/expmap_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.fits', expCube='/scratch/kocevski/490891/ltcube_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/490891/Model_4FGL_J1320.7+3314_daily_bin563.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/490891/ft1_filtered_4FGL_J1320.7+3314_daily_bin563.fits
Spacecraft file(s): /scratch/kocevski/490891/ft2_4FGL_J1320.7+3314_daily_bin563.fits
Exposure map: /scratch/kocevski/490891/expmap_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.fits
Exposure cube: /scratch/kocevski/490891/ltcube_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/490891/Model_4FGL_J1320.7+3314_daily_bin563.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) = 5903.10920294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5725       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38761E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10759E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.452       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1049       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    10.310       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    21.774       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.8780       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.502       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.786       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.932       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5554       1.0000         .10000E-03   10000.    
    24 'norm      '    18.359       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0225       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1671       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=   5903.069     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3334 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5722        5.8781        .19407E-07    .99315E-05
   2  Prefactor     .10000E-03    77.643       -.16101E-04** at limit **
   3  Prefactor     .10000E-03    56.119       -.58610E-06** at limit **
   4  Prefactor     .10000E-03    2.5578       -.17478E-06** at limit **
   5  norm          .10000E-03    100.54        .32709E-04** at limit **
   6  Prefactor     .10000E-03    30.831       -.69025E-07** at limit **
   7  Prefactor     12.480        25.352        .23879E-05   -.39476E-05
   8  norm          2.1048        2.1379       -.44433E-08    .15051E-03
   9  Prefactor     .10000E-03    5.3136       -.16008E-06** at limit **
  10  norm          .10000E-03    3.2254       -.44534E-06** at limit **
  11  norm          10.306        15.987       -.35818E-07   -.10253E-04
  12  norm          .10000E-03    1.6311       -.74138E-07** at limit **
  13  norm          .10000E-03    1.8665       -.53802E-07** at limit **
  14  norm          21.774        18.020        .19991E-08    .18539E-04
  15  Prefactor     .10000E-03    1.1462        .28303E-07** at limit **
  16  Prefactor     .10000E-03    7.6456        .51247E-06** at limit **
  17  norm          5.8785        5.7568       -.52490E-08   -.76429E-05
  18  Prefactor     .10000E-03    60.966       -.11407E-06** at limit **
  19  norm          13.504        10.814       -.13393E-07   -.40755E-05
  20  Prefactor     15.812        26.547       -.21031E-05   -.29794E-03
  21  Prefactor     21.772        38.858        .14716E-05   -.14213E-03
  22  Prefactor     .10000E-03    94.611        .11261E-06** at limit **
  23  Prefactor     4.5555        4.5473        .14288E-06   -.11674E-03
  24  norm          18.359        15.719        .70054E-07   -.61544E-04
  25  Prefactor     .10000E-03    12.505       -.12230E-06** at limit **
  26  Normalizat    1.0225        .18306       -.17797E-05   -.56837E-03
  27  Prefactor     1.1672        .21591        .17320E-05   -.17762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.57222
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 12.4801
  norm       = 2.10484
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.3065
  norm       = 0.0001
  norm       = 0.0001
  norm       = 21.7736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.87851
  Prefactor  = 0.000100001
  norm       = 13.5044
  Prefactor  = 15.8123
  Prefactor  = 21.772
  Prefactor  = 0.0001
  Prefactor  = 4.55548
  norm       = 18.3593
  Prefactor  = 0.0001
  Normalizat = 1.02254
  Prefactor  = 1.16721
 **********
 **   18 **HESSE 
 **********

 FCN=   5903.069     FROM HESSE     STATUS=OK           490 CALLS     3824 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5722        5.8746        .18825E-03   -1.5280    
   2  Prefactor     .10000E-03    75.726        .55818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    56.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5688        .12003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.6363        .41110E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.480        28.536        .11352E-03   -1.5001    
   8  norm          2.1048        2.1475        .11026E-03   -1.5418    
   9  Prefactor     .10000E-03    5.3256        .17301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.3738        .27015E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10.306        16.019        .12479E-03   -1.5066    
  12  norm          .10000E-03    1.6559        .95987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8708        .10253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          21.774        18.022        .85838E-04   -1.4774    
  15  Prefactor     .10000E-03    1.1524        .80311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.6700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.8785        5.7503        .16564E-03   -1.5223    
  18  Prefactor     .10000E-03    61.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.504        10.806        .10901E-03   -1.4973    
  20  Prefactor     15.812        26.773        .10081E-03   -1.4912    
  21  Prefactor     21.772        38.897        .85529E-04   -1.4774    
  22  Prefactor     .10000E-03    94.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5555        4.5400        .15569E-03   -1.5281    
  24  norm          18.359        15.723        .93475E-04   -1.4851    
  25  Prefactor     .10000E-03    12.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0225        .22057        .24568E-03   -.92279    
  27  Prefactor     1.1672        .25917        .28027E-03   -.87346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24182e-09
Minuit parameter uncertainties:
  1  5.87537
  2  0.000747521
  3  0.000433305
  4  2.07937e-05
  5  0.000269427
  6  5.64576e-05
  7  28.567
  8  2.14761
  9  3.56192e-05
  10  7.81233e-05
  11  16.0256
  12  2.28351e-05
  13  1.1407e-05
  14  18.027
  15  1.2491e-05
  16  1.59636e-06
  17  5.75082
  18  0.000446169
  19  10.8075
  20  26.793
  21  38.9419
  22  0.000299682
  23  4.54036
  24  15.7262
  25  5.50556e-05
  26  0.220769
  27  0.259448
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.596e-06  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:  1.167e+00  2.594e-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.023e+00  2.208e-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: 7.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/490891/likelihoodResults_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.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) = 5903.0699562
delta logL = -0.000620875751338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5903.06933543
delta logL = -1.10908331408e-07

Fit tolerance = 1e-08

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

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

 FCN=   5903.069     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6004        .90712E-02** at limit **
   2  Index         2.5238        6.2619        .50000       -.92622E-05
   3  Normalizat    1.0225        .17557        .43007E-01    .28822E-04
   4  Prefactor     1.1672        .21321        .63365E-01    .17376E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52384
  Normalizat = 1.02254
  Prefactor  = 1.1672
 **********
 **   18 **HESSE 
 **********

 FCN=   5903.069     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1577.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5238        5.1352        .50000       -.51810    
   3  Normalizat    1.0225        .11686        .24568E-03   -.92279    
   4  Prefactor     1.1672        .14174        .28027E-03   -.87347    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72404e-08
Minuit parameter uncertainties:
  1  8.01962e-05
  2  63.9971
  3  0.116891
  4  0.141782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490891': 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): 102
logL (Free Index) = 5903.06933529
delta logL = 3.23598214891e-08

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  8.020e-05  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.524e+00  6.400e+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:  1.167e+00  1.418e-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.023e+00  1.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.185 33.238

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/490891/cmap_HighResolution_385257601_385516801_4FGL_J1320.7+3314_daily_bin563.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-07 12:59:02.367663', job_id='490891', GAL2='1.17', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631044742.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='3.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='563' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:59:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 490891: <4FGL_J1320.7+3314_daily_bin563> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin563> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 12:45:58 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:46:27 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:46:27 2021
Terminated at Tue Sep  7 12:59:04 2021
Results reported at Tue Sep  7 12:59:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin563 200.185 33.2378 385257601 385516801 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 :                                   742.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            786 sec.

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

