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


Performing analysis on: 4FGL_J2339.6+0242_weekly_bin734
RA = 354.904, Dec = 2.7102
tmin = 682905601, tmax = 683510401
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='348350', job_status='RUN', time_executed='2022-09-17 05:47:44.675986', time_epoch_executed='1663418864.68' WHERE source_name='4FGL J2339.6+0242' and cadence='weekly' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/348350

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/348350/ft1_4FGL_J2339.6+0242_weekly_bin734.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/348350/ft2_4FGL_J2339.6+0242_weekly_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/348350/ft1_4FGL_J2339.6+0242_weekly_bin734.fits outfile=/scratch/kocevski/348350/ft1_filteredMKT_4FGL_J2339.6+0242_weekly_bin734.fits ra=354.904 dec=2.7102 rad=12.0 tmin=682905601.0 tmax=683510401.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 8.02
user 7.71
sys 0.29

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

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

Number of photons that the gtmktime cut: 1113

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/348350/ft1_filtered_4FGL_J2339.6+0242_weekly_bin734.fits" evtable="EVENTS" scfile=/scratch/kocevski/348350/ft2_4FGL_J2339.6+0242_weekly_bin734.fits sctable="SC_DATA" outfile=/scratch/kocevski/348350/ltcube_682905601_683510401_4FGL_J2339.6+0242_weekly_bin734.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/348350/ft2_4FGL_J2339.6+0242_weekly_bin734.fits
.....................!
real 27.43
user 27.07
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/348350/ft1_filtered_4FGL_J2339.6+0242_weekly_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/348350/ft2_4FGL_J2339.6+0242_weekly_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/348350/ltcube_682905601_683510401_4FGL_J2339.6+0242_weekly_bin734.fits outfile=/scratch/kocevski/348350/expmap_682905601_683510401_4FGL_J2339.6+0242_weekly_bin734.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/348350/ltcube_682905601_683510401_4FGL_J2339.6+0242_weekly_bin734.fits
.....................!
real 157.26
user 152.51
sys 4.41

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/348350/ft1_filtered_4FGL_J2339.6+0242_weekly_bin734.fits scfile=/scratch/kocevski/348350/ft2_4FGL_J2339.6+0242_weekly_bin734.fits outfile=/scratch/kocevski/348350/cmap_682905601_683510401_4FGL_J2339.6+0242_weekly_bin734.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/348350/ft1_filtered_4FGL_J2339.6+0242_weekly_bin734.fits scfile=/scratch/kocevski/348350/ft2_4FGL_J2339.6+0242_weekly_bin734.fits outfile=/scratch/kocevski/348350/cmap_HighResolution_682905601_683510401_4FGL_J2339.6+0242_weekly_bin734.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.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14354E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .23148E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    9.0044       1.0000          .0000       .10000E+07
     4 'norm      '    .47573E-06   1.0000          .0000       .10000E+07
     5 'norm      '    6.9211       1.0000          .0000       .10000E+07
     6 'Prefactor '    9.1349       1.0000          .0000       .10000E+07
     7 'norm      '    1.5014       1.0000          .0000       .10000E+07
     8 'Prefactor '    .31203E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .76983E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .17324E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .52138       1.0000          .0000       .10000E+07
    12 'norm      '    .60936E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    12.447       1.0000          .0000       .10000E+07
    14 'Prefactor '    34.295       1.0000          .0000       .10000E+07
    15 'norm      '    .30920E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.6907       1.0000          .0000       .10000E+07
    17 'Prefactor '    21.959       1.0000          .0000       .10000E+07
    18 'norm      '    9.0086       1.0000          .0000       .10000E+07
    19 'norm      '    .73821E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    1.3326       1.0000          .0000       .10000E+07
    21 'Prefactor '    .23208E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    10.525       1.0000          .0000       .10000E+07
    23 'Normalizat'    .76819       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1108       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=   12354.02     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1638 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.7970        .75878E-07** at limit **
   2  Prefactor     .16653E-09    8.7272       -.95847E-07** at limit **
   3  Prefactor     9.0153        5.1196        .25215E-07    .13522E-02
   4  norm           .0000        1.8202       -.10012E-07** at limit **
   5  norm          6.9196        3.1487       -.17419E-08   -.21431E-02
   6  Prefactor     9.1169        3.2832       -.77204E-08    .35635E-01
   7  norm          1.5525        6.1186       -.15045E-07    .26539E-03
   8  Prefactor     .26090E-08    23.482       -.18898E-06** at limit **
   9  Prefactor     .55511E-10    4.1931       -.53830E-07** at limit **
  10  Prefactor     .70721E-07    61.965        .36533E-06** at limit **
  11  norm          .52127        .52964        .12865E-07    .17671E-02
  12  norm          .11102E-09    4.5762       -.43079E-07** at limit **
  13  Prefactor     12.451        6.9678        .22683E-07    .18466E-01
  14  Prefactor     34.678        6.8930       -.18189E-07    .75331E-01
  15  norm           .0000        1.7572        .14936E-07** at limit **
  16  Prefactor     7.6473        4.5276        .16984E-07   -.15625E-03
  17  Prefactor     21.872        4.7953       -.10163E-07    .97613E-04
  18  norm          8.9977        1.6554        .47365E-08    .26710E-02
  19  norm          .10547E-08    29.211       -.21263E-06** at limit **
  20  Prefactor     1.3400        2.5565       -.19089E-07   -.35029E-03
  21  Prefactor     .55511E-10    6.8158        .77308E-07** at limit **
  22  Prefactor     10.274        13.814       -.51747E-07   -.14410E-01
  23  Normalizat    .76865        .15598        .34475E-06   -.59663E-04
  24  Prefactor     1.1108        .11072       -.68434E-06   -.13442E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 9.01532
  norm       = 0
  norm       = 6.91955
  Prefactor  = 9.1169
  norm       = 1.55255
  Prefactor  = 2.60902e-09
  Prefactor  = 5.55112e-11
  Prefactor  = 7.07212e-08
  norm       = 0.521265
  norm       = 1.11022e-10
  Prefactor  = 12.4509
  Prefactor  = 34.6783
  norm       = 0
  Prefactor  = 7.64734
  Prefactor  = 21.8721
  norm       = 8.99773
  norm       = 1.05471e-09
  Prefactor  = 1.33999
  Prefactor  = 5.55112e-11
  Prefactor  = 10.274
  Normalizat = 0.768652
  Prefactor  = 1.11082
 **********
 **   18 **HESSE 
 **********

 FCN=   12354.02     FROM HESSE     STATUS=OK           463 CALLS     2101 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.8050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16653E-09    8.7282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.0153        5.1287        .33377E-03   -1.5648    
   4  norm           .0000        1.7794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.9196        3.1880        .38111E-03   -1.5655    
   6  Prefactor     9.1169        8.4084        .33136E-03   -1.5648    
   7  norm          1.5525        6.1510        .87349E-03   -1.5683    
   8  Prefactor     .26090E-08    23.493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    4.2293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .70721E-07    4.5109        .68168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .52127        .54495        .76587E-03   -1.5694    
  12  norm          .11102E-09    4.6065        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.451        7.7023        .28368E-03   -1.5637    
  14  Prefactor     34.678        27.864        .17078E-03   -1.5590    
  15  norm           .0000        1.7603        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6473        4.5682        .36136E-03   -1.5653    
  17  Prefactor     21.872        17.199        .21346E-03   -1.5614    
  18  norm          8.9977        7.3950        .33369E-03   -1.5648    
  19  norm          .10547E-08    7.9375        .11014E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.3400        2.8005        .95055E-03   -1.5685    
  21  Prefactor     .55511E-10    6.8355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     10.274        15.244        .30859E-03   -1.5644    
  23  Normalizat    .76865        .13975        .71121E-01   -1.0124    
  24  Prefactor     1.1108        .97227E-01    .37189E-01   -.89122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63787e-07
Minuit parameter uncertainties:
  1  3.75815e-06
  2  7.91634e-05
  3  5.12866
  4  5.1264e-06
  5  3.18799
  6  8.40842
  7  6.15099
  8  0.000497467
  9  2.86288e-05
  10  0.00112963
  11  0.544946
  12  4.3132e-05
  13  7.70233
  14  27.8643
  15  6.62648e-07
  16  4.56816
  17  17.1988
  18  7.39504
  19  0.000182757
  20  2.80049
  21  3.71599e-05
  22  15.2444
  23  0.139818
  24  0.097243
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  5.551e-11  3.716e-05  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.111e+00  9.724e-02  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:  7.687e-01  1.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/348350/likelihoodResults_682905601_683510401_4FGL_J2339.6+0242_weekly_bin734.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): 102
logL (Free Index) = 12354.0232482
delta logL = -0.000114232212582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12354.023134
delta logL = -9.25138010643e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79936E-08   1.0000          .0000       .10000E+07
     2 'Index     '    .98983       1.0000          .0000       10.000    
     3 'Normalizat'    .76864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1108       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12354.02     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      252 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        4.5289        .42118E-03** at limit **
   2  Index         3.1805        2.0734        .20516E-03     .0000    
   3  Normalizat    .76865        1.1080       -.14314E-05   -.45380E-04
   4  Prefactor     1.1108        1.1419       -.84634E-05   -.48223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.18054
  Normalizat = 0.768652
  Prefactor  = 1.11082
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   12354.02     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .20E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        4.5289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1385        2.2323        .20516E-03   -.37244    
   3  Normalizat    .76865        1.1080       -.14314E-05   -1.0124    
   4  Prefactor     1.1108        1.1419       -.84634E-05   -.89122    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.00967e-12
Minuit parameter uncertainties:
  1  9.79653e-06
  2  2.14883
  3  1.14323
  4  1.1686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/348350': 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): 101
logL (Free Index) = 12354.023134
delta logL = 5.45696821064e-12

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  0.000e+00  9.797e-06  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  3.181e+00  2.149e+00  0.000e+00  1.000e+01 (-1.000e+00)
465        Scale:  7.790e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.111e+00  1.169e+00  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:  7.687e-01  1.143e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/348350/cmap_HighResolution_682905601_683510401_4FGL_J2339.6+0242_weekly_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.13e-03', job_status='DONE', photon_flux_upper_limit='4.01e-08', time_completed='2022-09-17 05:59:52.179005', job_id='348350', GAL2='1.11', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1663419592.18', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.46e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='734' AND source_name='4FGL J2339.6+0242' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Sep 17 05:59:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 348350: <4FGL_J2339.6+0242_weekly_bin734> in cluster <slac> Done

Job <4FGL_J2339.6+0242_weekly_bin734> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 17 05:45:28 2022
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 05:46:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 05:46:13 2022
Terminated at Sat Sep 17 05:59:53 2022
Results reported at Sat Sep 17 05:59:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_weekly_bin734 354.904 2.7102 682905601 683510401 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 :                                   724.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            865 sec.

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

