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


Performing analysis on: 4FGL_J1338.0-4159_daily_bin1745
RA = 204.522, Dec = -41.9953
tmin = 691632001, tmax = 691891201
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='646649', job_status='RUN', time_executed='2022-12-05 00:41:01.056275', time_epoch_executed='1670229661.06' WHERE source_name='4FGL J1338.0-4159' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646649

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646649/ft1_4FGL_J1338.0-4159_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646649/ft2_4FGL_J1338.0-4159_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646649/ft1_4FGL_J1338.0-4159_daily_bin1745.fits outfile=/scratch/kocevski/646649/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin1745.fits ra=204.522 dec=-41.9953 rad=12.0 tmin=691632001.0 tmax=691891201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.38
user 2.17
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/646649/ft2_4FGL_J1338.0-4159_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/646649/ft2_4FGL_J1338.0-4159_daily_bin1745.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/646649/ft1_filteredMKT_4FGL_J1338.0-4159_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/646649/ft1_filtered_4FGL_J1338.0-4159_daily_bin1745.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.33
sys 0.15

Number of photons that the gtmktime cut: 857

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646649/ft1_filtered_4FGL_J1338.0-4159_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/646649/ft2_4FGL_J1338.0-4159_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/646649/ltcube_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.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/646649/ft2_4FGL_J1338.0-4159_daily_bin1745.fits
.....................!
real 12.63
user 12.29
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646649/ft1_filtered_4FGL_J1338.0-4159_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/646649/ft2_4FGL_J1338.0-4159_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/646649/ltcube_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.fits outfile=/scratch/kocevski/646649/expmap_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.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/646649/ltcube_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.fits
.....................!
real 190.39
user 185.44
sys 4.59

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CenALobes.fits is the correct path to the extended template.
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Extended source HESS J1303-631 in ROI with RadialGaussian spatial model.
Extended source FGES J1409.1-6121 in ROI with RadialDisk spatial model.
Extended source HESS J1420-607 in ROI with RadialDisk spatial model.
Added 268 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1338.0-4159 @ 204.522 -41.9953

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/646649/ft1_filtered_4FGL_J1338.0-4159_daily_bin1745.fits scfile=/scratch/kocevski/646649/ft2_4FGL_J1338.0-4159_daily_bin1745.fits outfile=/scratch/kocevski/646649/cmap_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.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.522 yref=-41.9953 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/646649/ft1_filtered_4FGL_J1338.0-4159_daily_bin1745.fits scfile=/scratch/kocevski/646649/ft2_4FGL_J1338.0-4159_daily_bin1745.fits outfile=/scratch/kocevski/646649/cmap_HighResolution_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.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.522 yref=-41.9953 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646649/ft1_filtered_4FGL_J1338.0-4159_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/646649/ft2_4FGL_J1338.0-4159_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646649/Model_4FGL_J1338.0-4159_daily_bin1745.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 CenA Lobes
adding source EG_v02
adding source FGES J1409.1-6121
adding source G296.5+10.0
adding source GAL_V02
adding source HESS J1303-631
adding source HESS J1420-607
Working on...
/scratch/kocevski/646649/ft1_filtered_4FGL_J1338.0-4159_daily_bin1745.fits.....................!
real 170.37
user 168.86
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/646649/ft1_filtered_4FGL_J1338.0-4159_daily_bin1745.fits', '/scratch/kocevski/646649/ft2_4FGL_J1338.0-4159_daily_bin1745.fits', expMap='/scratch/kocevski/646649/expmap_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.fits', expCube='/scratch/kocevski/646649/ltcube_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/646649/Model_4FGL_J1338.0-4159_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1338.0-4159'

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  9.822e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/646649/ft1_filtered_4FGL_J1338.0-4159_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/646649/ft2_4FGL_J1338.0-4159_daily_bin1745.fits
Exposure map: /scratch/kocevski/646649/expmap_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.fits
Exposure cube: /scratch/kocevski/646649/ltcube_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/646649/Model_4FGL_J1338.0-4159_daily_bin1745.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) = 8642.7803676

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23603E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    6.2337       1.0000          .0000       .10000E+07
     3 'norm      '    18.806       1.0000          .0000       .10000E+07
     4 'Prefactor '    .31808E-04   1.0000          .0000       .10000E+07
     5 'norm      '    8.7111       1.0000          .0000       .10000E+07
     6 'norm      '    16.985       1.0000          .0000       .10000E+07
     7 'Prefactor '    41.246       1.0000          .0000       .10000E+07
     8 'Prefactor '    20.738       1.0000          .0000       .10000E+07
     9 'norm      '    3.1123       1.0000          .0000       .10000E+07
    10 'Prefactor '    .96911E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .15918       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14408       1.0000          .0000       .10000E+07
    13 'Prefactor '    .87330E-02   1.0000          .0000       .10000E+07
    14 'norm      '    4.8372       1.0000          .0000       .10000E+07
    15 'Prefactor '    298.81       1.0000          .0000       .10000E+07
    16 'Normalizat'    1.0384       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1005       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8642.770     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     1159 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    2.7505       -.65842E-06** at limit **
   2  Prefactor     6.3552        9.0266       -.18677E-05    .33128E-02
   3  norm          18.801        11.457        .83248E-05   -.21155E-01
   4  Prefactor      .0000        2.8297       -.37923E-05** at limit **
   5  norm          8.7089        6.0518       -.15558E-05   -.93293E-03
   6  norm          17.024        3.4545        .30527E-05    .11981    
   7  Prefactor     41.240        1.0100       -.92581E-07    .95573E-02
   8  Prefactor     19.417        17.936       -.13308E-04    .18945    
   9  norm          3.1352        3.8458       -.45948E-05   -.93119E-02
  10  Prefactor     .41633E-08    24.821       -.14405E-04** at limit **
  11  Prefactor     .18541E-07    57.556        .31778E-04** at limit **
  12  Prefactor     .53046E-05    303.31        .74545E-04** at limit **
  13  Prefactor     .11239E-03    167.94       -.71010E-04** at limit **
  14  norm          4.8373        .65185       -.97568E-08   -.24055E-01
  15  Prefactor     298.89        1.7839        .34590E-06   -.22206    
  16  Normalizat    1.0395        .36904        .61944E-04    .23421E-03
  17  Prefactor     1.1002        .11614       -.99117E-05    .44896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 6.35522
  norm       = 18.8013
  Prefactor  = 0
  norm       = 8.70891
  norm       = 17.0244
  Prefactor  = 41.2402
  Prefactor  = 19.4171
  norm       = 3.13516
  Prefactor  = 4.16334e-09
  Prefactor  = 1.85407e-08
  Prefactor  = 5.30465e-06
  Prefactor  = 0.000112392
  norm       = 4.83731
  Prefactor  = 298.894
  Normalizat = 1.03952
  Prefactor  = 1.10017
 **********
 **   18 **HESSE 
 **********

 FCN=   8642.770     FROM HESSE     STATUS=OK           255 CALLS     1414 TOTAL
                     EDM=   .23E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    2.7485        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.3552        9.0380        .40183E-03   -1.5658    
   3  norm          18.801        11.947        .23068E-03   -1.5621    
   4  Prefactor      .0000        2.8268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.7089        6.0474        .33938E-03   -1.5649    
   6  norm          17.024        10.921        .24275E-03   -1.5625    
   7  Prefactor     41.240        148.07        .15572E-03   -1.5580    
   8  Prefactor     19.417        69.936        .21966E-03   -1.5620    
   9  norm          3.1352        57.834        .57451E-03   -1.5673    
  10  Prefactor     .41633E-08    24.828        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .18541E-07    57.625        .12553E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .53046E-05    310.25        .12870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11239E-03    179.28        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8373        .66552        .45715E-03   -1.5664    
  15  Prefactor     298.89        284.34        .57858E-04   -1.5362    
  16  Normalizat    1.0395        .33772        .12574       -.91718    
  17  Prefactor     1.1002        .10547        .37568E-01   -.89461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30081e-05
Minuit parameter uncertainties:
  1  2.62467e-05
  2  9.03805
  3  11.947
  4  1.70472e-05
  5  6.04744
  6  10.9206
  7  148.087
  8  69.9389
  9  26.9312
  10  0.000642382
  11  0.00206763
  12  0.0811398
  13  0.283903
  14  0.66552
  15  284.358
  16  0.338425
  17  0.105493
Done.

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

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  4.124e+01  1.481e+02  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.972e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  1.100e+00  1.055e-01  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.040e+00  3.384e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 204.522 -41.995
Photon Flux Upper Limit: 8.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/646649/likelihoodResults_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.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) = 8642.77019385
delta logL = 8.39075419208e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8642.77012046
delta logL = 0.000157292786753

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.033       1.0000          .0000       .10000E+07
     2 'Index     '    1.9448       1.0000          .0000       10.000    
     3 'Normalizat'    1.0396       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1002       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .9490E+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=   8642.770     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      256 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.067        253.95        .60982E-05   -.14765E-03
   2  Index         1.9433        1.7802        .14722E-01    .59921E-04
   3  Normalizat    1.0397        .36342        .55786E-03    .96231E-04
   4  Prefactor     1.1002        .11523        .17050E-03    .61854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.0669
  Index      = 1.94328
  Normalizat = 1.03969
  Prefactor  = 1.10016
 **********
 **   18 **HESSE 
 **********

 FCN=   8642.770     FROM HESSE     STATUS=OK            25 CALLS      281 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.067        199.96        .12196E-05   -1.5577    
   2  Index         1.9433        1.5947        .58888E-03   -.65776    
   3  Normalizat    1.0397        .36347        .22314E-04   -.91712    
   4  Prefactor     1.1002        .11527        .34100E-04   -.89462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93827e-10
Minuit parameter uncertainties:
  1  185.609
  2  1.64138
  3  0.36434
  4  0.115293
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646649': 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) = 8642.77011984
delta logL = 0.000157913611474

Extracting fit parameters...

4FGL J1338.0-4159
   Spectrum: PowerLaw
369    Prefactor:  4.307e+01  1.856e+02  0.000e+00  1.000e+06 ( 1.000e-15)
370        Index:  1.943e+00  1.641e+00  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  4.081e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
940    Prefactor:  1.100e+00  1.153e-01  0.000e+00  1.000e+01 ( 1.000e+00)
941        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
942        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
932   Normalization:  1.040e+00  3.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 204.522 -41.995

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/646649/cmap_HighResolution_691632001_691891201_4FGL_J1338.0-4159_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', job_status='DONE', photon_flux_upper_limit='8.81e-08', time_completed='2022-12-05 00:55:42.275283', job_id='646649', GAL2='1.10', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1670230542.28', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.58e-04', ts2='0.10', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1745' AND source_name='4FGL J1338.0-4159' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:55:42 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 646649: <4FGL_J1338.0-4159_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1338.0-4159_daily_bin1745> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Dec  5 00:40:20 2022
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:40:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:40:22 2022
Terminated at Mon Dec  5 00:55:43 2022
Results reported at Mon Dec  5 00:55:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1338.0-4159_daily_bin1745 204.522 -41.9953 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1338.0-4159 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   883.14 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             375.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

