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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin18
RA = 200.185, Dec = 33.2378
tmin = 243993601, tmax = 244252801
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='487766', job_status='RUN', time_executed='2021-09-07 12:39:06.832604', time_epoch_executed='1631043546.83' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487766/ft1_4FGL_J1320.7+3314_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487766/ft2_4FGL_J1320.7+3314_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487766/ft1_4FGL_J1320.7+3314_daily_bin18.fits outfile=/scratch/kocevski/487766/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin18.fits ra=200.185 dec=33.2378 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.47
user 1.24
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487766/ft1_filtered_4FGL_J1320.7+3314_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/487766/ft2_4FGL_J1320.7+3314_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/487766/ltcube_243993601_244252801_4FGL_J1320.7+3314_daily_bin18.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/487766/ft2_4FGL_J1320.7+3314_daily_bin18.fits
.....................!
real 18.62
user 18.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487766/ft1_filtered_4FGL_J1320.7+3314_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/487766/ft2_4FGL_J1320.7+3314_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/487766/ltcube_243993601_244252801_4FGL_J1320.7+3314_daily_bin18.fits outfile=/scratch/kocevski/487766/expmap_243993601_244252801_4FGL_J1320.7+3314_daily_bin18.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/487766/ltcube_243993601_244252801_4FGL_J1320.7+3314_daily_bin18.fits
.....................!
real 193.08
user 188.12
sys 4.47

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/487766/ft1_filtered_4FGL_J1320.7+3314_daily_bin18.fits scfile=/scratch/kocevski/487766/ft2_4FGL_J1320.7+3314_daily_bin18.fits outfile=/scratch/kocevski/487766/cmap_243993601_244252801_4FGL_J1320.7+3314_daily_bin18.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487766/ft1_filtered_4FGL_J1320.7+3314_daily_bin18.fits scfile=/scratch/kocevski/487766/ft2_4FGL_J1320.7+3314_daily_bin18.fits outfile=/scratch/kocevski/487766/cmap_HighResolution_243993601_244252801_4FGL_J1320.7+3314_daily_bin18.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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487766/ft1_filtered_4FGL_J1320.7+3314_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/487766/ft2_4FGL_J1320.7+3314_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487766/Model_4FGL_J1320.7+3314_daily_bin18.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/487766/ft1_filtered_4FGL_J1320.7+3314_daily_bin18.fits.....................!
real 42.37
user 40.99
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.0469       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11784E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.2727       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6099       1.0000         .10000E-03   10000.    
    10 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    21.699       1.0000         .10000E-03   10000.    
    12 'norm      '    14.880       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7055       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6762       1.0000         .10000E-03   10000.    
    17 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    72.108       1.0000         .10000E-03   10000.    
    19 'norm      '    32.952       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.123       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.2005       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .57291       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=   4856.222     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3234 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5722        .90712E-02** at limit **
   2  Prefactor     .10000E-03    15.231        .90712E-02** at limit **
   3  Prefactor     .10000E-03    30.604        .90712E-02** at limit **
   4  Prefactor     .10000E-03    4.1936        .90712E-02** at limit **
   5  norm          3.0467        3.8401        .58109E-02   -.17953E-03
   6  Prefactor     .10000E-03    108.73        .90712E-02** at limit **
   7  Prefactor     .10001E-03    10.584        .90712E-02** at limit **
   8  norm          6.2730        4.0480        .40069E-02   -.14419E-03
   9  Prefactor     6.6137        15.012        .39021E-02    .77541E-04
  10  norm          .10000E-03    2.1069        .90712E-02** at limit **
  11  norm          21.677        18.987        .21497E-02   -.10905E-02
  12  norm          14.882        5.1414        .25958E-02    .39293E-03
  13  norm          .10001E-03    6.7156        .90712E-02** at limit **
  14  norm          .10001E-03    7.5301        .90712E-02** at limit **
  15  Prefactor     5.7071        4.7453        .42040E-02    .11205E-02
  16  Prefactor     2.6724        34.543        .62275E-02    .11894E-03
  17  norm          .10000E-03    4.0369        .90712E-02** at limit **
  18  Prefactor     72.109        78.098        .11819E-02   -.71374E-03
  19  norm          32.954        13.032        .17451E-02   -.11673E-03
  20  Prefactor     .10000E-03    5.1001        .90712E-02** at limit **
  21  Prefactor     .10002E-03    9.0776        .90712E-02** at limit **
  22  Prefactor     .10000E-03    43.969        .90712E-02** at limit **
  23  Prefactor     13.124        5.3426        .27643E-02   -.93719E-05
  24  norm          .10000E-03    5.8556        .90712E-02** at limit **
  25  Prefactor     .10000E-03    8.1854        .90712E-02** at limit **
  26  Normalizat    1.2004        .18903        .34879E-01   -.13186E-04
  27  Prefactor     .57289        .22084        .78110E-01    .14752E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.04674
  Prefactor  = 0.000100003
  Prefactor  = 0.000100007
  norm       = 6.273
  Prefactor  = 6.61367
  norm       = 0.0001
  norm       = 21.677
  norm       = 14.8818
  norm       = 0.000100008
  norm       = 0.000100009
  Prefactor  = 5.70713
  Prefactor  = 2.67236
  norm       = 0.0001
  Prefactor  = 72.1092
  norm       = 32.9542
  Prefactor  = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.000100001
  Prefactor  = 13.1235
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Normalizat = 1.20044
  Prefactor  = 0.572889
 **********
 **   18 **HESSE 
 **********

 FCN=   4856.222     FROM HESSE     STATUS=OK           476 CALLS     3710 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5734        .10915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2095        .13906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.0467        3.8274        .14739E-03   -1.5359    
   6  Prefactor     .10000E-03    109.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    10.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.2730        4.0465        .10880E-03   -1.5207    
   9  Prefactor     6.6137        14.967        .15609E-03   -1.5194    
  10  norm          .10000E-03    2.1124        .98636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          21.677        18.981        .85987E-04   -1.4776    
  12  norm          14.882        5.0992        .84802E-04   -1.4936    
  13  norm          .10001E-03    6.7369        .17559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    7.5328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7071        4.6497        .11192E-03   -1.5230    
  16  Prefactor     2.6724        32.457        .24910E-03   -1.5381    
  17  norm          .10000E-03    4.0555        .13660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     72.109        77.775        .47277E-04   -1.4008    
  19  norm          32.954        13.026        .69805E-04   -1.4559    
  20  Prefactor     .10000E-03    5.1053        .15370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10002E-03    9.0889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    44.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.124        5.3512        .98597E-04   -1.4983    
  24  norm          .10000E-03    5.8632        .16470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.1889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2004        .21408        .20736E-03   -.86589    
  27  Prefactor     .57289        .24741        .34590E-03   -1.0874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31151e-08
Minuit parameter uncertainties:
  1  7.80114e-07
  2  0.00019779
  3  0.000339422
  4  1.0621e-05
  5  3.82771
  6  0.00120926
  7  0.000542597
  8  4.04669
  9  14.9753
  10  3.5211e-08
  11  18.9863
  12  5.09938
  13  0.000459005
  14  0.000530158
  15  4.65004
  16  18.6388
  17  5.4183e-06
  18  77.8847
  19  13.0274
  20  3.54439e-05
  21  0.000855788
  22  0.000374976
  23  5.35141
  24  0.000158393
  25  0.000238143
  26  0.214236
  27  0.247877
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  2.672e+00  1.864e+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:  5.729e-01  2.479e-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.200e+00  2.142e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/487766/likelihoodResults_243993601_244252801_4FGL_J1320.7+3314_daily_bin18.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) = 4856.159937
delta logL = 0.0623543081883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4856.15732197
delta logL = 0.0649693361947

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1332       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2030       1.0000          .0000       10.000    
     3 'Normalizat'    1.1882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58138       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=   4856.157     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      216 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1306        168.35        .70565E-02    .64854E-03
   2  Index         3.2034        3.7902        .21679        .49848E-04
   3  Normalizat    1.1881        .33049E-01    .35189E-01   -.34954E-07
   4  Prefactor     .58139        .39353E-01    .77558E-01    .24194E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.13057
  Index      = 3.20341
  Normalizat = 1.18815
  Prefactor  = 0.581386
 **********
 **   18 **HESSE 
 **********

 FCN=   4856.157     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1306        23.635        .25173E-03   -1.5416    
   2  Index         3.2034        2.8509        .91672E-02   -.36754    
   3  Normalizat    1.1881        .21108        .20816E-03   -.86970    
   4  Prefactor     .58139        .24808        .34344E-03   -1.0838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74355e-08
Minuit parameter uncertainties:
  1  14.1992
  2  3.06697
  3  0.211228
  4  0.248548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487766': 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) = 4856.15732192
delta logL = 0.0649693810656

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  2.131e+00  1.420e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  3.203e+00  3.067e+00  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:  5.814e-01  2.485e-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.188e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/487766/cmap_HighResolution_243993601_244252801_4FGL_J1320.7+3314_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.25e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-07 12:50:07.767658', job_id='487766', GAL2='0.58', fit_tolerance='1e-08', EG2='1.19', EG='1.20', time_epoch_completed='1631044207.77', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='6.50e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='18' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:50:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 487766: <4FGL_J1320.7+3314_daily_bin18> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin18 200.185 33.2378 243993601 244252801 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 :                                   662.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            869 sec.

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

