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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1763
RA = 354.904, Dec = 2.7102
tmin = 696297601, tmax = 696556801
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='299378', job_status='RUN', time_executed='2023-01-28 01:57:26.378007', time_epoch_executed='1674899846.38' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/299378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/299378/ft1_4FGL_J2339.6+0242_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/299378/ft2_4FGL_J2339.6+0242_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/299378/ft1_4FGL_J2339.6+0242_daily_bin1763.fits outfile=/scratch/kocevski/299378/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1763.fits ra=354.904 dec=2.7102 rad=12.0 tmin=696297601.0 tmax=696556801.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.68
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/299378/ft2_4FGL_J2339.6+0242_daily_bin1763.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/299378/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1763.fits evtable="EVENTS" outfile="/scratch/kocevski/299378/ft1_filtered_4FGL_J2339.6+0242_daily_bin1763.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.51
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 539

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/299378/ft1_filtered_4FGL_J2339.6+0242_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/299378/ft2_4FGL_J2339.6+0242_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/299378/ltcube_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.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/299378/ft2_4FGL_J2339.6+0242_daily_bin1763.fits
.....................!
real 14.15
user 13.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/299378/ft1_filtered_4FGL_J2339.6+0242_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/299378/ft2_4FGL_J2339.6+0242_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/299378/ltcube_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.fits outfile=/scratch/kocevski/299378/expmap_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.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/299378/ltcube_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.fits
.....................!
real 189.93
user 185.16
sys 4.33

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/299378/ft1_filtered_4FGL_J2339.6+0242_daily_bin1763.fits scfile=/scratch/kocevski/299378/ft2_4FGL_J2339.6+0242_daily_bin1763.fits outfile=/scratch/kocevski/299378/cmap_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/299378/ft1_filtered_4FGL_J2339.6+0242_daily_bin1763.fits scfile=/scratch/kocevski/299378/ft2_4FGL_J2339.6+0242_daily_bin1763.fits outfile=/scratch/kocevski/299378/cmap_HighResolution_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.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.58
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/299378/ft1_filtered_4FGL_J2339.6+0242_daily_bin1763.fits', '/scratch/kocevski/299378/ft2_4FGL_J2339.6+0242_daily_bin1763.fits', expMap='/scratch/kocevski/299378/expmap_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.fits', expCube='/scratch/kocevski/299378/ltcube_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/299378/Model_4FGL_J2339.6+0242_daily_bin1763.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/299378/ft1_filtered_4FGL_J2339.6+0242_daily_bin1763.fits
Spacecraft file(s): /scratch/kocevski/299378/ft2_4FGL_J2339.6+0242_daily_bin1763.fits
Exposure map: /scratch/kocevski/299378/expmap_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.fits
Exposure cube: /scratch/kocevski/299378/ltcube_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/299378/Model_4FGL_J2339.6+0242_daily_bin1763.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) = 5889.41477936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11052E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12486E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .20848E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .58080       1.0000          .0000       .10000E+07
     5 'norm      '    5.0866       1.0000          .0000       .10000E+07
     6 'Prefactor '    .34065E-04   1.0000          .0000       .10000E+07
     7 'norm      '    9.2171       1.0000          .0000       .10000E+07
     8 'Prefactor '    29.347       1.0000          .0000       .10000E+07
     9 'Prefactor '    .57883E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.5640       1.0000          .0000       .10000E+07
    11 'norm      '    1.5379       1.0000          .0000       .10000E+07
    12 'norm      '    .47229E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .14367E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    22.727       1.0000          .0000       .10000E+07
    15 'norm      '    .31379E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .42175E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    .21306E-01   1.0000          .0000       .10000E+07
    18 'norm      '    12.790       1.0000          .0000       .10000E+07
    19 'norm      '    .75955E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.8552       1.0000          .0000       .10000E+07
    21 'Prefactor '    16.030       1.0000          .0000       .10000E+07
    22 'Prefactor '    .35613E-01   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0654       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0351       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=   5889.392     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     1995 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16154E-07    37.589        .97479E-07** at limit **
   2  Prefactor     .77716E-09    9.4693        .12004E-06** at limit **
   3  Prefactor     .54401E-08    23.506       -.23764E-06** at limit **
   4  norm          .56560        4.2034        .11473E-06    .94124E-03
   5  norm          5.0998        5.5490       -.11798E-08    .73181E-05
   6  Prefactor     .26645E-08    9.8737       -.35685E-08** at limit **
   7  norm          9.2204        4.6160        .81326E-08    .47824E-01
   8  Prefactor     29.154        5.7495        .47620E-07   -.17753E-01
   9  Prefactor      .0000        7.7964        .83944E-07** at limit **
  10  Prefactor     5.5749        2.5091       -.14269E-08   -.10788E-01
  11  norm          1.5362        1.0560       -.54988E-09    .49734E-04
  12  norm           .0000        4.1240       -.29108E-07** at limit **
  13  Prefactor      .0000        4.4101       -.20471E-07** at limit **
  14  Prefactor     22.650        2.7921        .24764E-07   -.19874E-01
  15  norm           .0000        2.1088        .36967E-07** at limit **
  16  Prefactor      .0000        1.7441       -.19688E-07** at limit **
  17  Prefactor      .0000        15.671        .32239E-07** at limit **
  18  norm          12.775        1.4111        .43485E-08   -.14547E-03
  19  norm          .99920E-09    10.800        .44397E-07** at limit **
  20  Prefactor     4.8669        4.8238        .17596E-07    .82709E-03
  21  Prefactor     14.994        36.834        .39572E-06   -.11338E-01
  22  Prefactor     .23564E-02    89.028        .59900E-06** at limit **
  23  Normalizat    1.0669        .24754       -.23177E-05    .26492E-04
  24  Prefactor     1.0349        .16633        .14828E-05    .83436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61537e-08
  Prefactor  = 7.77156e-10
  Prefactor  = 5.44009e-09
  norm       = 0.565601
  norm       = 5.09983
  Prefactor  = 2.66454e-09
  norm       = 9.22036
  Prefactor  = 29.1543
  Prefactor  = 0
  Prefactor  = 5.57488
  norm       = 1.53617
  norm       = 0
  Prefactor  = 0
  Prefactor  = 22.6499
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 12.7752
  norm       = 9.99201e-10
  Prefactor  = 4.86694
  Prefactor  = 14.9937
  Prefactor  = 0.00235642
  Normalizat = 1.06693
  Prefactor  = 1.03488
 **********
 **   18 **HESSE 
 **********

 FCN=   5889.392     FROM HESSE     STATUS=OK           449 CALLS     2444 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16154E-07    37.514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .77716E-09    9.6039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .54401E-08    23.204        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .56560        4.2532        .70966E-03   -1.5693    
   5  norm          5.0998        5.5587        .44557E-03   -1.5663    
   6  Prefactor     .26645E-08    11.030        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.2204        11.378        .32987E-03   -1.5647    
   8  Prefactor     29.154        31.282        .18462E-03   -1.5600    
   9  Prefactor      .0000        7.8423        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5749        12.416        .42568E-03   -1.5661    
  11  norm          1.5362        1.0722        .85968E-03   -1.5683    
  12  norm           .0000        4.1293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        4.4158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.650        46.903        .20982E-03   -1.5613    
  15  norm           .0000        2.1124        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        1.7453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        15.448        .16952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.775        15.502        .27983E-03   -1.5636    
  19  norm          .99920E-09    11.599        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8669        4.8231        .45629E-03   -1.5664    
  21  Prefactor     14.994        38.374        .24989E-03   -1.5631    
  22  Prefactor     .23564E-02    19.076        .10652E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0669        .21652        .64866E-01   -.90821    
  24  Prefactor     1.0349        .14369        .40873E-01   -.91576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03966e-07
Minuit parameter uncertainties:
  1  0.00155777
  2  0.000174352
  3  0.000710453
  4  3.102
  5  5.55867
  6  0.000343037
  7  11.3775
  8  31.2819
  9  1.16321e-05
  10  12.4162
  11  1.07218
  12  1.41117e-05
  13  2.07731e-05
  14  46.9037
  15  1.19911e-05
  16  4.26515e-07
  17  1.29994e-05
  18  15.502
  19  0.000214425
  20  4.82311
  21  38.3744
  22  0.424035
  23  0.216702
  24  0.143741
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  1.499e+01  3.837e+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.035e+00  1.437e-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:  1.067e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/299378/likelihoodResults_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.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) = 5888.88807168
delta logL = 0.504364019357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5888.88329107
delta logL = 0.509144624049

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2353       1.0000          .0000       .10000E+07
     2 'Index     '    3.8507       1.0000          .0000       10.000    
     3 'Normalizat'    1.0190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0537       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.

 FCN=   5888.883     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      264 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2353        177.51        .40177E-03    .38084E-02
   2  Index         3.8506        6.7988        .13408        .12661E-03
   3  Normalizat    1.0192        .70007E-01    .66171E-01    .13986E-04
   4  Prefactor     1.0536        .48849E-01    .39699E-01    .30501E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.23529
  Index      = 3.85056
  Normalizat = 1.01918
  Prefactor  = 1.05358
 **********
 **   18 **HESSE 
 **********

 FCN=   5888.883     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2353        248.07        .16071E-04   -1.5658    
   2  Index         3.8506        6.9054        .70585E-02   -.23196    
   3  Normalizat    1.0192        .23723        .29270E-03   -.92390    
   4  Prefactor     1.0536        .16885        .20575E-03   -.90964    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94635e-07
Minuit parameter uncertainties:
  1  78.6612
  2  7.12847
  3  0.237479
  4  0.168934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/299378': 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) = 5888.88329087
delta logL = 0.509144823694

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.235e+00  7.866e+01  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  3.851e+00  7.128e+00  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.054e+00  1.689e-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:  1.019e+00  2.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.25
Ra Dec: 354.904 2.710
Photon Index (Free Index): 3.85 +/- 7.13
Photon Flux (Free Index): 5.95e-08 +/- 6.67e-08
Energy Flux (Free Index): 9.14e-06 +/- 1.89e-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/299378/cmap_HighResolution_696297601_696556801_4FGL_J2339.6+0242_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.61e-03', comment='SUCCESS', energy_flux2='9.14e-06', dlogl='5.09e-01', photon_flux2='5.95e-08', job_status='DONE', time_completed='2023-01-28 02:07:09.554827', photon_index_error2='7.13', photon_index2='3.85', ts='0.18', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.89e-05', EG='1.07', time_epoch_completed='1674900429.55', return_code='0', job_id='299378', GAL2='1.05', EG2='1.02', return_code2='0', photon_flux_error2='6.67e-08', ts2='1.25', photon_index='2.55' WHERE bin_id='1763' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 02:07:09 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 299378: <4FGL_J2339.6+0242_daily_bin1763> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1763> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Jan 28 01:55:14 2023
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 01:55:54 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 01:55:54 2023
Terminated at Sat Jan 28 02:07:10 2023
Results reported at Sat Jan 28 02:07:10 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1763 354.904 2.7102 696297601 696556801 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 :                                   585.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             299.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            716 sec.

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

