aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 4 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 = 17252
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1338.9+1153_weekly_bin320
RA = 204.732, Dec = 11.8956
tmin = 432518401, tmax = 433123201
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='17112', job_status='RUN', time_executed='2021-07-20 22:27:13.149580', time_epoch_executed='1626845233.15' WHERE source_name='4FGL J1338.9+1153' and cadence='weekly' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17112

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17112/ft1_4FGL_J1338.9+1153_weekly_bin320.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17112/ft2_4FGL_J1338.9+1153_weekly_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17112/ft1_4FGL_J1338.9+1153_weekly_bin320.fits outfile=/scratch/kocevski/17112/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin320.fits ra=204.732 dec=11.8956 rad=12.0 tmin=432518401.0 tmax=433123201.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 11.74
user 11.35
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/17112/ft2_4FGL_J1338.9+1153_weekly_bin320.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/17112/ft2_4FGL_J1338.9+1153_weekly_bin320.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/17112/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin320.fits evtable="EVENTS" outfile="/scratch/kocevski/17112/ft1_filtered_4FGL_J1338.9+1153_weekly_bin320.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.54
user 0.38
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17112/ft1_filtered_4FGL_J1338.9+1153_weekly_bin320.fits" evtable="EVENTS" scfile=/scratch/kocevski/17112/ft2_4FGL_J1338.9+1153_weekly_bin320.fits sctable="SC_DATA" outfile=/scratch/kocevski/17112/ltcube_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.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/17112/ft2_4FGL_J1338.9+1153_weekly_bin320.fits
.....................!
real 29.08
user 28.43
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17112/ft1_filtered_4FGL_J1338.9+1153_weekly_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/17112/ft2_4FGL_J1338.9+1153_weekly_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/17112/ltcube_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.fits outfile=/scratch/kocevski/17112/expmap_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.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/17112/ltcube_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.fits
.....................!
real 191.69
user 185.90
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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1338.9+1153 @ 204.732 11.8956

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/17112/ft1_filtered_4FGL_J1338.9+1153_weekly_bin320.fits scfile=/scratch/kocevski/17112/ft2_4FGL_J1338.9+1153_weekly_bin320.fits outfile=/scratch/kocevski/17112/cmap_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.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.732 yref=11.8956 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.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17112/ft1_filtered_4FGL_J1338.9+1153_weekly_bin320.fits scfile=/scratch/kocevski/17112/ft2_4FGL_J1338.9+1153_weekly_bin320.fits outfile=/scratch/kocevski/17112/cmap_HighResolution_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.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.732 yref=11.8956 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.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/17112/ft1_filtered_4FGL_J1338.9+1153_weekly_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/17112/ft2_4FGL_J1338.9+1153_weekly_bin320.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/17112/Model_4FGL_J1338.9+1153_weekly_bin320.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/17112/ft1_filtered_4FGL_J1338.9+1153_weekly_bin320.fits.....................!
real 81.79
user 80.32
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/17112/ft1_filtered_4FGL_J1338.9+1153_weekly_bin320.fits', '/scratch/kocevski/17112/ft2_4FGL_J1338.9+1153_weekly_bin320.fits', expMap='/scratch/kocevski/17112/expmap_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.fits', expCube='/scratch/kocevski/17112/ltcube_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/17112/Model_4FGL_J1338.9+1153_weekly_bin320.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.9+1153'

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  8.644e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/17112/ft1_filtered_4FGL_J1338.9+1153_weekly_bin320.fits
Spacecraft file(s): /scratch/kocevski/17112/ft2_4FGL_J1338.9+1153_weekly_bin320.fits
Exposure map: /scratch/kocevski/17112/expmap_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.fits
Exposure cube: /scratch/kocevski/17112/ltcube_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/17112/Model_4FGL_J1338.9+1153_weekly_bin320.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) = 12087.2367669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16822E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.224       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16146E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10293E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.4502       1.0000         .10000E-03   10000.    
     7 'norm      '    2.4876       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.654       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .51280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.8461       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9135       1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.546       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8862       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18133E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1504       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0875       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96622       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5220E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12087.18     FROM MIGRAD    STATUS=CONVERGED    395 CALLS     1894 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    144.63       -.23982E-04** at limit **
   2  Prefactor     11.227        10.204        .26204E-06    .13117E-03
   3  Prefactor     .10000E-03    21.403       -.59533E-06** at limit **
   4  norm          .10000E-03    2.7504        .76857E-07** at limit **
   5  Prefactor     .10000E-03    2.8638       -.55136E-07** at limit **
   6  Prefactor     9.4628        11.305        .20180E-06   -.53439E-05
   7  norm          2.4838        4.4068       -.65693E-06   -.63043E-03
   8  Prefactor     16.742        22.042       -.40855E-05    .16883E-03
   9  Prefactor     .10000E-03    .60231       -.20823E-07** at limit **
  10  Prefactor     .10000E-03    8.9270        .11803E-07** at limit **
  11  Prefactor     .51521        1.3301       -.65328E-06   -.16875E-02
  12  Prefactor     4.8447        7.1277       -.30325E-05    .20805E-03
  13  Prefactor     7.8678        8.2655        .91167E-07   -.12092E-03
  14  Prefactor     19.554        9.9959       -.63903E-06   -.10034E-02
  15  Prefactor     8.8915        10.707       -.60376E-07    .47380E-05
  16  Prefactor     .10000E-03    27.937        .45976E-06** at limit **
  17  Prefactor     7.1331        4.6060       -.97526E-07   -.84605E-04
  18  Normalizat    1.0880        .13654        .57608E-06    .18169E-03
  19  Prefactor     .96603        .10563        .27084E-06    .22425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 11.2265
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.46282
  norm       = 2.4838
  Prefactor  = 16.742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.515208
  Prefactor  = 4.84469
  Prefactor  = 7.86779
  Prefactor  = 19.5538
  Prefactor  = 8.89148
  Prefactor  = 0.0001
  Prefactor  = 7.13306
  Normalizat = 1.08804
  Prefactor  = 0.966027
 **********
 **   18 **HESSE 
 **********

 FCN=   12087.18     FROM HESSE     STATUS=OK           272 CALLS     2166 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    138.98        .20378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.227        10.197        .11958E-03   -1.5038    
   3  Prefactor     .10000E-03    22.250        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.7902        .17786E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.8774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.4628        11.302        .13036E-03   -1.5093    
   7  norm          2.4838        4.4747        .25917E-03   -1.5393    
   8  Prefactor     16.742        21.653        .98144E-04   -1.4889    
   9  Prefactor     .10000E-03    .60630        .83296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .51521        1.4019        .20743E-03   -1.5564    
  12  Prefactor     4.8447        7.0071        .18273E-03   -1.5268    
  13  Prefactor     7.8678        8.2734        .14254E-03   -1.5147    
  14  Prefactor     19.554        10.310        .45297E-03   -1.4823    
  15  Prefactor     8.8915        10.704        .13446E-03   -1.5112    
  16  Prefactor     .10000E-03    28.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.1331        4.6067        .15001E-03   -1.5174    
  18  Normalizat    1.0880        .16676        .26039E-03   -.90137    
  19  Prefactor     .96603        .12888        .21538E-03   -.93871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35625e-09
Minuit parameter uncertainties:
  1  0.00282336
  2  10.1982
  3  2.77414e-05
  4  1.80739e-06
  5  9.16867e-07
  6  11.305
  7  4.47529
  8  21.6631
  9  3.09029e-07
  10  3.25089e-06
  11  1.40203
  12  7.00833
  13  8.27464
  14  10.3114
  15  10.7061
  16  6.49212e-05
  17  4.60696
  18  0.166844
  19  0.12892
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.674e+01  2.166e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.035e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.660e-01  1.289e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.088e+00  1.668e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.96
Ra Dec: 204.732 11.896
Photon Flux Upper Limit: 4.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17112/likelihoodResults_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.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) = 12087.0855684
delta logL = 0.092572946849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12087.0833594
delta logL = 0.0947819435078

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12087.08     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      287 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.703        385.86        .30566E-02    .69215E-03
   2  Index         2.4293        3.5961        .16219        .17341E-03
   3  Normalizat    1.0818        .51372E-01    .59029E-01    .23440E-04
   4  Prefactor     .96858        .33243E-01    .45869E-01   -.60966E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7033
  Index      = 2.4293
  Normalizat = 1.08179
  Prefactor  = 0.968584
 **********
 **   18 **HESSE 
 **********

 FCN=   12087.08     FROM HESSE     STATUS=OK            33 CALLS      320 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.703        27.295        .61131E-03   -1.5054    
   2  Index         2.4293        1.2694        .10327E-01   -.54000    
   3  Normalizat    1.0818        .16482        .26106E-03   -.90339    
   4  Prefactor     .96858        .12911        .21512E-03   -.93784    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42367e-08
Minuit parameter uncertainties:
  1  27.3264
  2  1.28868
  3  0.164894
  4  0.129153
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17112': 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) = 12087.0833316
delta logL = 0.0948097361124

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  1.070e+01  2.733e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.429e+00  1.289e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  2.291e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.686e-01  1.292e-01  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.082e+00  1.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 204.732 11.896
Photon Index (Free Index): 2.43 +/- 1.29
Photon Flux (Free Index): 1.51e-08 +/- 2.22e-08
Energy Flux (Free Index): 4.76e-06 +/- 6.66e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/17112/cmap_HighResolution_432518401_433123201_4FGL_J1338.9+1153_weekly_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-03', comment='SUCCESS', energy_flux2='4.76e-06', dlogl='9.48e-02', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-07-20 22:41:15.253069', photon_index_error2='1.29', photon_index2='2.43', ts='0.96', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='4.30e-08', energy_flux_error2='6.66e-06', EG='1.09', time_epoch_completed='1626846075.25', return_code='0', job_id='17112', GAL2='0.97', EG2='1.08', return_code2='0', photon_flux_error2='2.22e-08', ts2='1.14', photon_index='2.04' WHERE bin_id='320' AND source_name='4FGL J1338.9+1153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 20 22:41:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 17112: <4FGL_J1338.9+1153_weekly_bin320> in cluster <slac> Done

Job <4FGL_J1338.9+1153_weekly_bin320> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Jul 20 22:25:46 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 20 22:27:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 20 22:27:00 2021
Terminated at Tue Jul 20 22:41:16 2021
Results reported at Tue Jul 20 22:41:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_weekly_bin320 204.732 11.8956 432518401 433123201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1338.9+1153 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   830.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            930 sec.

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

