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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1083
RA = 200.185, Dec = 33.2378
tmin = 520041601, tmax = 520300801
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='493760', job_status='RUN', time_executed='2021-09-07 12:58:50.397999', time_epoch_executed='1631044730.4' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493760

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493760/ft1_4FGL_J1320.7+3314_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493760/ft2_4FGL_J1320.7+3314_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493760/ft1_4FGL_J1320.7+3314_daily_bin1083.fits outfile=/scratch/kocevski/493760/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1083.fits ra=200.185 dec=33.2378 rad=12.0 tmin=520041601.0 tmax=520300801.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.33
user 4.06
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493760/ft1_filtered_4FGL_J1320.7+3314_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/493760/ft2_4FGL_J1320.7+3314_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/493760/ltcube_520041601_520300801_4FGL_J1320.7+3314_daily_bin1083.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/493760/ft2_4FGL_J1320.7+3314_daily_bin1083.fits
.....................!
real 15.42
user 14.99
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493760/ft1_filtered_4FGL_J1320.7+3314_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/493760/ft2_4FGL_J1320.7+3314_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/493760/ltcube_520041601_520300801_4FGL_J1320.7+3314_daily_bin1083.fits outfile=/scratch/kocevski/493760/expmap_520041601_520300801_4FGL_J1320.7+3314_daily_bin1083.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/493760/ltcube_520041601_520300801_4FGL_J1320.7+3314_daily_bin1083.fits
.....................!
real 191.28
user 186.63
sys 4.02

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/493760/ft1_filtered_4FGL_J1320.7+3314_daily_bin1083.fits scfile=/scratch/kocevski/493760/ft2_4FGL_J1320.7+3314_daily_bin1083.fits outfile=/scratch/kocevski/493760/cmap_520041601_520300801_4FGL_J1320.7+3314_daily_bin1083.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493760/ft1_filtered_4FGL_J1320.7+3314_daily_bin1083.fits scfile=/scratch/kocevski/493760/ft2_4FGL_J1320.7+3314_daily_bin1083.fits outfile=/scratch/kocevski/493760/cmap_HighResolution_520041601_520300801_4FGL_J1320.7+3314_daily_bin1083.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493760/ft1_filtered_4FGL_J1320.7+3314_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/493760/ft2_4FGL_J1320.7+3314_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493760/Model_4FGL_J1320.7+3314_daily_bin1083.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/493760/ft1_filtered_4FGL_J1320.7+3314_daily_bin1083.fits.....................!
real 41.87
user 40.31
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.1761       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.232       1.0000         .10000E-03   10000.    
     8 'norm      '    11.586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11226E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.055       1.0000         .10000E-03   10000.    
    11 'norm      '    12.881       1.0000         .10000E-03   10000.    
    12 'norm      '    .79588       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .11332E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.2643       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10419E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1786       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12135E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .50687E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3467       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .68817       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=   4707.498     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3253 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1074       -.31751E-07** at limit **
   2  Prefactor     .10000E-03    5.6566       -.97933E-06** at limit **
   3  Prefactor     .10000E-03    104.69       -.60758E-05** at limit **
   4  Prefactor     .10000E-03    4.4921        .59095E-07** at limit **
   5  norm          5.1760        4.7223        .48362E-06    .95531E-04
   6  Prefactor     .10000E-03    36.136        .14357E-04** at limit **
   7  Prefactor     14.206        26.511       -.78835E-05    .20928E-05
   8  norm          11.585        4.9397       -.23333E-06   -.42410E-04
   9  Prefactor     .10000E-03    9.4075       -.24946E-06** at limit **
  10  norm          11.057        6.6423        .34920E-06    .84969E-05
  11  norm          12.872        12.277       -.20670E-06   -.47728E-05
  12  norm          .79675        2.2117       -.14960E-06   -.67055E-03
  13  norm          .10000E-03    3.0225        .72486E-08** at limit **
  14  norm          .10000E-03    15.559        .94704E-05** at limit **
  15  Prefactor     .10000E-03    1.8209        .28664E-07** at limit **
  16  Prefactor     .10000E-03    7.8438        .18624E-05** at limit **
  17  norm          9.2570        7.0750       -.25950E-06   -.31806E-03
  18  Prefactor     .10000E-03    30.417       -.13923E-04** at limit **
  19  norm          .10000E-03    6.1995        .37321E-05** at limit **
  20  Prefactor     5.1685        12.331       -.41827E-06   -.27944E-04
  21  Prefactor     .10000E-03    9.3179        .80341E-06** at limit **
  22  Prefactor     .10000E-03    31.985       -.84522E-05** at limit **
  23  Prefactor     .10001E-03    3.6510       -.23693E-05** at limit **
  24  norm          .10032E-03    9.0852        .28386E-05** at limit **
  25  Prefactor     .10000E-03    13.636       -.77031E-05** at limit **
  26  Normalizat    1.3468        .18890        .11420E-05    .16453E-03
  27  Prefactor     .68835        .22795       -.31317E-06    .94554E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.17597
  Prefactor  = 0.0001
  Prefactor  = 14.206
  norm       = 11.5849
  Prefactor  = 0.0001
  norm       = 11.0575
  norm       = 12.8721
  norm       = 0.796754
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.25697
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.16847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.000100315
  Prefactor  = 0.0001
  Normalizat = 1.34677
  Prefactor  = 0.68835
 **********
 **   18 **HESSE 
 **********

 FCN=   4707.498     FROM HESSE     STATUS=OK           482 CALLS     3735 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1182        .13581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.6575        .15938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    104.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5631        .14197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.1760        4.7103        .13032E-03   -1.5253    
   6  Prefactor     .10000E-03    36.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.206        26.298        .10617E-03   -1.4954    
   8  norm          11.585        4.9419        .96526E-04   -1.5027    
   9  Prefactor     .10000E-03    9.4353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.057        6.6339        .12049E-03   -1.5043    
  11  norm          12.872        12.278        .11161E-03   -1.4990    
  12  norm          .79675        1.8382        .16177E-02   -1.5529    
  13  norm          .10000E-03    3.0510        .11614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    15.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8530        .90315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.8952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.2570        7.0677        .13167E-03   -1.5099    
  18  Prefactor     .10000E-03    30.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.2323        .16661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.1685        12.318        .17665E-03   -1.5253    
  21  Prefactor     .10000E-03    9.3325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    32.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    6.7549        .24719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10032E-03    40.837        .39298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3468        .22176        .20231E-03   -.82181    
  27  Prefactor     .68835        .26727        .33324E-03   -1.0399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.24819e-09
Minuit parameter uncertainties:
  1  9.1414e-07
  2  1.04185e-06
  3  9.76233e-05
  4  6.61372e-06
  5  4.71064
  6  1.56979e-05
  7  26.3197
  8  4.94204
  9  1.16107e-05
  10  6.63437
  11  12.2806
  12  1.83833
  13  8.28852e-06
  14  1.73913e-05
  15  4.66307e-06
  16  6.35537e-06
  17  7.0683
  18  1.43888e-06
  19  4.39465e-06
  20  12.3243
  21  4.3377e-07
  22  1.07872e-05
  23  0.000519458
  24  0.00717951
  25  9.61435e-06
  26  0.221921
  27  0.267774
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  6.355e-06  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:  6.883e-01  2.678e-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.347e+00  2.219e-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: 6.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493760/likelihoodResults_520041601_520300801_4FGL_J1320.7+3314_daily_bin1083.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) = 4707.49856106
delta logL = -0.000602774521212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4707.49795833
delta logL = -4.10982465837e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4876       1.0000          .0000       10.000    
     3 'Normalizat'    1.3468       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68832       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4707.498     FROM MIGRAD    STATUS=FAILED        91 CALLS      247 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10649E-03    8.2492        .18142E-01** at limit **
   2  Index         2.1022        8.9444        .50000        .75959E-05
   3  Normalizat    1.3468        .41528E-02    .20231E-03    .45697E-04
   4  Prefactor     .68835        .50819E-02    .33325E-03    .21151E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4707.498     FROM SIMPLEX   STATUS=PROGRESS      97 CALLS      344 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10283E-03    8.2492        .53511E-03** at limit **
   2  Index         2.0892        8.9444        .44293E-02    .75959E-05
   3  Normalizat    1.3468        .41528E-02    .48915E-05    .45697E-04
   4  Prefactor     .68833        .50819E-02    .94510E-05    .21151E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4707.498     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      377 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    346.47        .21277E-02** at limit **
   2  Index         1.9541        5.2870        .50000        .20268E-05
   3  Normalizat    1.3468        .27375E-01    .40462E-04   -.79129E-02
   4  Prefactor     .68833        .33499E-01    .13330E-04   -.48848E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100106
  Index      = 1.95414
  Normalizat = 1.34675
  Prefactor  = 0.688332
 **********
 **   18 **HESSE 
 **********

 FCN=   4707.498     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      406 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    1334.0        .42555E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9541        7.7431        .50000       -.65502    
   3  Normalizat    1.3468        .64776E-01    .80924E-05   -.82181    
   4  Prefactor     .68833        .79252E-01    .26660E-05   -1.0399    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.8383e-08
Minuit parameter uncertainties:
  1  0.0243734
  2  2353.8
  3  0.0647802
  4  0.0792648
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493760': 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) = 4707.49795672
delta logL = 1.56816258823e-06

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.001e-04  2.437e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.954e+00  2.354e+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:  6.883e-01  7.926e-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.347e+00  6.478e-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/493760/cmap_HighResolution_520041601_520300801_4FGL_J1320.7+3314_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.64e-08', time_completed='2021-09-07 13:10:05.665025', job_id='493760', GAL2='0.69', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1631045405.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1083' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:10:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 493760: <4FGL_J1320.7+3314_daily_bin1083> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1083 200.185 33.2378 520041601 520300801 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 :                                   672.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            851 sec.

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

