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


Performing analysis on: 4FGL_J1337.4+5502_daily_bin1751
RA = 204.367, Dec = 55.0418
tmin = 693187201, tmax = 693446401
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='79068', job_status='RUN', time_executed='2022-12-23 00:49:27.293094', time_epoch_executed='1671785367.29' WHERE source_name='4FGL J1337.4+5502' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79068

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79068/ft1_4FGL_J1337.4+5502_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79068/ft2_4FGL_J1337.4+5502_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79068/ft1_4FGL_J1337.4+5502_daily_bin1751.fits outfile=/scratch/kocevski/79068/ft1_filteredMKT_4FGL_J1337.4+5502_daily_bin1751.fits ra=204.367 dec=55.0418 rad=12.0 tmin=693187201.0 tmax=693446401.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 3.63
user 3.41
sys 0.21

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

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

Number of photons that the gtmktime cut: 540

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/79068/ft1_filtered_4FGL_J1337.4+5502_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/79068/ft2_4FGL_J1337.4+5502_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/79068/ltcube_693187201_693446401_4FGL_J1337.4+5502_daily_bin1751.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/79068/ft2_4FGL_J1337.4+5502_daily_bin1751.fits
.....................!
real 12.00
user 11.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79068/ft1_filtered_4FGL_J1337.4+5502_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/79068/ft2_4FGL_J1337.4+5502_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/79068/ltcube_693187201_693446401_4FGL_J1337.4+5502_daily_bin1751.fits outfile=/scratch/kocevski/79068/expmap_693187201_693446401_4FGL_J1337.4+5502_daily_bin1751.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/79068/ltcube_693187201_693446401_4FGL_J1337.4+5502_daily_bin1751.fits
.....................!
real 190.24
user 185.30
sys 4.63

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/79068/ft1_filtered_4FGL_J1337.4+5502_daily_bin1751.fits scfile=/scratch/kocevski/79068/ft2_4FGL_J1337.4+5502_daily_bin1751.fits outfile=/scratch/kocevski/79068/cmap_693187201_693446401_4FGL_J1337.4+5502_daily_bin1751.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/79068/ft1_filtered_4FGL_J1337.4+5502_daily_bin1751.fits scfile=/scratch/kocevski/79068/ft2_4FGL_J1337.4+5502_daily_bin1751.fits outfile=/scratch/kocevski/79068/cmap_HighResolution_693187201_693446401_4FGL_J1337.4+5502_daily_bin1751.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92497E-04   1.0000          .0000       .10000E+07
     2 'norm      '    2.8200       1.0000          .0000       .10000E+07
     3 'Prefactor '    .50500E-01   1.0000          .0000       .10000E+07
     4 'norm      '    .21094E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .37380E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .14564E-02   1.0000          .0000       .10000E+07
     7 'norm      '    4.8548       1.0000          .0000       .10000E+07
     8 'Prefactor '    13.650       1.0000          .0000       .10000E+07
     9 'Prefactor '    .28720       1.0000          .0000       .10000E+07
    10 'norm      '    .26557E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .35257E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .25439E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .12823E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .11213E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    .25971E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    84.687       1.0000          .0000       .10000E+07
    17 'Prefactor '    15.031       1.0000          .0000       .10000E+07
    18 'Prefactor '    .35197E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    7.8167       1.0000          .0000       .10000E+07
    20 'Prefactor '    .55760       1.0000          .0000       .10000E+07
    21 'Prefactor '    .24435E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .16984E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    .12152E-01   1.0000          .0000       .10000E+07
    24 'Prefactor '    11.177       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0370       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92130       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=   5884.149     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     2325 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    2.5549       -.35598E-06** at limit **
   2  norm          2.8206        1.6146        .26688E-07    .13551E-02
   3  Prefactor     .28137E-02    921.73       -.25426E-04** at limit **
   4  norm           .0000        .68539       -.15449E-06** at limit **
   5  Prefactor     .93925E-07    6.5573        .28832E-05** at limit **
   6  Prefactor      .0000        5.5515       -.13497E-06** at limit **
   7  norm          4.8558        3.6087        .17060E-06    .17581E-02
   8  Prefactor     13.836        4.5733       -.66013E-06    .26883E-01
   9  Prefactor     .37336E-05    24.273        .10904E-04** at limit **
  10  norm           .0000        .97191        .96311E-07** at limit **
  11  Prefactor     .39413E-08    5.0195        .11505E-05** at limit **
  12  Prefactor     .94369E-09    2.0454       -.66190E-06** at limit **
  13  norm           .0000        .41877        .16299E-06** at limit **
  14  norm           .0000        .80581       -.11337E-06** at limit **
  15  Prefactor     .54984E-06    11.057       -.61754E-05** at limit **
  16  Prefactor     84.739        5.2113        .14727E-06    .63777E-02
  17  Prefactor     15.170        21.997       -.69370E-06    .11076    
  18  Prefactor     .19429E-08    8.7162       -.12897E-05** at limit **
  19  Prefactor     7.8076        2.8646        .86590E-06    .13343E-03
  20  Prefactor     .55731        1.4019        .13161E-07    .51542E-02
  21  Prefactor     .55511E-10    5.9041       -.40817E-06** at limit **
  22  Prefactor     .22204E-09    23.175        .56188E-06** at limit **
  23  Prefactor     .13362E-06    22.118        .29121E-05** at limit **
  24  Prefactor     11.185        1.6160       -.37740E-06   -.60595E-02
  25  Normalizat    1.0372        .18179        .77117E-05   -.18044E-03
  26  Prefactor     .92111        .22468       -.11553E-04   -.12482E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 2.82056
  Prefactor  = 0.00281371
  norm       = 0
  Prefactor  = 9.39249e-08
  Prefactor  = 0
  norm       = 4.85583
  Prefactor  = 13.8363
  Prefactor  = 3.73357e-06
  norm       = 0
  Prefactor  = 3.94129e-09
  Prefactor  = 9.4369e-10
  norm       = 0
  norm       = 0
  Prefactor  = 5.49838e-07
  Prefactor  = 84.739
  Prefactor  = 15.1695
  Prefactor  = 1.94289e-09
  Prefactor  = 7.80756
  Prefactor  = 0.55731
  Prefactor  = 5.55112e-11
  Prefactor  = 2.22045e-10
  Prefactor  = 1.33615e-07
  Prefactor  = 11.1847
  Normalizat = 1.03717
  Prefactor  = 0.921106
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.149     FROM HESSE     STATUS=OK           508 CALLS     2833 TOTAL
                     EDM=   .86E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    2.5551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8206        1.6113        .60541E-03   -1.5674    
   3  Prefactor     .28137E-02    16.479        .99489E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        .68398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .93925E-07    13.660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        5.5444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8558        3.6676        .45631E-03   -1.5664    
   8  Prefactor     13.836        26.387        .27085E-03   -1.5634    
   9  Prefactor     .37336E-05    16.203        .10393E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .97243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .39413E-08    13.761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94369E-09    2.0473        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        .41578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .80534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .54984E-06    14.244        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     84.739        56.728        .10867E-03   -1.5524    
  17  Prefactor     15.170        30.456        .25807E-03   -1.5630    
  18  Prefactor     .19429E-08    8.6205        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.8076        17.785        .35841E-03   -1.5652    
  20  Prefactor     .55731        1.4689        .73115E-03   -1.5693    
  21  Prefactor     .55511E-10    5.9075        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .22204E-09    23.135        .17244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .13362E-06    22.228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.185        17.195        .29941E-03   -1.5641    
  25  Normalizat    1.0372        .15708        .41529E-01   -.91795    
  26  Prefactor     .92111        .19155        .45276E-01   -.95407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56381e-07
Minuit parameter uncertainties:
  1  2.56985e-05
  2  1.6113
  3  0.43066
  4  2.9685e-06
  5  0.00226513
  6  9.14267e-06
  7  3.66764
  8  26.3874
  9  0.0155556
  10  5.97326e-06
  11  0.00046652
  12  8.72941e-05
  13  4.10392e-06
  14  2.02477e-06
  15  0.00559713
  16  56.7286
  17  30.4561
  18  0.000260199
  19  17.7856
  20  1.46888
  21  4.18312e-05
  22  0.000147412
  23  0.003447
  24  17.1952
  25  0.157147
  26  0.191686
Done.

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

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  3.941e-09  4.665e-04  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:  9.211e-01  1.917e-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.037e+00  1.571e-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: 4.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/79068/likelihoodResults_693187201_693446401_4FGL_J1337.4+5502_daily_bin1751.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) = 5884.14866366
delta logL = -4.93244278914e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5884.14861435
delta logL = -9.2868503998e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10547E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.8103       1.0000          .0000       10.000    
     3 'Normalizat'    1.0371       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92114       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5884.149     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      291 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.0821        .42118E-03** at limit **
   2  Index         4.8812        1.3337        .81136E-04     .0000    
   3  Normalizat    1.0372        1.2237       -.51231E-05    .22308E-04
   4  Prefactor     .92111        1.2650        .12860E-04    .24748E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.88117
  Normalizat = 1.03717
  Prefactor  = 0.921106
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5884.149     FROM HESSE     STATUS=FAILED         9 CALLS      300 TOTAL
                     EDM=   .23E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.0821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4561        2.4294        .81136E-04   -.23769E-01
   3  Normalizat    1.0372        1.2237       -.51231E-05   -.91795    
   4  Prefactor     .92111        1.2650        .12860E-04   -.95407    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.27434e-12
Minuit parameter uncertainties:
  1  1.813e-06
  2  1.35008
  3  1.25959
  4  1.30924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79068': 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): 101
logL (Free Index) = 5884.14861434
delta logL = 1.55523594003e-10

Extracting fit parameters...

4FGL J1337.4+5502
   Spectrum: PowerLaw
314    Prefactor:  0.000e+00  1.813e-06  0.000e+00  1.000e+06 ( 1.000e-13)
315        Index:  4.881e+00  1.350e+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:  9.211e-01  1.309e+00  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.037e+00  1.260e+00  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/79068/cmap_HighResolution_693187201_693446401_4FGL_J1337.4+5502_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-03', job_status='DONE', photon_flux_upper_limit='4.49e-08', time_completed='2022-12-23 01:00:44.741706', job_id='79068', GAL2='0.92', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1671786044.74', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.56e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.76' WHERE bin_id='1751' AND source_name='4FGL J1337.4+5502' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:00:44 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 79068: <4FGL_J1337.4+5502_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1337.4+5502_daily_bin1751> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 23 00:45:24 2022
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:45:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:45:24 2022
Terminated at Fri Dec 23 01:00:45 2022
Results reported at Fri Dec 23 01:00:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1337.4+5502_daily_bin1751 204.367 55.0418 693187201 693446401 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 :                                   680.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            921 sec.

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

