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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1028
RA = 200.185, Dec = 33.2378
tmin = 505785601, tmax = 506044801
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='493676', job_status='RUN', time_executed='2021-09-07 12:58:28.213141', time_epoch_executed='1631044708.21' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493676

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493676/ft1_4FGL_J1320.7+3314_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493676/ft2_4FGL_J1320.7+3314_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493676/ft1_4FGL_J1320.7+3314_daily_bin1028.fits outfile=/scratch/kocevski/493676/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1028.fits ra=200.185 dec=33.2378 rad=12.0 tmin=505785601.0 tmax=506044801.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.64
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493676/ft1_filtered_4FGL_J1320.7+3314_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/493676/ft2_4FGL_J1320.7+3314_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/493676/ltcube_505785601_506044801_4FGL_J1320.7+3314_daily_bin1028.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/493676/ft2_4FGL_J1320.7+3314_daily_bin1028.fits
.....................!
real 17.89
user 17.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493676/ft1_filtered_4FGL_J1320.7+3314_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/493676/ft2_4FGL_J1320.7+3314_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/493676/ltcube_505785601_506044801_4FGL_J1320.7+3314_daily_bin1028.fits outfile=/scratch/kocevski/493676/expmap_505785601_506044801_4FGL_J1320.7+3314_daily_bin1028.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/493676/ltcube_505785601_506044801_4FGL_J1320.7+3314_daily_bin1028.fits
.....................!
real 195.41
user 190.80
sys 3.94

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/493676/ft1_filtered_4FGL_J1320.7+3314_daily_bin1028.fits scfile=/scratch/kocevski/493676/ft2_4FGL_J1320.7+3314_daily_bin1028.fits outfile=/scratch/kocevski/493676/cmap_505785601_506044801_4FGL_J1320.7+3314_daily_bin1028.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.59
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493676/ft1_filtered_4FGL_J1320.7+3314_daily_bin1028.fits scfile=/scratch/kocevski/493676/ft2_4FGL_J1320.7+3314_daily_bin1028.fits outfile=/scratch/kocevski/493676/cmap_HighResolution_505785601_506044801_4FGL_J1320.7+3314_daily_bin1028.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.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .72571E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.017       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.2930       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0583       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3923       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.9474       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.630       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7272       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.7719       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .29339       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.853       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.925       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.0454       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .88955       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0122       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=   5820.378     FROM MIGRAD    STATUS=CONVERGED    646 CALLS     3262 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3871       -.35054E-06** at limit **
   2  Prefactor     .10000E-03    7.2648        .44476E-06** at limit **
   3  Prefactor     .10000E-03    70.959        .65640E-05** at limit **
   4  Prefactor     .10000E-03    1.7420        .64600E-07** at limit **
   5  norm          .10014E-03    2.6596       -.97582E-06** at limit **
   6  Prefactor     41.022        47.167       -.37900E-06   -.34514E-05
   7  Prefactor     .10000E-03    25.727        .12829E-05** at limit **
   8  norm          6.2931        3.3400        .10670E-06    .52592E-04
   9  Prefactor     4.0576        12.957        .21323E-05    .10431E-03
  10  norm          4.3913        5.8135       -.22577E-06    .85154E-04
  11  norm          .10000E-03    14.426       -.30986E-06** at limit **
  12  norm          4.9454        3.2140        .31791E-08    .24005E-03
  13  norm          .10000E-03    5.0530       -.92173E-07** at limit **
  14  norm          17.631        22.520       -.34827E-08   -.70088E-05
  15  Prefactor     1.7276        2.5582        .78125E-07    .12985E-03
  16  Prefactor     .10000E-03    5.8435        .34672E-06** at limit **
  17  norm          8.7708        7.2874        .43379E-08   -.64702E-04
  18  Prefactor     .10000E-03    49.718       -.60503E-05** at limit **
  19  norm          .29651        6.3425        .46255E-06   -.11332E-03
  20  Prefactor     .10000E-03    6.5134       -.31245E-06** at limit **
  21  Prefactor     37.853        18.249        .49977E-07    .80619E-05
  22  Prefactor     13.921        71.100        .12665E-05    .67178E-05
  23  Prefactor     .10000E-03    2.1778       -.34657E-07** at limit **
  24  norm          .10000E-03    6.0400       -.31121E-07** at limit **
  25  Prefactor     3.0457        18.277        .33650E-05    .74990E-04
  26  Normalizat    .88956        .15984       -.42285E-06    .14099E-03
  27  Prefactor     1.0121        .19666        .10422E-06    .76807E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100143
  Prefactor  = 41.0217
  Prefactor  = 0.0001
  norm       = 6.29308
  Prefactor  = 4.05755
  norm       = 4.39131
  norm       = 0.0001
  norm       = 4.94541
  norm       = 0.0001
  norm       = 17.631
  Prefactor  = 1.7276
  Prefactor  = 0.0001
  norm       = 8.7708
  Prefactor  = 0.000100001
  norm       = 0.296508
  Prefactor  = 0.0001
  Prefactor  = 37.853
  Prefactor  = 13.9214
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.04574
  Normalizat = 0.889558
  Prefactor  = 1.01214
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.378     FROM HESSE     STATUS=OK           490 CALLS     3752 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    71.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.7454        .98317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10014E-03    25.025        .20825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.022        47.153        .62590E-04   -1.4426    
   7  Prefactor     .10000E-03    25.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.2931        3.3399        .98431E-04   -1.5206    
   9  Prefactor     4.0576        12.985        .10008E-02   -1.5305    
  10  norm          4.3913        5.7597        .18480E-03   -1.5289    
  11  norm          .10000E-03    14.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.9454        3.1653        .10319E-03   -1.5263    
  13  norm          .10000E-03    5.0779        .16653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.631        22.544        .95389E-04   -1.4868    
  15  Prefactor     1.7276        2.5172        .13775E-03   -1.5445    
  16  Prefactor     .10000E-03    5.8690        .18001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.7708        7.4006        .13534E-03   -1.5116    
  18  Prefactor     .10000E-03    49.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .29651        28.021        .33612E-02   -1.5599    
  20  Prefactor     .10000E-03    6.5551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     37.853        18.248        .65143E-04   -1.4477    
  22  Prefactor     13.921        71.669        .10734E-03   -1.4962    
  23  Prefactor     .10000E-03    2.2530        .21973E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.0643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.0457        18.308        .11625E-02   -1.5359    
  26  Normalizat    .88956        .18858        .22062E-03   -.96828    
  27  Prefactor     1.0121        .23324        .26380E-03   -.92326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.43661e-08
Minuit parameter uncertainties:
  1  6.4809e-06
  2  1.09277e-05
  3  0.000534104
  4  1.09938e-06
  5  0.00378748
  6  47.1963
  7  9.35318e-05
  8  3.33998
  9  12.994
  10  5.76038
  11  3.09475e-06
  12  3.16538
  13  7.645e-09
  14  22.5549
  15  2.5173
  16  7.66668e-06
  17  7.40136
  18  0.000370358
  19  5.76668
  20  6.14584e-06
  21  18.2505
  22  63.2938
  23  2.80905e-08
  24  1.40206e-06
  25  14.9412
  26  0.188716
  27  0.233472
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  7.667e-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:  1.012e+00  2.335e-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:  8.896e-01  1.887e-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: 5.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493676/likelihoodResults_505785601_506044801_4FGL_J1320.7+3314_daily_bin1028.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) = 5820.37910598
delta logL = -0.000811666528534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5820.37829441
delta logL = -9.85010046861e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4732       1.0000          .0000       10.000    
     3 'Normalizat'    .88948       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0122       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=   5820.378     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      237 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10625E-03    4.0645        .18142E-01** at limit **
   2  Index         2.3429        6.4810        .50000        .38111E-04
   3  Normalizat    .88956        .28209E-02    .22062E-03   -.44780E-04
   4  Prefactor     1.0121        .35945E-02    .26380E-03   -.19014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010625
  Index      = 2.34295
  Normalizat = 0.889559
  Prefactor  = 1.01213
 **********
 **   18 **HESSE 
 **********

 FCN=   5820.378     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10625E-03    70.101        .19943E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3429        5.9967        .50000       -.56027    
   3  Normalizat    .88956        .11710E-01    .88249E-05   -.96828    
   4  Prefactor     1.0121        .14921E-01    .10552E-04   -.92326    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.66798e-08
Minuit parameter uncertainties:
  1  0.0419135
  2  317.545
  3  0.0117097
  4  0.0149213
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493676': 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) = 5820.37829305
delta logL = 1.26135364553e-06

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.063e-04  4.191e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.343e+00  3.175e+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.012e+00  1.492e-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:  8.896e-01  1.171e-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/493676/cmap_HighResolution_505785601_506044801_4FGL_J1320.7+3314_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.53e-08', time_completed='2021-09-07 13:11:03.160703', job_id='493676', GAL2='1.01', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1631045463.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1028' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:11:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 493676: <4FGL_J1320.7+3314_daily_bin1028> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1028 200.185 33.2378 505785601 506044801 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 :                                   752.25 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            915 sec.

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

