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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin1712
RA = 204.367, Dec = 55.0418
tmin = 683078401, tmax = 683337601
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='135178', job_status='RUN', time_executed='2022-09-16 17:43:41.476974', time_epoch_executed='1663375421.48' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135178

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135178/ft1_4FGL_J1337.4+5502_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135178/ft2_4FGL_J1337.4+5502_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135178/ft1_4FGL_J1337.4+5502_daily_bin1712.fits outfile=/scratch/kocevski/135178/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1712.fits ra=204.367 dec=55.0418 rad=12.0 tmin=683078401.0 tmax=683337601.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.80
user 4.55
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/135178/ft2_4FGL_J1337.4+5502_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135178/ft2_4FGL_J1337.4+5502_daily_bin1712.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/135178/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/135178/ft1_filtered_4FGL_J1337.4+5502_daily_bin1712.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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 579

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135178/ft1_filtered_4FGL_J1337.4+5502_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/135178/ft2_4FGL_J1337.4+5502_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/135178/ltcube_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.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/135178/ft2_4FGL_J1337.4+5502_daily_bin1712.fits
.....................!
real 13.68
user 13.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135178/ft1_filtered_4FGL_J1337.4+5502_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/135178/ft2_4FGL_J1337.4+5502_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/135178/ltcube_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.fits outfile=/scratch/kocevski/135178/expmap_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.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/135178/ltcube_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.fits
.....................!
real 191.71
user 184.98
sys 6.21

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 208 point sources and 0 extended sources

Setting source of interest to:
4FGL J1337.4+5502 @ 204.367 55.0418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/135178/ft1_filtered_4FGL_J1337.4+5502_daily_bin1712.fits scfile=/scratch/kocevski/135178/ft2_4FGL_J1337.4+5502_daily_bin1712.fits outfile=/scratch/kocevski/135178/cmap_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.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=204.367 yref=55.0418 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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135178/ft1_filtered_4FGL_J1337.4+5502_daily_bin1712.fits scfile=/scratch/kocevski/135178/ft2_4FGL_J1337.4+5502_daily_bin1712.fits outfile=/scratch/kocevski/135178/cmap_HighResolution_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.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=204.367 yref=55.0418 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/135178/ft1_filtered_4FGL_J1337.4+5502_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/135178/ft2_4FGL_J1337.4+5502_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/135178/Model_4FGL_J1337.4+5502_daily_bin1712.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/135178/ft1_filtered_4FGL_J1337.4+5502_daily_bin1712.fits.....................!
real 52.88
user 51.53
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/135178/ft1_filtered_4FGL_J1337.4+5502_daily_bin1712.fits', '/scratch/kocevski/135178/ft2_4FGL_J1337.4+5502_daily_bin1712.fits', expMap='/scratch/kocevski/135178/expmap_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.fits', expCube='/scratch/kocevski/135178/ltcube_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/135178/Model_4FGL_J1337.4+5502_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1337.4+5502'

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  7.731e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/135178/ft1_filtered_4FGL_J1337.4+5502_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/135178/ft2_4FGL_J1337.4+5502_daily_bin1712.fits
Exposure map: /scratch/kocevski/135178/expmap_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.fits
Exposure cube: /scratch/kocevski/135178/ltcube_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/135178/Model_4FGL_J1337.4+5502_daily_bin1712.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) = 6273.44120887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27506E-06   1.0000          .0000       .10000E+07
     2 'norm      '    2.2474       1.0000          .0000       .10000E+07
     3 'Prefactor '    31.577       1.0000          .0000       .10000E+07
     4 'norm      '    1.0130       1.0000          .0000       .10000E+07
     5 'Prefactor '    .22027E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12987E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .70190E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .11082E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .63035E-03   1.0000          .0000       .10000E+07
    10 'norm      '    3.1851       1.0000          .0000       .10000E+07
    11 'Prefactor '    .14452E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    3.0447       1.0000          .0000       .10000E+07
    13 'norm      '    .89386       1.0000          .0000       .10000E+07
    14 'norm      '    .95093E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    18.335       1.0000          .0000       .10000E+07
    16 'Prefactor '    .79696E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    66.553       1.0000          .0000       .10000E+07
    18 'Prefactor '    .51217E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .25360E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    3.8078       1.0000          .0000       .10000E+07
    21 'Prefactor '    .12311E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .18416E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .97288E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .46454E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    .98942       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6273.419     FROM MIGRAD    STATUS=CONVERGED    176 CALLS     2258 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.4819       -.18970E-07** at limit **
   2  norm          2.2490        1.5184        .23018E-07    .55631E-03
   3  Prefactor     31.731        1.1949        .88055E-08    .80309E-03
   4  norm          1.0136        1.1425        .27036E-07    .64312E-03
   5  Prefactor     .51509E-06    7.1172        .30667E-06** at limit **
   6  Prefactor     .75362E-06    5.0871        .26618E-06** at limit **
   7  norm           .0000        4.9718       -.18212E-06** at limit **
   8  Prefactor     .83655E-07    4.3591       -.11502E-07** at limit **
   9  Prefactor     .16653E-09    4.2015       -.16429E-06** at limit **
  10  norm          3.1868        2.6850        .16035E-07    .20318E-03
  11  Prefactor     .13788E-05    69.461        .30648E-06** at limit **
  12  Prefactor     3.0474        3.8873        .21634E-07    .14399E-03
  13  norm          .89485        .99726        .21877E-08   -.39743E-03
  14  norm          .47518E-01    25.854        .10267E-05** at limit **
  15  Prefactor     18.642        2.3980        .32781E-07   -.16068E-01
  16  Prefactor     .27756E-09    16.631       -.17913E-06** at limit **
  17  Prefactor     67.526        9.9885        .94796E-08    .12374    
  18  Prefactor     .48295E-07    5.0536        .41008E-07** at limit **
  19  Prefactor      .0000        6.3747       -.72883E-07** at limit **
  20  Prefactor     3.8019        2.2244        .11792E-07    .88049E-03
  21  Prefactor     .92704E-08    3.6621       -.49155E-07** at limit **
  22  Prefactor      .0000        22.167        .61810E-07** at limit **
  23  Prefactor     .25702E-07    3.5728       -.36398E-07** at limit **
  24  Prefactor     .23315E-08    3.3601       -.15260E-06** at limit **
  25  Normalizat    .98837        .17305       -.21023E-05   -.10026E-04
  26  Prefactor     .85582        .20837        .12154E-06   -.40179E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 2.24901
  Prefactor  = 31.7308
  norm       = 1.0136
  Prefactor  = 5.15088e-07
  Prefactor  = 7.53619e-07
  norm       = 0
  Prefactor  = 8.36553e-08
  Prefactor  = 1.66533e-10
  norm       = 3.18678
  Prefactor  = 1.37884e-06
  Prefactor  = 3.04742
  norm       = 0.894851
  norm       = 0.0475176
  Prefactor  = 18.6416
  Prefactor  = 2.77556e-10
  Prefactor  = 67.5264
  Prefactor  = 4.82947e-08
  Prefactor  = 0
  Prefactor  = 3.80192
  Prefactor  = 9.27036e-09
  Prefactor  = 0
  Prefactor  = 2.57017e-08
  Prefactor  = 2.33147e-09
  Normalizat = 0.988373
  Prefactor  = 0.855816
 **********
 **   18 **HESSE 
 **********

 FCN=   6273.419     FROM HESSE     STATUS=OK           504 CALLS     2762 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.4810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2490        1.5214        .68519E-03   -1.5678    
   3  Prefactor     31.731        22.821        .17798E-03   -1.5595    
   4  norm          1.0136        1.1459        .44224E-03   -1.5688    
   5  Prefactor     .51509E-06    11.173        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .75362E-06    11.633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        4.8921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .83655E-07    7.6672        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .16653E-09    8.7122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1868        2.6883        .56755E-03   -1.5672    
  11  Prefactor     .13788E-05    72.590        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0474        4.0093        .58121E-03   -1.5673    
  13  norm          .89485        1.0033        .46186E-03   -1.5689    
  14  norm          .47518E-01    1.9352        .42118E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.642        47.821        .23363E-03   -1.5622    
  16  Prefactor     .27756E-09    16.619        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     67.526        42.433        .12259E-03   -1.5544    
  18  Prefactor     .48295E-07    8.0432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        6.3897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.8019        2.2385        .51702E-03   -1.5669    
  21  Prefactor     .92704E-08    8.1268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        22.084        .17143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .25702E-07    8.0510        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .23315E-08    8.6805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .98837        .14887        .46034E-01   -.93421    
  26  Prefactor     .85582        .17677        .44438E-01   -.97703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80459e-07
Minuit parameter uncertainties:
  1  5.48408e-06
  2  1.52143
  3  22.8207
  4  1.14591
  5  0.00479785
  6  0.00592184
  7  3.23449e-07
  8  0.00160194
  9  7.99608e-05
  10  2.68831
  11  0.0200093
  12  4.00932
  13  1.00326
  14  0.606482
  15  47.8223
  16  0.000132972
  17  42.4331
  18  0.00124632
  19  1.72111e-05
  20  2.23852
  21  0.00054837
  22  1.90723e-05
  23  0.000910271
  24  0.00028372
  25  0.148936
  26  0.176886
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.379e-06  2.001e-02  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.758e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  8.558e-01  1.769e-01  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.884e-01  1.489e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 204.367 55.042
Photon Flux Upper Limit: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/135178/likelihoodResults_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.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) = 6273.42583041
delta logL = -0.00691272847689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6273.40927409
delta logL = 0.00964359445425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4982       1.0000          .0000       .10000E+07
     2 'Index     '    1.9675       1.0000          .0000       10.000    
     3 'Normalizat'    .98835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85403       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6640E+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=   6273.409     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      285 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4950        77.510        .17130E-04    .78510E-03
   2  Index         1.9672        2.0094        .18473E-01    .67489E-04
   3  Normalizat    .98836        .16963        .20674E-03   -.23907E-03
   4  Prefactor     .85402        .20825        .26933E-03   -.22110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.49503
  Index      = 1.96724
  Normalizat = 0.988363
  Prefactor  = 0.854017
 **********
 **   18 **HESSE 
 **********

 FCN=   6273.409     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4950        76.618        .68522E-06   -1.5661    
   2  Index         1.9672        2.0011        .73892E-03   -.65172    
   3  Normalizat    .98836        .16979        .41348E-04   -.93421    
   4  Prefactor     .85402        .20841        .10773E-04   -.97767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61854e-09
Minuit parameter uncertainties:
  1  41.0381
  2  2.09696
  3  0.169883
  4  0.208606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135178': 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) = 6273.40927408
delta logL = 0.00964360985836

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  5.495e+00  4.104e+01  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  1.967e+00  2.097e+00  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  5.686e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
661    Prefactor:  8.540e-01  2.086e-01  0.000e+00  1.000e+01 ( 1.000e+00)
662        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
663        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
660   Normalization:  9.884e-01  1.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.367 55.042

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/135178/cmap_HighResolution_683078401_683337601_4FGL_J1337.4+5502_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2022-09-16 17:55:43.190112', job_id='135178', GAL2='0.85', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1663376143.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='9.64e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1712' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:55:43 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 135178: <4FGL_J1337.4+5502_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin1712> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:40:23 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:42:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:42:38 2022
Terminated at Fri Sep 16 17:55:44 2022
Results reported at Fri Sep 16 17:55:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin1712 204.367 55.0418 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1337.4+5502 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   723.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   785 sec.
    Turnaround time :                            921 sec.

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

