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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1751
RA = 224.673, Dec = 37.3726
tmin = 693187201, tmax = 693446401
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='80355', job_status='RUN', time_executed='2022-12-23 00:52:37.909091', time_epoch_executed='1671785557.91' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/80355

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/80355/ft1_4FGL_J1458.6+3722_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/80355/ft2_4FGL_J1458.6+3722_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/80355/ft1_4FGL_J1458.6+3722_daily_bin1751.fits outfile=/scratch/kocevski/80355/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1751.fits ra=224.673 dec=37.3726 rad=12.0 tmin=693187201.0 tmax=693446401.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.64
user 3.42
sys 0.21

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

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

Number of photons that the gtmktime cut: 599

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/80355/ft1_filtered_4FGL_J1458.6+3722_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/80355/ft2_4FGL_J1458.6+3722_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/80355/ltcube_693187201_693446401_4FGL_J1458.6+3722_daily_bin1751.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/80355/ft2_4FGL_J1458.6+3722_daily_bin1751.fits
.....................!
real 12.34
user 12.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/80355/ft1_filtered_4FGL_J1458.6+3722_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/80355/ft2_4FGL_J1458.6+3722_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/80355/ltcube_693187201_693446401_4FGL_J1458.6+3722_daily_bin1751.fits outfile=/scratch/kocevski/80355/expmap_693187201_693446401_4FGL_J1458.6+3722_daily_bin1751.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/80355/ltcube_693187201_693446401_4FGL_J1458.6+3722_daily_bin1751.fits
.....................!
real 191.18
user 185.47
sys 5.40

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/80355/ft1_filtered_4FGL_J1458.6+3722_daily_bin1751.fits scfile=/scratch/kocevski/80355/ft2_4FGL_J1458.6+3722_daily_bin1751.fits outfile=/scratch/kocevski/80355/cmap_693187201_693446401_4FGL_J1458.6+3722_daily_bin1751.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/80355/ft1_filtered_4FGL_J1458.6+3722_daily_bin1751.fits scfile=/scratch/kocevski/80355/ft2_4FGL_J1458.6+3722_daily_bin1751.fits outfile=/scratch/kocevski/80355/cmap_HighResolution_693187201_693446401_4FGL_J1458.6+3722_daily_bin1751.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.3130       1.0000          .0000       .10000E+07
     2 'Prefactor '    27.300       1.0000          .0000       .10000E+07
     3 'norm      '    5.2884       1.0000          .0000       .10000E+07
     4 'Prefactor '    .13962E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10694E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    36.983       1.0000          .0000       .10000E+07
     7 'norm      '    .28972E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .87654E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    102.90       1.0000          .0000       .10000E+07
    10 'norm      '    .16106E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10452E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.0268       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.2196       1.0000          .0000       .10000E+07
    14 'norm      '    .91172E-01   1.0000          .0000       .10000E+07
    15 'norm      '    1.4990       1.0000          .0000       .10000E+07
    16 'Prefactor '    .23900E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    17.007       1.0000          .0000       .10000E+07
    18 'Prefactor '    .13151E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    .23962E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .95549       1.0000          .0000       .10000E+07
    21 'Prefactor '    .63108E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    9.6884       1.0000          .0000       .10000E+07
    23 'norm      '    10.624       1.0000          .0000       .10000E+07
    24 'Prefactor '    .16320E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    .99139       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0320       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=   6371.127     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     2330 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.3131        1.8970        .60975E-10    .98725E-03
   2  Prefactor     27.652        5.7172        .11830E-07   -.52967E-01
   3  norm          5.2925        3.9840        .25099E-08    .31268E-03
   4  Prefactor     .17641E-06    3.3303        .10727E-06** at limit **
   5  Prefactor     .80286E-06    7.5218        .12548E-06** at limit **
   6  Prefactor     36.868        7.0410       -.75509E-08   -.36051E-02
   7  norm          .55511E-10    3.5778        .20528E-06** at limit **
   8  norm          .26090E-08    6.3804       -.13660E-06** at limit **
   9  Prefactor     103.71        36.320       -.18637E-08    .19891    
  10  norm          .67280E-07    21.991       -.44844E-07** at limit **
  11  Prefactor     .15266E-06    7.3214        .11270E-06** at limit **
  12  Prefactor     7.0399        7.3986       -.31362E-07   -.10954E-02
  13  Prefactor     2.2257        3.8415       -.64405E-07   -.90958E-03
  14  norm          .92490E-01    3.0034        .12592E-06** at limit **
  15  norm          1.4986        3.2257       -.39832E-08    .95030E-03
  16  Prefactor     .73996E-07    5.3686       -.43139E-07** at limit **
  17  Prefactor     16.131        59.127       -.21797E-07    .38277E-01
  18  Prefactor     .95035E-07    4.0758       -.28496E-07** at limit **
  19  Prefactor     .74274E-07    13.179       -.16135E-06** at limit **
  20  norm          .95706        .86872       -.10439E-06   -.12871E-01
  21  Prefactor     .36082E-08    6.6522       -.11007E-06** at limit **
  22  Prefactor     9.2548        23.706       -.44268E-07    .88229E-01
  23  norm          10.636        11.666       -.54689E-08   -.25503E-01
  24  Prefactor     .16576E-06    4.5485        .10418E-06** at limit **
  25  Normalizat    .99065        .21235       -.39489E-05   -.66895E-04
  26  Prefactor     1.0328        .21786        .48807E-05    .26171E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.31314
  Prefactor  = 27.6523
  norm       = 5.29246
  Prefactor  = 1.76414e-07
  Prefactor  = 8.02858e-07
  Prefactor  = 36.8681
  norm       = 5.55112e-11
  norm       = 2.60902e-09
  Prefactor  = 103.711
  norm       = 6.72795e-08
  Prefactor  = 1.52656e-07
  Prefactor  = 7.03988
  Prefactor  = 2.22567
  norm       = 0.0924897
  norm       = 1.49861
  Prefactor  = 7.39964e-08
  Prefactor  = 16.1314
  Prefactor  = 9.50351e-08
  Prefactor  = 7.42739e-08
  norm       = 0.957062
  Prefactor  = 3.60822e-09
  Prefactor  = 9.2548
  norm       = 10.6364
  Prefactor  = 1.65756e-07
  Normalizat = 0.99065
  Prefactor  = 1.03283
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.127     FROM HESSE     STATUS=OK           510 CALLS     2840 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.3131        12.351        .32816E-03   -1.5647    
   2  Prefactor     27.652        26.312        .19142E-03   -1.5603    
   3  norm          5.2925        3.9888        .43683E-03   -1.5662    
   4  Prefactor     .17641E-06    8.2632        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .80286E-06    9.4897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.868        7.0396        .16446E-03   -1.5587    
   7  norm          .55511E-10    3.5803        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .26090E-08    13.206        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     103.71        44.906        .98588E-04   -1.5504    
  10  norm          .67280E-07    21.907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .15266E-06    7.7699        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.0399        7.1581        .37821E-03   -1.5655    
  13  Prefactor     2.2257        3.8680        .68997E-03   -1.5678    
  14  norm          .92490E-01    .93573        .25859E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4986        3.2674        .87441E-03   -1.5683    
  16  Prefactor     .73996E-07    10.536        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.131        66.243        .24259E-03   -1.5628    
  18  Prefactor     .95035E-07    10.734        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .74274E-07    14.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .95706        .87422        .42183E-03   -1.5688    
  21  Prefactor     .36082E-08    6.6558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2548        33.433        .32170E-03   -1.5647    
  23  norm          10.636        11.846        .30714E-03   -1.5643    
  24  Prefactor     .16576E-06    8.2814        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .99065        .18380        .46059E-01   -.93344    
  26  Prefactor     1.0328        .18804        .41105E-01   -.91643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43633e-06
Minuit parameter uncertainties:
  1  12.3509
  2  26.3119
  3  3.98881
  4  0.00241483
  5  0.00552045
  6  7.03963
  7  2.4567e-05
  8  0.000371045
  9  44.9066
  10  0.00242815
  11  0.00217832
  12  7.15806
  13  3.86802
  14  0.588373
  15  3.26745
  16  0.00176619
  17  65.3799
  18  0.00201997
  19  0.00205156
  20  0.874222
  21  0.00030957
  22  33.4339
  23  11.8462
  24  0.0023432
  25  0.183916
  26  0.188158
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  7.040e+00  7.158e+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:  1.033e+00  1.882e-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:  9.906e-01  1.839e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 224.673 37.373
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/80355/likelihoodResults_693187201_693446401_4FGL_J1458.6+3722_daily_bin1751.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) = 6371.03827063
delta logL = 0.088753789717

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6371.03517003
delta logL = 0.0918543932703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9694       1.0000          .0000       .10000E+07
     2 'Index     '    2.5105       1.0000          .0000       10.000    
     3 'Normalizat'    .97623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0419       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6371.035     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9694        9.2695        .77834E-04   -.11169E-02
   2  Index         2.5107        .99238        .68859E-02    .57454E-03
   3  Normalizat    .97624        .20956        .25508E-03    .40113E-06
   4  Prefactor     1.0419        .21595        .25850E-03    .15833E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.96943
  Index      = 2.51067
  Normalizat = 0.976242
  Prefactor  = 1.04187
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.035     FROM HESSE     STATUS=OK            27 CALLS      308 TOTAL
                     EDM=   .60E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9694        7.4302        .31134E-05   -1.5663    
   2  Index         2.5107        .79743        .13772E-02   -.52114    
   3  Normalizat    .97624        .20897        .10203E-04   -.93831    
   4  Prefactor     1.0419        .21558        .10340E-04   -.91347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96104e-11
Minuit parameter uncertainties:
  1  7.43026
  2  0.801992
  3  0.209144
  4  0.215755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/80355': 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) = 6371.0351699
delta logL = 0.091854526112

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  4.969e+00  7.430e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.511e+00  8.020e-01  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:  1.042e+00  2.158e-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:  9.762e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 224.673 37.373
Photon Index (Free Index): 2.51 +/- 0.80
Photon Flux (Free Index): 3.68e-08 +/- 3.90e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.03e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/80355/cmap_HighResolution_693187201_693446401_4FGL_J1458.6+3722_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.87e-03', comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='1.06e-05', photon_flux_error='2.71e-08', dlogl='9.19e-02', energy_flux='1.23e-05', photon_flux2='3.68e-08', job_status='DONE', time_completed='2022-12-23 01:04:04.973869', photon_index_error2='0.80', photon_index2='2.51', ts='1.58', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='9.03e-08', energy_flux_error2='1.03e-05', EG='0.99', time_epoch_completed='1671786244.97', return_code='0', job_id='80355', GAL2='1.04', EG2='0.98', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='3.90e-08', ts2='1.76', photon_index='2.18' WHERE bin_id='1751' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:04:05 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 80355: <4FGL_J1458.6+3722_daily_bin1751> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1751 224.673 37.3726 693187201 693446401 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 :                                   689.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

