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


Performing analysis on: 4FGL_J1458.6+3722_daily_bin1780
RA = 224.673, Dec = 37.3726
tmin = 700704001, tmax = 700963201
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='66600', job_status='RUN', time_executed='2023-03-20 01:06:07.728285', time_epoch_executed='1679299567.73' WHERE source_name='4FGL J1458.6+3722' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/66600

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/66600/ft1_4FGL_J1458.6+3722_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/66600/ft2_4FGL_J1458.6+3722_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/66600/ft1_4FGL_J1458.6+3722_daily_bin1780.fits outfile=/scratch/kocevski/66600/ft1_filteredMKT_4FGL_J1458.6+3722_daily_bin1780.fits ra=224.673 dec=37.3726 rad=12.0 tmin=700704001.0 tmax=700963201.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 4.06
user 3.85
sys 0.20

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

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

Number of photons that the gtmktime cut: 718

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/66600/ft1_filtered_4FGL_J1458.6+3722_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/66600/ft2_4FGL_J1458.6+3722_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/66600/ltcube_700704001_700963201_4FGL_J1458.6+3722_daily_bin1780.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/66600/ft2_4FGL_J1458.6+3722_daily_bin1780.fits
.....................!
real 12.06
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/66600/ft1_filtered_4FGL_J1458.6+3722_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/66600/ft2_4FGL_J1458.6+3722_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/66600/ltcube_700704001_700963201_4FGL_J1458.6+3722_daily_bin1780.fits outfile=/scratch/kocevski/66600/expmap_700704001_700963201_4FGL_J1458.6+3722_daily_bin1780.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/66600/ltcube_700704001_700963201_4FGL_J1458.6+3722_daily_bin1780.fits
.....................!
real 192.08
user 186.63
sys 5.12

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/66600/ft1_filtered_4FGL_J1458.6+3722_daily_bin1780.fits scfile=/scratch/kocevski/66600/ft2_4FGL_J1458.6+3722_daily_bin1780.fits outfile=/scratch/kocevski/66600/cmap_700704001_700963201_4FGL_J1458.6+3722_daily_bin1780.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .36970E-07   1.0000          .0000       .10000E+07
     2 'Prefactor '    22.011       1.0000          .0000       .10000E+07
     3 'norm      '    .15660E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.862       1.0000          .0000       .10000E+07
     5 'Prefactor '    .41715E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    10.915       1.0000          .0000       .10000E+07
     7 'norm      '    .58278E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .22721E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    146.80       1.0000          .0000       .10000E+07
    10 'norm      '    9.4225       1.0000          .0000       .10000E+07
    11 'Prefactor '    14.011       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.3148       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.3940       1.0000          .0000       .10000E+07
    14 'norm      '    .83407       1.0000          .0000       .10000E+07
    15 'norm      '    1.5089       1.0000          .0000       .10000E+07
    16 'Prefactor '    .21499E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .54140E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    9.2688       1.0000          .0000       .10000E+07
    19 'Prefactor '    8.0628       1.0000          .0000       .10000E+07
    20 'norm      '    1.2665       1.0000          .0000       .10000E+07
    21 'Prefactor '    .77327E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .65075E-03   1.0000          .0000       .10000E+07
    23 'norm      '    5.7342       1.0000          .0000       .10000E+07
    24 'Prefactor '    .39524E-07   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.3054       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .48564       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=   7930.250     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     2257 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88818E-09    13.700       -.19981E-05** at limit **
   2  Prefactor     22.358        2.2132        .22566E-06   -.11826E-01
   3  norm          .55511E-10    4.4944       -.14663E-06** at limit **
   4  Prefactor     21.850        4.1412        .29850E-06    .39619E-02
   5  Prefactor     .33307E-09    8.4105       -.17154E-05** at limit **
   6  Prefactor     10.927        4.5924       -.51182E-07   -.44004E-02
   7  norm          .18319E-08    4.0274        .16042E-05** at limit **
   8  norm          .55511E-10    1.8633        .90233E-07** at limit **
   9  Prefactor     148.15        44.730        .39971E-06    .96051E-03
  10  norm          9.4705        6.9700       -.55486E-07   -.41001E-02
  11  Prefactor     13.985        1.8774        .18303E-06   -.40551E-02
  12  Prefactor     4.3232        4.4580        .14557E-07    .62138E-02
  13  Prefactor     1.4013        3.9103        .20795E-07    .35952E-02
  14  norm          .83447        1.0644        .29094E-07    .10929E-01
  15  norm          1.5107        1.9094        .11951E-06    .92681E-02
  16  Prefactor     .55511E-09    3.2986       -.16975E-06** at limit **
  17  Prefactor     .19984E-08    24.084        .95760E-06** at limit **
  18  Prefactor     9.4825        2.9092       -.65414E-06    .13070E-02
  19  Prefactor     8.0224        4.6082       -.10106E-05   -.96655E-02
  20  norm          1.2684        .87267        .32229E-07    .44143E-01
  21  Prefactor     .33307E-09    11.694        .37199E-05** at limit **
  22  Prefactor     .18319E-08    6.6333        .59511E-06** at limit **
  23  norm          5.7451        6.9994        .39991E-07    .49155E-03
  24  Prefactor     .55511E-09    4.4678       -.19742E-05** at limit **
  25  Normalizat    1.3040        .17493        .14341E-05    .26555E-03
  26  Prefactor     .48596        .16440       -.61020E-06    .12723E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.88178e-10
  Prefactor  = 22.3576
  norm       = 5.55112e-11
  Prefactor  = 21.8503
  Prefactor  = 3.33067e-10
  Prefactor  = 10.9266
  norm       = 1.83187e-09
  norm       = 5.55112e-11
  Prefactor  = 148.145
  norm       = 9.47052
  Prefactor  = 13.9853
  Prefactor  = 4.32324
  Prefactor  = 1.40131
  norm       = 0.834473
  norm       = 1.51069
  Prefactor  = 5.55112e-10
  Prefactor  = 1.9984e-09
  Prefactor  = 9.48249
  Prefactor  = 8.02243
  norm       = 1.26844
  Prefactor  = 3.33067e-10
  Prefactor  = 1.83187e-09
  norm       = 5.74511
  Prefactor  = 5.55112e-10
  Normalizat = 1.30399
  Prefactor  = 0.485958
 **********
 **   18 **HESSE 
 **********

 FCN=   7930.250     FROM HESSE     STATUS=OK           514 CALLS     2771 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88818E-09    13.732        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.358        22.471        .21320E-03   -1.5613    
   3  norm          .55511E-10    4.4831        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.850        13.481        .21393E-03   -1.5614    
   5  Prefactor     .33307E-09    8.9889        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.927        4.6000        .30301E-03   -1.5642    
   7  norm          .18319E-08    4.8251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55511E-10    1.8630        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     148.15        44.618        .82541E-04   -1.5465    
  10  norm          9.4705        7.0248        .32624E-03   -1.5646    
  11  Prefactor     13.985        11.823        .26733E-03   -1.5633    
  12  Prefactor     4.3232        4.4865        .48473E-03   -1.5666    
  13  Prefactor     1.4013        3.9576        .91954E-03   -1.5684    
  14  norm          .83447        1.0782        .50429E-03   -1.5690    
  15  norm          1.5107        1.9648        .87058E-03   -1.5683    
  16  Prefactor     .55511E-09    3.3014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .19984E-08    24.170        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.4825        23.060        .32895E-03   -1.5646    
  19  Prefactor     8.0224        14.034        .35286E-03   -1.5651    
  20  norm          1.2684        .88771        .98924E-03   -1.5685    
  21  Prefactor     .33307E-09    11.650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .18319E-08    6.7141        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.7451        7.0068        .41921E-03   -1.5660    
  24  Prefactor     .55511E-09    4.9344        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3040        .15851        .47521E-01   -.83447    
  26  Prefactor     .48596        .14392        .71980E-01   -1.1263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.28336e-08
Minuit parameter uncertainties:
  1  0.000222612
  2  22.4708
  3  3.37645e-05
  4  13.4807
  5  0.000109337
  6  4.59999
  7  0.000187248
  8  1.89733e-05
  9  44.618
  10  7.02484
  11  11.8234
  12  4.48653
  13  3.95765
  14  1.0782
  15  1.96479
  16  8.74643e-05
  17  0.000439306
  18  23.0604
  19  14.0338
  20  0.887713
  21  0.000126966
  22  0.000222737
  23  7.00686
  24  0.000104557
  25  0.15857
  26  0.144026
Done.

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

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  4.323e+00  4.487e+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:  4.860e-01  1.440e-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.304e+00  1.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 224.673 37.373
Photon Index (Fixed Index): 2.18 +/- 0.00
Photon Flux (Fixed Index): 1.64e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 7.58e-06 +/- 7.86e-06

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

Saving results to:
/scratch/kocevski/66600/likelihoodResults_700704001_700963201_4FGL_J1458.6+3722_daily_bin1780.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) = 7929.59012059
delta logL = 0.659964173348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7929.57699533
delta logL = 0.673089433423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2709       1.0000          .0000       .10000E+07
     2 'Index     '    1.4017       1.0000          .0000       10.000    
     3 'Normalizat'    1.3141       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48116       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7929.577     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      281 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2695        6.2266        .17503E-04   -.54562E-04
   2  Index         1.4015        .65778        .11366E-01   -.16636E-03
   3  Normalizat    1.3141        .16822        .20938E-03   -.19547E-05
   4  Prefactor     .48116        .16311        .32021E-03   -.58404E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.26953
  Index      = 1.40152
  Normalizat = 1.31413
  Prefactor  = 0.481164
 **********
 **   18 **HESSE 
 **********

 FCN=   7929.577     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2695        6.3685        .70010E-06   -1.5662    
   2  Index         1.4015        .67276        .22733E-02   -.80337    
   3  Normalizat    1.3141        .16832        .41876E-04   -.83145    
   4  Prefactor     .48116        .16321        .12808E-04   -1.1285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91044e-11
Minuit parameter uncertainties:
  1  6.36854
  2  0.677048
  3  0.168388
  4  0.163367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/66600': 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) = 7929.5769953
delta logL = 0.67308946591

Extracting fit parameters...

4FGL J1458.6+3722
   Spectrum: PowerLaw
277    Prefactor:  5.270e+00  6.369e+00  0.000e+00  1.000e+06 ( 1.000e-13)
278        Index:  1.402e+00  6.770e-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:  4.812e-01  1.634e-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.314e+00  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.26
Ra Dec: 224.673 37.373
Photon Index (Free Index): 1.40 +/- 0.68
Photon Flux (Free Index): 6.19e-09 +/- 9.61e-09
Energy Flux (Free Index): 2.72e-05 +/- 4.01e-05

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/66600/cmap_HighResolution_700704001_700963201_4FGL_J1458.6+3722_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.70e-03', comment='SUCCESS', photon_flux='1.64e-08', energy_flux2='2.72e-05', photon_flux_error='1.70e-08', dlogl='6.73e-01', energy_flux='7.58e-06', photon_flux2='6.19e-09', job_status='DONE', time_completed='2023-03-20 01:18:35.763539', photon_index_error2='0.68', photon_index2='1.40', ts='1.91', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', photon_flux_upper_limit='6.18e-08', energy_flux_error2='4.01e-05', EG='1.30', time_epoch_completed='1679300315.76', return_code='0', job_id='66600', GAL2='0.48', EG2='1.31', return_code2='0', energy_flux_error='7.86e-06', photon_flux_error2='9.61e-09', ts2='3.26', photon_index='2.18' WHERE bin_id='1780' AND source_name='4FGL J1458.6+3722' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:18:35 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 66600: <4FGL_J1458.6+3722_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1458.6+3722_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 01:05:19 2023
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 01:05:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 01:05:20 2023
Terminated at Mon Mar 20 01:18:36 2023
Results reported at Mon Mar 20 01:18:36 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1458.6+3722_daily_bin1780 224.673 37.3726 700704001 700963201 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 :                                   750.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            797 sec.

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

