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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1503
RA = 200.185, Dec = 33.2378
tmin = 628905601, tmax = 629164801
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='495438', job_status='RUN', time_executed='2021-09-07 13:07:53.860031', time_epoch_executed='1631045273.86' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495438/ft1_4FGL_J1320.7+3314_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495438/ft2_4FGL_J1320.7+3314_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495438/ft1_4FGL_J1320.7+3314_daily_bin1503.fits outfile=/scratch/kocevski/495438/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1503.fits ra=200.185 dec=33.2378 rad=12.0 tmin=628905601.0 tmax=629164801.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 2.92
user 2.70
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495438/ft1_filtered_4FGL_J1320.7+3314_daily_bin1503.fits" evtable="EVENTS" scfile=/scratch/kocevski/495438/ft2_4FGL_J1320.7+3314_daily_bin1503.fits sctable="SC_DATA" outfile=/scratch/kocevski/495438/ltcube_628905601_629164801_4FGL_J1320.7+3314_daily_bin1503.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/495438/ft2_4FGL_J1320.7+3314_daily_bin1503.fits
.....................!
real 13.24
user 12.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495438/ft1_filtered_4FGL_J1320.7+3314_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/495438/ft2_4FGL_J1320.7+3314_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/495438/ltcube_628905601_629164801_4FGL_J1320.7+3314_daily_bin1503.fits outfile=/scratch/kocevski/495438/expmap_628905601_629164801_4FGL_J1320.7+3314_daily_bin1503.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/495438/ltcube_628905601_629164801_4FGL_J1320.7+3314_daily_bin1503.fits
.....................!
real 157.03
user 152.90
sys 3.72

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/495438/ft1_filtered_4FGL_J1320.7+3314_daily_bin1503.fits scfile=/scratch/kocevski/495438/ft2_4FGL_J1320.7+3314_daily_bin1503.fits outfile=/scratch/kocevski/495438/cmap_628905601_629164801_4FGL_J1320.7+3314_daily_bin1503.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.48
user 0.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495438/ft1_filtered_4FGL_J1320.7+3314_daily_bin1503.fits scfile=/scratch/kocevski/495438/ft2_4FGL_J1320.7+3314_daily_bin1503.fits outfile=/scratch/kocevski/495438/cmap_HighResolution_628905601_629164801_4FGL_J1320.7+3314_daily_bin1503.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.54
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/495438/ft1_filtered_4FGL_J1320.7+3314_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/495438/ft2_4FGL_J1320.7+3314_daily_bin1503.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/495438/Model_4FGL_J1320.7+3314_daily_bin1503.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/495438/ft1_filtered_4FGL_J1320.7+3314_daily_bin1503.fits.....................!
real 41.77
user 40.41
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6146       1.0000         .10000E-03   10000.    
     5 'norm      '    4.0371       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.8877       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4094       1.0000         .10000E-03   10000.    
    10 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.6151       1.0000         .10000E-03   10000.    
    12 'norm      '    11.502       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4467       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11085E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.1552       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .20485       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.777       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    19.903       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76714       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3455       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=   6536.234     FROM MIGRAD    STATUS=CONVERGED    657 CALLS     3269 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7011       -.21974E-07** at limit **
   2  Prefactor     .10000E-03    5.2835       -.14331E-05** at limit **
   3  Prefactor     .10000E-03    23.206       -.50341E-05** at limit **
   4  Prefactor     5.6155        5.1297        .17597E-06   -.12054E-02
   5  norm          4.0370        3.4501        .10645E-07    .34209E-05
   6  Prefactor     .10000E-03    20.652        .45868E-05** at limit **
   7  Prefactor     .10000E-03    9.2033       -.18769E-06** at limit **
   8  norm          7.8866        4.3514       -.58987E-07    .11142E-03
   9  Prefactor     4.4014        9.0519        .56019E-06   -.87796E-03
  10  norm          .10000E-03    1.5682       -.26208E-07** at limit **
  11  norm          7.6150        11.782       -.22882E-07   -.22046E-04
  12  norm          11.501        5.3674       -.12343E-06   -.93568E-03
  13  norm          4.4468        6.1236        .66449E-06   -.17208E-02
  14  norm          .10000E-03    21.860       -.22428E-05** at limit **
  15  Prefactor     .10000E-03    1.3118        .12637E-06** at limit **
  16  Prefactor     .10000E-03    5.6986        .62315E-06** at limit **
  17  norm          2.1749        8.3683        .34341E-05    .58434E-03
  18  Prefactor     .10000E-03    15.290       -.25263E-07** at limit **
  19  norm          .15737        12.193       -.26040E-05    .14130E-03
  20  Prefactor     .10000E-03    4.7602        .15117E-05** at limit **
  21  Prefactor     12.777        16.249        .15531E-06    .46978E-04
  22  Prefactor     .10000E-03    28.844        .31884E-05** at limit **
  23  Prefactor     .10000E-03    4.2798       -.23200E-05** at limit **
  24  norm          .10000E-03    4.1965        .14393E-05** at limit **
  25  Prefactor     19.903        15.711       -.16575E-06   -.47726E-05
  26  Normalizat    .76712        .15800       -.21123E-06    .27715E-03
  27  Prefactor     1.3456        .19866       -.93862E-07    .28884E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.61551
  norm       = 4.03697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.8866
  Prefactor  = 4.40139
  norm       = 0.0001
  norm       = 7.61499
  norm       = 11.501
  norm       = 4.44677
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17486
  Prefactor  = 0.0001
  norm       = 0.157374
  Prefactor  = 0.0001
  Prefactor  = 12.7775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.9035
  Normalizat = 0.767124
  Prefactor  = 1.34557
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.234     FROM HESSE     STATUS=OK           494 CALLS     3763 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7091        .15190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.2588        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6155        5.2174        .83812E-03   -1.5234    
   5  norm          4.0370        3.4492        .13348E-03   -1.5306    
   6  Prefactor     .10000E-03    20.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.8866        4.3516        .12027E-03   -1.5146    
   9  Prefactor     4.4014        9.8953        .95893E-03   -1.5288    
  10  norm          .10000E-03    1.5748        .98838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.6150        11.786        .14532E-03   -1.5156    
  12  norm          11.501        5.6876        .48569E-03   -1.5030    
  13  norm          4.4468        8.1765        .95480E-03   -1.5286    
  14  norm          .10000E-03    22.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.6193        .17574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.1749        10.331        .28063E-03   -1.5413    
  18  Prefactor     .10000E-03    15.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .15737        18.765        .59960E-01   -1.5629    
  20  Prefactor     .10000E-03    4.7374        .17169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.777        16.250        .11206E-03   -1.4993    
  22  Prefactor     .10000E-03    28.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.3198        .32133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.1740        .16122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     19.903        15.713        .89778E-04   -1.4815    
  26  Normalizat    .76712        .18758        .25375E-03   -1.0130    
  27  Prefactor     1.3456        .23795        .25316E-03   -.81962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16217e-09
Minuit parameter uncertainties:
  1  3.38993e-07
  2  7.99358e-06
  3  5.91525e-05
  4  5.21787
  5  3.44936
  6  5.29981e-05
  7  1.71027e-06
  8  4.35179
  9  9.89893
  10  2.42523e-07
  11  11.7897
  12  5.68782
  13  8.17858
  14  8.15936e-05
  15  8.13603e-05
  16  1.71002e-06
  17  9.48249
  18  1.13881e-06
  19  3.43694
  20  8.32212e-06
  21  16.256
  22  4.34022e-05
  23  1.34389e-05
  24  7.61824e-06
  25  15.716
  26  0.187741
  27  0.238146
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.710e-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.346e+00  2.381e-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:  7.671e-01  1.877e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/495438/likelihoodResults_628905601_629164801_4FGL_J1320.7+3314_daily_bin1503.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) = 6536.23478444
delta logL = -0.000832363581139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6536.23395276
delta logL = -6.7969540396e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11309E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4735       1.0000          .0000       10.000    
     3 'Normalizat'    .76717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3455       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=   6536.234     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10694E-03    4.1485        .18142E-01** at limit **
   2  Index         2.3432        8.6188        .50000        .44015E-04
   3  Normalizat    .76712        .28995E-02    .25375E-03   -.24678E-03
   4  Prefactor     1.3456        .37339E-02    .25315E-03   -.81248E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106936
  Index      = 2.34318
  Normalizat = 0.767121
  Prefactor  = 1.34557
 **********
 **   18 **HESSE 
 **********

 FCN=   6536.234     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 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     .10694E-03    60.514        .21056E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3432        5.2189        .50000       -.56021    
   3  Normalizat    .76712        .11046E-01    .10150E-04   -1.0130    
   4  Prefactor     1.3456        .14224E-01    .50631E-04   -.81962    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73409e-08
Minuit parameter uncertainties:
  1  0.041017
  2  274.245
  3  0.0110457
  4  0.0142243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495438': 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) = 6536.23395068
delta logL = 1.39326039061e-06

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.069e-04  4.102e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.343e+00  2.742e+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.346e+00  1.422e-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:  7.671e-01  1.105e-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/495438/cmap_HighResolution_628905601_629164801_4FGL_J1320.7+3314_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-09-07 13:18:45.530822', job_id='495438', GAL2='1.35', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1631045925.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='1.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1503' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:18:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 495438: <4FGL_J1320.7+3314_daily_bin1503> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1503> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 13:05:23 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:05:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 13:05:39 2021
Terminated at Tue Sep  7 13:18:46 2021
Results reported at Tue Sep  7 13:18:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1503 200.185 33.2378 628905601 629164801 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 :                                   648.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            803 sec.

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

