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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1759
RA = 224.673, Dec = 37.3726
tmin = 695260801, tmax = 695520001
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='561238', job_status='RUN', time_executed='2023-01-16 01:25:13.307279', time_epoch_executed='1673861113.31' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1759'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/561238

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/561238/ft1_4FGL_J1458.6+3722_daily_bin1759.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/561238/ft2_4FGL_J1458.6+3722_daily_bin1759.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/561238/ft1_4FGL_J1458.6+3722_daily_bin1759.fits outfile=/scratch/kocevski/561238/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1759.fits ra=224.673 dec=37.3726 rad=12.0 tmin=695260801.0 tmax=695520001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.72
user 2.49
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/561238/ft2_4FGL_J1458.6+3722_daily_bin1759.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/561238/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1759.fits evtable="EVENTS" outfile="/scratch/kocevski/561238/ft1_filtered_4FGL_J1458.6+3722_daily_bin1759.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.51
user 0.36
sys 0.14

Number of photons that the gtmktime cut: 825

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/561238/ft1_filtered_4FGL_J1458.6+3722_daily_bin1759.fits" evtable="EVENTS" scfile=/scratch/kocevski/561238/ft2_4FGL_J1458.6+3722_daily_bin1759.fits sctable="SC_DATA" outfile=/scratch/kocevski/561238/ltcube_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.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/561238/ft2_4FGL_J1458.6+3722_daily_bin1759.fits
.....................!
real 14.71
user 14.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/561238/ft1_filtered_4FGL_J1458.6+3722_daily_bin1759.fits evtable="EVENTS" scfile=/scratch/kocevski/561238/ft2_4FGL_J1458.6+3722_daily_bin1759.fits sctable="SC_DATA" expcube=/scratch/kocevski/561238/ltcube_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.fits outfile=/scratch/kocevski/561238/expmap_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.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/561238/ltcube_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.fits
.....................!
real 191.88
user 186.99
sys 4.45

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/561238/ft1_filtered_4FGL_J1458.6+3722_daily_bin1759.fits scfile=/scratch/kocevski/561238/ft2_4FGL_J1458.6+3722_daily_bin1759.fits outfile=/scratch/kocevski/561238/cmap_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/561238/ft1_filtered_4FGL_J1458.6+3722_daily_bin1759.fits scfile=/scratch/kocevski/561238/ft2_4FGL_J1458.6+3722_daily_bin1759.fits outfile=/scratch/kocevski/561238/cmap_HighResolution_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.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.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/561238/ft1_filtered_4FGL_J1458.6+3722_daily_bin1759.fits', '/scratch/kocevski/561238/ft2_4FGL_J1458.6+3722_daily_bin1759.fits', expMap='/scratch/kocevski/561238/expmap_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.fits', expCube='/scratch/kocevski/561238/ltcube_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/561238/Model_4FGL_J1458.6+3722_daily_bin1759.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/561238/ft1_filtered_4FGL_J1458.6+3722_daily_bin1759.fits
Spacecraft file(s): /scratch/kocevski/561238/ft2_4FGL_J1458.6+3722_daily_bin1759.fits
Exposure map: /scratch/kocevski/561238/expmap_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.fits
Exposure cube: /scratch/kocevski/561238/ltcube_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/561238/Model_4FGL_J1458.6+3722_daily_bin1759.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8929.98071282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.425       1.0000          .0000       .10000E+07
     2 'Prefactor '    .30161       1.0000          .0000       .10000E+07
     3 'norm      '    .20040E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.0420       1.0000          .0000       .10000E+07
     5 'Prefactor '    16.467       1.0000          .0000       .10000E+07
     6 'Prefactor '    31.970       1.0000          .0000       .10000E+07
     7 'norm      '    .20621E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .30057E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    174.33       1.0000          .0000       .10000E+07
    10 'norm      '    .62723E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    .17792E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    .68647E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    5.4118       1.0000          .0000       .10000E+07
    14 'norm      '    1.1775       1.0000          .0000       .10000E+07
    15 'norm      '    5.4954       1.0000          .0000       .10000E+07
    16 'Prefactor '    .22650       1.0000          .0000       .10000E+07
    17 'Prefactor '    .32231E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .16867E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    .65510E-04   1.0000          .0000       .10000E+07
    20 'norm      '    .93273       1.0000          .0000       .10000E+07
    21 'Prefactor '    .41012E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .37728E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .35523E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .78729E-04   1.0000          .0000       .10000E+07
    25 'Normalizat'    .94638       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0514       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=   8923.108     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1373 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.156        10.650        .14584E-05   -.11493    
   2  Prefactor     .15171E-06    167.80       -.93352E-05** at limit **
   3  norm           .0000        1.4099       -.12327E-06** at limit **
   4  Prefactor     3.6070        8.2433       -.25849E-05    .12351E-01
   5  Prefactor     16.931        14.361        .19988E-05   -.37551E-01
   6  Prefactor     31.933        5.9116       -.11414E-07    .29041E-02
   7  norm          .23870E-08    1.6208        .64314E-06** at limit **
   8  norm          .23148E-07    .84796       -.14735E-06** at limit **
   9  Prefactor     174.35        1.4790       -.89348E-07    .44372E-01
  10  norm          .38858E-09    1.6252       -.11300E-06** at limit **
  11  Prefactor     .29421E-07    1.7430       -.17448E-05** at limit **
  12  Prefactor     .10603E-07    1.0167       -.49108E-06** at limit **
  13  Prefactor     5.4070        4.9738       -.35948E-07    .17954E-02
  14  norm          1.1765        1.0590        .18726E-07    .63195E-02
  15  norm          5.5244        3.6666       -.60016E-07    .43547E-02
  16  Prefactor     .10586        3.5138        .28751E-05** at limit **
  17  Prefactor     .40662E-06    8.8653        .41813E-05** at limit **
  18  Prefactor     .11102E-09    4.0934       -.16661E-05** at limit **
  19  Prefactor     .27506E-06    7.0602       -.39518E-05** at limit **
  20  norm          .93188        .76359       -.74179E-07   -.20270E-01
  21  Prefactor     .20539E-08    2.7989        .62265E-06** at limit **
  22  Prefactor     .91593E-08    3.8385       -.10252E-05** at limit **
  23  norm          .55511E-10    1.4403        .63967E-06** at limit **
  24  Prefactor     .31086E-08    4.7693        .13805E-05** at limit **
  25  Normalizat    .94735        .17837        .50804E-06   -.93268E-04
  26  Prefactor     1.0512        .18069        .75441E-07   -.22833E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.1563
  Prefactor  = 1.51712e-07
  norm       = 0
  Prefactor  = 3.60699
  Prefactor  = 16.9306
  Prefactor  = 31.9331
  norm       = 2.38698e-09
  norm       = 2.31482e-08
  Prefactor  = 174.351
  norm       = 3.88578e-10
  Prefactor  = 2.94209e-08
  Prefactor  = 1.06026e-08
  Prefactor  = 5.40702
  norm       = 1.17653
  norm       = 5.52439
  Prefactor  = 0.10586
  Prefactor  = 4.06619e-07
  Prefactor  = 1.11022e-10
  Prefactor  = 2.75058e-07
  norm       = 0.931881
  Prefactor  = 2.05391e-09
  Prefactor  = 9.15934e-09
  norm       = 5.55112e-11
  Prefactor  = 3.10862e-09
  Normalizat = 0.947351
  Prefactor  = 1.05116
 **********
 **   18 **HESSE 
 **********

 FCN=   8923.108     FROM HESSE     STATUS=OK           516 CALLS     1889 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.156        23.842        .21122E-03   -1.5614    
   2  Prefactor     .15171E-06    8.7407        .15589E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.4109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.6070        23.159        .50131E-03   -1.5670    
   5  Prefactor     16.931        27.872        .24654E-03   -1.5626    
   6  Prefactor     31.933        5.9240        .17688E-03   -1.5595    
   7  norm          .23870E-08    3.3282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .23148E-07    3.3022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     174.35        45.677        .75745E-04   -1.5444    
  10  norm          .38858E-09    1.6319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .29421E-07    2.9633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10603E-07    3.1548        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.4070        4.9973        .43172E-03   -1.5661    
  14  norm          1.1765        1.0847        .10544E-02   -1.5686    
  15  norm          5.5244        4.5954        .42837E-03   -1.5661    
  16  Prefactor     .10586        5.5499        .99553E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .40662E-06    10.787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    4.2329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .27506E-06    10.637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .93188        .77047        .43523E-03   -1.5689    
  21  Prefactor     .20539E-08    2.8413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .91593E-08    10.552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .55511E-10    3.2963        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .31086E-08    4.7918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .94735        .15906        .45491E-01   -.94816    
  26  Prefactor     1.0512        .15309        .57725E-01   -.91043    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46828e-07
Minuit parameter uncertainties:
  1  23.8418
  2  0.00230299
  3  7.72251e-06
  4  18.2794
  5  27.8717
  6  5.92405
  7  0.000178278
  8  0.00055278
  9  45.6773
  10  4.98059e-05
  11  0.00059043
  12  0.000365873
  13  4.99732
  14  1.08472
  15  4.59536
  16  1.53299
  17  0.00418858
  18  4.56532e-05
  19  0.00342087
  20  0.770472
  21  0.000153238
  22  0.000620889
  23  2.01211e-05
  24  0.000244594
  25  0.159141
  26  0.153157
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  1.060e-08  3.659e-04  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.051e+00  1.532e-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.474e-01  1.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/561238/likelihoodResults_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.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) = 8923.10880685
delta logL = -0.000515436198839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8923.10829198
delta logL = -5.63890353078e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16089E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.0279       1.0000          .0000       10.000    
     3 'Normalizat'    .94735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0511       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=   8923.108     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      224 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.6675       -.51219E-06** at limit **
   2  Index         2.5478        2.2807        .36199E-04     .0000    
   3  Normalizat    .94735        .17502       -.87503E-07    .96060E-04
   4  Prefactor     1.0512        .17997        .11731E-05   -.59844E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.54779
  Normalizat = 0.947351
  Prefactor  = 1.05116
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   8923.108     FROM HESSE     STATUS=FAILED        11 CALLS      235 TOTAL
                     EDM=   .46E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.6558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .73268        2.0225        .36199E-04   -.51260    
   3  Normalizat    .94735        1.2803       -.87503E-07   -.94816    
   4  Prefactor     1.0512        1.1899        .11731E-05   -.91043    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.56535e-11
Minuit parameter uncertainties:
  1  2.60333e-06
  2  1.80515
  3  1.32552
  4  1.22201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/561238': 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): 101
logL (Free Index) = 8923.10829141
delta logL = 1.67710823007e-09

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  0.000e+00  2.603e-06  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.548e+00  1.805e+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:  1.051e+00  1.222e+00  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.474e-01  1.326e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 224.673 37.373

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/561238/cmap_HighResolution_695260801_695520001_4FGL_J1458.6+3722_daily_bin1759.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-03', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2023-01-16 01:36:59.315260', job_id='561238', GAL2='1.05', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1673861819.32', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.68e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1759' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Jan 16 01:36:59 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 561238: <4FGL_J1458.6+3722_daily_bin1759> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1759> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Jan 16 01:20:25 2023
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jan 16 01:21:37 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jan 16 01:21:37 2023
Terminated at Mon Jan 16 01:37:00 2023
Results reported at Mon Jan 16 01:37:00 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1759 224.673 37.3726 695260801 695520001 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 :                                   708.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            995 sec.

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

