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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1750
RA = 224.673, Dec = 37.3726
tmin = 692928001, tmax = 693187201
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='16189', job_status='RUN', time_executed='2022-12-20 01:07:53.377106', time_epoch_executed='1671527273.38' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/16189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/16189/ft1_4FGL_J1458.6+3722_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/16189/ft2_4FGL_J1458.6+3722_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/16189/ft1_4FGL_J1458.6+3722_daily_bin1750.fits outfile=/scratch/kocevski/16189/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1750.fits ra=224.673 dec=37.3726 rad=12.0 tmin=692928001.0 tmax=693187201.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.44
user 3.20
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/16189/ft2_4FGL_J1458.6+3722_daily_bin1750.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/16189/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/16189/ft1_filtered_4FGL_J1458.6+3722_daily_bin1750.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: 563

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/16189/ft1_filtered_4FGL_J1458.6+3722_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/16189/ft2_4FGL_J1458.6+3722_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/16189/ltcube_692928001_693187201_4FGL_J1458.6+3722_daily_bin1750.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/16189/ft2_4FGL_J1458.6+3722_daily_bin1750.fits
.....................!
real 11.35
user 10.97
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/16189/ft1_filtered_4FGL_J1458.6+3722_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/16189/ft2_4FGL_J1458.6+3722_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/16189/ltcube_692928001_693187201_4FGL_J1458.6+3722_daily_bin1750.fits outfile=/scratch/kocevski/16189/expmap_692928001_693187201_4FGL_J1458.6+3722_daily_bin1750.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/16189/ltcube_692928001_693187201_4FGL_J1458.6+3722_daily_bin1750.fits
.....................!
real 191.24
user 185.00
sys 5.92

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/16189/ft1_filtered_4FGL_J1458.6+3722_daily_bin1750.fits scfile=/scratch/kocevski/16189/ft2_4FGL_J1458.6+3722_daily_bin1750.fits outfile=/scratch/kocevski/16189/cmap_692928001_693187201_4FGL_J1458.6+3722_daily_bin1750.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/16189/ft1_filtered_4FGL_J1458.6+3722_daily_bin1750.fits scfile=/scratch/kocevski/16189/ft2_4FGL_J1458.6+3722_daily_bin1750.fits outfile=/scratch/kocevski/16189/cmap_HighResolution_692928001_693187201_4FGL_J1458.6+3722_daily_bin1750.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16632E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    27.447       1.0000          .0000       .10000E+07
     3 'norm      '    .46949E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .28112E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .19711E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    31.860       1.0000          .0000       .10000E+07
     7 'norm      '    .53071E-04   1.0000          .0000       .10000E+07
     8 'norm      '    6.5226       1.0000          .0000       .10000E+07
     9 'Prefactor '    22.275       1.0000          .0000       .10000E+07
    10 'norm      '    .47536E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    20.469       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.5536       1.0000          .0000       .10000E+07
    13 'Prefactor '    2.1789       1.0000          .0000       .10000E+07
    14 'norm      '    2.5099       1.0000          .0000       .10000E+07
    15 'norm      '    8.7619       1.0000          .0000       .10000E+07
    16 'Prefactor '    .48227E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    69.370       1.0000          .0000       .10000E+07
    18 'Prefactor '    .83759E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    17.516       1.0000          .0000       .10000E+07
    20 'norm      '    .69877E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    7.5188       1.0000          .0000       .10000E+07
    22 'Prefactor '    .27474E-04   1.0000          .0000       .10000E+07
    23 'norm      '    7.0559       1.0000          .0000       .10000E+07
    24 'Prefactor '    .45805E-03   1.0000          .0000       .10000E+07
    25 'Normalizat'    .70678       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0978       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=   6050.478     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     2294 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    4.7621        .59034E-06** at limit **
   2  Prefactor     27.804        24.942        .12509E-05    .92592E-03
   3  norm           .0000        1.0983        .28618E-06** at limit **
   4  Prefactor      .0000        3.3706        .51870E-07** at limit **
   5  Prefactor     .11102E-09    6.8351       -.67691E-06** at limit **
   6  Prefactor     31.925        6.3306        .28912E-07    .23861E-02
   7  norm          .11102E-09    3.5904        .22361E-06** at limit **
   8  norm          6.5614        5.8097        .13064E-07   -.18953E-03
   9  Prefactor     22.431        4.0298        .28485E-06   -.14579E-01
  10  norm          .18319E-08    5.9273        .12814E-06** at limit **
  11  Prefactor     20.333        3.4247       -.30438E-07    .21503E-01
  12  Prefactor     8.6821        9.3555        .99845E-06    .20435E-01
  13  Prefactor     2.1711        5.4092        .19035E-06   -.14204E-03
  14  norm          2.4718        2.1234       -.14623E-06    .12401E-02
  15  norm          8.7417        4.2003       -.22145E-06   -.25187E-02
  16  Prefactor     .61062E-08    9.0634        .89572E-06** at limit **
  17  Prefactor     73.541        70.541       -.80586E-06   -.72353E-03
  18  Prefactor     .11102E-09    10.331        .51450E-07** at limit **
  19  Prefactor     17.474        10.559        .17740E-05   -.30157E-01
  20  norm           .0000        1.0642        .48470E-07** at limit **
  21  Prefactor     7.4802        7.1351        .16253E-06    .11065E-02
  22  Prefactor     .26090E-08    21.909        .55063E-06** at limit **
  23  norm          7.0538        9.2696        .19502E-05    .20068E-01
  24  Prefactor     .88818E-09    169.71        .12310E-05** at limit **
  25  Normalizat    .70577        .20996       -.13785E-04    .28519E-05
  26  Prefactor     1.0977        .20876        .65493E-05    .44634E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 27.8041
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 31.9246
  norm       = 1.11022e-10
  norm       = 6.56139
  Prefactor  = 22.431
  norm       = 1.83187e-09
  Prefactor  = 20.333
  Prefactor  = 8.68215
  Prefactor  = 2.17105
  norm       = 2.47176
  norm       = 8.74167
  Prefactor  = 6.10623e-09
  Prefactor  = 73.5414
  Prefactor  = 1.11022e-10
  Prefactor  = 17.4742
  norm       = 0
  Prefactor  = 7.48023
  Prefactor  = 2.60902e-09
  norm       = 7.05377
  Prefactor  = 8.88178e-10
  Normalizat = 0.705773
  Prefactor  = 1.0977
 **********
 **   18 **HESSE 
 **********

 FCN=   6050.478     FROM HESSE     STATUS=OK           514 CALLS     2808 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    4.7728        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.804        24.942        .19091E-03   -1.5603    
   3  norm           .0000        1.0980        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        3.3772        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11102E-09    6.8395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.925        6.3112        .17719E-03   -1.5595    
   7  norm          .11102E-09    3.6037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.5614        5.8276        .39271E-03   -1.5657    
   9  Prefactor     22.431        24.018        .21194E-03   -1.5613    
  10  norm          .18319E-08    5.9899        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.333        14.403        .22110E-03   -1.5618    
  12  Prefactor     8.6821        12.118        .34251E-03   -1.5649    
  13  Prefactor     2.1711        5.4208        .69718E-03   -1.5678    
  14  norm          2.4718        2.2647        .64469E-03   -1.5677    
  15  norm          8.7417        4.2946        .33839E-03   -1.5649    
  16  Prefactor     .61062E-08    9.3078        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     73.541        70.672        .12007E-03   -1.5536    
  18  Prefactor     .11102E-09    10.417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.474        13.392        .23904E-03   -1.5624    
  20  norm           .0000        1.0297        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.4802        7.1649        .36551E-03   -1.5653    
  22  Prefactor     .26090E-08    21.955        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.0538        10.800        .37742E-03   -1.5655    
  24  Prefactor     .88818E-09    166.81        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .70577        .17729        .62453E-01   -1.0367    
  26  Prefactor     1.0977        .17552        .53869E-01   -.89540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01411e-08
Minuit parameter uncertainties:
  1  3.59339e-05
  2  24.9425
  3  5.64082e-06
  4  8.35953e-06
  5  4.91659e-05
  6  6.3112
  7  3.67259e-05
  8  5.8276
  9  24.0183
  10  0.000207937
  11  14.4031
  12  12.1178
  13  5.42082
  14  2.26471
  15  4.29455
  16  0.000476109
  17  70.6731
  18  7.56966e-05
  19  13.3917
  20  1.54257e-06
  21  7.16486
  22  0.000480206
  23  10.8004
  24  0.000769366
  25  0.177435
  26  0.175616
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  8.682e+00  1.212e+01  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.098e+00  1.756e-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:  7.058e-01  1.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.87
Ra Dec: 224.673 37.373
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/16189/likelihoodResults_692928001_693187201_4FGL_J1458.6+3722_daily_bin1750.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) = 6050.1052704
delta logL = 0.372857013072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6050.10235375
delta logL = 0.375773670426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1418       1.0000          .0000       .10000E+07
     2 'Index     '    2.9402       1.0000          .0000       10.000    
     3 'Normalizat'    .66908       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1236       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=   6050.102     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      262 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1473        58.383        .57165E-03    .56190E-02
   2  Index         2.9399        2.9136        .95964E-01    .17967E-03
   3  Normalizat    .66899        .54091E-01    .63942E-01    .24192E-04
   4  Prefactor     1.1238        .55060E-01    .53301E-01    .18468E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14727
  Index      = 2.93987
  Normalizat = 0.668993
  Prefactor  = 1.12382
 **********
 **   18 **HESSE 
 **********

 FCN=   6050.102     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1473        105.74        .10996E-04   -1.5672    
   2  Index         2.9399        6.4699        .49860E-02   -.42468    
   3  Normalizat    .66899        .22121        .28290E-03   -1.0513    
   4  Prefactor     1.1238        .23684        .23565E-03   -.88709    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05342e-09
Minuit parameter uncertainties:
  1  36.4853
  2  5.20996
  3  0.221508
  4  0.237058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/16189': 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) = 6050.10235181
delta logL = 0.375775610366

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  3.147e+00  3.649e+01  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  2.940e+00  5.210e+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.124e+00  2.371e-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:  6.690e-01  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 224.673 37.373
Photon Index (Free Index): 2.94 +/- 5.21
Photon Flux (Free Index): 6.03e-08 +/- 5.45e-08
Energy Flux (Free Index): 1.24e-05 +/- 3.26e-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/16189/cmap_HighResolution_692928001_693187201_4FGL_J1458.6+3722_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.46e-03', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='3.76e-01', photon_flux2='6.03e-08', job_status='DONE', time_completed='2022-12-20 01:18:43.852855', photon_index_error2='5.21', photon_index2='2.94', ts='0.87', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='3.26e-05', EG='0.71', time_epoch_completed='1671527923.85', return_code='0', job_id='16189', GAL2='1.12', EG2='0.67', return_code2='102', photon_flux_error2='5.45e-08', ts2='1.70', photon_index='2.18' WHERE bin_id='1750' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:18:43 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 16189: <4FGL_J1458.6+3722_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1750> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec 20 01:05:18 2022
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:05:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:05:18 2022
Terminated at Tue Dec 20 01:18:44 2022
Results reported at Tue Dec 20 01:18:44 2022

Your job looked like:

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

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

