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


Performing analysis on: 4FGL_J1320.7+3314_weekly_bin760
RA = 200.185, Dec = 33.2378
tmin = 698630401, tmax = 699235201
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='23625', job_status='RUN', time_executed='2023-02-28 01:16:43.756588', time_epoch_executed='1677575803.76' WHERE source_name='4FGL J1320.7+3314' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/23625

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/23625/ft1_4FGL_J1320.7+3314_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/23625/ft2_4FGL_J1320.7+3314_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/23625/ft1_4FGL_J1320.7+3314_weekly_bin760.fits outfile=/scratch/kocevski/23625/ft1_filteredMKT_4FGL_J1320.7+3314_weekly_bin760.fits ra=200.185 dec=33.2378 rad=12.0 tmin=698630401.0 tmax=699235201.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 6.28
user 5.97
sys 0.28

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

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

Number of photons that the gtmktime cut: 786

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/23625/ft1_filtered_4FGL_J1320.7+3314_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/23625/ft2_4FGL_J1320.7+3314_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/23625/ltcube_698630401_699235201_4FGL_J1320.7+3314_weekly_bin760.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/23625/ft2_4FGL_J1320.7+3314_weekly_bin760.fits
.....................!
real 33.95
user 33.54
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/23625/ft1_filtered_4FGL_J1320.7+3314_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/23625/ft2_4FGL_J1320.7+3314_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/23625/ltcube_698630401_699235201_4FGL_J1320.7+3314_weekly_bin760.fits outfile=/scratch/kocevski/23625/expmap_698630401_699235201_4FGL_J1320.7+3314_weekly_bin760.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/23625/ltcube_698630401_699235201_4FGL_J1320.7+3314_weekly_bin760.fits
.....................!
real 190.99
user 185.95
sys 4.52

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/23625/ft1_filtered_4FGL_J1320.7+3314_weekly_bin760.fits scfile=/scratch/kocevski/23625/ft2_4FGL_J1320.7+3314_weekly_bin760.fits outfile=/scratch/kocevski/23625/cmap_698630401_699235201_4FGL_J1320.7+3314_weekly_bin760.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.60
user 0.42
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/23625/ft1_filtered_4FGL_J1320.7+3314_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/23625/ft2_4FGL_J1320.7+3314_weekly_bin760.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/23625/Model_4FGL_J1320.7+3314_weekly_bin760.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/23625/ft1_filtered_4FGL_J1320.7+3314_weekly_bin760.fits.....................!
real 65.13
user 63.82
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.909       1.0000          .0000       .10000E+07
     2 'Prefactor '    19.424       1.0000          .0000       .10000E+07
     3 'Prefactor '    .64169E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .16209E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14879E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .26396E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.1630       1.0000          .0000       .10000E+07
     8 'norm      '    .14567E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .19567E-02   1.0000          .0000       .10000E+07
    10 'norm      '    47.600       1.0000          .0000       .10000E+07
    11 'norm      '    .24609E-03   1.0000          .0000       .10000E+07
    12 'norm      '    2.7955       1.0000          .0000       .10000E+07
    13 'Prefactor '    .14529E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    1.5098       1.0000          .0000       .10000E+07
    15 'norm      '    20.966       1.0000          .0000       .10000E+07
    16 'Prefactor '    .64884E-03   1.0000          .0000       .10000E+07
    17 'norm      '    1.4150       1.0000          .0000       .10000E+07
    18 'Prefactor '    .62972E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .31670       1.0000          .0000       .10000E+07
    20 'Prefactor '    1.1368       1.0000          .0000       .10000E+07
    21 'norm      '    4.0081       1.0000          .0000       .10000E+07
    22 'Normalizat'    .91335       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0971       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=   8870.211     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     1871 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.841        1.2736       -.15559E-07   -.58001E-02
   2  Prefactor     19.203        3.3094        .58931E-06   -.68636E-01
   3  Prefactor      .0000        2.5003       -.39126E-07** at limit **
   4  norm          .11102E-09    1.7172       -.37973E-06** at limit **
   5  Prefactor      .0000        11.056        .14895E-05** at limit **
   6  norm          .16653E-09    3.2152        .15623E-05** at limit **
   7  Prefactor     6.1268        12.390        .43580E-05    .92948E-02
   8  norm          .49960E-09    3.1637       -.62921E-06** at limit **
   9  norm          .10270E-07    14.930       -.21632E-05** at limit **
  10  norm          47.601        6.6473       -.42475E-06   -.61192E-02
  11  norm          .55511E-10    6.0596        .38216E-07** at limit **
  12  norm          2.7825        1.3419        .54380E-08   -.22278E-02
  13  Prefactor      .0000        2.2839        .42740E-06** at limit **
  14  Prefactor     1.5382        14.317        .35502E-05    .15574E-02
  15  norm          20.915        4.7388       -.18080E-06    .18554E-01
  16  Prefactor     .77355E-06    122.53        .61767E-06** at limit **
  17  norm          1.3603        6.1101        .10409E-05   -.35464E-02
  18  Prefactor     .14155E-07    22.171       -.13942E-05** at limit **
  19  Prefactor     .11108E-02    14.600       -.10115E-05** at limit **
  20  Prefactor     1.1325        3.1997        .80749E-06   -.48098E-03
  21  norm          4.0213        7.3870        .27963E-06   -.20735E-03
  22  Normalizat    .91353        .17200        .14365E-04    .19001E-03
  23  Prefactor     1.0977        .20331       -.62015E-05    .11300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.8409
  Prefactor  = 19.2027
  Prefactor  = 0
  norm       = 1.11022e-10
  Prefactor  = 0
  norm       = 1.66533e-10
  Prefactor  = 6.12681
  norm       = 4.996e-10
  norm       = 1.02696e-08
  norm       = 47.6014
  norm       = 5.55112e-11
  norm       = 2.78252
  Prefactor  = 0
  Prefactor  = 1.53817
  norm       = 20.9147
  Prefactor  = 7.73548e-07
  norm       = 1.3603
  Prefactor  = 1.41553e-08
  Prefactor  = 0.0011108
  Prefactor  = 1.13249
  norm       = 4.02131
  Normalizat = 0.913534
  Prefactor  = 1.09774
 **********
 **   18 **HESSE 
 **********

 FCN=   8870.211     FROM HESSE     STATUS=OK           418 CALLS     2289 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.841        21.078        .18288E-03   -1.5599    
   2  Prefactor     19.203        24.950        .22697E-03   -1.5620    
   3  Prefactor      .0000        2.5014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .11102E-09    1.7115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        11.090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .16653E-09    3.2009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1268        12.655        .40416E-03   -1.5658    
   8  norm          .49960E-09    3.1539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10270E-07    14.912        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          47.601        6.7552        .14495E-03   -1.5570    
  11  norm          .55511E-10    6.0785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.7825        17.433        .60824E-03   -1.5675    
  13  Prefactor      .0000        2.2820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5382        17.187        .87022E-03   -1.5683    
  15  norm          20.915        9.2252        .21846E-03   -1.5616    
  16  Prefactor     .77355E-06    123.73        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3603        12.728        .90983E-03   -1.5685    
  18  Prefactor     .14155E-07    22.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11108E-02    11.741        .99852E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1325        3.2241        .10919E-02   -1.5687    
  21  norm          4.0213        7.4120        .50349E-03   -1.5668    
  22  Normalizat    .91353        .14485        .45072E-01   -.95986    
  23  Prefactor     1.0977        .17099        .63162E-01   -.89539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56392e-06
Minuit parameter uncertainties:
  1  21.0776
  2  24.9499
  3  5.46366e-06
  4  2.8365e-05
  5  2.17111e-05
  6  4.229e-05
  7  12.6549
  8  7.85352e-05
  9  0.000783469
  10  6.75521
  11  3.64747e-05
  12  13.9297
  13  5.71173e-06
  14  10.2834
  15  9.22525
  16  0.0195665
  17  8.32214
  18  0.00112134
  19  0.228401
  20  3.22407
  21  7.41206
  22  0.144915
  23  0.171072
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.538e+00  1.028e+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.098e+00  1.711e-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:  9.135e-01  1.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/23625/likelihoodResults_698630401_699235201_4FGL_J1320.7+3314_weekly_bin760.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) = 8870.02760072
delta logL = 0.183661806235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8870.0224252
delta logL = 0.188837332862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4548       1.0000          .0000       .10000E+07
     2 'Index     '    1.7569       1.0000          .0000       10.000    
     3 'Normalizat'    .91807       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0899       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=   8870.022     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      320 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4541        11.946        .15792E-04    .14398E-04
   2  Index         1.7569        .86909        .16906E-01   -.69441E-05
   3  Normalizat    .91811        .16637        .24969E-03   -.22675E-04
   4  Prefactor     1.0898        .20251        .28010E-03   -.29061E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.45406
  Index      = 1.75692
  Normalizat = 0.918107
  Prefactor  = 1.08982
 **********
 **   18 **HESSE 
 **********

 FCN=   8870.022     FROM HESSE     STATUS=OK            25 CALLS      345 TOTAL
                     EDM=   .94E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4541        12.060        .63168E-06   -1.5657    
   2  Index         1.7569        .87792        .67622E-03   -.70577    
   3  Normalizat    .91811        .16654        .99874E-05   -.95827    
   4  Prefactor     1.0898        .20272        .11204E-04   -.89793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.36677e-13
Minuit parameter uncertainties:
  1  12.0604
  2  0.8859
  3  0.166635
  4  0.202864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/23625': 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) = 8870.02242517
delta logL = 0.188837354754

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  6.454e+00  1.206e+01  0.000e+00  1.000e+06 ( 1.000e-13)
326        Index:  1.757e+00  8.859e-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:  1.090e+00  2.029e-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:  9.181e-01  1.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 200.185 33.238

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/23625/cmap_HighResolution_698630401_699235201_4FGL_J1320.7+3314_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.67e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2023-02-28 01:29:16.535692', job_id='23625', GAL2='1.09', fit_tolerance='1e-08', EG2='0.92', EG='0.91', time_epoch_completed='1677576556.54', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.89e-01', ts2='0.41', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='760' AND source_name='4FGL J1320.7+3314' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 01:29:16 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 23625: <4FGL_J1320.7+3314_weekly_bin760> in cluster <slac> Done

Job <4FGL_J1320.7+3314_weekly_bin760> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Feb 28 01:15:28 2023
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 01:15:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 01:15:29 2023
Terminated at Tue Feb 28 01:29:16 2023
Results reported at Tue Feb 28 01:29:16 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_weekly_bin760 200.185 33.2378 698630401 699235201 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 :                                   754.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             313.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            828 sec.

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

