aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 219 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7481
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2339.6+0242_daily_bin1731
RA = 354.904, Dec = 2.7102
tmin = 688003201, tmax = 688262401
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='552803', job_status='RUN', time_executed='2022-10-24 00:49:10.619641', time_epoch_executed='1666597750.62' WHERE source_name='4FGL J2339.6+0242' and cadence='daily' and bin_id='1731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/552803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/552803/ft1_4FGL_J2339.6+0242_daily_bin1731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/552803/ft2_4FGL_J2339.6+0242_daily_bin1731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/552803/ft1_4FGL_J2339.6+0242_daily_bin1731.fits outfile=/scratch/kocevski/552803/ft1_filteredMKT_4FGL_J2339.6+0242_daily_bin1731.fits ra=354.904 dec=2.7102 rad=12.0 tmin=688003201.0 tmax=688262401.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 3.57
user 3.38
sys 0.17

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

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

Number of photons that the gtmktime cut: 482

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/552803/ft1_filtered_4FGL_J2339.6+0242_daily_bin1731.fits evtable="EVENTS" scfile=/scratch/kocevski/552803/ft2_4FGL_J2339.6+0242_daily_bin1731.fits sctable="SC_DATA" expcube=/scratch/kocevski/552803/ltcube_688003201_688262401_4FGL_J2339.6+0242_daily_bin1731.fits outfile=/scratch/kocevski/552803/expmap_688003201_688262401_4FGL_J2339.6+0242_daily_bin1731.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/552803/ltcube_688003201_688262401_4FGL_J2339.6+0242_daily_bin1731.fits
.....................!
real 190.37
user 185.76
sys 4.24

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/552803/ft1_filtered_4FGL_J2339.6+0242_daily_bin1731.fits scfile=/scratch/kocevski/552803/ft2_4FGL_J2339.6+0242_daily_bin1731.fits outfile=/scratch/kocevski/552803/cmap_688003201_688262401_4FGL_J2339.6+0242_daily_bin1731.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/552803/ft1_filtered_4FGL_J2339.6+0242_daily_bin1731.fits scfile=/scratch/kocevski/552803/ft2_4FGL_J2339.6+0242_daily_bin1731.fits outfile=/scratch/kocevski/552803/cmap_HighResolution_688003201_688262401_4FGL_J2339.6+0242_daily_bin1731.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1655       1.0000          .0000       .10000E+07
     2 'Prefactor '    11.067       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12425E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .68168E-07   1.0000          .0000       .10000E+07
     5 'norm      '    6.3976       1.0000          .0000       .10000E+07
     6 'Prefactor '    .69057E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .41357E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    2.1340       1.0000          .0000       .10000E+07
     9 'Prefactor '    .19773E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .40455E-02   1.0000          .0000       .10000E+07
    11 'norm      '    1.2357       1.0000          .0000       .10000E+07
    12 'norm      '    5.0586       1.0000          .0000       .10000E+07
    13 'Prefactor '    .17590E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .13821E-04   1.0000          .0000       .10000E+07
    15 'norm      '    6.5959       1.0000          .0000       .10000E+07
    16 'Prefactor '    .87217E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12321E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .20149       1.0000          .0000       .10000E+07
    19 'norm      '    .64123E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    6.3150       1.0000          .0000       .10000E+07
    21 'Prefactor '    23.340       1.0000          .0000       .10000E+07
    22 'Prefactor '    8.1108       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.2391       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .73794       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=   5413.493     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     1542 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1640        7.5106        .22932E-08   -.41533E-03
   2  Prefactor     11.038        2.5907        .20265E-07    .88649E-02
   3  Prefactor     .27756E-09    6.9820       -.62513E-07** at limit **
   4  norm           .0000        1.6890       -.13358E-06** at limit **
   5  norm          6.3281        4.9395       -.33429E-07   -.14869E-04
   6  Prefactor     .17208E-08    10.862       -.20574E-06** at limit **
   7  norm          .13156E-07    31.820        .44330E-06** at limit **
   8  Prefactor     1.6129        9.9481        .14695E-06    .78261E-02
   9  Prefactor     .10353E-06    8.3508       -.25197E-06** at limit **
  10  Prefactor     .13206E-06    9.2951       -.24201E-06** at limit **
  11  norm          1.2338        .99665       -.18866E-07    .13191E-03
  12  norm          5.0406        7.6706        .12007E-06   -.34976E-04
  13  Prefactor      .0000        2.9422        .11909E-06** at limit **
  14  Prefactor     .26462E-06    13.167        .24699E-06** at limit **
  15  norm          6.6009        6.5324       -.10843E-06    .83759E-03
  16  Prefactor     .59467E-01    1.3319       -.74210E-07** at limit **
  17  Prefactor     .55511E-10    5.4330        .49125E-07** at limit **
  18  norm          .69833E-07    62.056       -.35935E-06** at limit **
  19  norm          .24064E-06    12.016        .84941E-07** at limit **
  20  Prefactor     6.2532        5.0391       -.14110E-07   -.57074E-04
  21  Prefactor     23.507        1.2663       -.66793E-08    .44504E-02
  22  Prefactor     7.3593        2.9012        .17849E-07    .61323E-02
  23  Normalizat    1.2405        .23501        .35483E-05   -.28489E-04
  24  Prefactor     .73865        .15414       -.21276E-05   -.13750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.16398
  Prefactor  = 11.0381
  Prefactor  = 2.77556e-10
  norm       = 0
  norm       = 6.32806
  Prefactor  = 1.72085e-09
  norm       = 1.31561e-08
  Prefactor  = 1.61289
  Prefactor  = 1.03528e-07
  Prefactor  = 1.32061e-07
  norm       = 1.23383
  norm       = 5.04061
  Prefactor  = 0
  Prefactor  = 2.64622e-07
  norm       = 6.60089
  Prefactor  = 0.0594666
  Prefactor  = 5.55112e-11
  norm       = 6.9833e-08
  norm       = 2.40641e-07
  Prefactor  = 6.25324
  Prefactor  = 23.5074
  Prefactor  = 7.35933
  Normalizat = 1.2405
  Prefactor  = 0.738645
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.493     FROM HESSE     STATUS=OK           453 CALLS     1995 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1640        7.5173        .44209E-03   -1.5663    
   2  Prefactor     11.038        12.241        .30091E-03   -1.5642    
   3  Prefactor     .27756E-09    7.0388        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        1.6797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.3281        4.9466        .39658E-03   -1.5658    
   6  Prefactor     .17208E-08    10.889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .13156E-07    34.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6129        115.08        .70541E-03   -1.5683    
   9  Prefactor     .10353E-06    17.688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .13206E-06    16.713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2338        1.0144        .10097E-02   -1.5686    
  12  norm          5.0406        7.7178        .44683E-03   -1.5663    
  13  Prefactor      .0000        2.9466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .26462E-06    25.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.6009        7.0008        .39050E-03   -1.5657    
  16  Prefactor     .59467E-01    3.1184        .91629E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .55511E-10    5.4511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .69833E-07    62.223        .11749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .24064E-06    24.258        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.2532        5.0416        .39920E-03   -1.5658    
  21  Prefactor     23.507        23.939        .20704E-03   -1.5611    
  22  Prefactor     7.3593        21.188        .35180E-03   -1.5654    
  23  Normalizat    1.2405        .20392        .57784E-01   -.85360    
  24  Prefactor     .73865        .13428        .42904E-01   -1.0203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0753e-07
Minuit parameter uncertainties:
  1  7.51733
  2  12.2415
  3  8.45967e-05
  4  1.76418e-06
  5  4.94658
  6  0.000273125
  7  0.00135579
  8  27.2482
  9  0.00270644
  10  0.00297118
  11  1.01443
  12  7.71779
  13  8.92648e-06
  14  0.00524459
  15  7.00079
  16  0.861259
  17  3.08232e-05
  18  0.00416853
  19  0.004832
  20  5.04159
  21  23.9395
  22  21.1882
  23  0.20405
  24  0.134342
Done.

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

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  2.351e+01  2.394e+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.386e-01  1.343e-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.240e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 354.904 2.710
Photon Index (Fixed Index): 2.55 +/- 0.00
Photon Flux (Fixed Index): 2.85e-08 +/- 2.89e-08
Energy Flux (Fixed Index): 7.84e-06 +/- 7.98e-06

TS (Fixed Index): 3.08
Ra Dec: 354.904 2.710
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/552803/likelihoodResults_688003201_688262401_4FGL_J2339.6+0242_daily_bin1731.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) = 5412.68812097
delta logL = 0.804972282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5412.66045497
delta logL = 0.832638287681

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.453       1.0000          .0000       .10000E+07
     2 'Index     '    1.6548       1.0000          .0000       10.000    
     3 'Normalizat'    1.2561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73195       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=   5412.660     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      219 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.502        29.722        .66820E-06   -.24232E-02
   2  Index         1.6553        .40575       -.39919E-05   -.45601E-03
   3  Normalizat    1.2561        .19586       -.47182E-06    .15805E-03
   4  Prefactor     .73194        .13238       -.36770E-06    .14638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.5016
  Index      = 1.6553
  Normalizat = 1.2561
  Prefactor  = 0.731936
 **********
 **   18 **HESSE 
 **********

 FCN=   5412.660     FROM HESSE     STATUS=OK            29 CALLS      248 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.502        32.989        .72496E-05   -1.5598    
   2  Index         1.6553        .60494        .89819E-02   -.73278    
   3  Normalizat    1.2561        .22655        .25415E-03   -.84886    
   4  Prefactor     .73194        .15351        .21810E-03   -1.0229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85127e-09
Minuit parameter uncertainties:
  1  32.9893
  2  0.60764
  3  0.22673
  4  0.153594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/552803': 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) = 5412.66045381
delta logL = 0.832639446089

Extracting fit parameters...

4FGL J2339.6+0242
   Spectrum: PowerLaw
463    Prefactor:  3.050e+01  3.299e+01  0.000e+00  1.000e+06 ( 1.000e-13)
464        Index:  1.655e+00  6.076e-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.319e-01  1.536e-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.256e+00  2.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.76
Ra Dec: 354.904 2.710
Photon Index (Free Index): 1.66 +/- 0.61
Photon Flux (Free Index): 1.38e-08 +/- 1.75e-08
Energy Flux (Free Index): 2.60e-05 +/- 4.05e-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/552803/cmap_HighResolution_688003201_688262401_4FGL_J2339.6+0242_daily_bin1731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.78e-03', comment='SUCCESS', photon_flux='2.85e-08', energy_flux2='2.60e-05', photon_flux_error='2.89e-08', dlogl='8.33e-01', energy_flux='7.84e-06', photon_flux2='1.38e-08', job_status='DONE', time_completed='2022-10-24 00:58:02.800921', photon_index_error2='0.61', photon_index2='1.66', ts='3.08', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.13e-07', energy_flux_error2='4.05e-05', EG='1.24', time_epoch_completed='1666598282.8', return_code='0', job_id='552803', GAL2='0.73', EG2='1.26', return_code2='0', energy_flux_error='7.98e-06', photon_flux_error2='1.75e-08', ts2='4.76', photon_index='2.55' WHERE bin_id='1731' AND source_name='4FGL J2339.6+0242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Oct 24 00:58:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 552803: <4FGL_J2339.6+0242_daily_bin1731> in cluster <slac> Done

Job <4FGL_J2339.6+0242_daily_bin1731> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Oct 24 00:45:15 2022
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Oct 24 00:45:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Oct 24 00:45:16 2022
Terminated at Mon Oct 24 00:58:03 2022
Results reported at Mon Oct 24 00:58:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2339.6+0242_daily_bin1731 354.904 2.7102 688003201 688262401 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 :                                   521.61 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             219.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            768 sec.

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

