/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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1320.7+3314_daily_bin251
RA = 200.185, Dec = 33.2378
tmin = 304387201, tmax = 304646401
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='489124', job_status='RUN', time_executed='2021-09-07 12:41:04.382569', time_epoch_executed='1631043664.38' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='251'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489124

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489124/ft1_4FGL_J1320.7+3314_daily_bin251.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489124/ft2_4FGL_J1320.7+3314_daily_bin251.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489124/ft1_4FGL_J1320.7+3314_daily_bin251.fits outfile=/scratch/kocevski/489124/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin251.fits ra=200.185 dec=33.2378 rad=12.0 tmin=304387201.0 tmax=304646401.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 4.58
user 3.94
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489124/ft1_filtered_4FGL_J1320.7+3314_daily_bin251.fits" evtable="EVENTS" scfile=/scratch/kocevski/489124/ft2_4FGL_J1320.7+3314_daily_bin251.fits sctable="SC_DATA" outfile=/scratch/kocevski/489124/ltcube_304387201_304646401_4FGL_J1320.7+3314_daily_bin251.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/489124/ft2_4FGL_J1320.7+3314_daily_bin251.fits
.....................!
real 16.56
user 16.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489124/ft1_filtered_4FGL_J1320.7+3314_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/489124/ft2_4FGL_J1320.7+3314_daily_bin251.fits sctable="SC_DATA" expcube=/scratch/kocevski/489124/ltcube_304387201_304646401_4FGL_J1320.7+3314_daily_bin251.fits outfile=/scratch/kocevski/489124/expmap_304387201_304646401_4FGL_J1320.7+3314_daily_bin251.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/489124/ltcube_304387201_304646401_4FGL_J1320.7+3314_daily_bin251.fits
.....................!
real 192.84
user 187.43
sys 4.58

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/489124/ft1_filtered_4FGL_J1320.7+3314_daily_bin251.fits scfile=/scratch/kocevski/489124/ft2_4FGL_J1320.7+3314_daily_bin251.fits outfile=/scratch/kocevski/489124/cmap_304387201_304646401_4FGL_J1320.7+3314_daily_bin251.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489124/ft1_filtered_4FGL_J1320.7+3314_daily_bin251.fits scfile=/scratch/kocevski/489124/ft2_4FGL_J1320.7+3314_daily_bin251.fits outfile=/scratch/kocevski/489124/cmap_HighResolution_304387201_304646401_4FGL_J1320.7+3314_daily_bin251.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.60
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489124/ft1_filtered_4FGL_J1320.7+3314_daily_bin251.fits evtable="EVENTS" scfile=/scratch/kocevski/489124/ft2_4FGL_J1320.7+3314_daily_bin251.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489124/Model_4FGL_J1320.7+3314_daily_bin251.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/489124/ft1_filtered_4FGL_J1320.7+3314_daily_bin251.fits.....................!
real 43.01
user 41.09
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.073       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.2987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.1479       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.369       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.4090       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9335       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.163       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.246       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.601       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.410       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.0742       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1362       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .71884       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=   4808.271     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     2790 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4043        8.7812        .34537E-05   -.11634E-02
   2  Prefactor     12.073        19.847        .25248E-06    .45504E-05
   3  Prefactor     .10000E-03    21.651       -.23222E-05** at limit **
   4  Prefactor     .10000E-03    3.0215        .49387E-07** at limit **
   5  norm          3.2982        3.7957        .49050E-06    .20248E-03
   6  Prefactor     .10001E-03    23.672        .88747E-05** at limit **
   7  Prefactor     .10000E-03    21.513       -.24152E-05** at limit **
   8  norm          4.1476        3.9997        .87503E-06   -.20379E-02
   9  Prefactor     22.366        17.799        .65323E-07   -.17087E-05
  10  norm          .10000E-03    3.3118       -.84439E-07** at limit **
  11  norm          .10000E-03    16.074       -.49056E-05** at limit **
  12  norm          3.4084        2.9511       -.18456E-07    .36526E-05
  13  norm          .10000E-03    4.9779       -.25504E-06** at limit **
  14  norm          .10000E-03    9.0804       -.61511E-05** at limit **
  15  Prefactor     2.9318        3.9375       -.16792E-06   -.32512E-03
  16  Prefactor     .10000E-03    10.642        .30515E-05** at limit **
  17  norm          13.164        7.5711       -.30562E-07   -.56400E-04
  18  Prefactor     .10000E-03    70.692       -.34463E-05** at limit **
  19  norm          .10000E-03    7.2433        .14758E-05** at limit **
  20  Prefactor     .10000E-03    4.2070        .76953E-07** at limit **
  21  Prefactor     10.245        19.171        .72137E-07   -.14663E-04
  22  Prefactor     28.598        38.556       -.11837E-05   -.52342E-04
  23  Prefactor     17.410        5.7503        .31245E-07   -.39328E-04
  24  norm          .10000E-03    10.933        .46217E-05** at limit **
  25  Prefactor     6.0747        17.338        .11221E-06   -.22771E-04
  26  Normalizat    1.1363        .18468       -.24424E-06   -.38204E-04
  27  Prefactor     .71869        .21746       -.53895E-06   -.17624E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.40427
  Prefactor  = 12.0734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.29824
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  norm       = 4.14758
  Prefactor  = 22.3656
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 3.40845
  norm       = 0.0001
  norm       = 0.000100003
  Prefactor  = 2.93184
  Prefactor  = 0.000100001
  norm       = 13.1637
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2448
  Prefactor  = 28.5983
  Prefactor  = 17.4096
  norm       = 0.000100002
  Prefactor  = 6.07474
  Normalizat = 1.13635
  Prefactor  = 0.718693
 **********
 **   18 **HESSE 
 **********

 FCN=   4808.271     FROM HESSE     STATUS=OK           486 CALLS     3276 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4043        11.082        .10962E-02   -1.5339    
   2  Prefactor     12.073        19.838        .11529E-03   -1.5013    
   3  Prefactor     .10000E-03    21.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0318        .11762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2982        3.7891        .13954E-03   -1.5345    
   6  Prefactor     .10001E-03    24.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1476        4.3501        .71009E-03   -1.5301    
   9  Prefactor     22.366        17.814        .84690E-04   -1.4762    
  10  norm          .10000E-03    3.3339        .12307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    16.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.4084        2.9402        .10529E-03   -1.5339    
  13  norm          .10000E-03    5.0066        .15070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.3148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.9318        3.9322        .14710E-03   -1.5365    
  16  Prefactor     .10000E-03    10.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.164        7.5646        .11040E-03   -1.4982    
  18  Prefactor     .10000E-03    70.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.3179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.2106        .13890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.245        19.195        .12518E-03   -1.5068    
  22  Prefactor     28.598        38.633        .74914E-04   -1.4638    
  23  Prefactor     17.410        5.7624        .91385E-04   -1.4873    
  24  norm          .10000E-03    11.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.0747        17.345        .16291E-03   -1.5215    
  26  Normalizat    1.1363        .21597        .20857E-03   -.88593    
  27  Prefactor     .71869        .25124        .31164E-03   -1.0280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.96366e-09
Minuit parameter uncertainties:
  1  11.0888
  2  19.8486
  3  0.000200433
  4  1.12834e-06
  5  3.78934
  6  0.000789335
  7  0.000222558
  8  4.3504
  9  17.8183
  10  1.36854e-06
  11  0.000329047
  12  2.94029
  13  8.02006e-06
  14  0.000333265
  15  3.93254
  16  0.000189267
  17  7.56517
  18  0.000455009
  19  6.92755e-05
  20  3.10442e-06
  21  19.2061
  22  38.6664
  23  5.76253
  24  0.00026756
  25  17.3595
  26  0.216139
  27  0.251638
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.893e-04  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:  7.187e-01  2.516e-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.136e+00  2.161e-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.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/489124/likelihoodResults_304387201_304646401_4FGL_J1320.7+3314_daily_bin251.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) = 4808.27180954
delta logL = -0.000441844754278

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4808.27137269
delta logL = -4.99073303217e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15494E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4861       1.0000          .0000       10.000    
     3 'Normalizat'    1.1359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71926       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=   4808.271     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      246 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10333E-03    3.8363        .18142E-01** at limit **
   2  Index         2.3702        5.7420        .50000        .12592E-04
   3  Normalizat    1.1363        .24935E-02    .20857E-03    .26273E-04
   4  Prefactor     .71869        .30403E-02    .31164E-03    .16380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103326
  Index      = 2.37018
  Normalizat = 1.13635
  Prefactor  = 0.718692
 **********
 **   18 **HESSE 
 **********

 FCN=   4808.271     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10333E-03    645.59        .46264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3702        5.5163        .50000       -.55385    
   3  Normalizat    1.1363        .34359E-01    .83426E-05   -.88593    
   4  Prefactor     .71869        .41884E-01    .12466E-04   -1.0280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.4269e-08
Minuit parameter uncertainties:
  1  0.0937067
  2  1363.83
  3  0.0343598
  4  0.0418856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489124': 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) = 4808.27136736
delta logL = 3.32381205226e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.033e-04  9.371e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.370e+00  1.364e+03  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:  7.187e-01  4.189e-02  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.136e+00  3.436e-02  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/489124/cmap_HighResolution_304387201_304646401_4FGL_J1320.7+3314_daily_bin251.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2021-09-07 12:52:02.468307', job_id='489124', GAL2='0.72', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631044322.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='3.32e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='251' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:52:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 489124: <4FGL_J1320.7+3314_daily_bin251> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin251> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 12:40:25 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:40:46 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:40:46 2021
Terminated at Tue Sep  7 12:52:03 2021
Results reported at Tue Sep  7 12:52:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin251 200.185 33.2378 304387201 304646401 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 :                                   654.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             364.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            698 sec.

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

