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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1049
RA = 200.185, Dec = 33.2378
tmin = 511228801, tmax = 511488001
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='493708', job_status='RUN', time_executed='2021-09-07 13:00:21.303087', time_epoch_executed='1631044821.3' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493708

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493708/ft1_4FGL_J1320.7+3314_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493708/ft2_4FGL_J1320.7+3314_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493708/ft1_4FGL_J1320.7+3314_daily_bin1049.fits outfile=/scratch/kocevski/493708/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1049.fits ra=200.185 dec=33.2378 rad=12.0 tmin=511228801.0 tmax=511488001.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.51
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493708/ft1_filtered_4FGL_J1320.7+3314_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/493708/ft2_4FGL_J1320.7+3314_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/493708/ltcube_511228801_511488001_4FGL_J1320.7+3314_daily_bin1049.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/493708/ft2_4FGL_J1320.7+3314_daily_bin1049.fits
.....................!
real 15.90
user 15.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493708/ft1_filtered_4FGL_J1320.7+3314_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/493708/ft2_4FGL_J1320.7+3314_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/493708/ltcube_511228801_511488001_4FGL_J1320.7+3314_daily_bin1049.fits outfile=/scratch/kocevski/493708/expmap_511228801_511488001_4FGL_J1320.7+3314_daily_bin1049.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/493708/ltcube_511228801_511488001_4FGL_J1320.7+3314_daily_bin1049.fits
.....................!
real 192.06
user 186.78
sys 4.82

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/493708/ft1_filtered_4FGL_J1320.7+3314_daily_bin1049.fits scfile=/scratch/kocevski/493708/ft2_4FGL_J1320.7+3314_daily_bin1049.fits outfile=/scratch/kocevski/493708/cmap_511228801_511488001_4FGL_J1320.7+3314_daily_bin1049.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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493708/ft1_filtered_4FGL_J1320.7+3314_daily_bin1049.fits scfile=/scratch/kocevski/493708/ft2_4FGL_J1320.7+3314_daily_bin1049.fits outfile=/scratch/kocevski/493708/cmap_HighResolution_511228801_511488001_4FGL_J1320.7+3314_daily_bin1049.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493708/ft1_filtered_4FGL_J1320.7+3314_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/493708/ft2_4FGL_J1320.7+3314_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493708/Model_4FGL_J1320.7+3314_daily_bin1049.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/493708/ft1_filtered_4FGL_J1320.7+3314_daily_bin1049.fits.....................!
real 45.30
user 43.82
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.2695       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.808       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.1432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6834       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7439       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4964       1.0000         .10000E-03   10000.    
    13 'norm      '    .51378E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.663       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1968       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.969       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3680       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4541       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.428       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.610       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9187       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .71230       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0301       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88784       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=   5362.103     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3277 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.2695        10.002        .66063E-07   -.30556E-04
   2  Prefactor     14.808        17.149        .17196E-06   -.10779E-04
   3  Prefactor     .10000E-03    31.226        .21652E-06** at limit **
   4  Prefactor     .10000E-03    2.4432        .20663E-06** at limit **
   5  norm          2.1353        5.3286        .31386E-05    .78545E-03
   6  Prefactor     .10000E-03    66.551        .13443E-06** at limit **
   7  Prefactor     7.7123        24.360       -.74023E-05   -.28741E-03
   8  norm          2.7437        2.8322       -.51399E-08   -.14968E-04
   9  Prefactor     .10000E-03    14.201        .60210E-06** at limit **
  10  norm          .10000E-03    2.1759        .31715E-06** at limit **
  11  norm          .10000E-03    11.438        .11204E-06** at limit **
  12  norm          1.5015        2.4413        .11084E-06   -.29990E-04
  13  norm          .10000E-03    5.4476       -.17917E-06** at limit **
  14  norm          17.662        19.151       -.73304E-06   -.17360E-05
  15  Prefactor     4.1969        2.8816        .10170E-06    .63894E-04
  16  Prefactor     15.971        13.686        .79614E-07   -.37719E-04
  17  norm          2.3660        7.4488        .59375E-05   -.82160E-03
  18  Prefactor     .10000E-03    36.122       -.74163E-06** at limit **
  19  norm          3.4539        10.360       -.31167E-05    .17048E-04
  20  Prefactor     10.427        10.546       -.26401E-08   -.27275E-04
  21  Prefactor     11.610        13.480       -.18330E-08   -.13255E-04
  22  Prefactor     6.8964        137.19        .29887E-05   -.26563E-04
  23  Prefactor     .71245        3.2567        .50475E-06   -.48287E-04
  24  norm          .10000E-03    6.0114       -.23244E-06** at limit **
  25  Prefactor     .10000E-03    10.226       -.55429E-07** at limit **
  26  Normalizat    1.0302        .17045        .57395E-06   -.18041E-03
  27  Prefactor     .88774        .20794       -.19077E-05   -.21730E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.26947
  Prefactor  = 14.8083
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.13532
  Prefactor  = 0.0001
  Prefactor  = 7.71229
  norm       = 2.74374
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.50154
  norm       = 0.0001
  norm       = 17.6624
  Prefactor  = 4.19686
  Prefactor  = 15.9711
  norm       = 2.36597
  Prefactor  = 0.0001
  norm       = 3.45386
  Prefactor  = 10.4273
  Prefactor  = 11.6096
  Prefactor  = 6.89645
  Prefactor  = 0.712445
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.03024
  Prefactor  = 0.887742
 **********
 **   18 **HESSE 
 **********

 FCN=   5362.103     FROM HESSE     STATUS=OK           494 CALLS     3771 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.2695        9.9980        .13163E-03   -1.5099    
   2  Prefactor     14.808        17.144        .10408E-03   -1.4938    
   3  Prefactor     .10000E-03    31.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4618        .11181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.1353        5.5300        .22120E-03   -1.5416    
   6  Prefactor     .10000E-03    66.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.7123        25.376        .14467E-03   -1.5152    
   8  norm          2.7437        2.8300        .12114E-03   -1.5377    
   9  Prefactor     .10000E-03    14.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.1965        .10560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.5015        2.1484        .12285E-03   -1.5463    
  13  norm          .10000E-03    15.326        .29297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.662        19.167        .95300E-04   -1.4867    
  15  Prefactor     4.1969        2.8752        .95694E-04   -1.5298    
  16  Prefactor     15.971        13.644        .10023E-03   -1.4908    
  17  norm          2.3660        7.7886        .13314E-02   -1.5400    
  18  Prefactor     .10000E-03    36.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.4539        10.508        .21761E-03   -1.5336    
  20  Prefactor     10.427        10.547        .12408E-03   -1.5062    
  21  Prefactor     11.610        13.482        .11757E-03   -1.5026    
  22  Prefactor     6.8964        137.31        .15253E-03   -1.5183    
  23  Prefactor     .71245        3.2468        .25007E-03   -1.5539    
  24  norm          .10000E-03    6.0420        .17537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0302        .20121        .21132E-03   -.92024    
  27  Prefactor     .88774        .24371        .28212E-03   -.96571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45295e-09
Minuit parameter uncertainties:
  1  9.99982
  2  17.1495
  3  0.000314655
  4  2.16148e-05
  5  5.53135
  6  6.65628e-05
  7  25.411
  8  2.83019
  9  0.000197543
  10  3.17467e-05
  11  1.16712e-05
  12  2.14848
  13  3.63826e-05
  14  19.1735
  15  2.87533
  16  13.6465
  17  7.79196
  18  0.000179979
  19  10.5133
  20  10.5489
  21  13.4853
  22  61.7074
  23  3.04189
  24  3.72248e-05
  25  5.3816e-06
  26  0.201364
  27  0.244012
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.597e+01  1.365e+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.877e-01  2.440e-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.030e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.61
Ra Dec: 200.185 33.238
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.09e-08 +/- 3.49e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 1.00e-05

TS (Fixed Index): 2.61
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493708/likelihoodResults_511228801_511488001_4FGL_J1320.7+3314_daily_bin1049.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) = 5362.03966055
delta logL = 0.0631247316469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5362.03693348
delta logL = 0.0658517984311

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.801       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2695       1.0000          .0000       10.000    
     3 'Normalizat'    1.0371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87991       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=   5362.037     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      290 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.803        23.882        .85785E-04   -.15320E-03
   2  Index         2.2695        .64057        .62187E-02   -.87781E-04
   3  Normalizat    1.0371        .19291        .21071E-03    .19398E-03
   4  Prefactor     .87990        .24087        .28341E-03    .17738E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8025
  Index      = 2.26953
  Normalizat = 1.03707
  Prefactor  = 0.879896
 **********
 **   18 **HESSE 
 **********

 FCN=   5362.037     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.803        22.841        .34314E-05   -1.4774    
   2  Index         2.2695        .61268        .24875E-03   -.57769    
   3  Normalizat    1.0371        .19300        .42142E-04   -.91799    
   4  Prefactor     .87990        .24097        .11337E-04   -.96847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93137e-10
Minuit parameter uncertainties:
  1  22.8498
  2  0.614889
  3  0.193134
  4  0.241259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493708': 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) = 5362.03693344
delta logL = 0.0658518454056

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  2.180e+01  2.285e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.270e+00  6.149e-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.799e-01  2.413e-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.037e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.75
Ra Dec: 200.185 33.238
Photon Index (Free Index): 2.27 +/- 0.61
Photon Flux (Free Index): 3.76e-08 +/- 3.30e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.60e-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/493708/cmap_HighResolution_511228801_511488001_4FGL_J1320.7+3314_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', comment='SUCCESS', photon_flux='4.09e-08', energy_flux2='1.50e-05', photon_flux_error='3.49e-08', dlogl='6.59e-02', energy_flux='1.18e-05', photon_flux2='3.76e-08', job_status='DONE', time_completed='2021-09-07 13:12:22.173275', photon_index_error2='0.61', photon_index2='2.27', ts='2.61', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.60e-05', EG='1.03', time_epoch_completed='1631045542.17', return_code='0', job_id='493708', GAL2='0.88', EG2='1.04', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='3.30e-08', ts2='2.75', photon_index='2.51' WHERE bin_id='1049' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:12:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 493708: <4FGL_J1320.7+3314_daily_bin1049> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1049> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:55:51 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:56:25 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:56:25 2021
Terminated at Tue Sep  7 13:12:22 2021
Results reported at Tue Sep  7 13:12:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1049 200.185 33.2378 511228801 511488001 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 :                                   717.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            991 sec.

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

