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


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1745
RA = 354.904, Dec = 2.7102
tmin = 691632001, tmax = 691891201
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='660056', job_status='RUN', time_executed='2022-12-05 01:38:52.162792', time_epoch_executed='1670233132.16' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660056/ft1_4FGL_J2339.6+0242_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660056/ft2_4FGL_J2339.6+0242_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660056/ft1_4FGL_J2339.6+0242_daily_bin1745.fits outfile=/scratch/kocevski/660056/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1745.fits ra=354.904 dec=2.7102 rad=12.0 tmin=691632001.0 tmax=691891201.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.36
user 2.16
sys 0.19

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

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

Number of photons that the gtmktime cut: 614

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660056/ft1_filtered_4FGL_J2339.6+0242_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/660056/ft2_4FGL_J2339.6+0242_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/660056/ltcube_691632001_691891201_4FGL_J2339.6+0242_daily_bin1745.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/660056/ft2_4FGL_J2339.6+0242_daily_bin1745.fits
.....................!
real 13.12
user 12.69
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660056/ft1_filtered_4FGL_J2339.6+0242_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/660056/ft2_4FGL_J2339.6+0242_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/660056/ltcube_691632001_691891201_4FGL_J2339.6+0242_daily_bin1745.fits outfile=/scratch/kocevski/660056/expmap_691632001_691891201_4FGL_J2339.6+0242_daily_bin1745.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/660056/ltcube_691632001_691891201_4FGL_J2339.6+0242_daily_bin1745.fits
.....................!
real 191.86
user 185.12
sys 6.17

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/660056/ft1_filtered_4FGL_J2339.6+0242_daily_bin1745.fits scfile=/scratch/kocevski/660056/ft2_4FGL_J2339.6+0242_daily_bin1745.fits outfile=/scratch/kocevski/660056/cmap_691632001_691891201_4FGL_J2339.6+0242_daily_bin1745.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/660056/ft1_filtered_4FGL_J2339.6+0242_daily_bin1745.fits scfile=/scratch/kocevski/660056/ft2_4FGL_J2339.6+0242_daily_bin1745.fits outfile=/scratch/kocevski/660056/cmap_HighResolution_691632001_691891201_4FGL_J2339.6+0242_daily_bin1745.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=354.904 yref=2.7102 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10097E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    35.919       1.0000          .0000       .10000E+07
     3 'Prefactor '    21.390       1.0000          .0000       .10000E+07
     4 'norm      '    6.5188       1.0000          .0000       .10000E+07
     5 'norm      '    .34360E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .42372E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .24598E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    10.770       1.0000          .0000       .10000E+07
     9 'Prefactor '    .24427E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11426E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .69903       1.0000          .0000       .10000E+07
    12 'norm      '    .63903       1.0000          .0000       .10000E+07
    13 'Prefactor '    .21198E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .65918E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .84860E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    8.8701       1.0000          .0000       .10000E+07
    17 'Prefactor '    .12462E-06   1.0000          .0000       .10000E+07
    18 'norm      '    7.5721       1.0000          .0000       .10000E+07
    19 'norm      '    7.6224       1.0000          .0000       .10000E+07
    20 'Prefactor '    .36479E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    9.3795       1.0000          .0000       .10000E+07
    22 'Prefactor '    3.2770       1.0000          .0000       .10000E+07
    23 'Normalizat'    .67480       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2143       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=   6723.706     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     1563 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .21649E-08    6.2037       -.43901E-07** at limit **
   2  Prefactor     35.575        8.8112       -.47473E-08   -.15478    
   3  Prefactor     21.402        2.6881       -.33350E-08    .65855E-01
   4  norm          6.5369        4.2944       -.27125E-07    .32705E-02
   5  norm           .0000        2.1722        .57967E-07** at limit **
   6  Prefactor     .70832E-07    5.6128        .73781E-07** at limit **
   7  norm          .61506E-07    38.080       -.15266E-06** at limit **
   8  Prefactor     11.351        18.203        .21147E-06   -.27850E-01
   9  Prefactor      .0000        7.9590       -.10845E-06** at limit **
  10  Prefactor     .27756E-09    3.3997        .81266E-07** at limit **
  11  norm          .69939        .62811        .15298E-07    .62772E-02
  12  norm          .62080        6.4282        .18081E-06    .10247E-01
  13  Prefactor      .0000        1.7955        .20455E-08** at limit **
  14  Prefactor     .12002E-06    6.5398        .81929E-07** at limit **
  15  norm           .0000        1.6813       -.26149E-07** at limit **
  16  Prefactor     8.9287        5.9516       -.66073E-07   -.73856E-03
  17  Prefactor     .34156E-06    10.081       -.11219E-07** at limit **
  18  norm          7.6254        1.0454       -.49938E-09   -.30318E-03
  19  norm          7.6693        3.6687        .16459E-07   -.29150E-01
  20  Prefactor     .21372E-07    31.956       -.41867E-06** at limit **
  21  Prefactor     9.2648        3.7309       -.28321E-07   -.30158E-01
  22  Prefactor     3.3121        1.9118        .27747E-07    .13665E-02
  23  Normalizat    .67461        .21628        .43931E-05    .22506E-03
  24  Prefactor     1.2142        .15446       -.10720E-05    .28761E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.16493e-09
  Prefactor  = 35.5754
  Prefactor  = 21.4023
  norm       = 6.53686
  norm       = 0
  Prefactor  = 7.08322e-08
  norm       = 6.15064e-08
  Prefactor  = 11.3509
  Prefactor  = 0
  Prefactor  = 2.77556e-10
  norm       = 0.699386
  norm       = 0.620804
  Prefactor  = 0
  Prefactor  = 1.20015e-07
  norm       = 0
  Prefactor  = 8.92868
  Prefactor  = 3.4156e-07
  norm       = 7.62536
  norm       = 7.66931
  Prefactor  = 2.13718e-08
  Prefactor  = 9.26477
  Prefactor  = 3.31209
  Normalizat = 0.674609
  Prefactor  = 1.21415
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.706     FROM HESSE     STATUS=OK           459 CALLS     2022 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .21649E-08    6.3776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.575        22.128        .16687E-03   -1.5589    
   3  Prefactor     21.402        11.674        .21628E-03   -1.5615    
   4  norm          6.5369        4.6776        .39283E-03   -1.5657    
   5  norm           .0000        2.1684        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .70832E-07    13.033        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .61506E-07    4.3072        .96456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.351        33.748        .30504E-03   -1.5641    
   9  Prefactor      .0000        8.3177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27756E-09    3.3983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .69939        .62879        .60787E-03   -1.5691    
  12  norm          .62080        6.4803        .65802E-03   -1.5692    
  13  Prefactor      .0000        1.7958        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12002E-06    12.796        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.6817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9287        5.9834        .33630E-03   -1.5648    
  17  Prefactor     .34156E-06    11.426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.6254        12.903        .36420E-03   -1.5653    
  19  norm          7.6693        12.853        .36299E-03   -1.5653    
  20  Prefactor     .21372E-07    1.9598        .61140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.2648        28.533        .32699E-03   -1.5647    
  22  Prefactor     3.3121        22.447        .55912E-03   -1.5672    
  23  Normalizat    .67461        .20445        .76911E-01   -1.0490    
  24  Prefactor     1.2142        .13811        .34301E-01   -.85897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03311e-07
Minuit parameter uncertainties:
  1  0.000236149
  2  22.1283
  3  11.6745
  4  4.67757
  5  6.3511e-06
  6  0.00192143
  7  0.00102953
  8  33.7481
  9  6.59619e-06
  10  5.89557e-05
  11  0.628791
  12  4.0115
  13  3.92378e-08
  14  0.00247838
  15  4.88533e-06
  16  5.98338
  17  0.003951
  18  12.9026
  19  12.8533
  20  0.000409248
  21  28.5335
  22  17.2451
  23  0.204682
  24  0.138152
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  9.265e+00  2.853e+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.214e+00  1.382e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  6.746e-01  2.047e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 9.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/660056/likelihoodResults_691632001_691891201_4FGL_J2339.6+0242_daily_bin1745.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) = 6723.40442522
delta logL = 0.301093803611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6723.38553859
delta logL = 0.319980433869

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4823       1.0000          .0000       .10000E+07
     2 'Index     '    3.9780       1.0000          .0000       10.000    
     3 'Normalizat'    .63552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2303       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=   6723.386     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      253 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4594        90.027        .54161E-03    .57622E-02
   2  Index         3.9813        3.3719        .20596        .89933E-04
   3  Normalizat    .63570        .44897E-01    .79086E-01    .33356E-04
   4  Prefactor     1.2301        .32524E-01    .33950E-01   -.86774E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.4594
  Index      = 3.98125
  Normalizat = 0.635702
  Prefactor  = 1.23011
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.386     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      286 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4594        254.84        .17824E-04   -1.5671    
   2  Index         3.9813        6.4251        .71341E-02   -.20519    
   3  Normalizat    .63570        .20872        .35018E-03   -1.0649    
   4  Prefactor     1.2301        .15125        .18950E-03   -.85410    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.53824e-07
Minuit parameter uncertainties:
  1  59.3862
  2  10.043
  3  0.208979
  4  0.151307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660056': 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) = 6723.38553498
delta logL = 0.319984043937

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.459e+00  5.939e+01  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  3.981e+00  1.004e+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.230e+00  1.513e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  6.357e-01  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 354.904 2.710

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/660056/cmap_HighResolution_691632001_691891201_4FGL_J2339.6+0242_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-03', job_status='DONE', photon_flux_upper_limit='9.58e-08', time_completed='2022-12-05 01:48:54.675578', job_id='660056', GAL2='1.23', fit_tolerance='1e-08', EG2='0.64', EG='0.67', time_epoch_completed='1670233734.68', return_code2='102', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='3.20e-01', ts2='0.82', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='1745' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:48:54 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 660056: <4FGL_J2339.6+0242_daily_bin1745> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1745 354.904 2.7102 691632001 691891201 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 :                                   604.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

