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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1748
RA = 224.673, Dec = 37.3726
tmin = 692409601, tmax = 692668801
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='889351', job_status='RUN', time_executed='2022-12-14 00:53:26.295137', time_epoch_executed='1671008006.3' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889351

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889351/ft1_4FGL_J1458.6+3722_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889351/ft2_4FGL_J1458.6+3722_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889351/ft1_4FGL_J1458.6+3722_daily_bin1748.fits outfile=/scratch/kocevski/889351/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1748.fits ra=224.673 dec=37.3726 rad=12.0 tmin=692409601.0 tmax=692668801.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.59
user 3.33
sys 0.23

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

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

Number of photons that the gtmktime cut: 667

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889351/ft1_filtered_4FGL_J1458.6+3722_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/889351/ft2_4FGL_J1458.6+3722_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/889351/ltcube_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.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/889351/ft2_4FGL_J1458.6+3722_daily_bin1748.fits
.....................!
real 12.53
user 12.04
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889351/ft1_filtered_4FGL_J1458.6+3722_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/889351/ft2_4FGL_J1458.6+3722_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/889351/ltcube_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.fits outfile=/scratch/kocevski/889351/expmap_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.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/889351/ltcube_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.fits
.....................!
real 191.17
user 185.20
sys 5.31

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/889351/ft1_filtered_4FGL_J1458.6+3722_daily_bin1748.fits scfile=/scratch/kocevski/889351/ft2_4FGL_J1458.6+3722_daily_bin1748.fits outfile=/scratch/kocevski/889351/cmap_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889351/ft1_filtered_4FGL_J1458.6+3722_daily_bin1748.fits scfile=/scratch/kocevski/889351/ft2_4FGL_J1458.6+3722_daily_bin1748.fits outfile=/scratch/kocevski/889351/cmap_HighResolution_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.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.55
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/889351/ft1_filtered_4FGL_J1458.6+3722_daily_bin1748.fits', '/scratch/kocevski/889351/ft2_4FGL_J1458.6+3722_daily_bin1748.fits', expMap='/scratch/kocevski/889351/expmap_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.fits', expCube='/scratch/kocevski/889351/ltcube_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/889351/Model_4FGL_J1458.6+3722_daily_bin1748.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/889351/ft1_filtered_4FGL_J1458.6+3722_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/889351/ft2_4FGL_J1458.6+3722_daily_bin1748.fits
Exposure map: /scratch/kocevski/889351/expmap_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.fits
Exposure cube: /scratch/kocevski/889351/ltcube_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/889351/Model_4FGL_J1458.6+3722_daily_bin1748.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) = 7139.81861553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    60.240       1.0000          .0000       .10000E+07
     2 'Prefactor '    19.311       1.0000          .0000       .10000E+07
     3 'norm      '    2.2650       1.0000          .0000       .10000E+07
     4 'Prefactor '    .16103E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.2688       1.0000          .0000       .10000E+07
     6 'Prefactor '    30.464       1.0000          .0000       .10000E+07
     7 'norm      '    9.2541       1.0000          .0000       .10000E+07
     8 'norm      '    .81057E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    68.208       1.0000          .0000       .10000E+07
    10 'norm      '    .67229E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.4714       1.0000          .0000       .10000E+07
    12 'Prefactor '    3.1360       1.0000          .0000       .10000E+07
    13 'Prefactor '    .28339E-02   1.0000          .0000       .10000E+07
    14 'norm      '    5.3327       1.0000          .0000       .10000E+07
    15 'norm      '    5.0941       1.0000          .0000       .10000E+07
    16 'Prefactor '    .21589E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .11970E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .40262E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .42667E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .92837       1.0000          .0000       .10000E+07
    21 'Prefactor '    .12146E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    13.138       1.0000          .0000       .10000E+07
    23 'norm      '    .14219E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .46516E-01   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0875       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .71334       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=   7139.799     FROM MIGRAD    STATUS=CONVERGED    133 CALLS     2239 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          60.226        1.2782       -.50811E-08    .26824E-01
   2  Prefactor     19.377        1.6070       -.18810E-07    .28129E-01
   3  norm          2.2675        3.5503        .20449E-06    .13212E-02
   4  Prefactor     .13323E-08    8.4015       -.95514E-07** at limit **
   5  Prefactor     1.2528        3.1104       -.49837E-07    .20397E-01
   6  Prefactor     30.471        5.5962        .12701E-07    .35677E-02
   7  norm          9.3388        1.7080       -.92182E-08    .11462E-01
   8  norm          .75384E-07    1.9165        .10708E-06** at limit **
   9  Prefactor     68.493        2.8866        .18584E-07   -.24289    
  10  norm          .55511E-09    2.4444       -.10667E-07** at limit **
  11  Prefactor     1.5470        9.6526        .73742E-06   -.28875E-02
  12  Prefactor     3.1063        5.0992       -.90539E-07   -.23437E-03
  13  Prefactor     .41127E-05    6.6643        .50433E-06** at limit **
  14  norm          5.3368        1.8562        .80738E-08    .16153E-03
  15  norm          5.1029        3.2770       -.10620E-06   -.51316E-02
  16  Prefactor      .0000        2.7710        .82638E-08** at limit **
  17  Prefactor     .58009E-07    25.140        .51323E-07** at limit **
  18  Prefactor     .15932E-07    5.1409        .11803E-06** at limit **
  19  Prefactor     .20784E-05    11.234        .61302E-06** at limit **
  20  norm          .92716        1.0364        .60353E-07    .30701E-02
  21  Prefactor     .66613E-08    2.3799        .13653E-06** at limit **
  22  Prefactor     13.086        1.0061        .26410E-08    .16846E-03
  23  norm          .49516E-07    2.0829       -.40885E-07** at limit **
  24  Prefactor     .57176E-08    1.1311       -.15144E-07** at limit **
  25  Normalizat    1.0869        .18433       -.18904E-05   -.98445E-04
  26  Prefactor     .71389        .18194       -.37180E-06   -.70108E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 60.2263
  Prefactor  = 19.3765
  norm       = 2.26753
  Prefactor  = 1.33227e-09
  Prefactor  = 1.25281
  Prefactor  = 30.4713
  norm       = 9.33879
  norm       = 7.53841e-08
  Prefactor  = 68.4934
  norm       = 5.55112e-10
  Prefactor  = 1.54701
  Prefactor  = 3.10634
  Prefactor  = 4.11265e-06
  norm       = 5.33677
  norm       = 5.10293
  Prefactor  = 0
  Prefactor  = 5.80092e-08
  Prefactor  = 1.59317e-08
  Prefactor  = 2.07845e-06
  norm       = 0.92716
  Prefactor  = 6.66134e-09
  Prefactor  = 13.0861
  norm       = 4.95159e-08
  Prefactor  = 5.71765e-09
  Normalizat = 1.08687
  Prefactor  = 0.713891
 **********
 **   18 **HESSE 
 **********

 FCN=   7139.799     FROM HESSE     STATUS=OK           516 CALLS     2755 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          60.226        25.238        .12885E-03   -1.5553    
   2  Prefactor     19.377        26.500        .22764E-03   -1.5620    
   3  norm          2.2675        3.6351        .68222E-03   -1.5678    
   4  Prefactor     .13323E-08    8.4663        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2528        33.487        .98778E-03   -1.5686    
   6  Prefactor     30.471        5.5997        .18121E-03   -1.5598    
   7  norm          9.3388        13.456        .32921E-03   -1.5647    
   8  norm          .75384E-07    3.0032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     68.493        34.038        .12109E-03   -1.5542    
  10  norm          .55511E-09    2.4483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5470        9.7858        .88548E-03   -1.5683    
  12  Prefactor     3.1063        5.1256        .57221E-03   -1.5673    
  13  Prefactor     .41127E-05    19.471        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.3368        1.8555        .43497E-03   -1.5662    
  15  norm          5.1029        3.2860        .44524E-03   -1.5663    
  16  Prefactor      .0000        3.5856        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .58009E-07    25.353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .15932E-07    5.2192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .20784E-05    16.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .92716        1.0508        .43818E-03   -1.5689    
  21  Prefactor     .66613E-08    3.2058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.086        17.874        .27609E-03   -1.5636    
  23  norm          .49516E-07    2.6391        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .57176E-08    9.7389        .94503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0869        .16762        .38533E-01   -.90174    
  26  Prefactor     .71389        .15837        .62841E-01   -1.0299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1767e-06
Minuit parameter uncertainties:
  1  25.2379
  2  26.5
  3  3.6351
  4  0.000211072
  5  12.9543
  6  5.59966
  7  13.4561
  8  0.000951799
  9  34.038
  10  7.33084e-05
  11  7.78171
  12  5.12558
  13  0.0178974
  14  1.85552
  15  3.28595
  16  7.64194e-06
  17  0.00242506
  18  0.000576863
  19  0.0116957
  20  1.05075
  21  0.000292721
  22  17.8738
  23  0.000722872
  24  0.000471915
  25  0.167698
  26  0.158469
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  3.106e+00  5.126e+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:  7.139e-01  1.585e-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.087e+00  1.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/889351/likelihoodResults_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.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) = 7139.62778125
delta logL = 0.170755395793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7139.60490725
delta logL = 0.193629388909

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5369       1.0000          .0000       .10000E+07
     2 'Index     '    2.9320       1.0000          .0000       10.000    
     3 'Normalizat'    1.0668       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72603       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=   7139.605     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      258 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5326        44.649        .86002E-03    .68962E-02
   2  Index         2.9342        3.5323        .13037        .14286E-03
   3  Normalizat    1.0671        .42217E-01    .39549E-01    .14682E-04
   4  Prefactor     .72552        .39720E-01    .62365E-01    .29756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.53257
  Index      = 2.93421
  Normalizat = 1.06712
  Prefactor  = 0.725523
 **********
 **   18 **HESSE 
 **********

 FCN=   7139.605     FROM HESSE     STATUS=OK            33 CALLS      291 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5326        6.3445        .12156E-04   -1.5683    
   2  Index         2.9342        2.0813        .80639E-02   -.42592    
   3  Normalizat    1.0671        .18800        .22923E-03   -.90815    
   4  Prefactor     .72552        .18522        .27587E-03   -1.0253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17093e-10
Minuit parameter uncertainties:
  1  6.23651
  2  2.16154
  3  0.18812
  4  0.185374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889351': 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) = 7139.60490038
delta logL = 0.193636264368

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.533e+00  6.237e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.934e+00  2.162e+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:  7.255e-01  1.854e-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.067e+00  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 224.673 37.373
Photon Index (Free Index): 2.93 +/- 2.16
Photon Flux (Free Index): 2.90e-08 +/- 4.63e-08
Energy Flux (Free Index): 5.98e-06 +/- 7.32e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/889351/cmap_HighResolution_692409601_692668801_4FGL_J1458.6+3722_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.04e-03', comment='SUCCESS', energy_flux2='5.98e-06', dlogl='1.94e-01', photon_flux2='2.90e-08', job_status='DONE', time_completed='2022-12-14 01:05:20.279399', photon_index_error2='2.16', photon_index2='2.93', ts='0.61', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='6.62e-08', energy_flux_error2='7.32e-06', EG='1.09', time_epoch_completed='1671008720.28', return_code='0', job_id='889351', GAL2='0.73', EG2='1.07', return_code2='0', photon_flux_error2='4.63e-08', ts2='1.01', photon_index='2.18' WHERE bin_id='1748' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:05:20 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 889351: <4FGL_J1458.6+3722_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1748> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Dec 14 00:50:20 2022
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:50:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:50:21 2022
Terminated at Wed Dec 14 01:05:21 2022
Results reported at Wed Dec 14 01:05:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1748 224.673 37.3726 692409601 692668801 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 :                                   715.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             278.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            901 sec.

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

