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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1418
RA = 200.185, Dec = 33.2378
tmin = 606873601, tmax = 607132801
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='494943', job_status='RUN', time_executed='2021-09-07 13:03:28.269053', time_epoch_executed='1631045008.27' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494943

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494943/ft1_4FGL_J1320.7+3314_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494943/ft2_4FGL_J1320.7+3314_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494943/ft1_4FGL_J1320.7+3314_daily_bin1418.fits outfile=/scratch/kocevski/494943/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1418.fits ra=200.185 dec=33.2378 rad=12.0 tmin=606873601.0 tmax=607132801.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 5.43
user 5.07
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494943/ft1_filtered_4FGL_J1320.7+3314_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/494943/ft2_4FGL_J1320.7+3314_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/494943/ltcube_606873601_607132801_4FGL_J1320.7+3314_daily_bin1418.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/494943/ft2_4FGL_J1320.7+3314_daily_bin1418.fits
.....................!
real 14.93
user 14.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494943/ft1_filtered_4FGL_J1320.7+3314_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/494943/ft2_4FGL_J1320.7+3314_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/494943/ltcube_606873601_607132801_4FGL_J1320.7+3314_daily_bin1418.fits outfile=/scratch/kocevski/494943/expmap_606873601_607132801_4FGL_J1320.7+3314_daily_bin1418.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/494943/ltcube_606873601_607132801_4FGL_J1320.7+3314_daily_bin1418.fits
.....................!
real 193.11
user 187.32
sys 5.02

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/494943/ft1_filtered_4FGL_J1320.7+3314_daily_bin1418.fits scfile=/scratch/kocevski/494943/ft2_4FGL_J1320.7+3314_daily_bin1418.fits outfile=/scratch/kocevski/494943/cmap_606873601_607132801_4FGL_J1320.7+3314_daily_bin1418.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494943/ft1_filtered_4FGL_J1320.7+3314_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/494943/ft2_4FGL_J1320.7+3314_daily_bin1418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494943/Model_4FGL_J1320.7+3314_daily_bin1418.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/494943/ft1_filtered_4FGL_J1320.7+3314_daily_bin1418.fits.....................!
real 41.61
user 40.16
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9272       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9129       1.0000         .10000E-03   10000.    
     5 'norm      '    .19940       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3160       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.462       1.0000         .10000E-03   10000.    
    11 'norm      '    19.474       1.0000         .10000E-03   10000.    
    12 'norm      '    8.2792       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.1536       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17872E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8537       1.0000         .10000E-03   10000.    
    17 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.131       1.0000         .10000E-03   10000.    
    19 'norm      '    4.8649       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8724       1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.850       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .63854       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .82208       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1743       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=   4873.900     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     2893 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9274        8.3892        .15725E-05    .66271E-03
   2  Prefactor     .10000E-03    8.4537       -.36465E-06** at limit **
   3  Prefactor     .10000E-03    129.84        .50635E-06** at limit **
   4  Prefactor     2.9129        5.6694        .23244E-06    .10134E-03
   5  norm          .18332        3.2293       -.28637E-06    .23258E-03
   6  Prefactor     8.3097        52.157        .16551E-05    .21099E-05
   7  Prefactor     .10000E-03    32.485        .59163E-06** at limit **
   8  norm          .10000E-03    1.7104       -.92449E-08** at limit **
   9  Prefactor     .10000E-03    10.821       -.46365E-06** at limit **
  10  norm          11.469        6.9975       -.28304E-06   -.16581E-03
  11  norm          19.474        14.575       -.30236E-07   -.73162E-05
  12  norm          8.2830        4.8162       -.51936E-06   -.51906E-03
  13  norm          .10000E-03    4.0473        .22104E-06** at limit **
  14  norm          9.1498        23.677        .22297E-06    .17471E-04
  15  Prefactor     .10003E-03    6.5842       -.22614E-05** at limit **
  16  Prefactor     1.8943        37.125       -.29072E-06    .24883E-04
  17  norm          .10000E-03    8.3912       -.44503E-06** at limit **
  18  Prefactor     49.153        48.164       -.28892E-05   -.67246E-04
  19  norm          4.8628        7.7956        .47640E-06    .15034E-03
  20  Prefactor     .10000E-03    5.2938       -.23167E-07** at limit **
  21  Prefactor     2.8658        18.903        .52184E-07    .23075E-04
  22  Prefactor     29.846        45.238        .65829E-06   -.53391E-05
  23  Prefactor     .63811        3.4285        .67433E-06    .30194E-03
  24  norm          .10000E-03    3.9926        .81690E-07** at limit **
  25  Prefactor     .10000E-03    6.7010        .12409E-06** at limit **
  26  Normalizat    .82229        .17505       -.57806E-06   -.15582E-03
  27  Prefactor     1.1741        .21555       -.15783E-06   -.12399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.92739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.91287
  norm       = 0.183321
  Prefactor  = 8.30971
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.4694
  norm       = 19.4735
  norm       = 8.28297
  norm       = 0.0001
  norm       = 9.14977
  Prefactor  = 0.000100026
  Prefactor  = 1.8943
  norm       = 0.0001
  Prefactor  = 49.1533
  norm       = 4.86285
  Prefactor  = 0.0001
  Prefactor  = 2.86583
  Prefactor  = 29.8458
  Prefactor  = 0.638107
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.822291
  Prefactor  = 1.17411
 **********
 **   18 **HESSE 
 **********

 FCN=   4873.900     FROM HESSE     STATUS=OK           492 CALLS     3385 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9274        8.9072        .90597E-03   -1.5264    
   2  Prefactor     .10000E-03    8.4449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    130.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9129        5.6538        .22193E-03   -1.5367    
   5  norm          .18332        28.208        .22671E-02   -1.5622    
   6  Prefactor     8.3097        52.165        .13902E-03   -1.5131    
   7  Prefactor     .10000E-03    32.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.7404        .89138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.469        6.9612        .11833E-03   -1.5031    
  11  norm          19.474        14.570        .90760E-04   -1.4825    
  12  norm          8.2830        4.8567        .10476E-03   -1.5132    
  13  norm          .10000E-03    4.0723        .13707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.1498        23.661        .13247E-03   -1.5103    
  15  Prefactor     .10003E-03    9.3824        .19180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8943        30.216        .30617E-03   -1.5433    
  17  norm          .10000E-03    8.4610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     49.153        47.791        .28605E-03   -1.4305    
  19  norm          4.8628        7.7635        .18237E-03   -1.5267    
  20  Prefactor     .10000E-03    5.2986        .15686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.8658        18.864        .23983E-03   -1.5369    
  22  Prefactor     29.846        45.291        .73333E-04   -1.4615    
  23  Prefactor     .63811        3.5372        .24904E-03   -1.5548    
  24  norm          .10000E-03    3.9945        .13623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.7021        .17650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .82229        .20796        .23463E-03   -.99247    
  27  Prefactor     1.1741        .25659        .25476E-03   -.87132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.11232e-09
Minuit parameter uncertainties:
  1  8.90963
  2  2.41582e-06
  3  0.000137169
  4  5.65483
  5  4.54894
  6  41.6936
  7  0.000217542
  8  1.10362e-06
  9  3.59097e-05
  10  6.9617
  11  14.5729
  12  4.85694
  13  5.39198e-05
  14  23.6851
  15  0.000992748
  16  15.1399
  17  3.19699e-05
  18  47.8284
  19  7.76508
  20  6.11937e-06
  21  14.7115
  22  45.3429
  23  3.00477
  24  1.11899e-07
  25  3.93509e-07
  26  0.208164
  27  0.256864
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
588   Normalization:  8.223e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 9.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494943/likelihoodResults_606873601_607132801_4FGL_J1320.7+3314_daily_bin1418.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) = 4873.16818807
delta logL = 0.731318803177

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4873.09737914
delta logL = 0.802127734412

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51950E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    6.5635       1.0000          .0000       10.000    
     3 'Normalizat'    .75600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2319       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=   4873.097     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      278 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51171E-02    .79918E-01    .95746E-03    .10153E-01
   2  Index         6.5705        2.6243        .12910        .12479E-03
   3  Normalizat    .75577        .38889E-01    .43033E-01    .17738E-04
   4  Prefactor     1.2320        .49799E-01    .56415E-01    .44644E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00511714
  Index      = 6.57054
  Normalizat = 0.75577
  Prefactor  = 1.23204
 **********
 **   18 **HESSE 
 **********

 FCN=   4873.097     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      313 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51171E-02    .21979        .45533E-04   -1.5694    
   2  Index         6.5705        7.7495        .47166E-02    .31952    
   3  Normalizat    .75577        .15108        .24332E-03   -1.0173    
   4  Prefactor     1.2320        .19072        .24946E-03   -.85351    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.98175e-11
Minuit parameter uncertainties:
  1  0.0664146
  2  5.80696
  3  0.151164
  4  0.190832
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494943': 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) = 4873.09737531
delta logL = 0.802131563163

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  5.117e-03  6.641e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  6.571e+00  5.807e+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:  1.232e+00  1.908e-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.558e-01  1.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 200.185 33.238
Photon Index (Free Index): 6.57 +/- 5.81
Photon Flux (Free Index): 5.54e-08 +/- 4.90e-08
Energy Flux (Free Index): 6.72e-06 +/- 6.49e-06

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/494943/cmap_HighResolution_606873601_607132801_4FGL_J1320.7+3314_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.37e-03', comment='SUCCESS', energy_flux2='6.72e-06', dlogl='8.02e-01', photon_flux2='5.54e-08', job_status='DONE', time_completed='2021-09-07 13:14:40.349359', photon_index_error2='5.81', photon_index2='6.57', ts='0.02', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='9.47e-08', energy_flux_error2='6.49e-06', EG='0.82', time_epoch_completed='1631045680.35', return_code='0', job_id='494943', GAL2='1.23', EG2='0.76', return_code2='102', photon_flux_error2='4.90e-08', ts2='1.72', photon_index='2.51' WHERE bin_id='1418' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:14:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 494943: <4FGL_J1320.7+3314_daily_bin1418> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1418> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 13:01:14 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:02:52 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:02:52 2021
Terminated at Tue Sep  7 13:14:41 2021
Results reported at Tue Sep  7 13:14:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1418 200.185 33.2378 606873601 607132801 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 :                                   667.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   708 sec.
    Turnaround time :                            807 sec.

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

