aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 93 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1753
RA = 200.185, Dec = 33.2378
tmin = 693705601, tmax = 693964801
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='455152', job_status='RUN', time_executed='2022-12-29 01:01:50.958483', time_epoch_executed='1672304510.96' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/455152

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/455152/ft1_4FGL_J1320.7+3314_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/455152/ft2_4FGL_J1320.7+3314_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/455152/ft1_4FGL_J1320.7+3314_daily_bin1753.fits outfile=/scratch/kocevski/455152/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1753.fits ra=200.185 dec=33.2378 rad=12.0 tmin=693705601.0 tmax=693964801.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.66
user 4.35
sys 0.23

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

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

Number of photons that the gtmktime cut: 565

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/455152/ft1_filtered_4FGL_J1320.7+3314_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/455152/ft2_4FGL_J1320.7+3314_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/455152/ltcube_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.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/455152/ft2_4FGL_J1320.7+3314_daily_bin1753.fits
.....................!
real 16.67
user 16.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/455152/ft1_filtered_4FGL_J1320.7+3314_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/455152/ft2_4FGL_J1320.7+3314_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/455152/ltcube_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.fits outfile=/scratch/kocevski/455152/expmap_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.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/455152/ltcube_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.fits
.....................!
real 194.06
user 186.75
sys 5.04

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/455152/ft1_filtered_4FGL_J1320.7+3314_daily_bin1753.fits scfile=/scratch/kocevski/455152/ft2_4FGL_J1320.7+3314_daily_bin1753.fits outfile=/scratch/kocevski/455152/cmap_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/455152/ft1_filtered_4FGL_J1320.7+3314_daily_bin1753.fits scfile=/scratch/kocevski/455152/ft2_4FGL_J1320.7+3314_daily_bin1753.fits outfile=/scratch/kocevski/455152/cmap_HighResolution_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/455152/ft1_filtered_4FGL_J1320.7+3314_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/455152/ft2_4FGL_J1320.7+3314_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/455152/Model_4FGL_J1320.7+3314_daily_bin1753.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/455152/ft1_filtered_4FGL_J1320.7+3314_daily_bin1753.fits.....................!
real 51.64
user 49.81
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/455152/ft1_filtered_4FGL_J1320.7+3314_daily_bin1753.fits', '/scratch/kocevski/455152/ft2_4FGL_J1320.7+3314_daily_bin1753.fits', expMap='/scratch/kocevski/455152/expmap_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.fits', expCube='/scratch/kocevski/455152/ltcube_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/455152/Model_4FGL_J1320.7+3314_daily_bin1753.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  0.000e+00  1.000e+06 ( 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/455152/ft1_filtered_4FGL_J1320.7+3314_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/455152/ft2_4FGL_J1320.7+3314_daily_bin1753.fits
Exposure map: /scratch/kocevski/455152/expmap_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.fits
Exposure cube: /scratch/kocevski/455152/ltcube_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/455152/Model_4FGL_J1320.7+3314_daily_bin1753.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) = 6025.93012076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24208E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .79783E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .58371E-03   1.0000          .0000       .10000E+07
     4 'norm      '    6.2332       1.0000          .0000       .10000E+07
     5 'Prefactor '    .25150E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .11182E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    1.2781       1.0000          .0000       .10000E+07
     8 'norm      '    .18474E-05   1.0000          .0000       .10000E+07
     9 'norm      '    .34325E-05   1.0000          .0000       .10000E+07
    10 'norm      '    18.128       1.0000          .0000       .10000E+07
    11 'norm      '    11.978       1.0000          .0000       .10000E+07
    12 'norm      '    9.7228       1.0000          .0000       .10000E+07
    13 'Prefactor '    .89351E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .52448E-03   1.0000          .0000       .10000E+07
    15 'norm      '    33.616       1.0000          .0000       .10000E+07
    16 'Prefactor '    15.265       1.0000          .0000       .10000E+07
    17 'norm      '    11.040       1.0000          .0000       .10000E+07
    18 'Prefactor '    .24190E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .14760E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .44118       1.0000          .0000       .10000E+07
    21 'norm      '    7.3325       1.0000          .0000       .10000E+07
    22 'Normalizat'    1.2388       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84341       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6025.840     FROM MIGRAD    STATUS=CONVERGED    124 CALLS     1456 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    2.9539        .24112E-06** at limit **
   2  Prefactor     .24009E-06    5.5016       -.54115E-06** at limit **
   3  Prefactor     .87430E-07    2.8816       -.13238E-06** at limit **
   4  norm          6.1842        5.7705       -.29553E-06   -.92037E-03
   5  Prefactor      .0000        24.882       -.10529E-05** at limit **
   6  norm          .20539E-08    2.2271       -.11281E-06** at limit **
   7  Prefactor     1.3457        5.0510        .25991E-06   -.22019E-02
   8  norm           .0000        1.5224       -.54096E-07** at limit **
   9  norm          .20367E-06    7.9396       -.41831E-06** at limit **
  10  norm          18.120        4.5902       -.73699E-07   -.24649E-02
  11  norm          11.953        2.7565       -.21016E-07    .13760E-02
  12  norm          9.7293        1.1255       -.24168E-07   -.46327E-02
  13  Prefactor      .0000        .94263       -.18104E-06** at limit **
  14  Prefactor     .25424E-07    3.9930        .14640E-06** at limit **
  15  norm          33.613        3.5788       -.13661E-06   -.26899E-01
  16  Prefactor     15.114        2.6017       -.16197E-06    .36069E-01
  17  norm          11.045        6.7832       -.42228E-06   -.21760E-01
  18  Prefactor     .61895E-07    12.398        .15683E-05** at limit **
  19  Prefactor     .12040E-06    4.3111       -.16289E-06** at limit **
  20  Prefactor     .50426        10.639        .12051E-05   -.17495E-02
  21  norm          7.2808        1.3106       -.22585E-07    .28917E-02
  22  Normalizat    1.2385        .21711        .84680E-06    .83723E-05
  23  Prefactor     .84356        .26003       -.43973E-05    .62685E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Prefactor  = 2.40086e-07
  Prefactor  = 8.74301e-08
  norm       = 6.18421
  Prefactor  = 0
  norm       = 2.05391e-09
  Prefactor  = 1.34567
  norm       = 0
  norm       = 2.0367e-07
  norm       = 18.1199
  norm       = 11.9525
  norm       = 9.72934
  Prefactor  = 0
  Prefactor  = 2.54241e-08
  norm       = 33.6133
  Prefactor  = 15.1137
  norm       = 11.0451
  Prefactor  = 6.18949e-08
  Prefactor  = 1.20404e-07
  Prefactor  = 0.504258
  norm       = 7.28075
  Normalizat = 1.23847
  Prefactor  = 0.843564
 **********
 **   18 **HESSE 
 **********

 FCN=   6025.840     FROM HESSE     STATUS=OK           422 CALLS     1878 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    2.9507        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .24009E-06    7.9563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .87430E-07    5.3203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.1842        5.8376        .40184E-03   -1.5658    
   5  Prefactor      .0000        24.852        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .20539E-08    5.8262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3457        27.589        .98196E-03   -1.5685    
   8  norm           .0000        1.5243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .20367E-06    10.309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.120        8.0659        .23496E-03   -1.5623    
  11  norm          11.953        12.675        .28919E-03   -1.5639    
  12  norm          9.7293        11.205        .32113E-03   -1.5646    
  13  Prefactor      .0000        .94151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .25424E-07    4.5668        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          33.613        10.383        .17250E-03   -1.5592    
  16  Prefactor     15.114        28.557        .25609E-03   -1.5630    
  17  norm          11.045        8.5391        .30127E-03   -1.5641    
  18  Prefactor     .61895E-07    13.250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .12040E-06    6.1854        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .50426        2.5958        .65355E-02   -1.5694    
  21  norm          7.2808        11.623        .37016E-03   -1.5654    
  22  Normalizat    1.2385        .18012        .49788E-01   -.85422    
  23  Prefactor     .84356        .21402        .72388E-01   -.98142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2763e-07
Minuit parameter uncertainties:
  1  3.903e-05
  2  0.00276412
  3  0.00136412
  4  5.83758
  5  3.41189e-05
  6  0.000218071
  7  12.1863
  8  1.09842e-05
  9  0.00289797
  10  8.06595
  11  12.6747
  12  11.2049
  13  2.56824e-06
  14  0.000681676
  15  10.3828
  16  28.5576
  17  8.53908
  18  0.00181095
  19  0.00172615
  20  2.28821
  21  11.6235
  22  0.180215
  23  0.214236
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  2.542e-08  6.817e-04  0.000e+00  1.000e+06 ( 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:  8.436e-01  2.142e-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.238e+00  1.802e-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.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/455152/likelihoodResults_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.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) = 6025.84348419
delta logL = -0.00371123914374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6025.83977453
delta logL = -1.57325848704e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94210E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.7378       1.0000          .0000       10.000    
     3 'Normalizat'    1.2384       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84372       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6025.840     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      216 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.5440        .19049E-06** at limit **
   2  Index         1.3706        2.2555        .16497E-04     .0000    
   3  Normalizat    1.2385        .21165       -.29661E-05   -.22037E-04
   4  Prefactor     .84356        .26022       -.12569E-04   -.14399E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.37058
  Normalizat = 1.23847
  Prefactor  = 0.843561
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6025.840     FROM HESSE     STATUS=FAILED        11 CALLS      227 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.6364        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .15356        1.3108        .16497E-04   -.81232    
   3  Normalizat    1.2385        1.0944       -.29661E-05   -.85422    
   4  Prefactor     .84356        1.1909       -.12569E-04   -.98142    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.94243e-11
Minuit parameter uncertainties:
  1  2.56655e-05
  2  0.783424
  3  1.11583
  4  1.23073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/455152': 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): 101
logL (Free Index) = 6025.83977295
delta logL = 2.70847522188e-09

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  0.000e+00  2.567e-05  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  1.371e+00  7.834e-01  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.436e-01  1.231e+00  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.238e+00  1.116e+00  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/455152/cmap_HighResolution_693705601_693964801_4FGL_J1320.7+3314_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.50e-08', time_completed='2022-12-29 01:11:29.085554', job_id='455152', GAL2='0.84', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1672305089.09', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='2.71e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1753' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:11:29 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 455152: <4FGL_J1320.7+3314_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1753> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec 29 00:55:18 2022
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:00:08 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:00:08 2022
Terminated at Thu Dec 29 01:11:29 2022
Results reported at Thu Dec 29 01:11:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1753 200.185 33.2378 693705601 693964801 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 :                                   575.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            971 sec.

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

