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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1595
RA = 200.185, Dec = 33.2378
tmin = 652752001, tmax = 653011201
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='52874', job_status='RUN', time_executed='2021-09-11 00:15:25.516738', time_epoch_executed='1631344525.52' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/52874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/52874/ft1_4FGL_J1320.7+3314_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/52874/ft2_4FGL_J1320.7+3314_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/52874/ft1_4FGL_J1320.7+3314_daily_bin1595.fits outfile=/scratch/kocevski/52874/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1595.fits ra=200.185 dec=33.2378 rad=12.0 tmin=652752001.0 tmax=653011201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.15
user 2.94
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/52874/ft1_filtered_4FGL_J1320.7+3314_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/52874/ft2_4FGL_J1320.7+3314_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/52874/ltcube_652752001_653011201_4FGL_J1320.7+3314_daily_bin1595.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/52874/ft2_4FGL_J1320.7+3314_daily_bin1595.fits
.....................!
real 12.23
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/52874/ft1_filtered_4FGL_J1320.7+3314_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/52874/ft2_4FGL_J1320.7+3314_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/52874/ltcube_652752001_653011201_4FGL_J1320.7+3314_daily_bin1595.fits outfile=/scratch/kocevski/52874/expmap_652752001_653011201_4FGL_J1320.7+3314_daily_bin1595.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/52874/ltcube_652752001_653011201_4FGL_J1320.7+3314_daily_bin1595.fits
.....................!
real 195.46
user 189.43
sys 5.66

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/52874/ft1_filtered_4FGL_J1320.7+3314_daily_bin1595.fits scfile=/scratch/kocevski/52874/ft2_4FGL_J1320.7+3314_daily_bin1595.fits outfile=/scratch/kocevski/52874/cmap_652752001_653011201_4FGL_J1320.7+3314_daily_bin1595.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/52874/ft1_filtered_4FGL_J1320.7+3314_daily_bin1595.fits scfile=/scratch/kocevski/52874/ft2_4FGL_J1320.7+3314_daily_bin1595.fits outfile=/scratch/kocevski/52874/cmap_HighResolution_652752001_653011201_4FGL_J1320.7+3314_daily_bin1595.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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/52874/ft1_filtered_4FGL_J1320.7+3314_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/52874/ft2_4FGL_J1320.7+3314_daily_bin1595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/52874/Model_4FGL_J1320.7+3314_daily_bin1595.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/52874/ft1_filtered_4FGL_J1320.7+3314_daily_bin1595.fits.....................!
real 27.18
user 25.80
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    63.288       1.0000         .10000E-03   10000.    
     3 'Prefactor '    654.35       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.0139       1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    30.922       1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    80.847       1.0000         .10000E-03   10000.    
    19 'norm      '    24.707       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.242       1.0000         .10000E-03   10000.    
    21 'Prefactor '    27.758       1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.536       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2251       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .50839       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3450       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=   2307.521     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3225 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    136.56       -.80685E-06** at limit **
   2  Prefactor     63.318        66.617        .40263E-06    .27575E-04
   3  Prefactor     654.44        361.26        .34722E-05    .16500E-04
   4  Prefactor     .10000E-03    7.5456        .16800E-06** at limit **
   5  norm          .10000E-03    9.4954        .15010E-06** at limit **
   6  Prefactor     .10000E-03    52.252       -.26218E-06** at limit **
   7  Prefactor     .10000E-03    54.826       -.18985E-06** at limit **
   8  norm          .10000E-03    2.6880       -.17218E-06** at limit **
   9  Prefactor     .10000E-03    16.511       -.29789E-09** at limit **
  10  norm          4.0114        10.859       -.43699E-06    .82376E-04
  11  norm          .10000E-03    18.334       -.51397E-06** at limit **
  12  norm          30.930        11.861        .29156E-06    .14330E-03
  13  norm          .10000E-03    11.192       -.23958E-06** at limit **
  14  norm          .10000E-03    14.217       -.84397E-07** at limit **
  15  Prefactor     .10000E-03    5.2636       -.94788E-06** at limit **
  16  Prefactor     .10000E-03    37.727       -.21397E-05** at limit **
  17  norm          .10000E-03    15.696       -.16773E-06** at limit **
  18  Prefactor     80.787        119.58        .34689E-05    .38659E-04
  19  norm          24.700        17.681       -.41928E-06    .91531E-05
  20  Prefactor     19.239        31.477        .68122E-06    .41085E-04
  21  Prefactor     27.771        40.152        .51331E-06    .33995E-04
  22  Prefactor     35.842        96.211        .10574E-04    .95266E-04
  23  Prefactor     6.2305        6.2608        .10828E-05    .16023E-03
  24  norm          .10000E-03    5.7387        .59325E-06** at limit **
  25  Prefactor     .10000E-03    7.7851       -.48291E-07** at limit **
  26  Normalizat    .50697        .34251       -.30640E-04    .92465E-04
  27  Prefactor     1.3466        .39040        .22587E-04    .51071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 63.3184
  Prefactor  = 654.435
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.01141
  norm       = 0.0001
  norm       = 30.9301
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 80.7865
  norm       = 24.6998
  Prefactor  = 19.2394
  Prefactor  = 27.7709
  Prefactor  = 35.8421
  Prefactor  = 6.23049
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.506968
  Prefactor  = 1.34658
 **********
 **   18 **HESSE 
 **********

 FCN=   2307.521     FROM HESSE     STATUS=OK           476 CALLS     3701 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    137.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     63.318        66.609        .25221E-03   -1.4115    
   3  Prefactor     654.44        360.77        .80876E-04   -1.0534    
   4  Prefactor     .10000E-03    7.5503        .12887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.5142        .14444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    52.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    54.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.6923        .76928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.0114        10.828        .20129E-03   -1.5307    
  11  norm          .10000E-03    18.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          30.930        11.841        .72054E-04   -1.4595    
  13  norm          .10000E-03    11.201        .15687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    14.219        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2950        .10744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     80.787        119.54        .22334E-03   -1.3908    
  19  norm          24.700        17.595        .80589E-04   -1.4714    
  20  Prefactor     19.239        31.418        .91307E-04   -1.4830    
  21  Prefactor     27.771        40.097        .76040E-04   -1.4654    
  22  Prefactor     35.842        96.612        .33613E-03   -1.4510    
  23  Prefactor     6.2305        6.2555        .10952E-03   -1.5209    
  24  norm          .10000E-03    5.7503        .11247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.7870        .13092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .50697        .34149        .30930E-03   -1.1209    
  27  Prefactor     1.3466        .38981        .24544E-03   -.81932    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28677e-10
Minuit parameter uncertainties:
  1  2.53438e-05
  2  66.6872
  3  362.066
  4  1.98336e-05
  5  1.81509e-05
  6  8.75664e-05
  7  2.82603e-05
  8  8.36577e-06
  9  9.42744e-06
  10  10.8333
  11  4.65548e-05
  12  11.8421
  13  4.1172e-05
  14  4.77595e-06
  15  4.92666e-05
  16  0.000321643
  17  1.7188e-05
  18  119.901
  19  17.5986
  20  31.4448
  21  40.136
  22  97.0381
  23  6.25617
  24  4.6598e-05
  25  4.39577e-06
  26  0.342911
  27  0.39066
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  3.216e-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:  1.347e+00  3.907e-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.070e-01  3.429e-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: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/52874/likelihoodResults_652752001_653011201_4FGL_J1320.7+3314_daily_bin1595.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) = 2307.52141067
delta logL = -0.000125179764837

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2307.52128693
delta logL = -1.44115347211e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14264E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7828       1.0000          .0000       10.000    
     3 'Normalizat'    .50696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3466       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=   2307.521     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      288 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10469E-03    7.9093        .18142E-01** at limit **
   2  Index         2.6804        7.5856        .50000        .11501E-04
   3  Normalizat    .50697        .33146E-02    .30939E-03    .23646E-04
   4  Prefactor     1.3466        .41399E-02    .24542E-03    .28831E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104694
  Index      = 2.68035
  Normalizat = 0.506966
  Prefactor  = 1.34658
 **********
 **   18 **HESSE 
 **********

 FCN=   2307.521     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10469E-03    644.45        .50854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6804        5.5274        .50000       -.48243    
   3  Normalizat    .50697        .30350E-01    .12375E-04   -1.1209    
   4  Prefactor     1.3466        .37907E-01    .49085E-04   -.81932    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.99981e-09
Minuit parameter uncertainties:
  1  0.111218
  2  704.26
  3  0.0303511
  4  0.0379075
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/52874': 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) = 2307.5212859
delta logL = -4.0246595745e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.047e-04  1.112e-01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.680e+00  7.043e+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.347e+00  3.791e-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.070e-01  3.035e-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/52874/cmap_HighResolution_652752001_653011201_4FGL_J1320.7+3314_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', job_status='DONE', photon_flux_upper_limit='1.71e-07', time_completed='2021-09-11 00:23:24.178792', job_id='52874', GAL2='1.35', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1631345004.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='-4.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1595' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:23:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 52874: <4FGL_J1320.7+3314_daily_bin1595> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1595> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 11 00:11:29 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:11:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:11:31 2021
Terminated at Sat Sep 11 00:23:24 2021
Results reported at Sat Sep 11 00:23:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1595 200.185 33.2378 652752001 653011201 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 :                                   481.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             230.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            715 sec.

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

