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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1747
RA = 354.904, Dec = 2.7102
tmin = 692150401, tmax = 692409601
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='817401', job_status='RUN', time_executed='2022-12-11 01:56:04.916736', time_epoch_executed='1670752564.92' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817401

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817401/ft1_4FGL_J2339.6+0242_daily_bin1747.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817401/ft2_4FGL_J2339.6+0242_daily_bin1747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817401/ft1_4FGL_J2339.6+0242_daily_bin1747.fits outfile=/scratch/kocevski/817401/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1747.fits ra=354.904 dec=2.7102 rad=12.0 tmin=692150401.0 tmax=692409601.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.98
user 3.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/817401/ft2_4FGL_J2339.6+0242_daily_bin1747.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/817401/ft2_4FGL_J2339.6+0242_daily_bin1747.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/817401/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1747.fits evtable="EVENTS" outfile="/scratch/kocevski/817401/ft1_filtered_4FGL_J2339.6+0242_daily_bin1747.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: 540

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817401/ft1_filtered_4FGL_J2339.6+0242_daily_bin1747.fits" evtable="EVENTS" scfile=/scratch/kocevski/817401/ft2_4FGL_J2339.6+0242_daily_bin1747.fits sctable="SC_DATA" outfile=/scratch/kocevski/817401/ltcube_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.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/817401/ft2_4FGL_J2339.6+0242_daily_bin1747.fits
.....................!
real 11.70
user 11.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817401/ft1_filtered_4FGL_J2339.6+0242_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/817401/ft2_4FGL_J2339.6+0242_daily_bin1747.fits sctable="SC_DATA" expcube=/scratch/kocevski/817401/ltcube_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.fits outfile=/scratch/kocevski/817401/expmap_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.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/817401/ltcube_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.fits
.....................!
real 190.67
user 185.03
sys 5.32

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

Setting source of interest to:
4FGL J2339.6+0242 @ 354.904 2.7102

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/817401/ft1_filtered_4FGL_J2339.6+0242_daily_bin1747.fits scfile=/scratch/kocevski/817401/ft2_4FGL_J2339.6+0242_daily_bin1747.fits outfile=/scratch/kocevski/817401/cmap_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.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=354.904 yref=2.7102 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817401/ft1_filtered_4FGL_J2339.6+0242_daily_bin1747.fits scfile=/scratch/kocevski/817401/ft2_4FGL_J2339.6+0242_daily_bin1747.fits outfile=/scratch/kocevski/817401/cmap_HighResolution_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.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=354.904 yref=2.7102 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817401/ft1_filtered_4FGL_J2339.6+0242_daily_bin1747.fits evtable="EVENTS" scfile=/scratch/kocevski/817401/ft2_4FGL_J2339.6+0242_daily_bin1747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817401/Model_4FGL_J2339.6+0242_daily_bin1747.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/817401/ft1_filtered_4FGL_J2339.6+0242_daily_bin1747.fits....................!
real 61.30
user 59.97
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/817401/ft1_filtered_4FGL_J2339.6+0242_daily_bin1747.fits', '/scratch/kocevski/817401/ft2_4FGL_J2339.6+0242_daily_bin1747.fits', expMap='/scratch/kocevski/817401/expmap_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.fits', expCube='/scratch/kocevski/817401/ltcube_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/817401/Model_4FGL_J2339.6+0242_daily_bin1747.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2339.6+0242'

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.280e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/817401/ft1_filtered_4FGL_J2339.6+0242_daily_bin1747.fits
Spacecraft file(s): /scratch/kocevski/817401/ft2_4FGL_J2339.6+0242_daily_bin1747.fits
Exposure map: /scratch/kocevski/817401/expmap_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.fits
Exposure cube: /scratch/kocevski/817401/ltcube_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/817401/Model_4FGL_J2339.6+0242_daily_bin1747.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) = 5924.00790759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10535E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    11.215       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.800       1.0000          .0000       .10000E+07
     4 'norm      '    .78720E-05   1.0000          .0000       .10000E+07
     5 'norm      '    .54878E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .36412E-03   1.0000          .0000       .10000E+07
     7 'norm      '    36.049       1.0000          .0000       .10000E+07
     8 'Prefactor '    .80725E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .79635E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .53561E-02   1.0000          .0000       .10000E+07
    11 'norm      '    1.0621       1.0000          .0000       .10000E+07
    12 'norm      '    4.5239       1.0000          .0000       .10000E+07
    13 'Prefactor '    .13186E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .81827E-02   1.0000          .0000       .10000E+07
    15 'norm      '    10.582       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.5805       1.0000          .0000       .10000E+07
    17 'Prefactor '    20.025       1.0000          .0000       .10000E+07
    18 'norm      '    49.804       1.0000          .0000       .10000E+07
    19 'norm      '    .45514       1.0000          .0000       .10000E+07
    20 'Prefactor '    7.0148       1.0000          .0000       .10000E+07
    21 'Prefactor '    71.149       1.0000          .0000       .10000E+07
    22 'Prefactor '    62.037       1.0000          .0000       .10000E+07
    23 'Normalizat'    .62915       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1756       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5923.844     FROM MIGRAD    STATUS=CONVERGED    192 CALLS     2059 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30531E-08    8.9384        .61127E-07** at limit **
   2  Prefactor     11.262        11.937        .61806E-06    .11087E-01
   3  Prefactor     14.116        11.196       -.11521E-07   -.11744E-02
   4  norm           .0000        5.0237        .55592E-07** at limit **
   5  norm           .0000        1.2998        .13402E-07** at limit **
   6  Prefactor     .21649E-08    7.4708       -.12620E-06** at limit **
   7  norm          35.742        3.8019        .11607E-06   -.86749E-01
   8  Prefactor     .17819E-07    15.139       -.80690E-07** at limit **
   9  Prefactor     .24869E-07    17.747       -.11254E-08** at limit **
  10  Prefactor     .99920E-08    8.5134       -.32787E-07** at limit **
  11  norm          1.0665        1.1486       -.82583E-08   -.43450E-02
  12  norm          4.5808        5.1496        .13847E-07   -.20985E-03
  13  Prefactor     .55511E-10    3.0556       -.17682E-06** at limit **
  14  Prefactor     .58842E-08    30.611       -.45540E-07** at limit **
  15  norm          10.637        11.152        .72687E-06    .22277E-01
  16  Prefactor     5.6709        9.0029       -.56756E-06   -.15435E-01
  17  Prefactor     19.699        5.2162       -.27805E-06    .12478    
  18  norm          49.880        1.3064       -.65328E-08   -.80090E-02
  19  norm          .14796        1653.4        .83026E-05** at limit **
  20  Prefactor     7.0585        5.5324       -.39503E-06   -.11306E-01
  21  Prefactor     74.217        46.550       -.20036E-06    .43975E-02
  22  Prefactor     62.575        32.247        .43856E-07   -.51266E-02
  23  Normalizat    .62486        .25143       -.74124E-06   -.15247E-03
  24  Prefactor     1.1763        .17369       -.18376E-05   -.27593E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.05311e-09
  Prefactor  = 11.262
  Prefactor  = 14.1159
  norm       = 0
  norm       = 0
  Prefactor  = 2.16493e-09
  norm       = 35.742
  Prefactor  = 1.78191e-08
  Prefactor  = 2.4869e-08
  Prefactor  = 9.99201e-09
  norm       = 1.06649
  norm       = 4.58076
  Prefactor  = 5.55112e-11
  Prefactor  = 5.88418e-09
  norm       = 10.6375
  Prefactor  = 5.67087
  Prefactor  = 19.6987
  norm       = 49.8797
  norm       = 0.147965
  Prefactor  = 7.05848
  Prefactor  = 74.2173
  Prefactor  = 62.5749
  Normalizat = 0.624864
  Prefactor  = 1.17627
 **********
 **   18 **HESSE 
 **********

 FCN=   5923.844     FROM HESSE     STATUS=OK           459 CALLS     2518 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30531E-08    8.9478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     11.262        12.055        .29891E-03   -1.5641    
   3  Prefactor     14.116        11.240        .26937E-03   -1.5633    
   4  norm           .0000        1.2154        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.3003        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .21649E-08    7.4772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          35.742        18.989        .16657E-03   -1.5588    
   8  Prefactor     .17819E-07    15.302        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .24869E-07    17.846        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .99920E-08    8.5398        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0665        1.1890        .11868E-02   -1.5687    
  12  norm          4.5808        5.1644        .47309E-03   -1.5665    
  13  Prefactor     .55511E-10    3.0833        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .58842E-08    30.597        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.637        11.434        .30776E-03   -1.5643    
  16  Prefactor     5.6709        9.3992        .42504E-03   -1.5660    
  17  Prefactor     19.699        17.348        .22354E-03   -1.5619    
  18  norm          49.880        23.368        .14171E-03   -1.5567    
  19  norm          .14796        48.278        .11173E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.0585        5.6123        .37853E-03   -1.5655    
  21  Prefactor     74.217        46.763        .11856E-03   -1.5536    
  22  Prefactor     62.575        32.682        .12697E-03   -1.5550    
  23  Normalizat    .62486        .23350        .83539E-01   -1.0694    
  24  Prefactor     1.1763        .15737        .35236E-01   -.87065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26546e-07
Minuit parameter uncertainties:
  1  0.00033191
  2  12.055
  3  11.2398
  4  4.22014e-06
  5  2.61037e-07
  6  0.000254084
  7  18.989
  8  0.00104365
  9  0.00133193
  10  0.000583536
  11  1.18903
  12  5.16444
  13  2.50438e-05
  14  0.000850185
  15  11.4337
  16  9.3992
  17  17.3485
  18  23.3685
  19  5.34548
  20  5.61231
  21  46.7632
  22  32.682
  23  0.233868
  24  0.157432
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.422e+01  4.676e+01  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  2.549e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.176e+00  1.574e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  6.249e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.58
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.98e-08 +/- 5.65e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.56e-05

TS (Fixed Index): 3.58
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817401/likelihoodResults_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.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) = 5923.46115612
delta logL = 0.382758282627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5923.45599623
delta logL = 0.387918176309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.343       1.0000          .0000       .10000E+07
     2 'Index     '    3.1332       1.0000          .0000       10.000    
     3 'Normalizat'    .58926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+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=   5923.456     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      294 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.347        60.169        .63778E-05   -.73084E-04
   2  Index         3.1332        .94798        .48569E-02    .49370E-03
   3  Normalizat    .58934        .24372        .38001E-03    .44486E-04
   4  Prefactor     1.1955        .17485        .19857E-03    .14144E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.3473
  Index      = 3.13318
  Normalizat = 0.589344
  Prefactor  = 1.19547
 **********
 **   18 **HESSE 
 **********

 FCN=   5923.456     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.347        50.047        .25511E-06   -1.5583    
   2  Index         3.1332        .78990        .97139E-03   -.38263    
   3  Normalizat    .58934        .24336        .15200E-04   -1.0844    
   4  Prefactor     1.1955        .17438        .39715E-04   -.86471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5283e-11
Minuit parameter uncertainties:
  1  50.0477
  2  0.793764
  3  0.243801
  4  0.174466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817401': 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) = 5923.45599594
delta logL = 0.387918469346

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.935e+01  5.005e+01  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  3.133e+00  7.938e-01  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.195e+00  1.745e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  5.893e-01  2.438e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.45
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.13 +/- 0.79
Photon Flux (Free Index): 1.15e-07 +/- 6.69e-08
Energy Flux (Free Index): 2.16e-05 +/- 1.31e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/817401/cmap_HighResolution_692150401_692409601_4FGL_J2339.6+0242_daily_bin1747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.56e-02', comment='SUCCESS', photon_flux='8.98e-08', energy_flux2='2.16e-05', photon_flux_error='5.65e-08', dlogl='3.88e-01', energy_flux='2.48e-05', photon_flux2='1.15e-07', job_status='DONE', time_completed='2022-12-11 02:06:13.728339', photon_index_error2='0.79', photon_index2='3.13', ts='3.58', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.99e-07', energy_flux_error2='1.31e-05', EG='0.62', time_epoch_completed='1670753173.73', return_code='0', job_id='817401', GAL2='1.20', EG2='0.59', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='6.69e-08', ts2='4.45', photon_index='2.55' WHERE bin_id='1747' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 11 02:06:13 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 817401: <4FGL_J2339.6+0242_daily_bin1747> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1747> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Dec 11 01:55:14 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 11 01:55:15 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 11 01:55:15 2022
Terminated at Sun Dec 11 02:06:14 2022
Results reported at Sun Dec 11 02:06:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1747 354.904 2.7102 692150401 692409601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2339.6+0242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   611.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   659 sec.
    Turnaround time :                            660 sec.

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

