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 166 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_J1339.9-0138_daily_bin1745
RA = 204.976, Dec = -1.6378
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='646655', job_status='RUN', time_executed='2022-12-05 00:43:21.322360', time_epoch_executed='1670229801.32' WHERE source_name='4FGL J1339.9-0138' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646655

Creating custom pfile directory:
/scratch/kocevski/646655/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/646655/ft1_4FGL_J1339.9-0138_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/646655/ft2_4FGL_J1339.9-0138_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646655/ft1_4FGL_J1339.9-0138_daily_bin1745.fits outfile=/scratch/kocevski/646655/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1745.fits ra=204.976 dec=-1.6378 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.39
user 2.15
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/646655/ft2_4FGL_J1339.9-0138_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/646655/ft2_4FGL_J1339.9-0138_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/646655/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/646655/ft1_filtered_4FGL_J1339.9-0138_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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 789

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646655/ft1_filtered_4FGL_J1339.9-0138_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/646655/ft2_4FGL_J1339.9-0138_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/646655/ltcube_691632001_691891201_4FGL_J1339.9-0138_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/646655/ft2_4FGL_J1339.9-0138_daily_bin1745.fits
.....................!
real 12.53
user 12.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646655/ft1_filtered_4FGL_J1339.9-0138_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/646655/ft2_4FGL_J1339.9-0138_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/646655/ltcube_691632001_691891201_4FGL_J1339.9-0138_daily_bin1745.fits outfile=/scratch/kocevski/646655/expmap_691632001_691891201_4FGL_J1339.9-0138_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/646655/ltcube_691632001_691891201_4FGL_J1339.9-0138_daily_bin1745.fits
.....................!
real 191.00
user 185.70
sys 4.96

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

Setting source of interest to:
4FGL J1339.9-0138 @ 204.976 -1.6378

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/646655/ft1_filtered_4FGL_J1339.9-0138_daily_bin1745.fits scfile=/scratch/kocevski/646655/ft2_4FGL_J1339.9-0138_daily_bin1745.fits outfile=/scratch/kocevski/646655/cmap_691632001_691891201_4FGL_J1339.9-0138_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.976 yref=-1.6378 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646655/ft1_filtered_4FGL_J1339.9-0138_daily_bin1745.fits scfile=/scratch/kocevski/646655/ft2_4FGL_J1339.9-0138_daily_bin1745.fits outfile=/scratch/kocevski/646655/cmap_HighResolution_691632001_691891201_4FGL_J1339.9-0138_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.976 yref=-1.6378 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/646655/ft1_filtered_4FGL_J1339.9-0138_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/646655/ft2_4FGL_J1339.9-0138_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/646655/Model_4FGL_J1339.9-0138_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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/646655/ft1_filtered_4FGL_J1339.9-0138_daily_bin1745.fits.....................!
real 62.22
user 60.83
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/646655/ft1_filtered_4FGL_J1339.9-0138_daily_bin1745.fits', '/scratch/kocevski/646655/ft2_4FGL_J1339.9-0138_daily_bin1745.fits', expMap='/scratch/kocevski/646655/expmap_691632001_691891201_4FGL_J1339.9-0138_daily_bin1745.fits', expCube='/scratch/kocevski/646655/ltcube_691632001_691891201_4FGL_J1339.9-0138_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/646655/Model_4FGL_J1339.9-0138_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.9-0138'

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.717e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/646655/ft1_filtered_4FGL_J1339.9-0138_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/646655/ft2_4FGL_J1339.9-0138_daily_bin1745.fits
Exposure map: /scratch/kocevski/646655/expmap_691632001_691891201_4FGL_J1339.9-0138_daily_bin1745.fits
Exposure cube: /scratch/kocevski/646655/ltcube_691632001_691891201_4FGL_J1339.9-0138_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/646655/Model_4FGL_J1339.9-0138_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) = 8684.53874178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .33022       1.0000          .0000       .10000E+07
     2 'Prefactor '    .32623E-02   1.0000          .0000       .10000E+07
     3 'norm      '    10.055       1.0000          .0000       .10000E+07
     4 'norm      '    .92158E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.2285       1.0000          .0000       .10000E+07
     6 'Prefactor '    .89578E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    17.699       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16125       1.0000          .0000       .10000E+07
     9 'norm      '    .35361E-07   1.0000          .0000       .10000E+07
    10 'norm      '    4.5842       1.0000          .0000       .10000E+07
    11 'norm      '    6.1248       1.0000          .0000       .10000E+07
    12 'norm      '    24.995       1.0000          .0000       .10000E+07
    13 'Prefactor '    .35934E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    5.4007       1.0000          .0000       .10000E+07
    15 'Prefactor '    .42786E-02   1.0000          .0000       .10000E+07
    16 'norm      '    .74876E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    8.5993       1.0000          .0000       .10000E+07
    18 'norm      '    21.985       1.0000          .0000       .10000E+07
    19 'Prefactor '    .78145E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .34029       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1635       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .88262       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8684.535     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     1884 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33018        .17002        .16979E-08    .79477E-02
   2  Prefactor     .20539E-07    12.555       -.33923E-06** at limit **
   3  norm          10.052        8.1470        .81251E-07   -.22760E-02
   4  norm           .0000        2.0598        .36528E-08** at limit **
   5  Prefactor     4.1907        5.6130       -.36110E-06   -.13216E-01
   6  Prefactor      .0000        5.1154        .64870E-07** at limit **
   7  Prefactor     17.725        7.9881        .11455E-07   -.44478E-02
   8  Prefactor     .52736E-08    45.051       -.42786E-06** at limit **
   9  norm           .0000        .42554       -.22067E-07** at limit **
  10  norm          4.5929        3.1284        .15233E-07   -.27304E-02
  11  norm          6.1441        5.6722       -.15854E-07   -.89474E-03
  12  norm          24.941        11.017       -.67597E-06   -.11182    
  13  Prefactor      .0000        4.5551       -.59100E-08** at limit **
  14  Prefactor     5.3828        5.1084       -.75180E-08   -.66387E-03
  15  Prefactor     .25147E-07    12.061        .27442E-06** at limit **
  16  norm          .31752E-07    30.604       -.11884E-06** at limit **
  17  Prefactor     8.6350        7.5320        .16616E-07   -.78858E-03
  18  norm          21.986        4.2188        .22006E-09    .42019E-02
  19  Prefactor     .82157E-08    18.150        .14361E-06** at limit **
  20  norm          .69652E-03    4431.5       -.39722E-04** at limit **
  21  Normalizat    1.1631        .20475        .90892E-06    .23163E-03
  22  Prefactor     .88328        .14621        .21544E-06    .40190E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.330176
  Prefactor  = 2.05391e-08
  norm       = 10.0515
  norm       = 0
  Prefactor  = 4.19066
  Prefactor  = 0
  Prefactor  = 17.725
  Prefactor  = 5.27356e-09
  norm       = 0
  norm       = 4.59286
  norm       = 6.14406
  norm       = 24.9407
  Prefactor  = 0
  Prefactor  = 5.38276
  Prefactor  = 2.51466e-08
  norm       = 3.17524e-08
  Prefactor  = 8.63504
  norm       = 21.9861
  Prefactor  = 8.21565e-09
  norm       = 0.000696518
  Normalizat = 1.16312
  Prefactor  = 0.883279
 **********
 **   18 **HESSE 
 **********

 FCN=   8684.535     FROM HESSE     STATUS=OK           396 CALLS     2280 TOTAL
                     EDM=   .53E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33018        .17167        .60237E-03   -1.5696    
   2  Prefactor     .20539E-07    13.377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.052        8.2694        .31575E-03   -1.5645    
   4  norm           .0000        2.0621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1907        18.631        .48979E-03   -1.5667    
   6  Prefactor      .0000        5.1128        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.725        8.0084        .23780E-03   -1.5624    
   8  Prefactor     .52736E-08    44.666        .12511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .42505        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.5929        3.1646        .46989E-03   -1.5665    
  11  norm          6.1441        5.6858        .40543E-03   -1.5658    
  12  norm          24.941        30.723        .20006E-03   -1.5608    
  13  Prefactor      .0000        4.4500        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3828        5.1537        .43218E-03   -1.5662    
  15  Prefactor     .25147E-07    12.851        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .31752E-07    29.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.6350        7.5430        .34159E-03   -1.5649    
  18  norm          21.986        4.2262        .21333E-03   -1.5614    
  19  Prefactor     .82157E-08    18.361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .69652E-03    10.923        .96758E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1631        .17815        .63254E-01   -.87750    
  22  Prefactor     .88328        .12391        .44783E-01   -.96728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.30224e-07
Minuit parameter uncertainties:
  1  0.171674
  2  0.00104851
  3  8.26944
  4  9.87451e-06
  5  17.6722
  6  2.01768e-05
  7  8.00838
  8  0.000970114
  9  2.22733e-06
  10  3.1646
  11  5.6858
  12  30.7231
  13  9.72613e-06
  14  5.15371
  15  0.00113707
  16  0.00195065
  17  7.54305
  18  4.2262
  19  0.000776146
  20  0.174447
  21  0.178238
  22  0.123948
Done.

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

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.494e+01  3.072e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  8.833e-01  1.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.163e+00  1.782e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.84
Ra Dec: 204.976 -1.638
Photon Flux Upper Limit: 4.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/646655/likelihoodResults_691632001_691891201_4FGL_J1339.9-0138_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) = 8683.68205913
delta logL = 0.853005202831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8683.67556147
delta logL = 0.859502866469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.931       1.0000          .0000       .10000E+07
     2 'alpha     '    3.6462       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88553       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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=   8683.676     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      303 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.925        27.230        .11132E-04    .52289E-03
   2  alpha         3.6461        1.4748        .20930E-01    .31026E-04
   3  Normalizat    1.1418        .20509        .28191E-03    .41512E-03
   4  Prefactor     .88577        .14537        .22458E-03   -.14114E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9248
  alpha      = 3.64612
  Normalizat = 1.14177
  Prefactor  = 0.885771
 **********
 **   18 **HESSE 
 **********

 FCN=   8683.676     FROM HESSE     STATUS=OK            25 CALLS      328 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.925        20.098        .44528E-06   -1.5636    
   2  alpha         3.6461        1.1333        .83722E-03    .47625    
   3  Normalizat    1.1418        .20269        .56382E-04   -.88422    
   4  Prefactor     .88577        .14420        .89831E-05   -.96640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07412e-09
Minuit parameter uncertainties:
  1  20.0985
  2  1.18923
  3  0.202827
  4  0.144266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646655': 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) = 8683.67555971
delta logL = 0.859504627897

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.292e+01  2.010e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  3.646e+00  1.189e+00  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  8.858e-01  1.443e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.142e+00  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.55
Ra Dec: 204.976 -1.638
Photon Index (Free Index): 3.65 +/- 1.19
Photon Flux (Free Index): 3.45e-08 +/- 3.21e-08
Energy Flux (Free Index): 1.11e-05 +/- 8.53e-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/646655/cmap_HighResolution_691632001_691891201_4FGL_J1339.9-0138_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', comment='SUCCESS', energy_flux2='1.11e-05', dlogl='8.60e-01', photon_flux2='3.45e-08', job_status='DONE', time_completed='2022-12-05 00:54:10.703004', photon_index_error2='1.19', photon_index2='3.65', ts='0.84', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='4.02e-08', energy_flux_error2='8.53e-06', EG='1.16', time_epoch_completed='1670230450.7', return_code='0', job_id='646655', GAL2='0.89', EG2='1.14', return_code2='0', photon_flux_error2='3.21e-08', ts2='2.55', photon_index='2.12' WHERE bin_id='1745' AND source_name='4FGL J1339.9-0138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:54:10 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 646655: <4FGL_J1339.9-0138_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1339.9-0138_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) <bullet0215>, 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:54:11 2022
Results reported at Mon Dec  5 00:54:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.9-0138_daily_bin1745 204.976 -1.6378 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.9-0138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   651.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            831 sec.

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

