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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1769
RA = 354.904, Dec = 2.7102
tmin = 697852801, tmax = 698112001
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='447706', job_status='RUN', time_executed='2023-02-15 01:44:29.024858', time_epoch_executed='1676454269.02' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447706/ft1_4FGL_J2339.6+0242_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447706/ft2_4FGL_J2339.6+0242_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447706/ft1_4FGL_J2339.6+0242_daily_bin1769.fits outfile=/scratch/kocevski/447706/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1769.fits ra=354.904 dec=2.7102 rad=12.0 tmin=697852801.0 tmax=698112001.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 4.38
user 4.16
sys 0.21

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

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

Number of photons that the gtmktime cut: 467

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447706/ft1_filtered_4FGL_J2339.6+0242_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/447706/ft2_4FGL_J2339.6+0242_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/447706/ltcube_697852801_698112001_4FGL_J2339.6+0242_daily_bin1769.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/447706/ft2_4FGL_J2339.6+0242_daily_bin1769.fits
.....................!
real 11.81
user 11.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447706/ft1_filtered_4FGL_J2339.6+0242_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/447706/ft2_4FGL_J2339.6+0242_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/447706/ltcube_697852801_698112001_4FGL_J2339.6+0242_daily_bin1769.fits outfile=/scratch/kocevski/447706/expmap_697852801_698112001_4FGL_J2339.6+0242_daily_bin1769.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/447706/ltcube_697852801_698112001_4FGL_J2339.6+0242_daily_bin1769.fits
.....................!
real 191.52
user 186.82
sys 4.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/447706/ft1_filtered_4FGL_J2339.6+0242_daily_bin1769.fits scfile=/scratch/kocevski/447706/ft2_4FGL_J2339.6+0242_daily_bin1769.fits outfile=/scratch/kocevski/447706/cmap_697852801_698112001_4FGL_J2339.6+0242_daily_bin1769.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447706/ft1_filtered_4FGL_J2339.6+0242_daily_bin1769.fits scfile=/scratch/kocevski/447706/ft2_4FGL_J2339.6+0242_daily_bin1769.fits outfile=/scratch/kocevski/447706/cmap_HighResolution_697852801_698112001_4FGL_J2339.6+0242_daily_bin1769.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7089       1.0000          .0000       .10000E+07
     2 'Prefactor '    9.6810       1.0000          .0000       .10000E+07
     3 'Prefactor '    5.9459       1.0000          .0000       .10000E+07
     4 'norm      '    .12268E-07   1.0000          .0000       .10000E+07
     5 'norm      '    .24020E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    13.381       1.0000          .0000       .10000E+07
     7 'norm      '    .35816E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .12507E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .72509E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    9.9168       1.0000          .0000       .10000E+07
    11 'norm      '    1.2314       1.0000          .0000       .10000E+07
    12 'norm      '    .70614       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.7189       1.0000          .0000       .10000E+07
    14 'Prefactor '    .11736E-01   1.0000          .0000       .10000E+07
    15 'norm      '    .35144E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    1.9003       1.0000          .0000       .10000E+07
    17 'Prefactor '    .79518E-03   1.0000          .0000       .10000E+07
    18 'norm      '    .18175E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .98684E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .10708E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    63.051       1.0000          .0000       .10000E+07
    22 'Prefactor '    37.313       1.0000          .0000       .10000E+07
    23 'Normalizat'    .97100       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72176       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=   5421.591     FROM MIGRAD    STATUS=CONVERGED    192 CALLS     1610 TOTAL
                     EDM=   .18E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6917        10.402       -.83838E-07   -.86916E-04
   2  Prefactor     9.7128        11.008       -.41509E-08    .75345E-03
   3  Prefactor     5.9241        6.4428        .76403E-07   -.25032E-03
   4  norm           .0000        2.6652       -.39674E-07** at limit **
   5  norm           .0000        1.4477       -.46130E-07** at limit **
   6  Prefactor     13.287        12.144       -.11289E-06   -.65240E-02
   7  norm           .0000        4.9488        .49208E-07** at limit **
   8  Prefactor     .16653E-09    16.998       -.20333E-06** at limit **
   9  Prefactor      .0000        6.5902       -.24689E-07** at limit **
  10  Prefactor     9.8755        7.0905       -.10577E-07    .10288E-01
  11  norm          1.2306        .80498        .32032E-07   -.12909E-02
  12  norm          .71912        4.2044        .93579E-07   -.57519E-02
  13  Prefactor     2.4776        16.337       -.25286E-06    .48513E-03
  14  Prefactor     .55511E-10    119.97        .61625E-08** at limit **
  15  norm          .11963E-06    35.417       -.45681E-06** at limit **
  16  Prefactor     1.8764        5.5624       -.16592E-06    .24254E-03
  17  Prefactor     .66613E-09    35.370       -.31275E-06** at limit **
  18  norm          .55511E-10    13.555       -.10789E-06** at limit **
  19  norm          .55511E-10    28.339        .10673E-09** at limit **
  20  Prefactor      .0000        1.3120       -.29545E-07** at limit **
  21  Prefactor     60.769        23.442       -.10639E-06    .10579E-01
  22  Prefactor     37.779        2.5826        .14303E-07   -.14873E-02
  23  Normalizat    .97235        .22823       -.18800E-05    .11728E-04
  24  Prefactor     .72201        .15453        .10137E-05    .10381E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.69166
  Prefactor  = 9.71283
  Prefactor  = 5.92412
  norm       = 0
  norm       = 0
  Prefactor  = 13.2872
  norm       = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 0
  Prefactor  = 9.87553
  norm       = 1.23056
  norm       = 0.719118
  Prefactor  = 2.47756
  Prefactor  = 5.55112e-11
  norm       = 1.19627e-07
  Prefactor  = 1.87642
  Prefactor  = 6.66134e-10
  norm       = 5.55112e-11
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 60.7686
  Prefactor  = 37.7789
  Normalizat = 0.972354
  Prefactor  = 0.722009
 **********
 **   18 **HESSE 
 **********

 FCN=   5421.591     FROM HESSE     STATUS=OK           445 CALLS     2055 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6917        10.407        .33942E-03   -1.5649    
   2  Prefactor     9.7128        11.022        .32183E-03   -1.5646    
   3  Prefactor     5.9241        6.4662        .41157E-03   -1.5659    
   4  norm           .0000        2.6242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        1.4462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.287        12.797        .27356E-03   -1.5635    
   7  norm           .0000        4.9420        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .16653E-09    17.000        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        6.6243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8755        12.179        .31796E-03   -1.5645    
  11  norm          1.2306        .81144        .10128E-02   -1.5686    
  12  norm          .71912        13.872        .60211E-03   -1.5691    
  13  Prefactor     2.4776        16.786        .61737E-03   -1.5676    
  14  Prefactor     .55511E-10    119.76        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .11963E-06    61.127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8764        5.6305        .75419E-03   -1.5681    
  17  Prefactor     .66613E-09    35.414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .55511E-10    13.563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .55511E-10    28.426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        1.3130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     60.769        35.329        .12594E-03   -1.5552    
  22  Prefactor     37.779        24.801        .16373E-03   -1.5585    
  23  Normalizat    .97235        .19795        .45802E-01   -.93962    
  24  Prefactor     .72201        .13227        .42690E-01   -1.0267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.02258e-07
Minuit parameter uncertainties:
  1  10.4075
  2  11.0224
  3  6.46623
  4  2.36759e-06
  5  1.13414e-06
  6  12.7971
  7  1.03034e-08
  8  9.83997e-05
  9  5.26187e-06
  10  12.1787
  11  0.811435
  12  6.31683
  13  12.898
  14  0.000186758
  15  0.00540845
  16  5.63051
  17  0.000307867
  18  4.61332e-05
  19  9.22928e-05
  20  8.80392e-07
  21  35.3292
  22  24.8008
  23  0.198099
  24  0.132324
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  6.077e+01  3.533e+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:  7.220e-01  1.323e-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:  9.724e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.73
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 7.36e-08 +/- 4.27e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.18e-05

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) = 5420.28794179
delta logL = 1.3029415101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5420.24370764
delta logL = 1.34717565797

Fit tolerance = 1e-08

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

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

 FCN=   5420.244     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .61E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.890        48.727        .51533E-06   -.76511E-03
   2  Index         1.7499        .44844        .22349E-04    .17214E-05
   3  Normalizat    1.0188        .19128       -.14961E-05   -.28113E-03
   4  Prefactor     .70223        .13077        .21181E-06   -.30878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.8895
  Index      = 1.7499
  Normalizat = 1.0188
  Prefactor  = 0.702226
 **********
 **   18 **HESSE 
 **********

 FCN=   5420.244     FROM HESSE     STATUS=OK            29 CALLS      241 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.890        48.217        .23759E-04   -1.5540    
   2  Index         1.7499        .44375        .69113E-02   -.70761    
   3  Normalizat    1.0188        .22188        .25756E-03   -.92403    
   4  Prefactor     .70223        .15182        .20816E-03   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29989e-10
Minuit parameter uncertainties:
  1  48.2172
  2  0.444769
  3  0.222086
  4  0.151911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447706': 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) = 5420.24370755
delta logL = 1.34717574787

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  7.089e+01  4.822e+01  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  1.750e+00  4.448e-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:  7.022e-01  1.519e-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.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.46
Ra Dec: 354.904 2.710
Photon Index (Free Index): 1.75 +/- 0.44
Photon Flux (Free Index): 3.41e-08 +/- 2.98e-08
Energy Flux (Free Index): 4.76e-05 +/- 4.73e-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/447706/cmap_HighResolution_697852801_698112001_4FGL_J2339.6+0242_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.36e-08', energy_flux2='4.76e-05', photon_flux_error='4.27e-08', dlogl='1.35e+00', energy_flux='2.03e-05', photon_flux2='3.41e-08', job_status='DONE', time_completed='2023-02-15 01:52:36.170309', photon_index_error2='0.44', photon_index2='1.75', ts='8.73', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', energy_flux_error2='4.73e-05', EG='0.97', time_epoch_completed='1676454756.17', return_code='0', job_id='447706', GAL2='0.70', EG2='1.02', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='2.98e-08', ts2='11.46', photon_index='2.55' WHERE bin_id='1769' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 01:52:36 PST 2023


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

Job <4FGL_J2339.6+0242_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 01:40:35 2023
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 01:40:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 01:40:37 2023
Terminated at Wed Feb 15 01:52:36 2023
Results reported at Wed Feb 15 01:52:36 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1769 354.904 2.7102 697852801 698112001 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 :                                   488.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             260.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   719 sec.
    Turnaround time :                            721 sec.

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

