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 238 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1338.0+6534_monthly_bin169
RA = 204.516, Dec = 65.5696
tmin = 675043201, tmax = 677635201
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='168708', job_status='RUN', time_executed='2022-06-23 02:31:31.423390', time_epoch_executed='1655976691.42' WHERE source_name='4FGL J1338.0+6534' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168708

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168708/ft1_4FGL_J1338.0+6534_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168708/ft2_4FGL_J1338.0+6534_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168708/ft1_4FGL_J1338.0+6534_monthly_bin169.fits outfile=/scratch/kocevski/168708/ft1_filteredMKT_4FGL_J1338.0+6534_monthly_bin169.fits ra=204.516 dec=65.5696 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.91
user 27.20
sys 0.62

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/168708/ft2_4FGL_J1338.0+6534_monthly_bin169.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/168708/ft2_4FGL_J1338.0+6534_monthly_bin169.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/168708/ft1_filteredMKT_4FGL_J1338.0+6534_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/168708/ft1_filtered_4FGL_J1338.0+6534_monthly_bin169.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.86
user 0.70
sys 0.15

Number of photons that the gtmktime cut: 8584

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168708/ft1_filtered_4FGL_J1338.0+6534_monthly_bin169.fits" evtable="EVENTS" scfile=/scratch/kocevski/168708/ft2_4FGL_J1338.0+6534_monthly_bin169.fits sctable="SC_DATA" outfile=/scratch/kocevski/168708/ltcube_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.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/168708/ft2_4FGL_J1338.0+6534_monthly_bin169.fits
.....................!
real 127.76
user 127.11
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168708/ft1_filtered_4FGL_J1338.0+6534_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/168708/ft2_4FGL_J1338.0+6534_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/168708/ltcube_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.fits outfile=/scratch/kocevski/168708/expmap_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.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/168708/ltcube_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.fits
.....................!
real 192.90
user 186.76
sys 5.72

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

Setting source of interest to:
4FGL J1338.0+6534 @ 204.516 65.5696

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/168708/ft1_filtered_4FGL_J1338.0+6534_monthly_bin169.fits scfile=/scratch/kocevski/168708/ft2_4FGL_J1338.0+6534_monthly_bin169.fits outfile=/scratch/kocevski/168708/cmap_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.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.516 yref=65.5696 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.80
user 0.60
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168708/ft1_filtered_4FGL_J1338.0+6534_monthly_bin169.fits scfile=/scratch/kocevski/168708/ft2_4FGL_J1338.0+6534_monthly_bin169.fits outfile=/scratch/kocevski/168708/cmap_HighResolution_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.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.516 yref=65.5696 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.81
user 0.63
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/168708/ft1_filtered_4FGL_J1338.0+6534_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/168708/ft2_4FGL_J1338.0+6534_monthly_bin169.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/168708/Model_4FGL_J1338.0+6534_monthly_bin169.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/168708/ft1_filtered_4FGL_J1338.0+6534_monthly_bin169.fits.....................!
real 676.66
user 674.04
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/168708/ft1_filtered_4FGL_J1338.0+6534_monthly_bin169.fits', '/scratch/kocevski/168708/ft2_4FGL_J1338.0+6534_monthly_bin169.fits', expMap='/scratch/kocevski/168708/expmap_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.fits', expCube='/scratch/kocevski/168708/ltcube_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/168708/Model_4FGL_J1338.0+6534_monthly_bin169.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0+6534'

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  1.099e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/168708/ft1_filtered_4FGL_J1338.0+6534_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/168708/ft2_4FGL_J1338.0+6534_monthly_bin169.fits
Exposure map: /scratch/kocevski/168708/expmap_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.fits
Exposure cube: /scratch/kocevski/168708/ltcube_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/168708/Model_4FGL_J1338.0+6534_monthly_bin169.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) = 93144.4602715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4854       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8247       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.865       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3403       1.0000         .10000E-03   10000.    
     5 'norm      '    .93941       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1545       1.0000         .10000E-03   10000.    
     7 'norm      '    4.6970       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1719       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4807       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.596       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.019       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .64938       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9898       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4097       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3383       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.300       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.4256       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .54247       1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.630       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.616       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.900       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .13928E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.0660       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .15945E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    13.006       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0465       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .93044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   93144.39     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     3668 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4798        2.2239         .0000        .30102E-01
   2  Prefactor     4.8450        4.3308         .0000        .45018E-02
   3  Prefactor     10.891        4.3206         .0000        .63979E-02
   4  Prefactor     7.3406        8.2244         .0000       -.13550E-02
   5  norm          .93950        .74423         .0000        .10080E-01
   6  Prefactor     1.1545        .91169         .0000        .46972E-02
   7  norm          4.6969        .63181         .0000       -.87117E-03
   8  Prefactor     3.1965        6.2591         .0000        .13821E-02
   9  Prefactor     1.4809        1.5610         .0000        .93793E-02
  10  Prefactor     .10000E-03    3.0257         .0000    ** at limit **
  11  Prefactor     11.587        5.5652         .0000        .77814E-02
  12  Prefactor     12.039        11.227         .0000        .13733E-02
  13  Prefactor     .64927        .79050         .0000        .16726E-01
  14  Prefactor     1.9912        2.6413         .0000        .84349E-01
  15  Prefactor     1.4029        8.9381         .0000        .18425E-01
  16  Prefactor     2.3386        1.6708         .0000        .14912    
  17  Prefactor     .10000E-03    .32680         .0000    ** at limit **
  18  norm          13.213        9.3015         .0000        .53905E-03
  19  Prefactor     .10000E-03    .99022         .0000    ** at limit **
  20  norm          1.4266        .87854         .0000        .11526E-01
  21  Prefactor     .54418        3.4208         .0000        .10193    
  22  Prefactor     40.686        39.469         .0000       -.68009E-03
  23  Prefactor     12.614        6.3573         .0000        .23932E-02
  24  Prefactor     .10003E-03    4.0961         .0000    ** at limit **
  25  Prefactor     12.897        5.6429         .0000        .14236E-02
  26  Prefactor     .10004E-03    .67149         .0000    ** at limit **
  27  Prefactor     1.0602        4.2213         .0000        .29947E-02
  28  Prefactor     .10000E-03    .59070         .0000    ** at limit **
  29  Prefactor     13.001        4.9675         .0000       -.60057E-03
  30  Normalizat    1.0465        .40953E-01     .0000       -.44167E-03
  31  Prefactor     .93047        .45005E-01     .0000       -.24540E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.47982
  Prefactor  = 4.84501
  Prefactor  = 10.8912
  Prefactor  = 7.34058
  norm       = 0.939504
  Prefactor  = 1.15452
  norm       = 4.69694
  Prefactor  = 3.19654
  Prefactor  = 1.48093
  Prefactor  = 0.0001
  Prefactor  = 11.5874
  Prefactor  = 12.0385
  Prefactor  = 0.649268
  Prefactor  = 1.99116
  Prefactor  = 1.40293
  Prefactor  = 2.33863
  Prefactor  = 0.0001
  norm       = 13.2133
  Prefactor  = 0.0001
  norm       = 1.42656
  Prefactor  = 0.544181
  Prefactor  = 40.6859
  Prefactor  = 12.614
  Prefactor  = 0.00010003
  Prefactor  = 12.8971
  Prefactor  = 0.000100044
  Prefactor  = 1.06019
  Prefactor  = 0.0001
  Prefactor  = 13.0007
  Normalizat = 1.0465
  Prefactor  = 0.930468
 **********
 **   18 **HESSE 
 **********

 FCN=   93144.39     FROM HESSE     STATUS=OK           640 CALLS     4308 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4798        2.2130        .85778E-03   -1.5240    
   2  Prefactor     4.8450        4.3047        .18315E-03   -1.5268    
   3  Prefactor     10.891        4.3189        .12155E-03   -1.5048    
   4  Prefactor     7.3406        8.2101        .14804E-03   -1.5166    
   5  norm          .93950        .66323        .22482E-02   -1.5514    
   6  Prefactor     1.1545        .90381        .24491E-03   -1.5493    
   7  norm          4.6969        .62746        .83561E-04   -1.5274    
   8  Prefactor     3.1965        6.2482        .22756E-03   -1.5350    
   9  Prefactor     1.4809        1.5418        .35272E-03   -1.5465    
  10  Prefactor     .10000E-03    3.0358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.587        5.5405        .11764E-03   -1.5027    
  12  Prefactor     12.039        11.191        .11555E-03   -1.5014    
  13  Prefactor     .64927        .73148        .25240E-03   -1.5547    
  14  Prefactor     1.9912        2.6166        .14686E-02   -1.5426    
  15  Prefactor     1.4029        8.9805        .18247E-02   -1.5471    
  16  Prefactor     2.3386        1.5826        .13407E-02   -1.5402    
  17  Prefactor     .10000E-03    .90781        .33374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.213        9.2987        .10983E-03   -1.4981    
  19  Prefactor     .10000E-03    1.0079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.4266        .86589        .21214E-03   -1.5469    
  21  Prefactor     .54418        3.3850        .22886E-02   -1.5560    
  22  Prefactor     40.686        39.469        .62886E-04   -1.4431    
  23  Prefactor     12.614        6.3526        .11278E-03   -1.4997    
  24  Prefactor     .10003E-03    4.1351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     12.897        5.6385        .11153E-03   -1.4990    
  26  Prefactor     .10004E-03    3.8975        .48512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.0602        4.2847        .47226E-03   -1.5502    
  28  Prefactor     .10000E-03    5.1819        .44401E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     13.001        4.8888        .11107E-03   -1.4987    
  30  Normalizat    1.0465        .47496E-01    .20986E-03   -.91489    
  31  Prefactor     .93047        .52813E-01    .25486E-03   -.95084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47691e-07
Minuit parameter uncertainties:
  1  2.21305
  2  4.30499
  3  4.31904
  4  8.21132
  5  0.663233
  6  0.903825
  7  0.627463
  8  6.24947
  9  1.54182
  10  8.99957e-06
  11  5.54074
  12  11.193
  13  0.731492
  14  2.61675
  15  7.10033
  16  1.58264
  17  4.36427e-06
  18  9.29967
  19  3.85451e-06
  20  0.865894
  21  2.71444
  22  39.4938
  23  6.35292
  24  0.000701826
  25  5.63872
  26  0.000831335
  27  4.26298
  28  2.51313e-05
  29  4.88896
  30  0.0474976
  31  0.0528155
Done.

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

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  6.493e-01  7.315e-01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.723e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  9.305e-01  5.282e-02  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.046e+00  4.750e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 204.516 65.570
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 5.38e-09 +/- 6.05e-09
Energy Flux (Fixed Index): 1.27e-06 +/- 1.43e-06

TS (Fixed Index): 1.23
Ra Dec: 204.516 65.570
Photon Flux Upper Limit: 1.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/168708/likelihoodResults_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.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) = 93144.226706
delta logL = 0.158629260593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 93144.2235991
delta logL = 0.161736210022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60480       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1376       1.0000          .0000       10.000    
     3 'Normalizat'    1.0505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92774       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   93144.22     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      261 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60441        .70410        .24229E-03   -.78079E-04
   2  Index         2.1375        .82747        .20584E-01   -.56997E-04
   3  Normalizat    1.0505        .45434E-01    .20950E-03    .17365E-05
   4  Prefactor     .92775        .52404E-01    .25519E-03    .14256E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.604409
  Index      = 2.13746
  Normalizat = 1.05045
  Prefactor  = 0.92775
 **********
 **   18 **HESSE 
 **********

 FCN=   93144.22     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60441        .73420        .96915E-05   -1.5552    
   2  Index         2.1375        .86380        .82337E-03   -.60956    
   3  Normalizat    1.0505        .45491E-01    .83801E-05   -.91359    
   4  Prefactor     .92775        .52458E-01    .10207E-04   -.95178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52671e-11
Minuit parameter uncertainties:
  1  0.734215
  2  0.870327
  3  0.0454923
  4  0.0524611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168708': 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) = 93144.2235988
delta logL = 0.161736438793

Extracting fit parameters...

4FGL J1338.0+6534
   Spectrum: PowerLaw
386    Prefactor:  6.044e-01  7.342e-01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.137e+00  8.703e-01  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  6.179e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  9.278e-01  5.246e-02  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.050e+00  4.549e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 204.516 65.570
Photon Index (Free Index): 2.14 +/- 0.87
Photon Flux (Free Index): 2.61e-09 +/- 4.63e-09
Energy Flux (Free Index): 1.32e-06 +/- 1.45e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/168708/cmap_HighResolution_675043201_677635201_4FGL_J1338.0+6534_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-03', comment='SUCCESS', photon_flux='5.38e-09', energy_flux2='1.32e-06', photon_flux_error='6.05e-09', dlogl='1.62e-01', energy_flux='1.27e-06', photon_flux2='2.61e-09', job_status='DONE', time_completed='2022-06-23 05:38:55.305422', photon_index_error2='0.87', photon_index2='2.14', ts='1.23', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.72e-08', energy_flux_error2='1.45e-06', EG='1.05', time_epoch_completed='1655987935.31', return_code='0', job_id='168708', GAL2='0.93', EG2='1.05', return_code2='0', energy_flux_error='1.43e-06', photon_flux_error2='4.63e-09', ts2='1.55', photon_index='2.72' WHERE bin_id='169' AND source_name='4FGL J1338.0+6534' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 05:38:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 168708: <4FGL_J1338.0+6534_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1338.0+6534_monthly_bin169> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Jun 23 01:45:30 2022
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:27:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:27:24 2022
Terminated at Thu Jun 23 05:38:56 2022
Results reported at Thu Jun 23 05:38:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.0+6534_monthly_bin169 204.516 65.5696 675043201 677635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1338.0+6534 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11202.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             450.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   11492 sec.
    Turnaround time :                            14006 sec.

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

