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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1727
RA = 354.904, Dec = 2.7102
tmin = 686966401, tmax = 687225601
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='215497', job_status='RUN', time_executed='2022-10-12 00:44:09.309115', time_epoch_executed='1665560649.31' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/215497

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/215497/ft1_4FGL_J2339.6+0242_daily_bin1727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/215497/ft2_4FGL_J2339.6+0242_daily_bin1727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/215497/ft1_4FGL_J2339.6+0242_daily_bin1727.fits outfile=/scratch/kocevski/215497/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1727.fits ra=354.904 dec=2.7102 rad=12.0 tmin=686966401.0 tmax=687225601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.89
user 2.68
sys 0.19

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

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

Number of photons that the gtmktime cut: 74

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/215497/ft1_filtered_4FGL_J2339.6+0242_daily_bin1727.fits evtable="EVENTS" scfile=/scratch/kocevski/215497/ft2_4FGL_J2339.6+0242_daily_bin1727.fits sctable="SC_DATA" expcube=/scratch/kocevski/215497/ltcube_686966401_687225601_4FGL_J2339.6+0242_daily_bin1727.fits outfile=/scratch/kocevski/215497/expmap_686966401_687225601_4FGL_J2339.6+0242_daily_bin1727.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/215497/ltcube_686966401_687225601_4FGL_J2339.6+0242_daily_bin1727.fits
.....................!
real 190.03
user 185.09
sys 4.59

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/215497/ft1_filtered_4FGL_J2339.6+0242_daily_bin1727.fits scfile=/scratch/kocevski/215497/ft2_4FGL_J2339.6+0242_daily_bin1727.fits outfile=/scratch/kocevski/215497/cmap_686966401_687225601_4FGL_J2339.6+0242_daily_bin1727.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/215497/ft1_filtered_4FGL_J2339.6+0242_daily_bin1727.fits scfile=/scratch/kocevski/215497/ft2_4FGL_J2339.6+0242_daily_bin1727.fits outfile=/scratch/kocevski/215497/cmap_HighResolution_686966401_687225601_4FGL_J2339.6+0242_daily_bin1727.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17995E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .90963E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    36.010       1.0000          .0000       .10000E+07
     4 'norm      '    .61533E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .24545       1.0000          .0000       .10000E+07
     6 'Prefactor '    .12028E-03   1.0000          .0000       .10000E+07
     7 'norm      '    20.902       1.0000          .0000       .10000E+07
     8 'Prefactor '    30.400       1.0000          .0000       .10000E+07
     9 'Prefactor '    39.232       1.0000          .0000       .10000E+07
    10 'Prefactor '    .56163E-01   1.0000          .0000       .10000E+07
    11 'norm      '    .89684E-06   1.0000          .0000       .10000E+07
    12 'norm      '    .12865E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .25511E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    263.20       1.0000          .0000       .10000E+07
    15 'norm      '    .88374E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .24942E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .16887E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .40813E-01   1.0000          .0000       .10000E+07
    19 'norm      '    227.58       1.0000          .0000       .10000E+07
    20 'Prefactor '    .75547E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .86406       1.0000          .0000       .10000E+07
    22 'Prefactor '    .24130E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4171       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=   940.6798     FROM MIGRAD    STATUS=CONVERGED    214 CALLS     3208 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27990E-05    43.528       -.90662E-07** at limit **
   2  Prefactor     .11102E-09    71.263        .10475E-07** at limit **
   3  Prefactor     36.210        11.655       -.37584E-07    .33307E-01
   4  norm          .94369E-09    11.533        .53349E-08** at limit **
   5  norm          .20364E-03    325.28        .90518E-06** at limit **
   6  Prefactor     .12353E-03    64.090       -.21152E-06** at limit **
   7  norm          21.096        27.915        .22553E-07    .47353E-02
   8  Prefactor     54.061        167.96        .12685E-05    .94205E-02
   9  Prefactor     35.210        62.539       -.94434E-06    .31263E-01
  10  Prefactor     .55511E-10    75.935       -.42720E-06** at limit **
  11  norm           .0000        1.2225        .10567E-08** at limit **
  12  norm          .15080        60.279       -.15879E-05** at limit **
  13  Prefactor      .0000        23.476       -.27545E-07** at limit **
  14  Prefactor     263.18        40.728        .91363E-07   -.34763    
  15  norm          .93814E-08    16.098        .52030E-07** at limit **
  16  Prefactor      .0000        19.828        .14003E-07** at limit **
  17  Prefactor     .66586E-06    47.450       -.17266E-06** at limit **
  18  norm          .55511E-10    58.480       -.48181E-07** at limit **
  19  norm          217.25        117.05        .22256E-07    .63469E-01
  20  Prefactor     .70827E-06    60.201       -.21593E-05** at limit **
  21  Prefactor     .85246E-02    42.539       -.86068E-06** at limit **
  22  Prefactor     .14428E-05    71.650       -.14210E-06** at limit **
  23  Normalizat    .10000E-01    .19784       -.20837E-05** at limit **
  24  Prefactor     1.4076        .27723        .39390E-06    .25728E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.79904e-06
  Prefactor  = 1.11022e-10
  Prefactor  = 36.2102
  norm       = 9.4369e-10
  norm       = 0.000203641
  Prefactor  = 0.000123529
  norm       = 21.0963
  Prefactor  = 54.0612
  Prefactor  = 35.2104
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 0.150795
  Prefactor  = 0
  Prefactor  = 263.181
  norm       = 9.38138e-09
  Prefactor  = 0
  Prefactor  = 6.65856e-07
  norm       = 5.55112e-11
  norm       = 217.253
  Prefactor  = 7.08267e-07
  Prefactor  = 0.00852456
  Prefactor  = 1.44285e-06
  Normalizat = 0.01
  Prefactor  = 1.40762
 **********
 **   18 **HESSE 
 **********

 FCN=   940.6798     FROM HESSE     STATUS=OK           445 CALLS     3653 TOTAL
                     EDM=   .45E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27990E-05    44.027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11102E-09    71.594        .14179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.210        37.802        .16666E-03   -1.5588    
   4  norm          .94369E-09    11.645        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .20364E-03    391.86        .11017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12353E-03    690.80        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.096        27.857        .21880E-03   -1.5616    
   8  Prefactor     54.061        168.90        .18140E-03   -1.5561    
   9  Prefactor     35.210        68.777        .15967E-03   -1.5589    
  10  Prefactor     .55511E-10    40.037        .56355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.2309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .15080        23.939        .49683E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        23.338        .16698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     263.18        288.09        .61647E-04   -1.5383    
  15  norm          .93814E-08    16.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        19.821        .16731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .66586E-06    47.575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .55511E-10    58.678        .15927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          217.25        127.54        .66295E-04   -1.5413    
  20  Prefactor     .70827E-06    58.763        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .85246E-02    2301.5        .48277E-03   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .14428E-05    72.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .10000E-01    .19087        .19179       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4076        .28557        .30830E-01   -.80161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48377e-05
Minuit parameter uncertainties:
  1  0.0222021
  2  0.000167303
  3  37.8019
  4  0.000208471
  5  0.565012
  6  0.584306
  7  27.857
  8  168.917
  9  68.7783
  10  0.000108313
  11  4.21005e-06
  12  3.79996
  13  3.26318e-05
  14  288.107
  15  0.000776991
  16  1.62393e-05
  17  0.0112568
  18  9.70424e-05
  19  127.537
  20  0.0129029
  21  8.86206
  22  0.0204016
  23  1.94117e-07
  24  0.28589
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.525e-03  8.862e+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

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.408e+00  2.859e-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.000e-02  1.941e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/215497/likelihoodResults_686966401_687225601_4FGL_J2339.6+0242_daily_bin1727.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) = 940.68004463
delta logL = -0.000230673655892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 940.679812482
delta logL = 1.47413277318e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42553E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.7176       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4074       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=   940.6798     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      247 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41411E-07    55.106        .42118E-03** at limit **
   2  Index         2.9211        7.6413        .50000        .16769E-09
   3  Normalizat    .10000E-01    .90428E-05    .19179    ** at limit **
   4  Prefactor     1.4076        .15856E-02    .30960E-01    .44499E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.14113e-08
  Index      = 2.92112
  Normalizat = 0.01
  Prefactor  = 1.40762
 **********
 **   18 **HESSE 
 **********

 FCN=   940.6798     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41411E-07    279.01        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9211        5.6986        .50000       -.42880    
   3  Normalizat    .10000E-01    .52623E-04    .79103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4076        .35621E-02    .18953E-03   -.80161    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.82014e-12
Minuit parameter uncertainties:
  1  0.00679795
  2  9551.81
  3  4.75712e-08
  4  0.00356207
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/215497': 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) = 940.679812111
delta logL = 1.84515602086e-06

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  4.141e-08  6.798e-03  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  2.921e+00  9.552e+03  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.408e+00  3.562e-03  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.000e-02  4.757e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 354.904 2.710

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/215497/cmap_HighResolution_686966401_687225601_4FGL_J2339.6+0242_daily_bin1727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.42e-02', job_status='DONE', photon_flux_upper_limit='8.23e-07', time_completed='2022-10-12 00:50:10.466596', job_id='215497', GAL2='1.41', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1665561010.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='1.85e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1727' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Oct 12 00:50:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 215497: <4FGL_J2339.6+0242_daily_bin1727> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1727> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Oct 12 00:40:20 2022
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 12 00:40:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 12 00:40:22 2022
Terminated at Wed Oct 12 00:50:11 2022
Results reported at Wed Oct 12 00:50:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1727 354.904 2.7102 686966401 687225601 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 :                                   364.10 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   588 sec.
    Turnaround time :                            591 sec.

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

