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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin805
RA = 200.185, Dec = 33.2378
tmin = 447984001, tmax = 448243201
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='492245', job_status='RUN', time_executed='2021-09-07 12:52:52.457528', time_epoch_executed='1631044372.46' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='805'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/492245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/492245/ft1_4FGL_J1320.7+3314_daily_bin805.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/492245/ft2_4FGL_J1320.7+3314_daily_bin805.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/492245/ft1_4FGL_J1320.7+3314_daily_bin805.fits outfile=/scratch/kocevski/492245/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin805.fits ra=200.185 dec=33.2378 rad=12.0 tmin=447984001.0 tmax=448243201.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.10
user 3.80
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/492245/ft1_filtered_4FGL_J1320.7+3314_daily_bin805.fits" evtable="EVENTS" scfile=/scratch/kocevski/492245/ft2_4FGL_J1320.7+3314_daily_bin805.fits sctable="SC_DATA" outfile=/scratch/kocevski/492245/ltcube_447984001_448243201_4FGL_J1320.7+3314_daily_bin805.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/492245/ft2_4FGL_J1320.7+3314_daily_bin805.fits
.....................!
real 16.01
user 15.50
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/492245/ft1_filtered_4FGL_J1320.7+3314_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/492245/ft2_4FGL_J1320.7+3314_daily_bin805.fits sctable="SC_DATA" expcube=/scratch/kocevski/492245/ltcube_447984001_448243201_4FGL_J1320.7+3314_daily_bin805.fits outfile=/scratch/kocevski/492245/expmap_447984001_448243201_4FGL_J1320.7+3314_daily_bin805.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/492245/ltcube_447984001_448243201_4FGL_J1320.7+3314_daily_bin805.fits
.....................!
real 192.17
user 186.93
sys 4.57

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/492245/ft1_filtered_4FGL_J1320.7+3314_daily_bin805.fits scfile=/scratch/kocevski/492245/ft2_4FGL_J1320.7+3314_daily_bin805.fits outfile=/scratch/kocevski/492245/cmap_447984001_448243201_4FGL_J1320.7+3314_daily_bin805.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.39
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/492245/ft1_filtered_4FGL_J1320.7+3314_daily_bin805.fits evtable="EVENTS" scfile=/scratch/kocevski/492245/ft2_4FGL_J1320.7+3314_daily_bin805.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/492245/Model_4FGL_J1320.7+3314_daily_bin805.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/492245/ft1_filtered_4FGL_J1320.7+3314_daily_bin805.fits.....................!
real 48.35
user 46.64
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1779       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4428       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    70.175       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0466       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.0486       1.0000         .10000E-03   10000.    
    11 'norm      '    38.230       1.0000         .10000E-03   10000.    
    12 'norm      '    6.0498       1.0000         .10000E-03   10000.    
    13 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .99696       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4804       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.877       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5891       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    93.917       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.7850       1.0000         .10000E-03   10000.    
    24 'norm      '    .55275E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .64963       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3995       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=   5785.282     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3303 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3241        .31584E-07** at limit **
   2  Prefactor     2.1791        13.680        .65353E-05   -.14078E-03
   3  Prefactor     .10000E-03    139.43        .53009E-06** at limit **
   4  Prefactor     1.4426        4.3488        .70096E-07   -.45777E-04
   5  norm          .10000E-03    1.2285        .91774E-08** at limit **
   6  Prefactor     70.172        59.440        .12315E-06   -.17051E-04
   7  Prefactor     .10000E-03    6.8504       -.78777E-07** at limit **
   8  norm          1.0472        3.6468        .59713E-06    .15820E-04
   9  Prefactor     .10000E-03    11.149        .41594E-06** at limit **
  10  norm          6.0493        4.7504       -.12437E-06   -.49461E-04
  11  norm          38.230        16.891        .31289E-08   -.31450E-05
  12  norm          6.0497        3.4523        .70010E-06    .17857E-02
  13  norm          .10001E-03    5.9515        .36687E-06** at limit **
  14  norm          .10000E-03    9.8632        .80383E-07** at limit **
  15  Prefactor     .99658        3.1004        .88340E-07   -.47789E-04
  16  Prefactor     .10000E-03    7.4383        .17010E-07** at limit **
  17  norm          3.4813        5.2541        .12114E-06   -.42269E-04
  18  Prefactor     11.887        36.163       -.68477E-06    .17508E-04
  19  norm          .10000E-03    4.6178        .30818E-07** at limit **
  20  Prefactor     2.5852        13.458        .50662E-06   -.32005E-04
  21  Prefactor     .10000E-03    16.297        .83717E-07** at limit **
  22  Prefactor     93.886        82.522        .19784E-05   -.82351E-04
  23  Prefactor     1.7851        2.8707        .85582E-07   -.21169E-04
  24  norm          .10000E-03    11.154       -.48929E-06** at limit **
  25  Prefactor     .10000E-03    9.3516       -.19593E-06** at limit **
  26  Normalizat    .64982        .17100        .72912E-06    .13541E-03
  27  Prefactor     1.3992        .20919       -.14030E-05    .57467E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 2.17913
  Prefactor  = 0.0001
  Prefactor  = 1.44257
  norm       = 0.0001
  Prefactor  = 70.172
  Prefactor  = 0.0001
  norm       = 1.04715
  Prefactor  = 0.0001
  norm       = 6.04932
  norm       = 38.2301
  norm       = 6.04969
  norm       = 0.000100006
  norm       = 0.0001
  Prefactor  = 0.996577
  Prefactor  = 0.0001
  norm       = 3.48129
  Prefactor  = 11.8873
  norm       = 0.0001
  Prefactor  = 2.58521
  Prefactor  = 0.0001
  Prefactor  = 93.8862
  Prefactor  = 1.78506
  norm       = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 0.649819
  Prefactor  = 1.39921
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.282     FROM HESSE     STATUS=OK           486 CALLS     3789 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3403        .17139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.1791        13.848        .13949E-02   -1.5413    
   3  Prefactor     .10000E-03    140.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4426        4.2888        .26391E-03   -1.5468    
   5  norm          .10000E-03    1.2322        .82311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     70.172        59.444        .47919E-04   -1.4031    
   7  Prefactor     .10000E-03    6.8548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0472        3.5929        .25764E-03   -1.5503    
   9  Prefactor     .10000E-03    11.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.0493        4.7149        .13872E-03   -1.5216    
  11  norm          38.230        16.890        .64823E-04   -1.4471    
  12  norm          6.0497        3.2358        .94704E-04   -1.5216    
  13  norm          .10001E-03    12.674        .30106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.8767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .99658        3.0345        .20431E-03   -1.5508    
  16  Prefactor     .10000E-03    7.4710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4813        5.2383        .20698E-03   -1.5335    
  18  Prefactor     11.887        35.771        .11624E-03   -1.5018    
  19  norm          .10000E-03    4.6614        .15954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.5852        13.382        .25360E-03   -1.5386    
  21  Prefactor     .10000E-03    16.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     93.886        82.040        .41471E-04   -1.3767    
  23  Prefactor     1.7851        2.8430        .15692E-03   -1.5441    
  24  norm          .10000E-03    73.614        .48445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.3663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .64982        .20386        .26656E-03   -1.0591    
  27  Prefactor     1.3992        .25050        .24257E-03   -.80403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38856e-09
Minuit parameter uncertainties:
  1  1.69674e-05
  2  10.9899
  3  0.000214112
  4  4.28968
  5  5.64121e-07
  6  59.4939
  7  8.17736e-06
  8  3.59364
  9  7.73757e-05
  10  4.7152
  11  16.8916
  12  3.23588
  13  0.000531951
  14  9.94247e-06
  15  3.03499
  16  3.43217e-05
  17  5.23894
  18  35.8356
  19  6.63572e-06
  20  11.7675
  21  3.79265e-05
  22  82.1392
  23  2.84318
  24  0.00080506
  25  4.68532e-05
  26  0.204098
  27  0.250719
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  3.432e-05  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.399e+00  2.507e-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:  6.498e-01  2.041e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/492245/likelihoodResults_447984001_448243201_4FGL_J1320.7+3314_daily_bin805.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) = 5785.2822441
delta logL = -0.00063745371699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5785.28160743
delta logL = -7.76636625233e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10838E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4894       1.0000          .0000       10.000    
     3 'Normalizat'    .64968       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3994       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=   5785.282     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      250 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10290E-03    2.8775        .18142E-01** at limit **
   2  Index         2.3757        8.8108        .50000        .15943E-04
   3  Normalizat    .64982        .23568E-02    .26656E-03    .49431E-04
   4  Prefactor     1.3992        .30454E-02    .24257E-03    .44701E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001029
  Index      = 2.37565
  Normalizat = 0.649818
  Prefactor  = 1.39921
 **********
 **   18 **HESSE 
 **********

 FCN=   5785.282     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10290E-03    501.17        .41882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3757        6.0541        .50000       -.55256    
   3  Normalizat    .64982        .33304E-01    .10662E-04   -1.0591    
   4  Prefactor     1.3992        .43024E-01    .48515E-04   -.80403    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.5923e-08
Minuit parameter uncertainties:
  1  0.0769046
  2  1286.49
  3  0.0333052
  4  0.043025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/492245': 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) = 5785.28160625
delta logL = 4.00645149057e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.029e-04  7.690e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.376e+00  1.286e+03  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.399e+00  4.302e-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:  6.498e-01  3.331e-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/492245/cmap_HighResolution_447984001_448243201_4FGL_J1320.7+3314_daily_bin805.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2021-09-07 13:05:24.475303', job_id='492245', GAL2='1.40', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1631045124.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.40', dlogl='4.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='805' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:05:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 492245: <4FGL_J1320.7+3314_daily_bin805> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin805> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep  7 12:50:41 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:52:35 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:52:35 2021
Terminated at Tue Sep  7 13:05:25 2021
Results reported at Tue Sep  7 13:05:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin805 200.185 33.2378 447984001 448243201 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 :                                   749.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             339.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            884 sec.

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

