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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1570
RA = 200.185, Dec = 33.2378
tmin = 646272001, tmax = 646531201
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='495521', job_status='RUN', time_executed='2021-09-07 13:09:28.374227', time_epoch_executed='1631045368.37' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1570'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495521

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495521/ft1_4FGL_J1320.7+3314_daily_bin1570.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495521/ft2_4FGL_J1320.7+3314_daily_bin1570.fits


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

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

Done.
real 4.24
user 3.97
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495521/ft1_filtered_4FGL_J1320.7+3314_daily_bin1570.fits" evtable="EVENTS" scfile=/scratch/kocevski/495521/ft2_4FGL_J1320.7+3314_daily_bin1570.fits sctable="SC_DATA" outfile=/scratch/kocevski/495521/ltcube_646272001_646531201_4FGL_J1320.7+3314_daily_bin1570.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/495521/ft2_4FGL_J1320.7+3314_daily_bin1570.fits
.....................!
real 16.66
user 16.18
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495521/ft1_filtered_4FGL_J1320.7+3314_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/495521/ft2_4FGL_J1320.7+3314_daily_bin1570.fits sctable="SC_DATA" expcube=/scratch/kocevski/495521/ltcube_646272001_646531201_4FGL_J1320.7+3314_daily_bin1570.fits outfile=/scratch/kocevski/495521/expmap_646272001_646531201_4FGL_J1320.7+3314_daily_bin1570.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/495521/ltcube_646272001_646531201_4FGL_J1320.7+3314_daily_bin1570.fits
.....................!
real 193.61
user 187.74
sys 5.32

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/495521/ft1_filtered_4FGL_J1320.7+3314_daily_bin1570.fits scfile=/scratch/kocevski/495521/ft2_4FGL_J1320.7+3314_daily_bin1570.fits outfile=/scratch/kocevski/495521/cmap_646272001_646531201_4FGL_J1320.7+3314_daily_bin1570.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/495521/ft1_filtered_4FGL_J1320.7+3314_daily_bin1570.fits scfile=/scratch/kocevski/495521/ft2_4FGL_J1320.7+3314_daily_bin1570.fits outfile=/scratch/kocevski/495521/cmap_HighResolution_646272001_646531201_4FGL_J1320.7+3314_daily_bin1570.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/495521/ft1_filtered_4FGL_J1320.7+3314_daily_bin1570.fits evtable="EVENTS" scfile=/scratch/kocevski/495521/ft2_4FGL_J1320.7+3314_daily_bin1570.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/495521/Model_4FGL_J1320.7+3314_daily_bin1570.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/495521/ft1_filtered_4FGL_J1320.7+3314_daily_bin1570.fits.....................!
real 48.32
user 46.86
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.189       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1926       1.0000         .10000E-03   10000.    
     5 'norm      '    6.4318       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.7773       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.1537       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0978       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.485       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12769E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.6726       1.0000         .10000E-03   10000.    
    17 'norm      '    .16215E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11943E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10818E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10223E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3155       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .79381       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=   5517.217     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     2817 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3748       -.34991E-06** at limit **
   2  Prefactor     .10000E-03    9.3085       -.82981E-08** at limit **
   3  Prefactor     16.021        132.72       -.57359E-05   -.13018E-03
   4  Prefactor     3.1931        3.8795        .69602E-09   -.69729E-04
   5  norm          6.4324        5.6982        .49922E-07   -.16732E-03
   6  Prefactor     5.7863        76.035        .15767E-05    .31746E-05
   7  Prefactor     .10000E-03    10.170       -.65587E-07** at limit **
   8  norm          5.1534        5.3357        .44877E-05   -.56537E-03
   9  Prefactor     .10000E-03    5.1177        .14348E-07** at limit **
  10  norm          2.0991        4.5347        .10789E-06   -.35972E-03
  11  norm          .10000E-03    5.3276        .13563E-06** at limit **
  12  norm          12.486        5.5542       -.14048E-06   -.95435E-03
  13  norm          .10000E-03    2.8713        .52804E-07** at limit **
  14  norm          .10000E-03    8.3688       -.74116E-07** at limit **
  15  Prefactor     .10001E-03    3.0340        .16320E-05** at limit **
  16  Prefactor     3.6884        28.929       -.30811E-05   -.24174E-03
  17  norm          .10000E-03    4.5504        .30448E-06** at limit **
  18  Prefactor     .10000E-03    149.72        .21852E-05** at limit **
  19  norm          .10000E-03    4.6925        .11339E-06** at limit **
  20  Prefactor     .10000E-03    10.587        .31077E-06** at limit **
  21  Prefactor     .10000E-03    15.525        .27495E-06** at limit **
  22  Prefactor     .10000E-03    115.33        .81581E-06** at limit **
  23  Prefactor     .10000E-03    5.1987        .65839E-06** at limit **
  24  norm          .10000E-03    18.113        .59509E-06** at limit **
  25  Prefactor     .10000E-03    12.098        .13705E-06** at limit **
  26  Normalizat    1.3156        .18654       -.11913E-05   -.51879E-03
  27  Prefactor     .79378        .21466       -.12233E-05   -.31009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0209
  Prefactor  = 3.19307
  norm       = 6.43236
  Prefactor  = 5.78631
  Prefactor  = 0.0001
  norm       = 5.15339
  Prefactor  = 0.0001
  norm       = 2.09906
  norm       = 0.0001
  norm       = 12.4864
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 3.68844
  norm       = 0.000100002
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3156
  Prefactor  = 0.793776
 **********
 **   18 **HESSE 
 **********

 FCN=   5517.217     FROM HESSE     STATUS=OK           478 CALLS     3295 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.3203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.021        135.27        .99542E-04   -1.4907    
   4  Prefactor     3.1931        3.8746        .15683E-03   -1.5351    
   5  norm          6.4324        5.6830        .15219E-03   -1.5201    
   6  Prefactor     5.7863        76.013        .16710E-03   -1.5227    
   7  Prefactor     .10000E-03    10.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.1534        5.2674        .82223E-03   -1.5254    
   9  Prefactor     .10000E-03    5.1204        .16410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0991        4.4450        .22075E-03   -1.5418    
  11  norm          .10000E-03    5.3312        .16744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.486        5.5088        .10294E-03   -1.5001    
  13  norm          .10000E-03    2.8751        .12280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    8.3748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    11.136        .21726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6884        24.949        .21077E-03   -1.5324    
  17  norm          .10000E-03    11.327        .30660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    150.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.7206        .15708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    115.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.3972        .33065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    18.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    12.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3156        .22451        .21867E-03   -.83102    
  27  Prefactor     .79378        .25711        .31971E-03   -.99958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50581e-09
Minuit parameter uncertainties:
  1  1.24451e-05
  2  6.67383e-06
  3  93.3909
  4  3.87493
  5  5.68352
  6  42.0097
  7  8.11358e-06
  8  5.2679
  9  7.38361e-07
  10  4.44574
  11  1.12086e-05
  12  5.50903
  13  6.71095e-06
  14  1.06531e-05
  15  0.00064448
  16  19.1972
  17  0.000331522
  18  0.000747264
  19  1.21277e-06
  20  1.82697e-05
  21  6.76357e-06
  22  7.28824e-05
  23  1.39545e-05
  24  3.88823e-05
  25  1.53367e-06
  26  0.22468
  27  0.257496
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  3.688e+00  1.920e+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:  7.938e-01  2.575e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.316e+00  2.247e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/495521/likelihoodResults_646272001_646531201_4FGL_J1320.7+3314_daily_bin1570.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): 0
logL (Free Index) = 5516.92692303
delta logL = 0.289652587378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5516.91797283
delta logL = 0.298602789372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50289       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4620       1.0000          .0000       10.000    
     3 'Normalizat'    1.2574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84072       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.

 FCN=   5516.918     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      320 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50150        11.405        .11283E-01    .13673E-02
   2  Index         4.4633        3.2204        .10795        .15146E-03
   3  Normalizat    1.2574        .37366E-01    .50377E-01   -.27278E-05
   4  Prefactor     .84076        .43920E-01    .70411E-01    .13776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.501503
  Index      = 4.46326
  Normalizat = 1.25741
  Prefactor  = 0.840762
 **********
 **   18 **HESSE 
 **********

 FCN=   5516.918     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      353 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50150        38.723        .63932E-04   -1.5566    
   2  Index         4.4633        7.1906        .66697E-02   -.10755    
   3  Normalizat    1.2574        .17921        .22272E-03   -.84847    
   4  Prefactor     .84076        .20470        .31155E-03   -.98243    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02018e-06
Minuit parameter uncertainties:
  1  8.81859
  2  8.17633
  3  0.179301
  4  0.204881
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495521': 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) = 5516.91797268
delta logL = 0.298602943952

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  5.015e-01  8.819e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  4.463e+00  8.176e+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:  8.408e-01  2.049e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.257e+00  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/495521/cmap_HighResolution_646272001_646531201_4FGL_J1320.7+3314_daily_bin1570.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.19e-03', job_status='DONE', photon_flux_upper_limit='1.18e-07', time_completed='2021-09-07 13:21:00.029730', job_id='495521', GAL2='0.84', fit_tolerance='1e-08', EG2='1.26', EG='1.32', time_epoch_completed='1631046060.03', return_code2='102', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.99e-01', ts2='0.70', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1570' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:21:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 495521: <4FGL_J1320.7+3314_daily_bin1570> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1570> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 13:05:32 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:06:51 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:06:51 2021
Terminated at Tue Sep  7 13:21:00 2021
Results reported at Tue Sep  7 13:21:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1570 200.185 33.2378 646272001 646531201 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 :                                   688.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            928 sec.

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

