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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1779
RA = 354.904, Dec = 2.7102
tmin = 700444801, tmax = 700704001
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='41782', job_status='RUN', time_executed='2023-03-17 02:40:50.358901', time_epoch_executed='1679046050.36' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/41782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/41782/ft1_4FGL_J2339.6+0242_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/41782/ft2_4FGL_J2339.6+0242_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/41782/ft1_4FGL_J2339.6+0242_daily_bin1779.fits outfile=/scratch/kocevski/41782/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1779.fits ra=354.904 dec=2.7102 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.35
user 5.10
sys 0.21

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

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

Number of photons that the gtmktime cut: 497

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/41782/ft1_filtered_4FGL_J2339.6+0242_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/41782/ft2_4FGL_J2339.6+0242_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/41782/ltcube_700444801_700704001_4FGL_J2339.6+0242_daily_bin1779.fits outfile=/scratch/kocevski/41782/expmap_700444801_700704001_4FGL_J2339.6+0242_daily_bin1779.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/41782/ltcube_700444801_700704001_4FGL_J2339.6+0242_daily_bin1779.fits
.....................!
real 193.16
user 187.13
sys 5.62

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/41782/ft1_filtered_4FGL_J2339.6+0242_daily_bin1779.fits scfile=/scratch/kocevski/41782/ft2_4FGL_J2339.6+0242_daily_bin1779.fits outfile=/scratch/kocevski/41782/cmap_700444801_700704001_4FGL_J2339.6+0242_daily_bin1779.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/41782/ft1_filtered_4FGL_J2339.6+0242_daily_bin1779.fits scfile=/scratch/kocevski/41782/ft2_4FGL_J2339.6+0242_daily_bin1779.fits outfile=/scratch/kocevski/41782/cmap_HighResolution_700444801_700704001_4FGL_J2339.6+0242_daily_bin1779.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18438E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .57932E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.5625       1.0000          .0000       .10000E+07
     4 'norm      '    .73511E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .73001E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .85638       1.0000          .0000       .10000E+07
     7 'norm      '    18.592       1.0000          .0000       .10000E+07
     8 'Prefactor '    .83493E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    8.5846       1.0000          .0000       .10000E+07
    10 'Prefactor '    .15601E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .49555E-06   1.0000          .0000       .10000E+07
    12 'norm      '    25.380       1.0000          .0000       .10000E+07
    13 'Prefactor '    5.2961       1.0000          .0000       .10000E+07
    14 'Prefactor '    .57775E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .25517E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.6673       1.0000          .0000       .10000E+07
    17 'Prefactor '    .35000E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .25714E-02   1.0000          .0000       .10000E+07
    19 'norm      '    18.964       1.0000          .0000       .10000E+07
    20 'Prefactor '    47.210       1.0000          .0000       .10000E+07
    21 'Prefactor '    74.137       1.0000          .0000       .10000E+07
    22 'Prefactor '    .18020       1.0000          .0000       .10000E+07
    23 'Normalizat'    .40160       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3901       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=   5538.924     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     2006 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44298E-07    5.9979       -.16131E-06** at limit **
   2  Prefactor     .10741E-06    7.5323        .38711E-06** at limit **
   3  Prefactor     2.6064        9.7301       -.17811E-05   -.18696E-02
   4  norm          .37748E-08    6.8406       -.10183E-05** at limit **
   5  norm           .0000        1.9690       -.26820E-06** at limit **
   6  Prefactor     .85376        .73818        .64361E-09    .95863E-04
   7  norm          18.579        1.4400       -.37641E-07    .18037E-02
   8  Prefactor     .16098E-08    9.3773        .53696E-06** at limit **
   9  Prefactor     8.5400        1.5837        .73466E-07    .17853E-02
  10  Prefactor     .18330E-06    14.068       -.32834E-07** at limit **
  11  norm           .0000        2.0507        .38402E-06** at limit **
  12  norm          25.295        6.7689       -.25559E-06   -.97808E-01
  13  Prefactor     5.1982        6.4939       -.46380E-06   -.32653E-03
  14  Prefactor     .11713E-07    71.253       -.38021E-05** at limit **
  15  norm          .90106E-06    7.2361       -.20810E-05** at limit **
  16  Prefactor     3.6030        6.4806       -.10306E-06   -.74932E-03
  17  Prefactor     .96340E-06    6.2859       -.13768E-05** at limit **
  18  norm          .11452E-06    5.5492        .65889E-06** at limit **
  19  norm          17.945        50.498       -.31978E-05    .11112E-01
  20  Prefactor     47.343        12.834        .22830E-06    .24200E-01
  21  Prefactor     73.972        7.0819       -.22945E-06   -.23443E-01
  22  Prefactor     .33307E-09    36.608        .21162E-05** at limit **
  23  Normalizat    .40219        .25351       -.43064E-04   -.89879E-05
  24  Prefactor     1.3906        .18081        .16999E-04   -.33450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.42979e-08
  Prefactor  = 1.07414e-07
  Prefactor  = 2.60643
  norm       = 3.77476e-09
  norm       = 0
  Prefactor  = 0.853765
  norm       = 18.5789
  Prefactor  = 1.60982e-09
  Prefactor  = 8.54001
  Prefactor  = 1.83298e-07
  norm       = 0
  norm       = 25.2949
  Prefactor  = 5.1982
  Prefactor  = 1.17129e-08
  norm       = 9.01057e-07
  Prefactor  = 3.603
  Prefactor  = 9.63396e-07
  norm       = 1.1452e-07
  norm       = 17.9451
  Prefactor  = 47.3435
  Prefactor  = 73.9718
  Prefactor  = 3.33067e-10
  Normalizat = 0.402195
  Prefactor  = 1.39062
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.924     FROM HESSE     STATUS=OK           447 CALLS     2453 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44298E-07    7.5038        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10741E-06    17.269        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6064        9.8254        .63746E-03   -1.5676    
   4  norm          .37748E-08    6.6106        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.9642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .85376        10.170        .48824E-03   -1.5689    
   7  norm          18.579        14.287        .23200E-03   -1.5622    
   8  Prefactor     .16098E-08    16.791        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5400        18.922        .34189E-03   -1.5650    
  10  Prefactor     .18330E-06    14.717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.9796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          25.295        12.367        .19854E-03   -1.5607    
  13  Prefactor     5.1982        6.5001        .43650E-03   -1.5662    
  14  Prefactor     .11713E-07    71.359        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .90106E-06    10.686        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.6030        6.5656        .52721E-03   -1.5670    
  17  Prefactor     .96340E-06    9.8268        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11452E-06    7.8326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.945        51.997        .22972E-03   -1.5623    
  20  Prefactor     47.343        13.253        .14555E-03   -1.5570    
  21  Prefactor     73.972        50.713        .11615E-03   -1.5536    
  22  Prefactor     .33307E-09    36.091        .12139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .40219        .26481        .10515       -1.1719    
  24  Prefactor     1.3906        .18115        .31200E-01   -.80651    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1778e-07
Minuit parameter uncertainties:
  1  0.00115289
  2  0.00272423
  3  9.8255
  4  0.000316762
  5  1.46268e-05
  6  5.89339
  7  14.2874
  8  0.000326899
  9  18.922
  10  0.00328505
  11  8.96963e-06
  12  12.3675
  13  6.50012
  14  0.00182903
  15  0.00620597
  16  6.56559
  17  0.0061538
  18  0.00189438
  19  51.9983
  20  13.2525
  21  50.7135
  22  0.000226334
  23  0.265643
  24  0.181234
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.397e+01  5.071e+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.391e+00  1.812e-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:  4.022e-01  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.86
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 8.95e-08 +/- 6.13e-08
Energy Flux (Fixed Index): 2.47e-05 +/- 1.69e-05

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

Saving results to:
/scratch/kocevski/41782/likelihoodResults_700444801_700704001_4FGL_J2339.6+0242_daily_bin1779.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) = 5538.86538606
delta logL = 0.0585317482637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5538.86258268
delta logL = 0.0613351287957

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.686       1.0000          .0000       .10000E+07
     2 'Index     '    2.3246       1.0000          .0000       10.000    
     3 'Normalizat'    .41919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3828       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=   5538.863     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      270 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.718        63.982        .21734E-04    .16424E-03
   2  Index         2.3245        .63211        .80997E-02    .20963E-03
   3  Normalizat    .41917        .24868        .45704E-03    .53580E-04
   4  Prefactor     1.3828        .18027        .19265E-03   -.80610E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.7184
  Index      = 2.32447
  Normalizat = 0.41917
  Prefactor  = 1.38276
 **********
 **   18 **HESSE 
 **********

 FCN=   5538.863     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.718        63.047        .86938E-06   -1.5524    
   2  Index         2.3245        .62233        .16199E-02   -.56463    
   3  Normalizat    .41917        .24852        .18281E-04   -1.1632    
   4  Prefactor     1.3828        .18019        .77060E-05   -.80878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13568e-10
Minuit parameter uncertainties:
  1  63.0475
  2  0.6246
  3  0.249173
  4  0.180269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/41782': 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) = 5538.86258254
delta logL = 0.0613352656128

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  8.472e+01  6.305e+01  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  2.324e+00  6.246e-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.383e+00  1.803e-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:  4.192e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.97
Ra Dec: 354.904 2.710
Photon Index (Free Index): 2.32 +/- 0.62
Photon Flux (Free Index): 7.56e-08 +/- 6.86e-08
Energy Flux (Free Index): 2.76e-05 +/- 2.19e-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/41782/cmap_HighResolution_700444801_700704001_4FGL_J2339.6+0242_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.68e-02', comment='SUCCESS', photon_flux='8.95e-08', energy_flux2='2.76e-05', photon_flux_error='6.13e-08', dlogl='6.13e-02', energy_flux='2.47e-05', photon_flux2='7.56e-08', job_status='DONE', time_completed='2023-03-17 02:50:18.593230', photon_index_error2='0.62', photon_index2='2.32', ts='3.86', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='2.15e-07', energy_flux_error2='2.19e-05', EG='0.40', time_epoch_completed='1679046618.59', return_code='0', job_id='41782', GAL2='1.38', EG2='0.42', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='6.86e-08', ts2='3.97', photon_index='2.55' WHERE bin_id='1779' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 02:50:18 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 41782: <4FGL_J2339.6+0242_daily_bin1779> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1779> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Mar 17 02:40:17 2023
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 02:40:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 02:40:18 2023
Terminated at Fri Mar 17 02:50:22 2023
Results reported at Fri Mar 17 02:50:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1779 354.904 2.7102 700444801 700704001 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 :                                   570.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             274.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            605 sec.

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

