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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin1708
RA = 204.367, Dec = 55.0418
tmin = 682041601, tmax = 682300801
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='135171', job_status='RUN', time_executed='2022-09-16 17:42:55.101722', time_epoch_executed='1663375375.1' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/135171

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/135171/ft1_4FGL_J1337.4+5502_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/135171/ft2_4FGL_J1337.4+5502_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/135171/ft1_4FGL_J1337.4+5502_daily_bin1708.fits outfile=/scratch/kocevski/135171/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1708.fits ra=204.367 dec=55.0418 rad=12.0 tmin=682041601.0 tmax=682300801.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.05
user 3.81
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/135171/ft2_4FGL_J1337.4+5502_daily_bin1708.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/135171/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/135171/ft1_filtered_4FGL_J1337.4+5502_daily_bin1708.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.36
sys 0.16

Number of photons that the gtmktime cut: 559

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/135171/ft1_filtered_4FGL_J1337.4+5502_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/135171/ft2_4FGL_J1337.4+5502_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/135171/ltcube_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.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/135171/ft2_4FGL_J1337.4+5502_daily_bin1708.fits
.....................!
real 15.33
user 14.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/135171/ft1_filtered_4FGL_J1337.4+5502_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/135171/ft2_4FGL_J1337.4+5502_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/135171/ltcube_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.fits outfile=/scratch/kocevski/135171/expmap_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.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/135171/ltcube_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.fits
.....................!
real 192.74
user 186.58
sys 5.66

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/135171/ft1_filtered_4FGL_J1337.4+5502_daily_bin1708.fits scfile=/scratch/kocevski/135171/ft2_4FGL_J1337.4+5502_daily_bin1708.fits outfile=/scratch/kocevski/135171/cmap_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/135171/ft1_filtered_4FGL_J1337.4+5502_daily_bin1708.fits scfile=/scratch/kocevski/135171/ft2_4FGL_J1337.4+5502_daily_bin1708.fits outfile=/scratch/kocevski/135171/cmap_HighResolution_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.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.59
user 0.40
sys 0.19

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/135171/ft1_filtered_4FGL_J1337.4+5502_daily_bin1708.fits', '/scratch/kocevski/135171/ft2_4FGL_J1337.4+5502_daily_bin1708.fits', expMap='/scratch/kocevski/135171/expmap_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.fits', expCube='/scratch/kocevski/135171/ltcube_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/135171/Model_4FGL_J1337.4+5502_daily_bin1708.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/135171/ft1_filtered_4FGL_J1337.4+5502_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/135171/ft2_4FGL_J1337.4+5502_daily_bin1708.fits
Exposure map: /scratch/kocevski/135171/expmap_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.fits
Exposure cube: /scratch/kocevski/135171/ltcube_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/135171/Model_4FGL_J1337.4+5502_daily_bin1708.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) = 6128.26792419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87162       1.0000          .0000       .10000E+07
     2 'norm      '    3.2312       1.0000          .0000       .10000E+07
     3 'Prefactor '    .76515E-04   1.0000          .0000       .10000E+07
     4 'norm      '    2.6131       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15438E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .18273E-02   1.0000          .0000       .10000E+07
     7 'norm      '    6.6709       1.0000          .0000       .10000E+07
     8 'Prefactor '    45.703       1.0000          .0000       .10000E+07
     9 'Prefactor '    .17838E-01   1.0000          .0000       .10000E+07
    10 'norm      '    .13656E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    6.2160       1.0000          .0000       .10000E+07
    12 'Prefactor '    .50032E-06   1.0000          .0000       .10000E+07
    13 'norm      '    .12736E-05   1.0000          .0000       .10000E+07
    14 'norm      '    6.9221       1.0000          .0000       .10000E+07
    15 'Prefactor '    20.518       1.0000          .0000       .10000E+07
    16 'Prefactor '    29.461       1.0000          .0000       .10000E+07
    17 'Prefactor '    .17822E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    2.2065       1.0000          .0000       .10000E+07
    19 'Prefactor '    11.022       1.0000          .0000       .10000E+07
    20 'Prefactor '    3.2965       1.0000          .0000       .10000E+07
    21 'Prefactor '    .35507E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    40.793       1.0000          .0000       .10000E+07
    23 'Prefactor '    .53457E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .15928E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0873       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80664       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=   6128.249     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2317 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87204        4.2294       -.74306E-10   -.65665E-03
   2  norm          3.2318        1.9269       -.20003E-09    .10724E-01
   3  Prefactor     .27756E-09    4.3796        .28315E-09** at limit **
   4  norm          2.6108        1.7482        .13989E-09   -.52671E-02
   5  Prefactor     .87319E-07    11.389        .38275E-08** at limit **
   6  Prefactor     .40290E-06    7.2676        .75403E-08** at limit **
   7  norm          6.6779        3.9391       -.66180E-10    .21140E-02
   8  Prefactor     45.526        4.4473       -.49989E-09    .34038E-01
   9  Prefactor     .31086E-08    28.030       -.21320E-08** at limit **
  10  norm          .58836E-06    7.5605       -.86295E-08** at limit **
  11  Prefactor     6.4470        2.3657       -.68352E-09    .11675E-02
  12  Prefactor     .16098E-08    3.8075        .71029E-09** at limit **
  13  norm          .48850E-08    8.3385        .16532E-08** at limit **
  14  norm          6.9153        4.5865       -.92866E-10    .61911E-02
  15  Prefactor     20.973        27.892        .40041E-08   -.13500    
  16  Prefactor     29.208        47.644       -.17670E-07    .14041    
  17  Prefactor     .38858E-07    13.628       -.16760E-08** at limit **
  18  Prefactor     2.2063        3.2225        .88950E-10    .28476E-03
  19  Prefactor     11.057        1.3122        .91871E-10   -.22103E-02
  20  Prefactor     3.3022        3.1269        .40230E-09    .46068E-02
  21  Prefactor     .18108E-05    70.302       -.12316E-08** at limit **
  22  Prefactor     40.947        11.916        .22482E-08    .44699E-02
  23  Prefactor     .24758E-07    9.8175       -.65920E-08** at limit **
  24  Prefactor     .24925E-07    8.6649        .36813E-08** at limit **
  25  Normalizat    1.0873        .17755        .15649E-08    .43442E-03
  26  Prefactor     .80640        .21089        .70260E-08    .16379E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.872036
  norm       = 3.23175
  Prefactor  = 2.77556e-10
  norm       = 2.6108
  Prefactor  = 8.7319e-08
  Prefactor  = 4.029e-07
  norm       = 6.67786
  Prefactor  = 45.5257
  Prefactor  = 3.10862e-09
  norm       = 5.88363e-07
  Prefactor  = 6.44705
  Prefactor  = 1.60982e-09
  norm       = 4.88498e-09
  norm       = 6.91535
  Prefactor  = 20.9728
  Prefactor  = 29.2083
  Prefactor  = 3.88578e-08
  Prefactor  = 2.20632
  Prefactor  = 11.0566
  Prefactor  = 3.30221
  Prefactor  = 1.81083e-06
  Prefactor  = 40.9474
  Prefactor  = 2.4758e-08
  Prefactor  = 2.49245e-08
  Normalizat = 1.08731
  Prefactor  = 0.806404
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.249     FROM HESSE     STATUS=OK           516 CALLS     2833 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87204        4.2986        .47742E-03   -1.5689    
   2  norm          3.2318        1.9378        .56327E-03   -1.5672    
   3  Prefactor     .27756E-09    4.3903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.6108        1.7512        .63074E-03   -1.5676    
   5  Prefactor     .87319E-07    12.104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .40290E-06    7.6594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.6779        3.9831        .38828E-03   -1.5656    
   8  Prefactor     45.526        34.529        .14793E-03   -1.5573    
   9  Prefactor     .31086E-08    27.980        .17183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .58836E-06    8.1682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.4470        57.039        .40241E-03   -1.5657    
  12  Prefactor     .16098E-08    3.7837        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .48850E-08    .97905        .26026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.9153        4.6332        .38109E-03   -1.5655    
  15  Prefactor     20.973        32.791        .22083E-03   -1.5616    
  16  Prefactor     29.208        67.309        .18427E-03   -1.5600    
  17  Prefactor     .38858E-07    13.817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.2063        3.2876        .69227E-03   -1.5678    
  19  Prefactor     11.057        22.893        .30153E-03   -1.5641    
  20  Prefactor     3.3022        3.2642        .55738E-03   -1.5672    
  21  Prefactor     .18108E-05    70.781        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     40.947        42.235        .15658E-03   -1.5580    
  23  Prefactor     .24758E-07    10.532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .24925E-07    8.7960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0873        .15627        .38543E-01   -.90160    
  26  Prefactor     .80640        .18133        .64648E-01   -.99493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33133e-06
Minuit parameter uncertainties:
  1  3.87224
  2  1.93778
  3  6.65229e-05
  4  1.75121
  5  0.00205603
  6  0.0035133
  7  3.98315
  8  34.5289
  9  0.000591554
  10  0.00438446
  11  38.3532
  12  0.000155063
  13  0.000138627
  14  4.63324
  15  32.7917
  16  67.3107
  17  0.00146537
  18  3.28757
  19  22.8936
  20  3.26417
  21  0.0226429
  22  42.2357
  23  0.00102089
  24  0.000936552
  25  0.156341
  26  0.181467
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  6.447e+00  3.835e+01  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.064e-01  1.815e-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:  1.087e+00  1.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/135171/likelihoodResults_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.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) = 6128.16481093
delta logL = 0.084512618535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6128.14294903
delta logL = 0.106374519017

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.564       1.0000          .0000       .10000E+07
     2 'Index     '    1.8206       1.0000          .0000       10.000    
     3 'Normalizat'    1.0919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80043       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.

 FCN=   6128.143     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      232 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 18.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.547        32.286       -.13001E-05   -.14117E-02
   2  Index         1.8200        1.3102       -.88862E-04    .27318E-04
   3  Normalizat    1.0919        .14971        .10303E-05    .63892E-03
   4  Prefactor     .80040        .18031       -.15464E-06    .40702E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.5467
  Index      = 1.81998
  Normalizat = 1.09193
  Prefactor  = 0.800401
 **********
 **   18 **HESSE 
 **********

 FCN=   6128.143     FROM HESSE     STATUS=OK            27 CALLS      259 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.547        31.541        .11294E-04   -1.5637    
   2  Index         1.8200        1.2758        .17077E-01   -.68931    
   3  Normalizat    1.0919        .17433        .20815E-03   -.90011    
   4  Prefactor     .80040        .20961        .28685E-03   -.99714    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7559e-10
Minuit parameter uncertainties:
  1  31.5411
  2  1.30029
  3  0.174422
  4  0.209818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/135171': 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) = 6128.14294882
delta logL = 0.106374728134

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.255e+01  3.154e+01  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  1.820e+00  1.300e+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.004e-01  2.098e-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:  1.092e+00  1.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/135171/cmap_HighResolution_682041601_682300801_4FGL_J1337.4+5502_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-03', job_status='DONE', photon_flux_upper_limit='8.06e-08', time_completed='2022-09-16 17:54:47.021715', job_id='135171', GAL2='0.80', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1663376087.02', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.06e-01', ts2='0.25', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1708' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:54:47 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 135171: <4FGL_J1337.4+5502_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin1708> 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) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:42:30 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:30 2022
Terminated at Fri Sep 16 17:54:47 2022
Results reported at Fri Sep 16 17:54:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin1708 204.367 55.0418 682041601 682300801 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 :                                   713.55 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            864 sec.

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

