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


Performing analysis on: 4FGL_J0239.7+0415_daily_bin1742
RA = 39.9403, Dec = 4.2643
tmin = 690854401, tmax = 691113601
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='217464', job_status='RUN', time_executed='2022-11-26 00:13:24.420689', time_epoch_executed='1669450404.42' WHERE source_name='4FGL J0239.7+0415' and cadence='daily' and bin_id='1742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217464

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217464/ft1_4FGL_J0239.7+0415_daily_bin1742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217464/ft2_4FGL_J0239.7+0415_daily_bin1742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217464/ft1_4FGL_J0239.7+0415_daily_bin1742.fits outfile=/scratch/kocevski/217464/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin1742.fits ra=39.9403 dec=4.2643 rad=12.0 tmin=690854401.0 tmax=691113601.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.93
user 2.71
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/217464/ft2_4FGL_J0239.7+0415_daily_bin1742.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217464/ft2_4FGL_J0239.7+0415_daily_bin1742.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/217464/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin1742.fits evtable="EVENTS" outfile="/scratch/kocevski/217464/ft1_filtered_4FGL_J0239.7+0415_daily_bin1742.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.52
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217464/ft1_filtered_4FGL_J0239.7+0415_daily_bin1742.fits" evtable="EVENTS" scfile=/scratch/kocevski/217464/ft2_4FGL_J0239.7+0415_daily_bin1742.fits sctable="SC_DATA" outfile=/scratch/kocevski/217464/ltcube_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.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/217464/ft2_4FGL_J0239.7+0415_daily_bin1742.fits
.....................!
real 17.25
user 16.82
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217464/ft1_filtered_4FGL_J0239.7+0415_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217464/ft2_4FGL_J0239.7+0415_daily_bin1742.fits sctable="SC_DATA" expcube=/scratch/kocevski/217464/ltcube_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.fits outfile=/scratch/kocevski/217464/expmap_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.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/217464/ltcube_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.fits
.....................!
real 192.02
user 186.81
sys 4.76

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 165 point sources and 0 extended sources

Setting source of interest to:
4FGL J0239.7+0415 @ 39.9403 4.2643

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/217464/ft1_filtered_4FGL_J0239.7+0415_daily_bin1742.fits scfile=/scratch/kocevski/217464/ft2_4FGL_J0239.7+0415_daily_bin1742.fits outfile=/scratch/kocevski/217464/cmap_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.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=39.9403 yref=4.2643 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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217464/ft1_filtered_4FGL_J0239.7+0415_daily_bin1742.fits scfile=/scratch/kocevski/217464/ft2_4FGL_J0239.7+0415_daily_bin1742.fits outfile=/scratch/kocevski/217464/cmap_HighResolution_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.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=39.9403 yref=4.2643 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.58
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217464/ft1_filtered_4FGL_J0239.7+0415_daily_bin1742.fits evtable="EVENTS" scfile=/scratch/kocevski/217464/ft2_4FGL_J0239.7+0415_daily_bin1742.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217464/Model_4FGL_J0239.7+0415_daily_bin1742.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/217464/ft1_filtered_4FGL_J0239.7+0415_daily_bin1742.fits.........................!
real 23.36
user 21.34
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217464/ft1_filtered_4FGL_J0239.7+0415_daily_bin1742.fits', '/scratch/kocevski/217464/ft2_4FGL_J0239.7+0415_daily_bin1742.fits', expMap='/scratch/kocevski/217464/expmap_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.fits', expCube='/scratch/kocevski/217464/ltcube_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217464/Model_4FGL_J0239.7+0415_daily_bin1742.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0239.7+0415'

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  7.975e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
278        Index:  2.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/217464/ft1_filtered_4FGL_J0239.7+0415_daily_bin1742.fits
Spacecraft file(s): /scratch/kocevski/217464/ft2_4FGL_J0239.7+0415_daily_bin1742.fits
Exposure map: /scratch/kocevski/217464/expmap_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.fits
Exposure cube: /scratch/kocevski/217464/ltcube_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217464/Model_4FGL_J0239.7+0415_daily_bin1742.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) = 966.204632552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.123       1.0000          .0000       .10000E+07
     2 'norm      '    .18648       1.0000          .0000       .10000E+07
     3 'Prefactor '    6.9387       1.0000          .0000       .10000E+07
     4 'norm      '    1.3024       1.0000          .0000       .10000E+07
     5 'Prefactor '    68.947       1.0000          .0000       .10000E+07
     6 'Prefactor '    209.54       1.0000          .0000       .10000E+07
     7 'Prefactor '    60.944       1.0000          .0000       .10000E+07
     8 'Prefactor '    .16309E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10926E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .11091       1.0000          .0000       .10000E+07
    11 'Prefactor '    .21407       1.0000          .0000       .10000E+07
    12 'norm      '    .96913E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .16854E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .76536E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    61.545       1.0000          .0000       .10000E+07
    16 'Prefactor '    .26266E-01   1.0000          .0000       .10000E+07
    17 'norm      '    127.83       1.0000          .0000       .10000E+07
    18 'norm      '    .12973E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .72817E-01   1.0000          .0000       .10000E+07
    20 'norm      '    .33093E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .44891E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    27.604       1.0000          .0000       .10000E+07
    23 'Normalizat'    .42994       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83022       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   966.2038     FROM MIGRAD    STATUS=CONVERGED    209 CALLS     2683 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.704        17.980        .19077E-05   -.61890E-03
   2  norm          .73497E-06    368.56       -.12089E-05** at limit **
   3  Prefactor     6.9627        6.8051        .29420E-06    .17257E-03
   4  norm          1.3024        1.5742        .13952E-06   -.67522E-03
   5  Prefactor     69.588        65.927       -.17668E-04   -.58193E-01
   6  Prefactor     210.64        73.125        .88055E-05   -.31609    
   7  Prefactor     61.099        45.223        .17351E-04    .65382E-01
   8  Prefactor     .55511E-09    75.125        .21108E-05** at limit **
   9  Prefactor     .12657E-07    72.764        .64280E-05** at limit **
  10  Prefactor     .34417E-08    107.19       -.10021E-05** at limit **
  11  Prefactor     .17863E-06    144.17        .17243E-04** at limit **
  12  norm          .94369E-09    19.879       -.50839E-05** at limit **
  13  Prefactor     .24480E-07    78.085       -.46182E-05** at limit **
  14  Prefactor     .99920E-09    96.536        .27268E-06** at limit **
  15  Prefactor     63.963        149.53        .17200E-04    .64196E-01
  16  Prefactor      .0000        81.889        .49149E-06** at limit **
  17  norm          127.46        18.868        .13005E-05   -.10956    
  18  norm          .16098E-08    21.712        .62921E-05** at limit **
  19  Prefactor      .0000        28.882        .48308E-06** at limit **
  20  norm          .55511E-10    44.091       -.91756E-06** at limit **
  21  Prefactor     .88818E-09    86.088       -.37189E-05** at limit **
  22  Prefactor     27.963        22.075       -.70056E-05    .52718E-01
  23  Normalizat    .42943        .41933       -.61357E-04    .50924E-04
  24  Prefactor     .83066        .30542       -.35844E-04    .18057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7039
  norm       = 7.34968e-07
  Prefactor  = 6.96268
  norm       = 1.30236
  Prefactor  = 69.5876
  Prefactor  = 210.64
  Prefactor  = 61.0987
  Prefactor  = 5.55112e-10
  Prefactor  = 1.26565e-08
  Prefactor  = 3.44169e-09
  Prefactor  = 1.78635e-07
  norm       = 9.4369e-10
  Prefactor  = 2.44804e-08
  Prefactor  = 9.99201e-10
  Prefactor  = 63.9632
  Prefactor  = 0
  norm       = 127.459
  norm       = 1.60982e-09
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 8.88178e-10
  Prefactor  = 27.963
  Normalizat = 0.429434
  Prefactor  = 0.830661
 **********
 **   18 **HESSE 
 **********

 FCN=   966.2038     FROM HESSE     STATUS=OK           443 CALLS     3126 TOTAL
                     EDM=   .66E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.704        18.179        .22876E-03   -1.5621    
   2  norm          .73497E-06    14.850        .91205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9627        7.0983        .38063E-03   -1.5655    
   4  norm          1.3024        1.5934        .92916E-03   -1.5685    
   5  Prefactor     69.588        68.735        .12044E-03   -1.5541    
   6  Prefactor     210.64        364.17        .69089E-04   -1.5418    
   7  Prefactor     61.099        46.949        .12810E-03   -1.5552    
   8  Prefactor     .55511E-09    74.829        .17293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12657E-07    72.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .34417E-08    107.08        .13645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .17863E-06    143.41        .11530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .94369E-09    19.869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .24480E-07    74.514        .17253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .99920E-09    96.477        .14608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     63.963        155.78        .12748E-03   -1.5548    
  16  Prefactor      .0000        80.528        .16655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          127.46        108.25        .88453E-04   -1.5482    
  18  norm          .16098E-08    21.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        28.875        .14726E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .55511E-10    44.036        .16291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .88818E-09    85.973        .15750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.963        89.073        .19037E-03   -1.5602    
  23  Normalizat    .42943        .39591        .84261E-01   -1.1581    
  24  Prefactor     .83066        .28995        .44109E-01   -.98608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55766e-05
Minuit parameter uncertainties:
  1  18.1787
  2  0.00660744
  3  7.09835
  4  1.59336
  5  68.7359
  6  364.208
  7  46.9492
  8  0.000403251
  9  0.00191809
  10  0.00120943
  11  0.0101231
  12  0.000277083
  13  0.00270152
  14  0.000620851
  15  155.794
  16  1.89128e-05
  17  108.25
  18  0.000374797
  19  3.55024e-05
  20  8.03977e-05
  21  0.000557696
  22  89.0769
  23  0.398536
  24  0.290486
Done.

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

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.786e-07  1.012e-02  0.000e+00  1.000e+06 ( 1.000e-12)
278        Index:  2.775e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  8.307e-01  2.905e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  4.294e-01  3.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 39.940 4.264
Photon Flux Upper Limit: 5.89e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.65e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217464/likelihoodResults_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.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) = 966.207168716
delta logL = -0.00336287631956

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 966.19063948
delta logL = 0.0131663595785

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.647       1.0000          .0000       .10000E+07
     2 'Index     '    1.9689       1.0000          .0000       10.000    
     3 'Normalizat'    .43499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   966.1906     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      281 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.649        127.97        .11257E-04    .86609E-03
   2  Index         1.9689        1.7336        .10332E-01    .61263E-04
   3  Normalizat    .43499        .41554        .37105E-03    .51818E-05
   4  Prefactor     .81848        .30554        .19403E-03    .25742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6485
  Index      = 1.96891
  Normalizat = 0.434992
  Prefactor  = 0.818482
 **********
 **   18 **HESSE 
 **********

 FCN=   966.1906     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.649        128.73        .22513E-05   -1.5637    
   2  Index         1.9689        1.7392        .41327E-03   -.65130    
   3  Normalizat    .43499        .41561        .14842E-04   -1.1553    
   4  Prefactor     .81848        .30549        .38805E-04   -.99051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24931e-09
Minuit parameter uncertainties:
  1  80.705
  2  1.80003
  3  0.418614
  4  0.306129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217464': 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) = 966.190639479
delta logL = 0.0131663599169

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.265e+01  8.071e+01  0.000e+00  1.000e+06 ( 1.000e-12)
278        Index:  1.969e+00  1.800e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  4.112e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  8.185e-01  3.061e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  4.350e-01  4.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 39.940 4.264

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/217464/cmap_HighResolution_690854401_691113601_4FGL_J0239.7+0415_daily_bin1742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.65e-02', job_status='DONE', photon_flux_upper_limit='5.89e-07', time_completed='2022-11-26 00:19:42.478387', job_id='217464', GAL2='0.82', fit_tolerance='1e-08', EG2='0.43', EG='0.43', time_epoch_completed='1669450782.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.32e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.78' WHERE bin_id='1742' AND source_name='4FGL J0239.7+0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Nov 26 00:19:42 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 217464: <4FGL_J0239.7+0415_daily_bin1742> in cluster <slac> Done

Job <4FGL_J0239.7+0415_daily_bin1742> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Nov 26 00:05:04 2022
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Nov 26 00:13:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Nov 26 00:13:13 2022
Terminated at Sat Nov 26 00:19:43 2022
Results reported at Sat Nov 26 00:19:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.7+0415_daily_bin1742 39.9403 4.2643 690854401 691113601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0239.7+0415 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   375.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             358.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   390 sec.
    Turnaround time :                            879 sec.

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

