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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin58
RA = 200.185, Dec = 33.2378
tmin = 254361601, tmax = 254620801
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='487838', job_status='RUN', time_executed='2021-09-07 12:40:12.749882', time_epoch_executed='1631043612.75' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487838

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487838/ft1_4FGL_J1320.7+3314_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487838/ft2_4FGL_J1320.7+3314_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487838/ft1_4FGL_J1320.7+3314_daily_bin58.fits outfile=/scratch/kocevski/487838/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin58.fits ra=200.185 dec=33.2378 rad=12.0 tmin=254361601.0 tmax=254620801.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.46
user 1.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487838/ft1_filtered_4FGL_J1320.7+3314_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/487838/ft2_4FGL_J1320.7+3314_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/487838/ltcube_254361601_254620801_4FGL_J1320.7+3314_daily_bin58.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/487838/ft2_4FGL_J1320.7+3314_daily_bin58.fits
.....................!
real 19.21
user 18.83
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487838/ft1_filtered_4FGL_J1320.7+3314_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/487838/ft2_4FGL_J1320.7+3314_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/487838/ltcube_254361601_254620801_4FGL_J1320.7+3314_daily_bin58.fits outfile=/scratch/kocevski/487838/expmap_254361601_254620801_4FGL_J1320.7+3314_daily_bin58.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/487838/ltcube_254361601_254620801_4FGL_J1320.7+3314_daily_bin58.fits
.....................!
real 193.49
user 187.70
sys 5.25

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/487838/ft1_filtered_4FGL_J1320.7+3314_daily_bin58.fits scfile=/scratch/kocevski/487838/ft2_4FGL_J1320.7+3314_daily_bin58.fits outfile=/scratch/kocevski/487838/cmap_254361601_254620801_4FGL_J1320.7+3314_daily_bin58.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/487838/ft1_filtered_4FGL_J1320.7+3314_daily_bin58.fits scfile=/scratch/kocevski/487838/ft2_4FGL_J1320.7+3314_daily_bin58.fits outfile=/scratch/kocevski/487838/cmap_HighResolution_254361601_254620801_4FGL_J1320.7+3314_daily_bin58.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1610       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.985       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9274       1.0000         .10000E-03   10000.    
     5 'norm      '    3.6611       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.167       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9499       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.862       1.0000         .10000E-03   10000.    
    10 'norm      '    7.7556       1.0000         .10000E-03   10000.    
    11 'norm      '    .10447E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.7403       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3482       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7285       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    53.259       1.0000         .10000E-03   10000.    
    19 'norm      '    23.730       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.227       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2881       1.0000         .10000E-03   10000.    
    24 'norm      '    19.242       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .56330       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3409       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=   5429.890     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3247 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1601        10.891       -.82592E-06   -.76786E-04
   2  Prefactor     13.984        16.601       -.15769E-06    .12785E-05
   3  Prefactor     .10000E-03    36.827       -.40076E-05** at limit **
   4  Prefactor     8.9271        6.6680       -.20608E-06    .27867E-04
   5  norm          3.6608        3.5449       -.26423E-06   -.44835E-04
   6  Prefactor     24.778        44.570       -.92025E-04    .18275E-04
   7  Prefactor     25.168        19.660        .17917E-06    .57617E-04
   8  norm          1.9499        2.1347       -.10890E-06    .38607E-04
   9  Prefactor     13.862        19.347        .86362E-07    .45746E-04
  10  norm          7.7569        6.2861       -.17405E-06    .56210E-04
  11  norm          .10000E-03    15.050       -.44347E-05** at limit **
  12  norm          5.7410        3.8038       -.62566E-07    .14948E-03
  13  norm          3.3483        4.7199        .18115E-06   -.35515E-04
  14  norm          .10000E-03    11.479        .12804E-04** at limit **
  15  Prefactor     1.7257        3.7293       -.33132E-05   -.10194E-02
  16  Prefactor     .10000E-03    3.6862       -.11362E-07** at limit **
  17  norm          .10000E-03    5.2545       -.98757E-07** at limit **
  18  Prefactor     53.277        65.386        .21390E-04    .56204E-04
  19  norm          23.727        10.307       -.33040E-06   -.30882E-04
  20  Prefactor     .10000E-03    10.010       -.10233E-04** at limit **
  21  Prefactor     12.230        17.859       -.41320E-06    .11401E-03
  22  Prefactor     .10000E-03    46.617        .10380E-04** at limit **
  23  Prefactor     1.2884        3.2109       -.13763E-05   -.87442E-03
  24  norm          19.241        13.537       -.43637E-06   -.10593E-04
  25  Prefactor     .10000E-03    8.2084        .19490E-05** at limit **
  26  Normalizat    .56333        .17270        .29838E-05    .12538E-03
  27  Prefactor     1.3409        .21205        .13035E-05    .15407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.16013
  Prefactor  = 13.9843
  Prefactor  = 0.0001
  Prefactor  = 8.92714
  norm       = 3.6608
  Prefactor  = 24.7781
  Prefactor  = 25.1683
  norm       = 1.94991
  Prefactor  = 13.8617
  norm       = 7.75695
  norm       = 0.000100004
  norm       = 5.74102
  norm       = 3.34825
  norm       = 0.0001
  Prefactor  = 1.72572
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.2772
  norm       = 23.7273
  Prefactor  = 0.0001
  Prefactor  = 12.2299
  Prefactor  = 0.0001
  Prefactor  = 1.28845
  norm       = 19.2414
  Prefactor  = 0.0001
  Normalizat = 0.563326
  Prefactor  = 1.34088
 **********
 **   18 **HESSE 
 **********

 FCN=   5429.890     FROM HESSE     STATUS=OK           494 CALLS     3741 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1601        10.886        .14990E-03   -1.5173    
   2  Prefactor     13.984        16.602        .10711E-03   -1.4960    
   3  Prefactor     .10000E-03    36.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9271        6.6603        .13415E-03   -1.5110    
   5  norm          3.6608        3.5362        .13027E-03   -1.5325    
   6  Prefactor     24.778        44.505        .80367E-04   -1.4712    
   7  Prefactor     25.168        19.634        .79851E-04   -1.4704    
   8  norm          1.9499        2.1372        .10955E-03   -1.5429    
   9  Prefactor     13.862        19.344        .10758E-03   -1.4963    
  10  norm          7.7569        6.2457        .14399E-03   -1.5151    
  11  norm          .10000E-03    15.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.7410        3.8192        .10239E-03   -1.5229    
  13  norm          3.3483        4.7450        .17166E-03   -1.5342    
  14  norm          .10000E-03    11.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7257        3.6413        .17541E-03   -1.5445    
  16  Prefactor     .10000E-03    3.6875        .13810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.3035        .16448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     53.277        64.846        .54960E-04   -1.4247    
  19  norm          23.727        10.282        .82229E-04   -1.4733    
  20  Prefactor     .10000E-03    10.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.230        17.849        .11456E-03   -1.5008    
  22  Prefactor     .10000E-03    46.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2884        3.1836        .19696E-03   -1.5481    
  24  norm          19.241        13.537        .91305E-04   -1.4830    
  25  Prefactor     .10000E-03    8.2173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .56333        .20559        .27842E-03   -1.0956    
  27  Prefactor     1.3409        .25463        .24086E-03   -.82100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99065e-09
Minuit parameter uncertainties:
  1  10.8889
  2  16.6073
  3  3.32976e-05
  4  6.66085
  5  3.53637
  6  44.5644
  7  19.6391
  8  2.13729
  9  19.3527
  10  6.24618
  11  0.000472502
  12  3.81936
  13  4.74555
  14  3.9157e-05
  15  3.64181
  16  4.1843e-07
  17  1.41628e-05
  18  64.9319
  19  10.2826
  20  8.5847e-06
  21  17.8566
  22  0.000119622
  23  3.18399
  24  13.5391
  25  8.63808e-06
  26  0.205868
  27  0.254866
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.184e-07  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.508e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.341e+00  2.549e-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:  5.633e-01  2.059e-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: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487838/likelihoodResults_254361601_254620801_4FGL_J1320.7+3314_daily_bin58.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) = 5429.89115422
delta logL = -0.00126983187147

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5429.88988495
delta logL = -5.60074113309e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4855       1.0000          .0000       10.000    
     3 'Normalizat'    .56348       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3407       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=   5429.890     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      246 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10322E-03    4.4016        .14103E-01** at limit **
   2  Index         2.3889        5.6607        .50000        .44114E-04
   3  Normalizat    .56333        .40954E-02    .27842E-03    .36749E-05
   4  Prefactor     1.3409        .52905E-02    .24086E-03   -.17984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103223
  Index      = 2.38889
  Normalizat = 0.563326
  Prefactor  = 1.34088
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10322E-03    56.672        .14551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3889        5.9505        .50000       -.54945    
   3  Normalizat    .56333        .14886E-01    .11137E-04   -1.0956    
   4  Prefactor     1.3409        .19230E-01    .96343E-05   -.82100    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.53397e-08
Minuit parameter uncertainties:
  1  0.0270559
  2  323.957
  3  0.014886
  4  0.0192298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487838': 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) = 5429.88988342
delta logL = 9.65936123976e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.032e-04  2.706e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.389e+00  3.240e+02  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.341e+00  1.923e-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:  5.633e-01  1.489e-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/487838/cmap_HighResolution_254361601_254620801_4FGL_J1320.7+3314_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.75e-03', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2021-09-07 12:52:07.412326', job_id='487838', GAL2='1.34', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1631044327.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.34', dlogl='9.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='58' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:52:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 487838: <4FGL_J1320.7+3314_daily_bin58> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin58> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:35:46 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:36:29 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:29 2021
Terminated at Tue Sep  7 12:52:08 2021
Results reported at Tue Sep  7 12:52:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin58 200.185 33.2378 254361601 254620801 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.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            982 sec.

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

