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 83 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 = 7681
number of fields = 31
RA_SUN column already exists. File will not be modified.DDone.


Performing analysis on: 4FGL_J0239.7+0415_daily_bin1780
RA = 39.9403, Dec = 4.2643
tmin = 700704001, tmax = 700963201
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='49260', job_status='RUN', time_executed='2023-03-20 00:07:08.411010', time_epoch_executed='1679296028.41' WHERE source_name='4FGL J0239.7+0415' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49260

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49260/ft1_4FGL_J0239.7+0415_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49260/ft2_4FGL_J0239.7+0415_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49260/ft1_4FGL_J0239.7+0415_daily_bin1780.fits outfile=/scratch/kocevski/49260/ft1_filteredMKT_4FGL_J0239.7+0415_daily_bin1780.fits ra=39.9403 dec=4.2643 rad=12.0 tmin=700704001.0 tmax=700963201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.30
user 3.88
sys 0.21

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

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

Number of photons that the gtmktime cut: 618

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49260/ft1_filtered_4FGL_J0239.7+0415_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/49260/ft2_4FGL_J0239.7+0415_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/49260/ltcube_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.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/49260/ft2_4FGL_J0239.7+0415_daily_bin1780.fits
.....................!
real 13.29
user 12.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49260/ft1_filtered_4FGL_J0239.7+0415_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/49260/ft2_4FGL_J0239.7+0415_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/49260/ltcube_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.fits outfile=/scratch/kocevski/49260/expmap_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.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/49260/ltcube_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.fits
.....................!
real 190.98
user 185.40
sys 4.85

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/49260/ft1_filtered_4FGL_J0239.7+0415_daily_bin1780.fits scfile=/scratch/kocevski/49260/ft2_4FGL_J0239.7+0415_daily_bin1780.fits outfile=/scratch/kocevski/49260/cmap_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49260/ft1_filtered_4FGL_J0239.7+0415_daily_bin1780.fits scfile=/scratch/kocevski/49260/ft2_4FGL_J0239.7+0415_daily_bin1780.fits outfile=/scratch/kocevski/49260/cmap_HighResolution_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.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.61
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/49260/ft1_filtered_4FGL_J0239.7+0415_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/49260/ft2_4FGL_J0239.7+0415_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49260/Model_4FGL_J0239.7+0415_daily_bin1780.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/49260/ft1_filtered_4FGL_J0239.7+0415_daily_bin1780.fits.....................!
real 83.10
user 81.06
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49260/ft1_filtered_4FGL_J0239.7+0415_daily_bin1780.fits', '/scratch/kocevski/49260/ft2_4FGL_J0239.7+0415_daily_bin1780.fits', expMap='/scratch/kocevski/49260/expmap_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.fits', expCube='/scratch/kocevski/49260/ltcube_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49260/Model_4FGL_J0239.7+0415_daily_bin1780.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/49260/ft1_filtered_4FGL_J0239.7+0415_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/49260/ft2_4FGL_J0239.7+0415_daily_bin1780.fits
Exposure map: /scratch/kocevski/49260/expmap_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.fits
Exposure cube: /scratch/kocevski/49260/ltcube_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49260/Model_4FGL_J0239.7+0415_daily_bin1780.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) = 6793.81829699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.5199       1.0000          .0000       .10000E+07
     2 'norm      '    11.691       1.0000          .0000       .10000E+07
     3 'Prefactor '    4.9878       1.0000          .0000       .10000E+07
     4 'norm      '    1.4388       1.0000          .0000       .10000E+07
     5 'Prefactor '    .15802E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10427       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.134       1.0000          .0000       .10000E+07
     8 'Prefactor '    .97037E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .39429E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .84374E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    21.053       1.0000          .0000       .10000E+07
    12 'norm      '    .58592E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.3767       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.5018       1.0000          .0000       .10000E+07
    15 'Prefactor '    .12304E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.1810       1.0000          .0000       .10000E+07
    17 'norm      '    15.380       1.0000          .0000       .10000E+07
    18 'norm      '    17.875       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.3478       1.0000          .0000       .10000E+07
    20 'norm      '    .82678E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .10499E-01   1.0000          .0000       .10000E+07
    22 'Prefactor '    .40869E-04   1.0000          .0000       .10000E+07
    23 'Normalizat'    .79016       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0036       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=   6793.768     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     1952 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4464        1.8688        .16193E-06   -.88739E-02
   2  norm          11.662        6.6726       -.16333E-07    .59606E-03
   3  Prefactor     4.9890        2.9750        .45640E-07    .12974E-02
   4  norm          1.4381        .94298       -.95061E-07   -.44320E-02
   5  Prefactor     .33307E-09    11.766        .42899E-06** at limit **
   6  Prefactor      .0000        28.765        .57984E-06** at limit **
   7  Prefactor     12.487        10.719        .14769E-06   -.10118E-02
   8  Prefactor     .41911E-07    45.155        .14259E-06** at limit **
   9  Prefactor     .55511E-10    8.3281       -.47740E-06** at limit **
  10  Prefactor     .24123E-05    1.8205        .50923E-06** at limit **
  11  Prefactor     21.024        2.0534       -.10652E-06    .34011E-02
  12  norm          .27400E-05    13.412       -.24825E-06** at limit **
  13  Prefactor     2.2891        2.7825        .70020E-06   -.98496E-02
  14  Prefactor     6.8243        73.467       -.64898E-05    .38925E-02
  15  Prefactor     .55622E-07    14.698       -.48754E-06** at limit **
  16  Prefactor     3.2141        5.6779       -.11758E-06   -.13639E-02
  17  norm          15.352        10.124        .15728E-05    .43898E-01
  18  norm          17.896        5.7189       -.27224E-06   -.65708E-02
  19  Prefactor     1.3294        5.0475       -.32961E-06   -.41731E-03
  20  norm          .49960E-09    7.4162       -.11474E-05** at limit **
  21  Prefactor     .32349E-05    9.8576        .56990E-06** at limit **
  22  Prefactor      .0000        2.4311        .25107E-06** at limit **
  23  Normalizat    .79071        .20685        .28266E-05   -.33182E-04
  24  Prefactor     1.0037        .10966       -.19254E-07   -.57953E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.44642
  norm       = 11.6621
  Prefactor  = 4.98899
  norm       = 1.43811
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 12.4872
  Prefactor  = 4.19109e-08
  Prefactor  = 5.55112e-11
  Prefactor  = 2.41229e-06
  Prefactor  = 21.0238
  norm       = 2.73997e-06
  Prefactor  = 2.28913
  Prefactor  = 6.82433
  Prefactor  = 5.56222e-08
  Prefactor  = 3.21413
  norm       = 15.3518
  norm       = 17.8962
  Prefactor  = 1.32937
  norm       = 4.996e-10
  Prefactor  = 3.23491e-06
  Prefactor  = 0
  Normalizat = 0.790711
  Prefactor  = 1.00374
 **********
 **   18 **HESSE 
 **********

 FCN=   6793.768     FROM HESSE     STATUS=OK           449 CALLS     2401 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4464        14.176        .36548E-03   -1.5653    
   2  norm          11.662        7.0652        .29273E-03   -1.5640    
   3  Prefactor     4.9890        2.9798        .45005E-03   -1.5663    
   4  norm          1.4381        .94714        .89926E-03   -1.5684    
   5  Prefactor     .33307E-09    11.822        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        28.748        .13816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.487        10.900        .28732E-03   -1.5637    
   8  Prefactor     .41911E-07    45.082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    8.3559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .24123E-05    216.27        .14370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.024        18.608        .21801E-03   -1.5616    
  12  norm          .27400E-05    22.860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2891        22.571        .66425E-03   -1.5678    
  14  Prefactor     6.8243        76.767        .34356E-03   -1.5656    
  15  Prefactor     .55622E-07    15.031        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.2141        5.7382        .56793E-03   -1.5672    
  17  norm          15.352        10.416        .25512E-03   -1.5630    
  18  norm          17.896        5.7333        .23662E-03   -1.5623    
  19  Prefactor     1.3294        5.0730        .94248E-03   -1.5685    
  20  norm          .49960E-09    7.4127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .32349E-05    21.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        2.4279        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79071        .20639        .82578E-01   -1.0041    
  24  Prefactor     1.0037        .10103        .44519E-01   -.92605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12703e-07
Minuit parameter uncertainties:
  1  14.1762
  2  7.06517
  3  2.97975
  4  0.947142
  5  0.00012735
  6  1.47596e-05
  7  10.9003
  8  0.00274887
  9  4.0509e-05
  10  0.045684
  11  18.6076
  12  0.0158288
  13  14.376
  14  45.7779
  15  0.00182885
  16  5.73819
  17  10.416
  18  5.73327
  19  5.07304
  20  0.000122424
  21  0.0165505
  22  7.87357e-06
  23  0.206598
  24  0.101046
Done.

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

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  2.102e+01  1.861e+01  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:  1.004e+00  1.010e-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:  7.907e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 39.940 4.264
Photon Index (Fixed Index): 2.78 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 5.30e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/49260/likelihoodResults_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.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) = 6793.62919135
delta logL = 0.139092937033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6793.61573513
delta logL = 0.152549160653

Fit tolerance = 1e-08

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

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

 FCN=   6793.616     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      223 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.115        17.303        .24166E-03    .14946E-03
   2  Index         2.1798        .58777        .24845       -.18823E-04
   3  Normalizat    .82256        .18469        .81115E-01    .36801E-03
   4  Prefactor     .99508        .97882E-01    .46206E-01   -.22645E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.1152
  Index      = 2.17985
  Normalizat = 0.822558
  Prefactor  = 0.995081
 **********
 **   18 **HESSE 
 **********

 FCN=   6793.616     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.115        22.830        .96665E-05   -1.5625    
   2  Index         2.1798        1.0101        .11324E-01   -.59926    
   3  Normalizat    .82256        .20640        .35914E-03   -.99237    
   4  Prefactor     .99508        .10747        .17570E-03   -.92894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.69633e-10
Minuit parameter uncertainties:
  1  22.8297
  2  1.02048
  3  0.206601
  4  0.107493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49260': 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) = 6793.61573459
delta logL = 0.152549697313

Extracting fit parameters...

4FGL J0239.7+0415
   Spectrum: PowerLaw
277    Prefactor:  1.712e+01  2.283e+01  0.000e+00  1.000e+06 ( 1.000e-12)
278        Index:  2.180e+00  1.020e+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:  9.951e-01  1.075e-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:  8.226e-01  2.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.71
Ra Dec: 39.940 4.264
Photon Index (Free Index): 2.18 +/- 1.02
Photon Flux (Free Index): 3.16e-08 +/- 5.59e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.66e-05

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/49260/cmap_HighResolution_700704001_700963201_4FGL_J0239.7+0415_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.40e-02', comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='1.48e-05', photon_flux_error='5.30e-08', dlogl='1.53e-01', energy_flux='1.37e-05', photon_flux2='3.16e-08', job_status='DONE', time_completed='2023-03-20 00:18:27.512388', photon_index_error2='1.02', photon_index2='2.18', ts='2.45', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='1.66e-05', EG='0.79', time_epoch_completed='1679296707.51', return_code='0', job_id='49260', GAL2='1.00', EG2='0.82', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.59e-08', ts2='2.71', photon_index='2.78' WHERE bin_id='1780' AND source_name='4FGL J0239.7+0415' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 00:18:27 PDT 2023

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 49218: <4FGL_J0239.7+0415_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0239.7+0415_daily_bin1780> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Mar 20 00:05:12 2023
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:05:13 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:05:13 2023
Terminated at Mon Mar 20 00:16:07 2023
Results reported at Mon Mar 20 00:16:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.7+0415_daily_bin1780 39.9403 4.2643 700704001 700963201 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 :                                   634.24 sec.
    Max Memory :                                 617 MB
    Average Memory :                             303.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            655 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 49260: <4FGL_J0239.7+0415_daily_bin1780> in cluster <slac> Done

Job <4FGL_J0239.7+0415_daily_bin1780> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Mar 20 00:05:15 2023
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:05:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:05:16 2023
Terminated at Mon Mar 20 00:18:28 2023
Results reported at Mon Mar 20 00:18:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0239.7+0415_daily_bin1780 39.9403 4.2643 700704001 700963201 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 :                                   645.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

