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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin1774
RA = 204.367, Dec = 55.0418
tmin = 699148801, tmax = 699408001
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='683912', job_status='RUN', time_executed='2023-03-02 00:54:19.226332', time_epoch_executed='1677747259.23' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='1774'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/683912

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/683912/ft1_4FGL_J1337.4+5502_daily_bin1774.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/683912/ft2_4FGL_J1337.4+5502_daily_bin1774.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/683912/ft1_4FGL_J1337.4+5502_daily_bin1774.fits outfile=/scratch/kocevski/683912/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1774.fits ra=204.367 dec=55.0418 rad=12.0 tmin=699148801.0 tmax=699408001.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.85
user 2.62
sys 0.19

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

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

Number of photons that the gtmktime cut: 500

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/683912/ft1_filtered_4FGL_J1337.4+5502_daily_bin1774.fits" evtable="EVENTS" scfile=/scratch/kocevski/683912/ft2_4FGL_J1337.4+5502_daily_bin1774.fits sctable="SC_DATA" outfile=/scratch/kocevski/683912/ltcube_699148801_699408001_4FGL_J1337.4+5502_daily_bin1774.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/683912/ft2_4FGL_J1337.4+5502_daily_bin1774.fits
.....................!
real 12.47
user 12.13
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/683912/ft1_filtered_4FGL_J1337.4+5502_daily_bin1774.fits evtable="EVENTS" scfile=/scratch/kocevski/683912/ft2_4FGL_J1337.4+5502_daily_bin1774.fits sctable="SC_DATA" expcube=/scratch/kocevski/683912/ltcube_699148801_699408001_4FGL_J1337.4+5502_daily_bin1774.fits outfile=/scratch/kocevski/683912/expmap_699148801_699408001_4FGL_J1337.4+5502_daily_bin1774.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/683912/ltcube_699148801_699408001_4FGL_J1337.4+5502_daily_bin1774.fits
.....................!
real 190.71
user 185.98
sys 4.42

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/683912/ft1_filtered_4FGL_J1337.4+5502_daily_bin1774.fits scfile=/scratch/kocevski/683912/ft2_4FGL_J1337.4+5502_daily_bin1774.fits outfile=/scratch/kocevski/683912/cmap_699148801_699408001_4FGL_J1337.4+5502_daily_bin1774.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/683912/ft1_filtered_4FGL_J1337.4+5502_daily_bin1774.fits scfile=/scratch/kocevski/683912/ft2_4FGL_J1337.4+5502_daily_bin1774.fits outfile=/scratch/kocevski/683912/cmap_HighResolution_699148801_699408001_4FGL_J1337.4+5502_daily_bin1774.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7049       1.0000          .0000       .10000E+07
     2 'norm      '    1.4210       1.0000          .0000       .10000E+07
     3 'Prefactor '    30.264       1.0000          .0000       .10000E+07
     4 'norm      '    1.6858       1.0000          .0000       .10000E+07
     5 'Prefactor '    26.324       1.0000          .0000       .10000E+07
     6 'Prefactor '    .87358E-03   1.0000          .0000       .10000E+07
     7 'norm      '    4.6247       1.0000          .0000       .10000E+07
     8 'Prefactor '    .28894E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.3910       1.0000          .0000       .10000E+07
    10 'norm      '    6.3294       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.636       1.0000          .0000       .10000E+07
    12 'Prefactor '    .83391E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .38041       1.0000          .0000       .10000E+07
    14 'norm      '    2.1909       1.0000          .0000       .10000E+07
    15 'Prefactor '    .71106E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .27732E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .71327E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .75495E-08   1.0000          .0000       .10000E+07
    19 'Prefactor '    .32975       1.0000          .0000       .10000E+07
    20 'Prefactor '    .98987       1.0000          .0000       .10000E+07
    21 'Prefactor '    10.539       1.0000          .0000       .10000E+07
    22 'Prefactor '    .72470       1.0000          .0000       .10000E+07
    23 'Prefactor '    .56564E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    25.343       1.0000          .0000       .10000E+07
    25 'Normalizat'    .98876       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0785       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=   5591.357     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2209 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7005        6.3894        .80087E-06   -.15743E-03
   2  norm          1.4248        1.8137        .21221E-06   -.94173E-02
   3  Prefactor     30.754        6.2596        .12523E-06   -.60483E-01
   4  norm          1.6852        2.0023        .12355E-07   -.21072E-02
   5  Prefactor     26.239        2.1119        .13547E-06   -.21756E-01
   6  Prefactor      .0000        4.1238        .20909E-06** at limit **
   7  norm          4.6381        5.0425        .42334E-06   -.25078E-02
   8  Prefactor     .93259E-08    48.971       -.30740E-05** at limit **
   9  Prefactor     5.4108        15.686        .24968E-05   -.17034E-02
  10  norm          6.2547        5.6386        .38257E-06   -.41514E-02
  11  Prefactor     13.132        27.881        .36782E-05   -.15771E-01
  12  Prefactor     .26090E-08    5.2222        .23824E-05** at limit **
  13  norm          .37847        .93957        .10281E-06   -.13454E-02
  14  norm          2.1860        2.4282       -.10309E-06   -.85715E-05
  15  Prefactor     .16653E-09    19.651       -.31438E-05** at limit **
  16  Prefactor     .20428E-07    1.4430        .29419E-06** at limit **
  17  Prefactor     .27756E-09    17.708        .14588E-05** at limit **
  18  Prefactor      .0000        1.5008       -.15684E-06** at limit **
  19  Prefactor     .19340E-06    49.791       -.12358E-04** at limit **
  20  Prefactor     .98920        1.3739       -.16493E-06    .47816E-02
  21  Prefactor     10.591        2.6152       -.48605E-06    .23450E-01
  22  Prefactor     .19817E-05    91.580       -.97454E-05** at limit **
  23  Prefactor     .29976E-08    9.0665        .90386E-06** at limit **
  24  Prefactor     25.672        2.9632        .19192E-06    .12935E-01
  25  Normalizat    .98642        .20331        .20938E-04   -.30793E-03
  26  Prefactor     1.0795        .24351       -.19818E-04   -.88374E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.7005
  norm       = 1.42481
  Prefactor  = 30.7535
  norm       = 1.68522
  Prefactor  = 26.2391
  Prefactor  = 0
  norm       = 4.63807
  Prefactor  = 9.32587e-09
  Prefactor  = 5.41082
  norm       = 6.2547
  Prefactor  = 13.132
  Prefactor  = 2.60902e-09
  norm       = 0.378469
  norm       = 2.186
  Prefactor  = 1.66533e-10
  Prefactor  = 2.04281e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 1.93401e-07
  Prefactor  = 0.989203
  Prefactor  = 10.5909
  Prefactor  = 1.98175e-06
  Prefactor  = 2.9976e-09
  Prefactor  = 25.6717
  Normalizat = 0.986424
  Prefactor  = 1.07946
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.357     FROM HESSE     STATUS=OK           520 CALLS     2729 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7005        6.3949        .46368E-03   -1.5665    
   2  norm          1.4248        1.8370        .90713E-03   -1.5684    
   3  Prefactor     30.754        32.596        .18180E-03   -1.5597    
   4  norm          1.6852        2.0180        .81072E-03   -1.5682    
   5  Prefactor     26.239        56.129        .19494E-03   -1.5606    
   6  Prefactor      .0000        4.1201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.6381        5.0963        .46778E-03   -1.5665    
   8  Prefactor     .93259E-08    58.658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.4108        83.670        .54919E-03   -1.5661    
  10  norm          6.2547        5.7026        .39874E-03   -1.5658    
  11  Prefactor     13.132        45.390        .29343E-03   -1.5635    
  12  Prefactor     .26090E-08    5.2002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .37847        1.0709        .26318E-02   -1.5696    
  14  norm          2.1860        2.4370        .69502E-03   -1.5678    
  15  Prefactor     .16653E-09    19.843        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .20428E-07    31.220        .16573E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .27756E-09    17.830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        1.5040        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .19340E-06    48.884        .98123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .98920        1.4161        .43407E-03   -1.5688    
  21  Prefactor     10.591        17.758        .30839E-03   -1.5643    
  22  Prefactor     .19817E-05    149.33        .58726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .29976E-08    9.0957        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.672        20.487        .19868E-03   -1.5607    
  25  Normalizat    .98642        .17479        .46026E-01   -.93487    
  26  Prefactor     1.0795        .20534        .61074E-01   -.90126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26376e-07
Minuit parameter uncertainties:
  1  6.39496
  2  1.83703
  3  32.596
  4  2.01802
  5  56.1297
  6  1.11898e-05
  7  5.09632
  8  0.00147871
  9  42.5552
  10  5.7026
  11  45.3912
  12  0.000233968
  13  1.07089
  14  2.43698
  15  0.000114661
  16  0.00159796
  17  0.000145518
  18  4.47062e-06
  19  0.00614958
  20  1.41612
  21  17.7578
  22  0.0344061
  23  0.000329859
  24  20.4867
  25  0.174895
  26  0.205488
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.313e+01  4.539e+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:  1.079e+00  2.055e-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.864e-01  1.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/683912/likelihoodResults_699148801_699408001_4FGL_J1337.4+5502_daily_bin1774.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) = 5591.34087676
delta logL = 0.0163148308357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5591.33712595
delta logL = 0.0200656426723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.461       1.0000          .0000       .10000E+07
     2 'Index     '    2.3966       1.0000          .0000       10.000    
     3 'Normalizat'    .98913       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0763       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=   5591.337     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      283 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.455        51.921        .95765E-05    .16155E-02
   2  Index         2.3971        1.5819        .12436E-01    .11607E-03
   3  Normalizat    .98882        .20096        .23192E-03   -.50112E-03
   4  Prefactor     1.0767        .24343        .27039E-03   -.42110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4547
  Index      = 2.39705
  Normalizat = 0.988818
  Prefactor  = 1.07667
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.337     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.455        51.584        .19153E-05   -1.5624    
   2  Index         2.3971        1.5723        .49744E-03   -.54754    
   3  Normalizat    .98882        .20114        .46383E-04   -.93406    
   4  Prefactor     1.0767        .24362        .54079E-04   -.90216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6046e-09
Minuit parameter uncertainties:
  1  51.5849
  2  1.61017
  3  0.201297
  4  0.243872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/683912': 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) = 5591.33712468
delta logL = 0.0200669169017

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  1.745e+01  5.158e+01  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  2.397e+00  1.610e+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:  1.077e+00  2.439e-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.888e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/683912/cmap_HighResolution_699148801_699408001_4FGL_J1337.4+5502_daily_bin1774.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', job_status='DONE', photon_flux_upper_limit='9.13e-08', time_completed='2023-03-02 01:05:03.378738', job_id='683912', GAL2='1.08', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1677747903.38', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.01e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1774' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar  2 01:05:03 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 683912: <4FGL_J1337.4+5502_daily_bin1774> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin1774> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Mar  2 00:50:12 2023
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar  2 00:50:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar  2 00:50:13 2023
Terminated at Thu Mar  2 01:05:04 2023
Results reported at Thu Mar  2 01:05:04 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin1774 204.367 55.0418 699148801 699408001 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 :                                   646.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

