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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1759
RA = 200.185, Dec = 33.2378
tmin = 695260801, tmax = 695520001
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='558334', job_status='RUN', time_executed='2023-01-16 01:14:12.223498', time_epoch_executed='1673860452.22' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/558334

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/558334/ft1_4FGL_J1320.7+3314_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/558334/ft2_4FGL_J1320.7+3314_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/558334/ft1_4FGL_J1320.7+3314_daily_bin1759.fits outfile=/scratch/kocevski/558334/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1759.fits ra=200.185 dec=33.2378 rad=12.0 tmin=695260801.0 tmax=695520001.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 2.81
user 2.53
sys 0.21

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

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

Number of photons that the gtmktime cut: 758

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/558334/ft1_filtered_4FGL_J1320.7+3314_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/558334/ft2_4FGL_J1320.7+3314_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/558334/ltcube_695260801_695520001_4FGL_J1320.7+3314_daily_bin1759.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/558334/ft2_4FGL_J1320.7+3314_daily_bin1759.fits
.....................!
real 15.92
user 15.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/558334/ft1_filtered_4FGL_J1320.7+3314_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/558334/ft2_4FGL_J1320.7+3314_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/558334/ltcube_695260801_695520001_4FGL_J1320.7+3314_daily_bin1759.fits outfile=/scratch/kocevski/558334/expmap_695260801_695520001_4FGL_J1320.7+3314_daily_bin1759.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/558334/ltcube_695260801_695520001_4FGL_J1320.7+3314_daily_bin1759.fits
.....................!
real 192.87
user 187.25
sys 4.76

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/558334/ft1_filtered_4FGL_J1320.7+3314_daily_bin1759.fits scfile=/scratch/kocevski/558334/ft2_4FGL_J1320.7+3314_daily_bin1759.fits outfile=/scratch/kocevski/558334/cmap_695260801_695520001_4FGL_J1320.7+3314_daily_bin1759.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/558334/ft1_filtered_4FGL_J1320.7+3314_daily_bin1759.fits scfile=/scratch/kocevski/558334/ft2_4FGL_J1320.7+3314_daily_bin1759.fits outfile=/scratch/kocevski/558334/cmap_HighResolution_695260801_695520001_4FGL_J1320.7+3314_daily_bin1759.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/558334/ft1_filtered_4FGL_J1320.7+3314_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/558334/ft2_4FGL_J1320.7+3314_daily_bin1759.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/558334/Model_4FGL_J1320.7+3314_daily_bin1759.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/558334/ft1_filtered_4FGL_J1320.7+3314_daily_bin1759.fits.....................!
real 63.96
user 61.78
sys 1.68

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31574E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .82762E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.2373       1.0000          .0000       .10000E+07
     4 'norm      '    7.6856       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.3731       1.0000          .0000       .10000E+07
     6 'norm      '    .12884E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .40895E-03   1.0000          .0000       .10000E+07
     8 'norm      '    3.2756       1.0000          .0000       .10000E+07
     9 'norm      '    16.084       1.0000          .0000       .10000E+07
    10 'norm      '    69.106       1.0000          .0000       .10000E+07
    11 'norm      '    38.829       1.0000          .0000       .10000E+07
    12 'norm      '    .10678E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.4920       1.0000          .0000       .10000E+07
    14 'Prefactor '    10.005       1.0000          .0000       .10000E+07
    15 'norm      '    106.22       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.7151       1.0000          .0000       .10000E+07
    17 'norm      '    .11420E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .99082E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    14.418       1.0000          .0000       .10000E+07
    20 'Prefactor '    6.9634       1.0000          .0000       .10000E+07
    21 'norm      '    22.495       1.0000          .0000       .10000E+07
    22 'Normalizat'    .79401       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0071       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=   8075.960     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1849 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72164E-09    34.095        .28544E-06** at limit **
   2  Prefactor     .16653E-09    7.7700       -.13339E-07** at limit **
   3  Prefactor     2.2297        4.7442        .93631E-07    .16401E-02
   4  norm          7.8235        5.2897        .69894E-07   -.12370E-01
   5  Prefactor     1.3168        17.894       -.36423E-07    .21503E-02
   6  norm          .16653E-09    1.9261        .20617E-06** at limit **
   7  Prefactor     .27756E-09    3.7966        .10113E-06** at limit **
   8  norm          3.2897        3.2512        .64067E-07    .30650E-02
   9  norm          16.087        1.6525       -.43715E-08   -.36193E-02
  10  norm          68.383        12.058       -.93346E-08    .27420    
  11  norm          40.555        27.736        .47939E-07    .10174    
  12  norm           .0000        6.4441       -.88766E-07** at limit **
  13  Prefactor     5.4572        4.2937        .45802E-07   -.12814E-01
  14  Prefactor     9.9831        1.2518        .17953E-08    .56758E-02
  15  norm          106.22        3.1770        .35514E-08    .62069E-01
  16  Prefactor     6.6789        3.7822       -.37646E-07    .33671E-01
  17  norm          .55511E-10    2.8528       -.42379E-07** at limit **
  18  Prefactor     .11102E-09    4.3607        .24548E-07** at limit **
  19  Prefactor     14.334        5.9443       -.22954E-07    .34378E-01
  20  Prefactor     6.9572        4.0159       -.17279E-07    .13790E-03
  21  norm          22.387        13.175       -.42370E-07    .13372E-01
  22  Normalizat    .79664        .19522        .12897E-05    .16440E-03
  23  Prefactor     1.0051        .23339       -.50610E-06    .12323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.21645e-10
  Prefactor  = 1.66533e-10
  Prefactor  = 2.22974
  norm       = 7.82353
  Prefactor  = 1.31681
  norm       = 1.66533e-10
  Prefactor  = 2.77556e-10
  norm       = 3.28971
  norm       = 16.0874
  norm       = 68.3833
  norm       = 40.5548
  norm       = 0
  Prefactor  = 5.45724
  Prefactor  = 9.98309
  norm       = 106.223
  Prefactor  = 6.67891
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 14.3338
  Prefactor  = 6.95724
  norm       = 22.3869
  Normalizat = 0.796643
  Prefactor  = 1.00512
 **********
 **   18 **HESSE 
 **********

 FCN=   8075.960     FROM HESSE     STATUS=OK           424 CALLS     2273 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72164E-09    33.873        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16653E-09    7.8883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2297        4.7715        .68690E-03   -1.5678    
   4  norm          7.8235        5.9326        .36148E-03   -1.5652    
   5  Prefactor     1.3168        156.13        .66480E-03   -1.5685    
   6  norm          .16653E-09    1.9189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    3.8054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2897        3.2484        .55924E-03   -1.5672    
   9  norm          16.087        13.176        .24947E-03   -1.5628    
  10  norm          68.383        15.930        .12030E-03   -1.5543    
  11  norm          40.555        29.843        .16050E-03   -1.5581    
  12  norm           .0000        6.4740        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4572        4.9997        .42851E-03   -1.5661    
  14  Prefactor     9.9831        13.067        .31655E-03   -1.5645    
  15  norm          106.22        13.430        .97036E-04   -1.5502    
  16  Prefactor     6.6789        96.010        .38698E-03   -1.5656    
  17  norm          .55511E-10    2.8529        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    4.3631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.334        16.525        .26352E-03   -1.5632    
  20  Prefactor     6.9572        4.0194        .37994E-03   -1.5655    
  21  norm          22.387        15.352        .21090E-03   -1.5613    
  22  Normalizat    .79664        .16132        .64987E-01   -1.0019    
  23  Prefactor     1.0051        .19227        .71279E-01   -.92559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93302e-07
Minuit parameter uncertainties:
  1  0.000314167
  2  7.14421e-05
  3  4.77154
  4  5.93262
  5  28.6775
  6  3.8555e-05
  7  6.56643e-05
  8  3.24836
  9  13.1762
  10  15.9297
  11  29.8431
  12  4.60676e-06
  13  4.99974
  14  13.0668
  15  13.4298
  16  50.6466
  17  2.50115e-05
  18  4.902e-05
  19  16.525
  20  4.01935
  21  15.3525
  22  0.161417
  23  0.192397
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  9.983e+00  1.307e+01  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:  1.005e+00  1.924e-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.966e-01  1.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/558334/likelihoodResults_695260801_695520001_4FGL_J1320.7+3314_daily_bin1759.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) = 8075.85731381
delta logL = 0.102399508876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8075.78393728
delta logL = 0.175776032016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.966       1.0000          .0000       .10000E+07
     2 'Index     '    2.1240       1.0000          .0000       10.000    
     3 'Normalizat'    .80143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99889       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=   8075.784     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      274 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.954        20.315        .97155E-05    .78986E-03
   2  Index         2.1247        .59236        .96391E-02    .30525E-04
   3  Normalizat    .80114        .18779        .28673E-03    .11665E-03
   4  Prefactor     .99943        .22993        .31599E-03    .79870E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9545
  Index      = 2.12472
  Normalizat = 0.801141
  Prefactor  = 0.999427
 **********
 **   18 **HESSE 
 **********

 FCN=   8075.784     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .27E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.954        19.850        .38862E-06   -1.5626    
   2  Index         2.1247        .57903        .38556E-03   -.61267    
   3  Normalizat    .80114        .18798        .11469E-04   -1.0003    
   4  Prefactor     .99943        .23017        .12640E-04   -.92749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70989e-11
Minuit parameter uncertainties:
  1  19.85
  2  0.580977
  3  0.188135
  4  0.230395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/558334': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8075.78393325
delta logL = 0.175780071769

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.695e+01  1.985e+01  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  2.125e+00  5.810e-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:  9.994e-01  2.304e-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.011e-01  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.34
Ra Dec: 200.185 33.238
Photon Index (Free Index): 2.12 +/- 0.58
Photon Flux (Free Index): 2.34e-08 +/- 2.73e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/558334/cmap_HighResolution_695260801_695520001_4FGL_J1320.7+3314_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.98e-03', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='1.76e-01', photon_flux2='2.34e-08', job_status='DONE', time_completed='2023-01-16 01:25:53.248569', photon_index_error2='0.58', photon_index2='2.12', ts='0.96', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.63e-05', EG='0.80', time_epoch_completed='1673861153.25', return_code='0', job_id='558334', GAL2='1.00', EG2='0.80', return_code2='0', photon_flux_error2='2.73e-08', ts2='1.34', photon_index='2.51' WHERE bin_id='1759' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:25:53 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 558334: <4FGL_J1320.7+3314_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1759> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jan 16 01:10:20 2023
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:12:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:12:17 2023
Terminated at Mon Jan 16 01:25:54 2023
Results reported at Mon Jan 16 01:25:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1759 200.185 33.2378 695260801 695520001 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 :                                   702.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            934 sec.

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

