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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin55
RA = 200.185, Dec = 33.2378
tmin = 253584001, tmax = 253843201
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='487834', job_status='RUN', time_executed='2021-09-07 12:39:41.270029', time_epoch_executed='1631043581.27' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487834/ft1_4FGL_J1320.7+3314_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487834/ft2_4FGL_J1320.7+3314_daily_bin55.fits


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

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

Done.
real 1.45
user 1.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487834/ft1_filtered_4FGL_J1320.7+3314_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/487834/ft2_4FGL_J1320.7+3314_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/487834/ltcube_253584001_253843201_4FGL_J1320.7+3314_daily_bin55.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/487834/ft2_4FGL_J1320.7+3314_daily_bin55.fits
.....................!
real 17.94
user 17.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487834/ft1_filtered_4FGL_J1320.7+3314_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/487834/ft2_4FGL_J1320.7+3314_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/487834/ltcube_253584001_253843201_4FGL_J1320.7+3314_daily_bin55.fits outfile=/scratch/kocevski/487834/expmap_253584001_253843201_4FGL_J1320.7+3314_daily_bin55.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/487834/ltcube_253584001_253843201_4FGL_J1320.7+3314_daily_bin55.fits
.....................!
real 191.79
user 186.42
sys 4.36

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/487834/ft1_filtered_4FGL_J1320.7+3314_daily_bin55.fits scfile=/scratch/kocevski/487834/ft2_4FGL_J1320.7+3314_daily_bin55.fits outfile=/scratch/kocevski/487834/cmap_253584001_253843201_4FGL_J1320.7+3314_daily_bin55.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.39
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487834/ft1_filtered_4FGL_J1320.7+3314_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/487834/ft2_4FGL_J1320.7+3314_daily_bin55.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487834/Model_4FGL_J1320.7+3314_daily_bin55.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/487834/ft1_filtered_4FGL_J1320.7+3314_daily_bin55.fits.....................!
real 38.96
user 37.67
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.643       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6342       1.0000         .10000E-03   10000.    
     5 'norm      '    2.4417       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    47.604       1.0000         .10000E-03   10000.    
     8 'norm      '    .35914E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.3969       1.0000         .10000E-03   10000.    
    13 'norm      '    .17025E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    10.117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10239E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .76758       1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    29.673       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    71.330       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.8799       1.0000         .10000E-03   10000.    
    24 'norm      '    20.904       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .76278       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0038       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=   4395.911     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3341 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.642        14.338        .21476E-07   -.14176E-05
   2  Prefactor     .10000E-03    16.588       -.11109E-05** at limit **
   3  Prefactor     36.127        98.581        .23373E-05   -.46245E-05
   4  Prefactor     4.6336        4.4684        .59836E-08   -.39250E-04
   5  norm          2.4416        5.2425       -.81264E-06   -.16210E-03
   6  Prefactor     .10000E-03    28.114       -.83974E-06** at limit **
   7  Prefactor     47.608        31.796        .11920E-06   -.24734E-03
   8  norm          .18651E-01    5.0241       -.23983E-05    .91415E-03
   9  Prefactor     .10000E-03    4.9998       -.57809E-07** at limit **
  10  norm          .10000E-03    2.7655       -.10524E-06** at limit **
  11  norm          .10000E-03    5.6000        .78957E-07** at limit **
  12  norm          4.3868        4.1774       -.12978E-05   -.17158E-02
  13  norm          .10000E-03    12.007       -.10963E-05** at limit **
  14  norm          10.121        16.812       -.13555E-06    .28612E-04
  15  Prefactor     .10000E-03    3.0118        .11102E-05** at limit **
  16  Prefactor     .66696        53.077        .81839E-05    .44234E-04
  17  norm          .10000E-03    6.5856       -.36509E-06** at limit **
  18  Prefactor     .10000E-03    20.188        .15737E-05** at limit **
  19  norm          29.673        11.739        .13363E-07    .72976E-04
  20  Prefactor     .10000E-03    7.7606        .99129E-07** at limit **
  21  Prefactor     .10000E-03    5.6479        .44101E-07** at limit **
  22  Prefactor     71.293        80.535        .30293E-05    .13056E-04
  23  Prefactor     6.8794        4.4508        .64123E-07    .12802E-04
  24  norm          20.902        16.761       -.44335E-07   -.33731E-05
  25  Prefactor     .10000E-03    6.0816       -.15225E-06** at limit **
  26  Normalizat    .76250        .19632       -.60101E-06   -.46857E-05
  27  Prefactor     1.0044        .23672        .46450E-06   -.23940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6423
  Prefactor  = 0.0001
  Prefactor  = 36.1271
  Prefactor  = 4.63365
  norm       = 2.44156
  Prefactor  = 0.0001
  Prefactor  = 47.6077
  norm       = 0.0186509
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.3868
  norm       = 0.000100001
  norm       = 10.1207
  Prefactor  = 0.000100002
  Prefactor  = 0.666955
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 29.6732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.2932
  Prefactor  = 6.87936
  norm       = 20.9022
  Prefactor  = 0.0001
  Normalizat = 0.762497
  Prefactor  = 1.00437
 **********
 **   18 **HESSE 
 **********

 FCN=   4395.911     FROM HESSE     STATUS=OK           496 CALLS     3837 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.642        14.342        .76197E-04   -1.4656    
   2  Prefactor     .10000E-03    16.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.127        98.288        .66669E-04   -1.4505    
   4  Prefactor     4.6336        4.4715        .13368E-03   -1.5277    
   5  norm          2.4416        5.1087        .18925E-03   -1.5395    
   6  Prefactor     .10000E-03    28.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     47.608        31.568        .58117E-04   -1.4327    
   8  norm          .18651E-01    3.5939        .32813E-01   -1.5681    
   9  Prefactor     .10000E-03    5.0039        .14478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.8032        .10763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.6040        .15324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.3868        4.0987        .11794E-03   -1.5289    
  13  norm          .10000E-03    29.945        .32416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.121        16.800        .12598E-03   -1.5072    
  15  Prefactor     .10000E-03    4.7125        .19012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .66696        66.497        .45685E-02   -1.5545    
  17  norm          .10000E-03    6.7021        .33098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          29.673        11.709        .73551E-04   -1.4618    
  20  Prefactor     .10000E-03    7.7942        .18040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6504        .15390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     71.293        79.933        .47532E-04   -1.4017    
  23  Prefactor     6.8794        4.4558        .10742E-03   -1.5183    
  24  norm          20.902        16.760        .87604E-04   -1.4793    
  25  Prefactor     .10000E-03    6.0825        .15970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .76250        .22408        .23589E-03   -1.0148    
  27  Prefactor     1.0044        .26774        .25999E-03   -.92584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69296e-09
Minuit parameter uncertainties:
  1  14.3438
  2  3.44748e-05
  3  98.7335
  4  4.47184
  5  5.10963
  6  4.2039e-05
  7  31.579
  8  0.516444
  9  5.70991e-07
  10  3.87491e-06
  11  1.46366e-06
  12  4.09894
  13  0.000422219
  14  16.808
  15  0.000197449
  16  13.3335
  17  1.13174e-05
  18  5.95341e-05
  19  11.7101
  20  9.96188e-06
  21  3.88501e-06
  22  80.054
  23  4.456
  24  16.7634
  25  4.80897e-06
  26  0.224354
  27  0.268095
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  6.670e-01  1.333e+01  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.004e+00  2.681e-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.625e-01  2.244e-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: 8.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487834/likelihoodResults_253584001_253843201_4FGL_J1320.7+3314_daily_bin55.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) = 4395.90569636
delta logL = 0.00573619144143

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4395.88811492
delta logL = 0.0233176325592

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3774       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9903       1.0000          .0000       10.000    
     3 'Normalizat'    .76372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99908       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=   4395.888     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      260 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3792        25.042        .19250E-03   -.10796E-03
   2  Index         1.9931        1.5820        .10702E-01   -.53426E-04
   3  Normalizat    .76376        .21104        .23569E-03    .28285E-03
   4  Prefactor     .99907        .26596        .26060E-03    .30978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.37919
  Index      = 1.99309
  Normalizat = 0.763763
  Prefactor  = 0.99907
 **********
 **   18 **HESSE 
 **********

 FCN=   4395.888     FROM HESSE     STATUS=OK            23 CALLS      283 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3792        24.315        .77002E-05   -1.5289    
   2  Index         1.9931        1.5608        .42809E-03   -.64523    
   3  Normalizat    .76376        .21120        .47138E-04   -1.0143    
   4  Prefactor     .99907        .26611        .52119E-04   -.92761    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31631e-10
Minuit parameter uncertainties:
  1  20.6505
  2  1.60348
  3  0.211423
  4  0.266458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487834': 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): 0
logL (Free Index) = 4395.88811321
delta logL = 0.0233193453505

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  4.379e+00  2.065e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.993e+00  1.603e+00  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:  9.991e-01  2.665e-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.638e-01  2.114e-01  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/487834/cmap_HighResolution_253584001_253843201_4FGL_J1320.7+3314_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', job_status='DONE', photon_flux_upper_limit='8.72e-08', time_completed='2021-09-07 12:50:16.798037', job_id='487834', GAL2='1.00', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1631044216.8', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.33e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='55' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:50:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 487834: <4FGL_J1320.7+3314_daily_bin55> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin55> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:35:45 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:36:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 12:36:27 2021
Terminated at Tue Sep  7 12:50:17 2021
Results reported at Tue Sep  7 12:50:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin55 200.185 33.2378 253584001 253843201 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 :                                   635.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            872 sec.

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

