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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1762
RA = 224.673, Dec = 37.3726
tmin = 696038401, tmax = 696297601
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='111998', job_status='RUN', time_executed='2023-01-25 01:11:26.262907', time_epoch_executed='1674637886.26' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/111998

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/111998/ft1_4FGL_J1458.6+3722_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/111998/ft2_4FGL_J1458.6+3722_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/111998/ft1_4FGL_J1458.6+3722_daily_bin1762.fits outfile=/scratch/kocevski/111998/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1762.fits ra=224.673 dec=37.3726 rad=12.0 tmin=696038401.0 tmax=696297601.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.74
user 3.48
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/111998/ft2_4FGL_J1458.6+3722_daily_bin1762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/111998/ft2_4FGL_J1458.6+3722_daily_bin1762.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/111998/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/111998/ft1_filtered_4FGL_J1458.6+3722_daily_bin1762.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.53
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 498

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/111998/ft1_filtered_4FGL_J1458.6+3722_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/111998/ft2_4FGL_J1458.6+3722_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/111998/ltcube_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.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/111998/ft2_4FGL_J1458.6+3722_daily_bin1762.fits
.....................!
real 12.67
user 12.17
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/111998/ft1_filtered_4FGL_J1458.6+3722_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/111998/ft2_4FGL_J1458.6+3722_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/111998/ltcube_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.fits outfile=/scratch/kocevski/111998/expmap_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.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/111998/ltcube_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.fits
.....................!
real 192.78
user 185.63
sys 5.60

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

Setting source of interest to:
4FGL J1458.6+3722 @ 224.673 37.3726

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/111998/ft1_filtered_4FGL_J1458.6+3722_daily_bin1762.fits scfile=/scratch/kocevski/111998/ft2_4FGL_J1458.6+3722_daily_bin1762.fits outfile=/scratch/kocevski/111998/cmap_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.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=224.673 yref=37.3726 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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/111998/ft1_filtered_4FGL_J1458.6+3722_daily_bin1762.fits scfile=/scratch/kocevski/111998/ft2_4FGL_J1458.6+3722_daily_bin1762.fits outfile=/scratch/kocevski/111998/cmap_HighResolution_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.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=224.673 yref=37.3726 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/111998/ft1_filtered_4FGL_J1458.6+3722_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/111998/ft2_4FGL_J1458.6+3722_daily_bin1762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/111998/Model_4FGL_J1458.6+3722_daily_bin1762.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/111998/ft1_filtered_4FGL_J1458.6+3722_daily_bin1762.fits.....................!
real 46.46
user 44.80
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/111998/ft1_filtered_4FGL_J1458.6+3722_daily_bin1762.fits', '/scratch/kocevski/111998/ft2_4FGL_J1458.6+3722_daily_bin1762.fits', expMap='/scratch/kocevski/111998/expmap_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.fits', expCube='/scratch/kocevski/111998/ltcube_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/111998/Model_4FGL_J1458.6+3722_daily_bin1762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1458.6+3722'

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.413e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.185e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/111998/ft1_filtered_4FGL_J1458.6+3722_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/111998/ft2_4FGL_J1458.6+3722_daily_bin1762.fits
Exposure map: /scratch/kocevski/111998/expmap_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.fits
Exposure cube: /scratch/kocevski/111998/ltcube_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/111998/Model_4FGL_J1458.6+3722_daily_bin1762.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) = 5653.08862552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.383       1.0000          .0000       .10000E+07
     2 'Prefactor '    .62067       1.0000          .0000       .10000E+07
     3 'norm      '    3.2657       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17980E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    .30338       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.7885       1.0000          .0000       .10000E+07
     7 'norm      '    .17216E-03   1.0000          .0000       .10000E+07
     8 'norm      '    .48007E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    130.57       1.0000          .0000       .10000E+07
    10 'norm      '    .29308E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .22108E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.5762       1.0000          .0000       .10000E+07
    13 'Prefactor '    .20716E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .13554E-05   1.0000          .0000       .10000E+07
    15 'norm      '    7.3448       1.0000          .0000       .10000E+07
    16 'Prefactor '    2.2872       1.0000          .0000       .10000E+07
    17 'Prefactor '    .53049E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .67211E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .21348E-01   1.0000          .0000       .10000E+07
    20 'norm      '    .18948E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .67487       1.0000          .0000       .10000E+07
    22 'Prefactor '    8.4874       1.0000          .0000       .10000E+07
    23 'norm      '    15.923       1.0000          .0000       .10000E+07
    24 'Prefactor '    .52855E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0570       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88634       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5652.974     FROM MIGRAD    STATUS=CONVERGED    194 CALLS     1848 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.364        7.1716       -.20063E-06    .70965E-01
   2  Prefactor     .10055E-02    371.55       -.28840E-05** at limit **
   3  norm          3.2769        4.3143       -.20298E-06   -.17220E-02
   4  Prefactor     .46346E-06    8.9961        .49045E-06** at limit **
   5  Prefactor     .27943        155.90        .28396E-05   -.29639E-01
   6  Prefactor     2.7841        3.0530       -.68561E-07   -.11931E-02
   7  norm          .16653E-09    5.2739       -.10248E-06** at limit **
   8  norm          .10958E-06    5.5543       -.51089E-06** at limit **
   9  Prefactor     128.35        46.100       -.59571E-06   -.14629    
  10  norm          .34972E-08    3.6713       -.32143E-06** at limit **
  11  Prefactor     .14400E-06    5.5639        .14516E-06** at limit **
  12  Prefactor     1.5823        5.7983       -.31741E-06   -.90775E-03
  13  Prefactor      .0000        1.2039       -.26086E-07** at limit **
  14  norm           .0000        .78882       -.76508E-07** at limit **
  15  norm          7.3974        5.3917       -.15370E-06    .69593E-03
  16  Prefactor     2.0040        17.296        .42884E-06   -.53735E-02
  17  Prefactor     .57221E-06    36.185        .10565E-05** at limit **
  18  Prefactor     .66613E-09    53.280        .12776E-05** at limit **
  19  Prefactor      .0000        15.172       -.85109E-07** at limit **
  20  norm          .22204E-09    3.7280        .58017E-07** at limit **
  21  Prefactor     .59721        32.245       -.17864E-05   -.34341E-01
  22  Prefactor     8.7685        12.926        .81767E-07   -.23048E-01
  23  norm          15.905        12.147       -.13965E-07   -.10031    
  24  Prefactor     .47495E-06    11.260       -.24171E-06** at limit **
  25  Normalizat    1.0603        .21384        .93973E-05    .50539E-04
  26  Prefactor     .88527        .20743       -.74696E-05   -.24340E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 31.3643
  Prefactor  = 0.00100553
  norm       = 3.27686
  Prefactor  = 4.63463e-07
  Prefactor  = 0.279434
  Prefactor  = 2.78405
  norm       = 1.66533e-10
  norm       = 1.09579e-07
  Prefactor  = 128.346
  norm       = 3.4972e-09
  Prefactor  = 1.43996e-07
  Prefactor  = 1.58228
  Prefactor  = 0
  norm       = 0
  norm       = 7.3974
  Prefactor  = 2.00399
  Prefactor  = 5.72209e-07
  Prefactor  = 6.66134e-10
  Prefactor  = 0
  norm       = 2.22045e-10
  Prefactor  = 0.597211
  Prefactor  = 8.76845
  norm       = 15.9055
  Prefactor  = 4.74953e-07
  Normalizat = 1.06029
  Prefactor  = 0.885266
 **********
 **   18 **HESSE 
 **********

 FCN=   5652.974     FROM HESSE     STATUS=OK           526 CALLS     2374 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.364        23.034        .17853E-03   -1.5596    
   2  Prefactor     .10055E-02    19.875        .10056E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2769        4.3570        .56013E-03   -1.5672    
   4  Prefactor     .46346E-06    11.518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27943        15.520        .10166E-01   -1.5697    
   6  Prefactor     2.7841        3.0608        .60906E-03   -1.5675    
   7  norm          .16653E-09    5.2778        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10958E-06    10.245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     128.35        50.419        .87519E-04   -1.5481    
  10  norm          .34972E-08    9.9260        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .14400E-06    9.6621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5823        5.8457        .84598E-03   -1.5683    
  13  Prefactor      .0000        1.2057        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .78679        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.3974        5.6683        .36985E-03   -1.5654    
  16  Prefactor     2.0040        23.025        .67852E-03   -1.5680    
  17  Prefactor     .57221E-06    36.456        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .66613E-09    19.977        .10831E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        14.952        .16950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .22204E-09    1.9169        .23527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .59721        94.123        .62772E-03   -1.5693    
  22  Prefactor     8.7685        61.427        .34385E-03   -1.5649    
  23  norm          15.905        14.087        .25073E-03   -1.5628    
  24  Prefactor     .47495E-06    11.904        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0603        .19509        .40113E-01   -.91037    
  26  Prefactor     .88527        .18070        .44831E-01   -.96658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08427e-06
Minuit parameter uncertainties:
  1  23.0341
  2  0.282739
  3  4.35701
  4  0.00462083
  5  4.16506
  6  3.06077
  7  5.92161e-05
  8  0.00211919
  9  50.4197
  10  0.000373722
  11  0.00235898
  12  5.84573
  13  6.65939e-06
  14  1.79399e-06
  15  5.66832
  16  13.5856
  17  0.00913484
  18  0.000228878
  19  4.00135e-06
  20  4.18193e-05
  21  14.9951
  22  46.417
  23  14.0873
  24  0.00475574
  25  0.195225
  26  0.180817
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.582e+00  5.846e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.185e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  8.853e-01  1.808e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.060e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 224.673 37.373
Photon Flux Upper Limit: 6.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/111998/likelihoodResults_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.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) = 5652.81261968
delta logL = 0.161078133375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5652.76331851
delta logL = 0.21037930141

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5652.763     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      234 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50462        18.561        .77984E-03    .12433E-01
   2  Index         3.4077        3.4306        .12710        .12375E-03
   3  Normalizat    1.0313        .37581E-01    .42031E-01   -.70236E-04
   4  Prefactor     .90255        .37456E-01    .45036E-01   -.20862E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.504624
  Index      = 3.40768
  Normalizat = 1.03131
  Prefactor  = 0.902553
 **********
 **   18 **HESSE 
 **********

 FCN=   5652.763     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50462        58.683        .79855E-05   -1.5694    
   2  Index         3.4077        5.8662        .74976E-02   -.32411    
   3  Normalizat    1.0313        .19244        .23536E-03   -.91989    
   4  Prefactor     .90255        .18364        .25072E-03   -.96052    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08547e-06
Minuit parameter uncertainties:
  1  10.8836
  2  9.90633
  3  0.192566
  4  0.183765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/111998': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5652.76331775
delta logL = 0.210380064563

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  5.046e-01  1.088e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  3.408e+00  9.906e+00  0.000e+00  1.000e+01 (-1.000e+00)
279        Scale:  1.637e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.026e-01  1.838e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.031e+00  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 224.673 37.373

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/111998/cmap_HighResolution_696038401_696297601_4FGL_J1458.6+3722_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2023-01-25 01:21:17.386437', job_id='111998', GAL2='0.90', fit_tolerance='1e-08', EG2='1.03', EG='1.06', time_epoch_completed='1674638477.39', return_code2='102', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.10e-01', ts2='0.54', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1762' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:21:17 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 111998: <4FGL_J1458.6+3722_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1762> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Wed Jan 25 01:05:23 2023
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:07:25 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:07:25 2023
Terminated at Wed Jan 25 01:21:18 2023
Results reported at Wed Jan 25 01:21:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1762 224.673 37.3726 696038401 696297601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1458.6+3722 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   591.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            955 sec.

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

