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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin706
RA = 200.185, Dec = 33.2378
tmin = 422323201, tmax = 422582401
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='492100', job_status='RUN', time_executed='2021-09-07 12:51:40.850255', time_epoch_executed='1631044300.85' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='706'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492100

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492100/ft1_4FGL_J1320.7+3314_daily_bin706.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492100/ft2_4FGL_J1320.7+3314_daily_bin706.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492100/ft1_4FGL_J1320.7+3314_daily_bin706.fits outfile=/scratch/kocevski/492100/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin706.fits ra=200.185 dec=33.2378 rad=12.0 tmin=422323201.0 tmax=422582401.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.60
user 3.32
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/492100/ft1_filtered_4FGL_J1320.7+3314_daily_bin706.fits" evtable="EVENTS" scfile=/scratch/kocevski/492100/ft2_4FGL_J1320.7+3314_daily_bin706.fits sctable="SC_DATA" outfile=/scratch/kocevski/492100/ltcube_422323201_422582401_4FGL_J1320.7+3314_daily_bin706.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/492100/ft2_4FGL_J1320.7+3314_daily_bin706.fits
.....................!
real 15.65
user 15.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492100/ft1_filtered_4FGL_J1320.7+3314_daily_bin706.fits evtable="EVENTS" scfile=/scratch/kocevski/492100/ft2_4FGL_J1320.7+3314_daily_bin706.fits sctable="SC_DATA" expcube=/scratch/kocevski/492100/ltcube_422323201_422582401_4FGL_J1320.7+3314_daily_bin706.fits outfile=/scratch/kocevski/492100/expmap_422323201_422582401_4FGL_J1320.7+3314_daily_bin706.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/492100/ltcube_422323201_422582401_4FGL_J1320.7+3314_daily_bin706.fits
.....................!
real 193.15
user 187.75
sys 4.95

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/492100/ft1_filtered_4FGL_J1320.7+3314_daily_bin706.fits scfile=/scratch/kocevski/492100/ft2_4FGL_J1320.7+3314_daily_bin706.fits outfile=/scratch/kocevski/492100/cmap_422323201_422582401_4FGL_J1320.7+3314_daily_bin706.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/492100/ft1_filtered_4FGL_J1320.7+3314_daily_bin706.fits scfile=/scratch/kocevski/492100/ft2_4FGL_J1320.7+3314_daily_bin706.fits outfile=/scratch/kocevski/492100/cmap_HighResolution_422323201_422582401_4FGL_J1320.7+3314_daily_bin706.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/492100/ft1_filtered_4FGL_J1320.7+3314_daily_bin706.fits evtable="EVENTS" scfile=/scratch/kocevski/492100/ft2_4FGL_J1320.7+3314_daily_bin706.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/492100/Model_4FGL_J1320.7+3314_daily_bin706.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/492100/ft1_filtered_4FGL_J1320.7+3314_daily_bin706.fits.....................!
real 47.57
user 46.15
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5625       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.5587       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0884       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.144       1.0000         .10000E-03   10000.    
    10 'norm      '    .14911E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.482       1.0000         .10000E-03   10000.    
    12 'norm      '    19.052       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.714       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8346       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.369       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5252       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3217       1.0000         .10000E-03   10000.    
    19 'norm      '    6.3142       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5427       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0407       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0446       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .87901       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=   5642.342     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3261 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.2109        .44409E-07** at limit **
   2  Prefactor     9.5586        20.996        .11763E-06   -.34746E-05
   3  Prefactor     .10000E-03    57.323        .64751E-06** at limit **
   4  Prefactor     .10000E-03    3.1344       -.11829E-08** at limit **
   5  norm          7.5583        5.6769        .20705E-06    .40762E-03
   6  Prefactor     .10000E-03    112.97       -.76518E-06** at limit **
   7  Prefactor     .10000E-03    30.028       -.70618E-07** at limit **
   8  norm          2.0886        2.5247        .32131E-07   -.30160E-04
   9  Prefactor     34.145        19.823        .52508E-07    .81542E-05
  10  norm          .10000E-03    4.5502       -.23703E-07** at limit **
  11  norm          15.482        14.411       -.85538E-08   -.14552E-04
  12  norm          19.054        5.8972        .76019E-07    .44594E-03
  13  norm          .10000E-03    9.0694        .43229E-06** at limit **
  14  norm          12.714        16.838        .75500E-08    .14491E-04
  15  Prefactor     1.8349        1.8779       -.80316E-06    .76178E-03
  16  Prefactor     17.367        14.456        .12266E-06    .23060E-04
  17  norm          2.5247        6.1870        .98650E-06    .27671E-03
  18  Prefactor     3.3262        150.84        .30273E-05    .14195E-04
  19  norm          6.3150        9.1540        .56015E-07    .21680E-03
  20  Prefactor     7.5395        19.595        .26305E-06   -.55439E-05
  21  Prefactor     .10000E-03    25.815        .20790E-06** at limit **
  22  Prefactor     .10000E-03    28.251        .13994E-06** at limit **
  23  Prefactor     2.0406        3.7451        .33432E-06   -.20196E-04
  24  norm          .10000E-03    4.3518       -.27590E-07** at limit **
  25  Prefactor     .10000E-03    6.2714       -.10539E-07** at limit **
  26  Normalizat    1.0446        .18111       -.11272E-07   -.22769E-05
  27  Prefactor     .87893        .21305       -.29224E-06    .57326E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.55856
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 7.55827
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 2.08857
  Prefactor  = 34.1448
  norm       = 0.0001
  norm       = 15.4817
  norm       = 19.0537
  norm       = 0.0001
  norm       = 12.7135
  Prefactor  = 1.83489
  Prefactor  = 17.3669
  norm       = 2.52466
  Prefactor  = 3.32621
  norm       = 6.315
  Prefactor  = 7.53947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.0406
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04462
  Prefactor  = 0.878929
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.342     FROM HESSE     STATUS=OK           492 CALLS     3753 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.2632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.5586        20.971        .12959E-03   -1.5090    
   3  Prefactor     .10000E-03    57.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1445        .12971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.5583        5.7334        .14587E-03   -1.5158    
   6  Prefactor     .10000E-03    113.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0886        2.5165        .12725E-03   -1.5419    
   9  Prefactor     34.145        19.802        .68579E-04   -1.4539    
  10  norm          .10000E-03    4.7382        .31220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.482        14.413        .10179E-03   -1.4921    
  12  norm          19.054        5.8792        .91761E-04   -1.4835    
  13  norm          .10000E-03    9.1353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.714        16.825        .11234E-03   -1.4995    
  15  Prefactor     1.8349        1.8995        .50376E-03   -1.5437    
  16  Prefactor     17.367        14.431        .96103E-04   -1.4874    
  17  norm          2.5247        6.1940        .25652E-03   -1.5390    
  18  Prefactor     3.3262        151.19        .22210E-03   -1.5343    
  19  norm          6.3150        9.0869        .15974E-03   -1.5205    
  20  Prefactor     7.5395        19.574        .14602E-03   -1.5159    
  21  Prefactor     .10000E-03    26.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0406        3.7176        .18728E-03   -1.5422    
  24  norm          .10000E-03    4.3562        .15304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.2736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0446        .21569        .23190E-03   -.91550    
  27  Prefactor     .87893        .25278        .29880E-03   -.96881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7916e-10
Minuit parameter uncertainties:
  1  2.04665e-05
  2  20.9874
  3  0.000378712
  4  1.21242e-07
  5  5.73379
  6  0.000605879
  7  0.000373527
  8  2.51666
  9  19.8055
  10  6.9937e-06
  11  14.4158
  12  5.87939
  13  3.0207e-05
  14  16.8316
  15  1.89955
  16  14.4343
  17  6.19557
  18  44.9705
  19  9.08885
  20  19.5908
  21  9.55448e-05
  22  8.82807e-05
  23  3.71804
  24  2.30043e-06
  25  3.22524e-07
  26  0.215874
  27  0.253117
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.737e+01  1.443e+01  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.789e-01  2.531e-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.045e+00  2.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.16
Ra Dec: 200.185 33.238
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.45e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.06e-05

TS (Fixed Index): 3.16
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/492100/likelihoodResults_422323201_422582401_4FGL_J1320.7+3314_daily_bin706.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) = 5641.63934271
delta logL = 0.702413822842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5641.46693471
delta logL = 0.874821822455

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5641.467     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      234 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.168        20.775        .37751E-03   -.19116E-03
   2  Index         1.7152        .49450        .81519E-02   -.79190E-04
   3  Normalizat    1.0727        .20810        .22928E-03   -.14737E-02
   4  Prefactor     .85253        .24838        .30268E-03   -.96766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.1682
  Index      = 1.71522
  Normalizat = 1.07272
  Prefactor  = 0.852526
 **********
 **   18 **HESSE 
 **********

 FCN=   5641.467     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.168        20.845        .75502E-04   -1.4646    
   2  Index         1.7152        .49620        .32608E-03   -.71678    
   3  Normalizat    1.0727        .20827        .45856E-04   -.90632    
   4  Prefactor     .85253        .24859        .60536E-04   -.97820    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19966e-09
Minuit parameter uncertainties:
  1  20.8501
  2  0.497648
  3  0.20843
  4  0.24892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492100': 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) = 5641.46693339
delta logL = 0.874823140986

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  2.817e+01  2.085e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.715e+00  4.976e-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.525e-01  2.489e-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.073e+00  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.95
Ra Dec: 200.185 33.238
Photon Index (Free Index): 1.72 +/- 0.50
Photon Flux (Free Index): 2.30e-08 +/- 2.20e-08
Energy Flux (Free Index): 3.57e-05 +/- 4.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/492100/cmap_HighResolution_422323201_422582401_4FGL_J1320.7+3314_daily_bin706.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.45e-08', energy_flux2='3.57e-05', photon_flux_error='3.69e-08', dlogl='8.75e-01', energy_flux='1.28e-05', photon_flux2='2.30e-08', job_status='DONE', time_completed='2021-09-07 13:03:37.130539', photon_index_error2='0.50', photon_index2='1.72', ts='3.16', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='4.31e-05', EG='1.04', time_epoch_completed='1631045017.13', return_code='0', job_id='492100', GAL2='0.85', EG2='1.07', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.20e-08', ts2='4.95', photon_index='2.51' WHERE bin_id='706' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:03:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 492100: <4FGL_J1320.7+3314_daily_bin706> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin706> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 12:50:29 2021
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:51:22 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:51:22 2021
Terminated at Tue Sep  7 13:03:38 2021
Results reported at Tue Sep  7 13:03:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin706 200.185 33.2378 422323201 422582401 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 :                                   716.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            789 sec.

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

