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


Performing analysis on: 4FGL_J1339.9-0138_daily_bin1750
RA = 204.976, Dec = -1.6378
tmin = 692928001, tmax = 693187201
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='13438', job_status='RUN', time_executed='2022-12-20 00:57:30.263108', time_epoch_executed='1671526650.26' WHERE source_name='4FGL J1339.9-0138' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13438

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13438/ft1_4FGL_J1339.9-0138_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13438/ft2_4FGL_J1339.9-0138_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13438/ft1_4FGL_J1339.9-0138_daily_bin1750.fits outfile=/scratch/kocevski/13438/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1750.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=692928001.0 tmax=693187201.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 3.43
user 3.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13438/ft2_4FGL_J1339.9-0138_daily_bin1750.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/13438/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/13438/ft1_filtered_4FGL_J1339.9-0138_daily_bin1750.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.34
sys 0.14

Number of photons that the gtmktime cut: 680

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13438/ft1_filtered_4FGL_J1339.9-0138_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/13438/ft2_4FGL_J1339.9-0138_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/13438/ltcube_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.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/13438/ft2_4FGL_J1339.9-0138_daily_bin1750.fits
.....................!
real 11.69
user 11.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13438/ft1_filtered_4FGL_J1339.9-0138_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/13438/ft2_4FGL_J1339.9-0138_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/13438/ltcube_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.fits outfile=/scratch/kocevski/13438/expmap_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.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/13438/ltcube_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.fits
.....................!
real 190.96
user 185.40
sys 5.21

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/13438/ft1_filtered_4FGL_J1339.9-0138_daily_bin1750.fits scfile=/scratch/kocevski/13438/ft2_4FGL_J1339.9-0138_daily_bin1750.fits outfile=/scratch/kocevski/13438/cmap_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13438/ft1_filtered_4FGL_J1339.9-0138_daily_bin1750.fits scfile=/scratch/kocevski/13438/ft2_4FGL_J1339.9-0138_daily_bin1750.fits outfile=/scratch/kocevski/13438/cmap_HighResolution_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/13438/ft1_filtered_4FGL_J1339.9-0138_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/13438/ft2_4FGL_J1339.9-0138_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/13438/Model_4FGL_J1339.9-0138_daily_bin1750.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/13438/ft1_filtered_4FGL_J1339.9-0138_daily_bin1750.fits....................!
real 56.84
user 55.50
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/13438/ft1_filtered_4FGL_J1339.9-0138_daily_bin1750.fits', '/scratch/kocevski/13438/ft2_4FGL_J1339.9-0138_daily_bin1750.fits', expMap='/scratch/kocevski/13438/expmap_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.fits', expCube='/scratch/kocevski/13438/ltcube_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/13438/Model_4FGL_J1339.9-0138_daily_bin1750.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/13438/ft1_filtered_4FGL_J1339.9-0138_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/13438/ft2_4FGL_J1339.9-0138_daily_bin1750.fits
Exposure map: /scratch/kocevski/13438/expmap_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.fits
Exposure cube: /scratch/kocevski/13438/ltcube_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/13438/Model_4FGL_J1339.9-0138_daily_bin1750.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7259.39864455

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23340       1.0000          .0000       .10000E+07
     2 'Prefactor '    308.66       1.0000          .0000       .10000E+07
     3 'norm      '    .17691E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .69506E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .46621E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .14708E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    18.405       1.0000          .0000       .10000E+07
     8 'Prefactor '    .40360E-02   1.0000          .0000       .10000E+07
     9 'norm      '    3.5176       1.0000          .0000       .10000E+07
    10 'norm      '    .59636E-05   1.0000          .0000       .10000E+07
    11 'norm      '    .55657E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .11752E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .36653E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .55511E-10   1.0000          .0000       .10000E+07
    15 'Prefactor '    .59037E-02   1.0000          .0000       .10000E+07
    16 'norm      '    1.3967       1.0000          .0000       .10000E+07
    17 'Prefactor '    .40610E-05   1.0000          .0000       .10000E+07
    18 'norm      '    47.508       1.0000          .0000       .10000E+07
    19 'Prefactor '    .43604E-02   1.0000          .0000       .10000E+07
    20 'norm      '    6.2120       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.3780       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .84347       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=   7249.120     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1063 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23343        .22090       -.82572E-08** at limit **
   2  Prefactor     308.68        1.0186       -.75116E-10    .36463E-01
   3  norm          .49960E-09    2.8489       -.65168E-07** at limit **
   4  norm          .27200E-08    2.7373        .34483E-07** at limit **
   5  Prefactor     .22120E-05    7.6189        .46910E-07** at limit **
   6  Prefactor     .22123E-05    4.7169       -.92377E-07** at limit **
   7  Prefactor     18.417        1.8722       -.86839E-08    .76626E-01
   8  Prefactor     .56381E-05    11.240        .21889E-06** at limit **
   9  norm          3.5169        1.7937        .57060E-08    .12947E-02
  10  norm           .0000        1.7080        .31420E-07** at limit **
  11  norm          .24547E-06    3.6691       -.10406E-06** at limit **
  12  norm          .33556E-06    7.9766        .10390E-07** at limit **
  13  Prefactor     .56066E-08    6.9033        .10568E-06** at limit **
  14  Prefactor     .49960E-09    1.9716       -.18010E-06** at limit **
  15  Prefactor     .48295E-06    35.647        .80969E-06** at limit **
  16  norm          1.4616        10.860       -.33749E-07    .11847E-01
  17  Prefactor     .72164E-09    4.2148       -.12098E-06** at limit **
  18  norm          47.482        6.2504       -.52890E-08   -.22251E-01
  19  Prefactor     .22070E-05    5.7596       -.11532E-06** at limit **
  20  norm          6.2754        6.6257        .84057E-08    .13153E-01
  21  Normalizat    1.3782        .26055        .48959E-05   -.47179E-04
  22  Prefactor     .84317        .17864       -.48927E-05   -.29905E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.233432
  Prefactor  = 308.684
  norm       = 4.996e-10
  norm       = 2.72005e-09
  Prefactor  = 2.21195e-06
  Prefactor  = 2.21229e-06
  Prefactor  = 18.417
  Prefactor  = 5.6381e-06
  norm       = 3.51685
  norm       = 0
  norm       = 2.4547e-07
  norm       = 3.35565e-07
  Prefactor  = 5.60663e-09
  Prefactor  = 4.996e-10
  Prefactor  = 4.82947e-07
  norm       = 1.46159
  Prefactor  = 7.21645e-10
  norm       = 47.4824
  Prefactor  = 2.20696e-06
  norm       = 6.27542
  Normalizat = 1.37821
  Prefactor  = 0.84317
 **********
 **   18 **HESSE 
 **********

 FCN=   7249.120     FROM HESSE     STATUS=OK           378 CALLS     1441 TOTAL
                     EDM=   .93E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23343        .24927        .85422E-03   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     308.68        98.854        .56928E-04   -1.5357    
   3  norm          .49960E-09    2.8497        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .27200E-08    2.7450        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .22120E-05    17.549        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .22123E-05    11.616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.417        10.767        .23319E-03   -1.5622    
   8  Prefactor     .56381E-05    20.213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5169        1.7942        .53877E-03   -1.5670    
  10  norm           .0000        1.7081        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .24547E-06    12.806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .33556E-06    8.5395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .56066E-08    6.8691        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .49960E-09    1.9730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .48295E-06    36.042        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4616        10.986        .91831E-03   -1.5684    
  17  Prefactor     .72164E-09    4.2214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          47.482        6.2678        .14509E-03   -1.5570    
  19  Prefactor     .22070E-05    13.658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.2754        6.6387        .40254E-03   -1.5658    
  21  Normalizat    1.3782        .22165        .67427E-01   -.81261    
  22  Prefactor     .84317        .15093        .44280E-01   -.98156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.26874e-07
Minuit parameter uncertainties:
  1  0.249274
  2  98.8544
  3  7.34954e-05
  4  0.000172044
  5  0.0124609
  6  0.0101386
  7  10.7668
  8  0.0213508
  9  1.79424
  10  3.50184e-06
  11  0.00354591
  12  0.0033855
  13  0.000391829
  14  6.44347e-05
  15  0.00834437
  16  8.01442
  17  0.000110144
  18  6.26784
  19  0.0109803
  20  6.63868
  21  0.221808
  22  0.151004
Done.

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

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  3.356e-07  3.385e-03  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.432e-01  1.510e-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.378e+00  2.218e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/13438/likelihoodResults_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.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): 102
logL (Free Index) = 7249.12372845
delta logL = -0.0039308284795

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7249.11979987
delta logL = -2.24360974244e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13125E-04   1.0000          .0000       .10000E+07
     2 'alpha     '    3.6156       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3781       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84329       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.

 FCN=   7249.120     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      263 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .94369E-09    1.8915        .42118E-03** at limit **
   2  alpha         1.1967        3.7879        .48131        .14172E-10
   3  Normalizat    1.3782        .24922E-02    .67427E-01    .17727E-03
   4  Prefactor     .84317        .17290E-02    .44278E-01   -.60643E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.4369e-10
  alpha      = 1.1967
  Normalizat = 1.37821
  Prefactor  = 0.84317
 **********
 **   18 **HESSE 
 **********

 FCN=   7249.120     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      290 TOTAL
                     EDM=   .77E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .94369E-09    9.2832        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.1967        2.5408        .51000       -2.5932    
   3  Normalizat    1.3782        .55185E-02    .29828E-03   -.81261    
   4  Prefactor     .84317        .38306E-02    .25580E-03   -.98156    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.68977e-11
Minuit parameter uncertainties:
  1  0.000185281
  2  202195
  3  0.00551855
  4  0.00383058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13438': 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): 102
logL (Free Index) = 7249.1197976
delta logL = 1.95805114345e-08

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  9.437e-10  1.853e-04  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  1.197e+00  2.022e+05  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.432e-01  3.831e-03  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.378e+00  5.519e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 204.976 -1.638

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/13438/cmap_HighResolution_692928001_693187201_4FGL_J1339.9-0138_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-05', job_status='DONE', photon_flux_upper_limit='2.06e-08', time_completed='2022-12-20 01:06:22.898811', job_id='13438', GAL2='0.84', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1671527182.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.96e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1750' AND source_name='4FGL J1339.9-0138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:06:22 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 13438: <4FGL_J1339.9-0138_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1339.9-0138_daily_bin1750> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec 20 00:55:17 2022
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 00:55:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 00:55:18 2022
Terminated at Tue Dec 20 01:06:23 2022
Results reported at Tue Dec 20 01:06:23 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.9-0138_daily_bin1750 204.976 -1.6378 692928001 693187201 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 :                                   535.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             246.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            666 sec.

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

