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


Performing analysis on: 4FGL_J1338.9+1153_weekly_bin480
RA = 204.732, Dec = 11.8956
tmin = 529286401, tmax = 529891201
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='19401', job_status='RUN', time_executed='2021-07-20 22:36:22.230107', time_epoch_executed='1626845782.23' WHERE source_name='4FGL J1338.9+1153' and cadence='weekly' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19401

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19401/ft1_4FGL_J1338.9+1153_weekly_bin480.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19401/ft2_4FGL_J1338.9+1153_weekly_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19401/ft1_4FGL_J1338.9+1153_weekly_bin480.fits outfile=/scratch/kocevski/19401/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin480.fits ra=204.732 dec=11.8956 rad=12.0 tmin=529286401.0 tmax=529891201.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 7.92
user 7.60
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19401/ft2_4FGL_J1338.9+1153_weekly_bin480.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/19401/ft1_filteredMKT_4FGL_J1338.9+1153_weekly_bin480.fits evtable="EVENTS" outfile="/scratch/kocevski/19401/ft1_filtered_4FGL_J1338.9+1153_weekly_bin480.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.59
user 0.40
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19401/ft1_filtered_4FGL_J1338.9+1153_weekly_bin480.fits" evtable="EVENTS" scfile=/scratch/kocevski/19401/ft2_4FGL_J1338.9+1153_weekly_bin480.fits sctable="SC_DATA" outfile=/scratch/kocevski/19401/ltcube_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.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/19401/ft2_4FGL_J1338.9+1153_weekly_bin480.fits
.....................!
real 34.52
user 33.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19401/ft1_filtered_4FGL_J1338.9+1153_weekly_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/19401/ft2_4FGL_J1338.9+1153_weekly_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/19401/ltcube_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.fits outfile=/scratch/kocevski/19401/expmap_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.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/19401/ltcube_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.fits
.....................!
real 192.55
user 187.48
sys 4.61

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/19401/ft1_filtered_4FGL_J1338.9+1153_weekly_bin480.fits scfile=/scratch/kocevski/19401/ft2_4FGL_J1338.9+1153_weekly_bin480.fits outfile=/scratch/kocevski/19401/cmap_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.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.60
user 0.44
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19401/ft1_filtered_4FGL_J1338.9+1153_weekly_bin480.fits scfile=/scratch/kocevski/19401/ft2_4FGL_J1338.9+1153_weekly_bin480.fits outfile=/scratch/kocevski/19401/cmap_HighResolution_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.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.60
user 0.44
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19401/ft1_filtered_4FGL_J1338.9+1153_weekly_bin480.fits', '/scratch/kocevski/19401/ft2_4FGL_J1338.9+1153_weekly_bin480.fits', expMap='/scratch/kocevski/19401/expmap_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.fits', expCube='/scratch/kocevski/19401/ltcube_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19401/Model_4FGL_J1338.9+1153_weekly_bin480.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/19401/ft1_filtered_4FGL_J1338.9+1153_weekly_bin480.fits
Spacecraft file(s): /scratch/kocevski/19401/ft2_4FGL_J1338.9+1153_weekly_bin480.fits
Exposure map: /scratch/kocevski/19401/expmap_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.fits
Exposure cube: /scratch/kocevski/19401/ltcube_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19401/Model_4FGL_J1338.9+1153_weekly_bin480.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) = 12922.5171339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.402       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.824       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    26.177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.9384       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50827       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.384       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8245       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15138E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37875       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0706       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0490       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=   12922.46     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1650 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.408        30.755        .94797E-06    .14384E-03
   2  Prefactor     26.822        11.091        .48143E-07   -.89024E-06
   3  Prefactor     .10000E-03    5.5742        .15119E-06** at limit **
   4  norm          26.177        6.9532        .15710E-06    .84960E-03
   5  Prefactor     .10000E-03    9.2560        .80306E-06** at limit **
   6  Prefactor     .10000E-03    10.944       -.10895E-05** at limit **
   7  norm          4.8880        5.6505        .80381E-06    .54561E-03
   8  Prefactor     9.9379        18.165       -.45643E-07   -.24778E-04
   9  Prefactor     .50821        1.5690        .12726E-05   -.67543E-03
  10  Prefactor     12.384        12.278        .42541E-06    .15528E-03
  11  Prefactor     .10000E-03    .76838       -.36316E-08** at limit **
  12  Prefactor     1.8244        5.3482        .81825E-06   -.21623E-03
  13  Prefactor     .10000E-03    3.0318        .19093E-08** at limit **
  14  Prefactor     .10000E-03    4.5336       -.32602E-07** at limit **
  15  Prefactor     .10000E-03    13.647        .49132E-06** at limit **
  16  Prefactor     .10000E-03    6.1107       -.23087E-06** at limit **
  17  Prefactor     .36815        2.6541       -.41318E-06    .15542E-03
  18  Normalizat    1.0705        .13452       -.65221E-06   -.97064E-04
  19  Prefactor     1.0491        .10788        .11047E-07   -.19699E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4077
  Prefactor  = 26.8221
  Prefactor  = 0.0001
  norm       = 26.1774
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.88796
  Prefactor  = 9.93789
  Prefactor  = 0.508208
  Prefactor  = 12.3836
  Prefactor  = 0.0001
  Prefactor  = 1.82445
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.368145
  Normalizat = 1.0705
  Prefactor  = 1.04908
 **********
 **   18 **HESSE 
 **********

 FCN=   12922.46     FROM HESSE     STATUS=OK           276 CALLS     1926 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.408        31.148        .36944E-03   -1.4623    
   2  Prefactor     26.822        11.130        .77350E-04   -1.4672    
   3  Prefactor     .10000E-03    5.6614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          26.177        6.9887        .78297E-04   -1.4684    
   5  Prefactor     .10000E-03    9.8131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8880        5.7294        .18194E-03   -1.5266    
   8  Prefactor     9.9379        18.162        .12711E-03   -1.5077    
   9  Prefactor     .50821        1.6493        .25670E-03   -1.5565    
  10  Prefactor     12.384        12.351        .11383E-03   -1.5004    
  11  Prefactor     .10000E-03    .77266        .97303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8244        5.3968        .30908E-03   -1.5438    
  13  Prefactor     .10000E-03    3.0663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.1080        .73570E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .36815        10.293        .35197E-02   -1.5587    
  18  Normalizat    1.0705        .16235        .26196E-03   -.90705    
  19  Prefactor     1.0491        .13086        .21571E-03   -.91111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25822e-09
Minuit parameter uncertainties:
  1  31.1652
  2  11.1304
  3  2.06132e-05
  4  6.98888
  5  0.000112457
  6  0.000178585
  7  5.73003
  8  18.1718
  9  1.64941
  10  12.3532
  11  5.93877e-07
  12  5.39827
  13  3.02447e-06
  14  0.000251036
  15  0.000115301
  16  2.65788e-05
  17  3.8934
  18  0.162423
  19  0.130903
Done.

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

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  9.938e+00  1.817e+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:  1.049e+00  1.309e-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.071e+00  1.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/19401/likelihoodResults_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.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) = 12922.457016
delta logL = 0.000884610077264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12922.4568202
delta logL = 0.00108042858301

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.5705       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0824       1.0000          .0000       10.000    
     3 'Normalizat'    1.0701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0491       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12922.46     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      252 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.5657        20.446        .12954E-03    .28383E-03
   2  Index         2.0810        1.0252        .12930E-01    .11659E-03
   3  Normalizat    1.0702        .15846        .26200E-03   -.10170E-02
   4  Prefactor     1.0492        .12996        .21570E-03   -.13739E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.56568
  Index      = 2.08103
  Normalizat = 1.07015
  Prefactor  = 1.04918
 **********
 **   18 **HESSE 
 **********

 FCN=   12922.46     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.5657        19.467        .51815E-05   -1.5089    
   2  Index         2.0810        .97780        .51720E-03   -.62339    
   3  Normalizat    1.0702        .15857        .52400E-04   -.90716    
   4  Prefactor     1.0492        .13007        .43140E-04   -.91108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41718e-09
Minuit parameter uncertainties:
  1  19.4804
  2  0.987505
  3  0.158637
  4  0.130109
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19401': 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) = 12922.4568167
delta logL = 0.00108385213389

Extracting fit parameters...

4FGL J1338.9+1153
   Spectrum: PowerLaw
309    Prefactor:  9.566e+00  1.948e+01  1.000e-04  1.000e+04 ( 1.000e-14)
310        Index:  2.081e+00  9.875e-01  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:  1.049e+00  1.301e-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.070e+00  1.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.46
Ra Dec: 204.732 11.896

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/19401/cmap_HighResolution_529286401_529891201_4FGL_J1338.9+1153_weekly_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-03', job_status='DONE', photon_flux_upper_limit='3.88e-08', time_completed='2021-07-20 22:50:43.448712', job_id='19401', GAL2='1.05', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1626846643.45', return_code2='0', ts='0.46', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.08e-03', ts2='0.47', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='480' AND source_name='4FGL J1338.9+1153' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 20 22:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 19401: <4FGL_J1338.9+1153_weekly_bin480> in cluster <slac> Done

Job <4FGL_J1338.9+1153_weekly_bin480> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Jul 20 22:35:35 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 20 22:36:09 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:36:09 2021
Terminated at Tue Jul 20 22:50:44 2021
Results reported at Tue Jul 20 22:50:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.9+1153_weekly_bin480 204.732 11.8956 529286401 529891201 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 :                                   839.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             322.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   874 sec.
    Turnaround time :                            909 sec.

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

