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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1771
RA = 204.756, Dec = -24.0085
tmin = 698371201, tmax = 698630401
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='548884', job_status='RUN', time_executed='2023-02-21 00:56:50.160185', time_epoch_executed='1676969810.16' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548884

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548884/ft1_4FGL_J1339.0-2400_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548884/ft2_4FGL_J1339.0-2400_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548884/ft1_4FGL_J1339.0-2400_daily_bin1771.fits outfile=/scratch/kocevski/548884/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1771.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=698371201.0 tmax=698630401.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.12
user 2.87
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/548884/ft2_4FGL_J1339.0-2400_daily_bin1771.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548884/ft2_4FGL_J1339.0-2400_daily_bin1771.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/548884/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1771.fits evtable="EVENTS" outfile="/scratch/kocevski/548884/ft1_filtered_4FGL_J1339.0-2400_daily_bin1771.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.52
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 771

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548884/ft1_filtered_4FGL_J1339.0-2400_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/548884/ft2_4FGL_J1339.0-2400_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/548884/ltcube_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.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/548884/ft2_4FGL_J1339.0-2400_daily_bin1771.fits
.....................!
real 12.54
user 12.19
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548884/ft1_filtered_4FGL_J1339.0-2400_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/548884/ft2_4FGL_J1339.0-2400_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/548884/ltcube_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.fits outfile=/scratch/kocevski/548884/expmap_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.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/548884/ltcube_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.fits
.....................!
real 191.64
user 186.31
sys 4.77

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.
Added 192 point sources and 1 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 J1339.0-2400 @ 204.756 -24.0085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/548884/ft1_filtered_4FGL_J1339.0-2400_daily_bin1771.fits scfile=/scratch/kocevski/548884/ft2_4FGL_J1339.0-2400_daily_bin1771.fits outfile=/scratch/kocevski/548884/cmap_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.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.756 yref=-24.0085 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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548884/ft1_filtered_4FGL_J1339.0-2400_daily_bin1771.fits scfile=/scratch/kocevski/548884/ft2_4FGL_J1339.0-2400_daily_bin1771.fits outfile=/scratch/kocevski/548884/cmap_HighResolution_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.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.756 yref=-24.0085 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/548884/ft1_filtered_4FGL_J1339.0-2400_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/548884/ft2_4FGL_J1339.0-2400_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/548884/Model_4FGL_J1339.0-2400_daily_bin1771.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 GAL_V02
Working on...
/scratch/kocevski/548884/ft1_filtered_4FGL_J1339.0-2400_daily_bin1771.fits.....................!
real 137.38
user 135.32
sys 1.34

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/548884/ft1_filtered_4FGL_J1339.0-2400_daily_bin1771.fits', '/scratch/kocevski/548884/ft2_4FGL_J1339.0-2400_daily_bin1771.fits', expMap='/scratch/kocevski/548884/expmap_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.fits', expCube='/scratch/kocevski/548884/ltcube_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/548884/Model_4FGL_J1339.0-2400_daily_bin1771.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.0-2400'

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  8.627e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/548884/ft1_filtered_4FGL_J1339.0-2400_daily_bin1771.fits
Spacecraft file(s): /scratch/kocevski/548884/ft2_4FGL_J1339.0-2400_daily_bin1771.fits
Exposure map: /scratch/kocevski/548884/expmap_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.fits
Exposure cube: /scratch/kocevski/548884/ltcube_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/548884/Model_4FGL_J1339.0-2400_daily_bin1771.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) = 8333.77680638

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5628       1.0000          .0000       .10000E+07
     2 'Prefactor '    .51538       1.0000          .0000       .10000E+07
     3 'norm      '    4.7355       1.0000          .0000       .10000E+07
     4 'norm      '    8.5798       1.0000          .0000       .10000E+07
     5 'Prefactor '    .45710E-05   1.0000          .0000       .10000E+07
     6 'norm      '    .61699       1.0000          .0000       .10000E+07
     7 'norm      '    13.145       1.0000          .0000       .10000E+07
     8 'Prefactor '    .54588E-02   1.0000          .0000       .10000E+07
     9 'norm      '    10.592       1.0000          .0000       .10000E+07
    10 'norm      '    5.5741       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.861       1.0000          .0000       .10000E+07
    12 'Prefactor '    17.282       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.9201       1.0000          .0000       .10000E+07
    14 'Prefactor '    .40756E-06   1.0000          .0000       .10000E+07
    15 'norm      '    .11403E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    4.9967       1.0000          .0000       .10000E+07
    17 'norm      '    .56480E-03   1.0000          .0000       .10000E+07
    18 'norm      '    8.1735       1.0000          .0000       .10000E+07
    19 'Prefactor '    7.3020       1.0000          .0000       .10000E+07
    20 'Prefactor '    .38983E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    14.584       1.0000          .0000       .10000E+07
    22 'Prefactor '    .54390E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.3518       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91241       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8333.757     FROM MIGRAD    STATUS=CONVERGED    179 CALLS     1585 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5625        1.7458       -.66412E-07   -.12667E-02
   2  Prefactor     .10536E-06    59.340        .35392E-05** at limit **
   3  norm          4.7455        7.1011        .15604E-06   -.10615E-03
   4  norm          8.5921        6.7202        .12012E-07   -.52040E-03
   5  Prefactor      .0000        2.6774       -.14776E-06** at limit **
   6  norm          .60347        2.3637        .48956E-07    .30081E-03
   7  norm          13.121        7.1806       -.42025E-07    .64125E-03
   8  Prefactor     .42188E-08    45.129        .47250E-05** at limit **
   9  norm          10.671        6.1832        .21215E-06    .67291E-02
  10  norm          5.5997        8.4128        .12154E-06    .17234E-02
  11  Prefactor     11.738        13.180       -.79601E-06   -.58788E-02
  12  Prefactor     16.800        2.8714       -.27003E-07    .73134E-02
  13  Prefactor     5.9210        5.7120        .10824E-06    .48750E-03
  14  Prefactor      .0000        4.5130        .14815E-06** at limit **
  15  norm           .0000        1.6293        .15349E-06** at limit **
  16  Prefactor     2.7166        236.14        .16552E-04    .13856E-01
  17  norm          .49960E-09    11.455       -.13428E-06** at limit **
  18  norm          8.1724        1.6046        .29054E-07    .41464E-03
  19  Prefactor     7.3198        4.2212        .14339E-07   -.11026E-02
  20  Prefactor     .66058E-08    20.582        .36062E-07** at limit **
  21  Prefactor     15.431        22.529       -.32791E-05    .75725E-01
  22  Prefactor     .16653E-09    10.131        .57347E-06** at limit **
  23  Normalizat    1.3516        .30693        .17968E-04    .35987E-04
  24  Prefactor     .91300        .12931       -.72239E-05    .64806E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.56249
  Prefactor  = 1.0536e-07
  norm       = 4.74552
  norm       = 8.59207
  Prefactor  = 0
  norm       = 0.603466
  norm       = 13.1214
  Prefactor  = 4.21885e-09
  norm       = 10.6705
  norm       = 5.59969
  Prefactor  = 11.7383
  Prefactor  = 16.8003
  Prefactor  = 5.92099
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.71655
  norm       = 4.996e-10
  norm       = 8.17241
  Prefactor  = 7.31984
  Prefactor  = 6.60583e-09
  Prefactor  = 15.4306
  Prefactor  = 1.66533e-10
  Normalizat = 1.35161
  Prefactor  = 0.912997
 **********
 **   18 **HESSE 
 **********

 FCN=   8333.757     FROM HESSE     STATUS=OK           451 CALLS     2036 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5625        1.7455        .53520E-03   -1.5670    
   2  Prefactor     .10536E-06    59.508        .77177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.7455        7.1114        .46215E-03   -1.5664    
   4  norm          8.5921        6.7415        .34198E-03   -1.5649    
   5  Prefactor      .0000        2.6762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .60347        2.3726        .67720E-03   -1.5692    
   7  norm          13.121        7.1915        .27602E-03   -1.5636    
   8  Prefactor     .42188E-08    45.305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.671        6.1954        .30761E-03   -1.5643    
  10  norm          5.5997        8.4297        .42529E-03   -1.5661    
  11  Prefactor     11.738        13.270        .29062E-03   -1.5639    
  12  Prefactor     16.800        21.730        .24065E-03   -1.5626    
  13  Prefactor     5.9210        5.7109        .41248E-03   -1.5659    
  14  Prefactor      .0000        4.5274        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.6307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7166        277.76        .44964E-03   -1.5675    
  17  norm          .49960E-09    11.458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.1724        15.544        .35044E-03   -1.5651    
  19  Prefactor     7.3198        4.7023        .37094E-03   -1.5654    
  20  Prefactor     .66058E-08    20.884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.431        63.095        .26201E-03   -1.5629    
  22  Prefactor     .16653E-09    10.107        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3516        .25473        .82491E-01   -.82039    
  24  Prefactor     .91300        .10714        .45163E-01   -.95688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75537e-06
Minuit parameter uncertainties:
  1  1.74551
  2  0.00500771
  3  7.11145
  4  6.74152
  5  1.10533e-05
  6  2.37256
  7  7.19155
  8  0.000872367
  9  6.19543
  10  8.4297
  11  13.2699
  12  21.7304
  13  5.71088
  14  2.12387e-05
  15  2.55456e-06
  16  54.9411
  17  0.00015446
  18  15.544
  19  4.70231
  20  0.000742489
  21  62.406
  22  7.57134e-05
  23  0.254967
  24  0.107167
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  1.680e+01  2.173e+01  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  9.130e-01  1.072e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.352e+00  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.82
Ra Dec: 204.756 -24.009
Photon Flux Upper Limit: 1.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548884/likelihoodResults_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.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) = 8333.60114651
delta logL = 0.155809924983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8333.59002991
delta logL = 0.166926531387

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.157       1.0000          .0000       .10000E+07
     2 'Index     '    1.7950       1.0000          .0000       10.000    
     3 'Normalizat'    1.3659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90838       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+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=   8333.590     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      275 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.158        26.777        .83142E-05   -.40906E-02
   2  Index         1.7946        .76364        .12323E-01   -.14745E-03
   3  Normalizat    1.3659        .29561        .36354E-03    .95693E-04
   4  Prefactor     .90838        .12763        .18647E-03    .20878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1585
  Index      = 1.79462
  Normalizat = 1.36591
  Prefactor  = 0.90838
 **********
 **   18 **HESSE 
 **********

 FCN=   8333.590     FROM HESSE     STATUS=OK            23 CALLS      298 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.158        26.780        .16628E-05   -1.5612    
   2  Index         1.7946        .76413        .49293E-03   -.69590    
   3  Normalizat    1.3659        .29585        .14542E-04   -.81620    
   4  Prefactor     .90838        .12774        .37293E-04   -.95849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4499e-09
Minuit parameter uncertainties:
  1  26.7799
  2  0.769268
  3  0.29622
  4  0.127782
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548884': 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) = 8333.59002982
delta logL = 0.166926616503

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  2.316e+01  2.678e+01  0.000e+00  1.000e+06 ( 1.000e-13)
310        Index:  1.795e+00  7.693e-01  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  9.084e-01  1.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.366e+00  2.962e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 204.756 -24.009
Photon Index (Free Index): 1.79 +/- 0.77
Photon Flux (Free Index): 1.97e-08 +/- 2.87e-08
Energy Flux (Free Index): 2.39e-05 +/- 4.39e-05

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/548884/cmap_HighResolution_698371201_698630401_4FGL_J1339.0-2400_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.04e-03', comment='SUCCESS', energy_flux2='2.39e-05', dlogl='1.67e-01', photon_flux2='1.97e-08', job_status='DONE', time_completed='2023-02-21 01:09:31.012443', photon_index_error2='0.77', photon_index2='1.79', ts='0.82', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.18e-07', energy_flux_error2='4.39e-05', EG='1.35', time_epoch_completed='1676970571.01', return_code='0', job_id='548884', GAL2='0.91', EG2='1.37', return_code2='0', photon_flux_error2='2.87e-08', ts2='1.15', photon_index='2.30' WHERE bin_id='1771' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 01:09:31 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 548884: <4FGL_J1339.0-2400_daily_bin1771> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin1771> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb 21 00:55:20 2023
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:55:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:55:21 2023
Terminated at Tue Feb 21 01:09:31 2023
Results reported at Tue Feb 21 01:09:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1771 204.756 -24.0085 698371201 698630401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.0-2400 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   761.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            851 sec.

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

