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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin1756
RA = 191.288, Dec = 57.158
tmin = 694483201, tmax = 694742401
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='13077', job_status='RUN', time_executed='2023-01-07 00:51:49.107475', time_epoch_executed='1673081509.11' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13077

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13077/ft1_4FGL_J1245.1+5709_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13077/ft2_4FGL_J1245.1+5709_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13077/ft1_4FGL_J1245.1+5709_daily_bin1756.fits outfile=/scratch/kocevski/13077/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin1756.fits ra=191.288 dec=57.158 rad=12.0 tmin=694483201.0 tmax=694742401.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.98
user 2.75
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/13077/ft2_4FGL_J1245.1+5709_daily_bin1756.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13077/ft2_4FGL_J1245.1+5709_daily_bin1756.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/13077/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin1756.fits evtable="EVENTS" outfile="/scratch/kocevski/13077/ft1_filtered_4FGL_J1245.1+5709_daily_bin1756.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 828

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13077/ft1_filtered_4FGL_J1245.1+5709_daily_bin1756.fits" evtable="EVENTS" scfile=/scratch/kocevski/13077/ft2_4FGL_J1245.1+5709_daily_bin1756.fits sctable="SC_DATA" outfile=/scratch/kocevski/13077/ltcube_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.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/13077/ft2_4FGL_J1245.1+5709_daily_bin1756.fits
.....................!
real 16.15
user 15.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13077/ft1_filtered_4FGL_J1245.1+5709_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/13077/ft2_4FGL_J1245.1+5709_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/13077/ltcube_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.fits outfile=/scratch/kocevski/13077/expmap_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.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/13077/ltcube_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.fits
.....................!
real 191.84
user 186.14
sys 5.25

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 217 point sources and 0 extended sources

Setting source of interest to:
4FGL J1245.1+5709 @ 191.288 57.158

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/13077/ft1_filtered_4FGL_J1245.1+5709_daily_bin1756.fits scfile=/scratch/kocevski/13077/ft2_4FGL_J1245.1+5709_daily_bin1756.fits outfile=/scratch/kocevski/13077/cmap_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.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=191.288 yref=57.158 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13077/ft1_filtered_4FGL_J1245.1+5709_daily_bin1756.fits scfile=/scratch/kocevski/13077/ft2_4FGL_J1245.1+5709_daily_bin1756.fits outfile=/scratch/kocevski/13077/cmap_HighResolution_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.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=191.288 yref=57.158 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.64
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/13077/ft1_filtered_4FGL_J1245.1+5709_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/13077/ft2_4FGL_J1245.1+5709_daily_bin1756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/13077/Model_4FGL_J1245.1+5709_daily_bin1756.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/13077/ft1_filtered_4FGL_J1245.1+5709_daily_bin1756.fits.....................!
real 74.53
user 73.14
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/13077/ft1_filtered_4FGL_J1245.1+5709_daily_bin1756.fits', '/scratch/kocevski/13077/ft2_4FGL_J1245.1+5709_daily_bin1756.fits', expMap='/scratch/kocevski/13077/expmap_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.fits', expCube='/scratch/kocevski/13077/ltcube_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/13077/Model_4FGL_J1245.1+5709_daily_bin1756.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1245.1+5709'

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  1.104e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/13077/ft1_filtered_4FGL_J1245.1+5709_daily_bin1756.fits
Spacecraft file(s): /scratch/kocevski/13077/ft2_4FGL_J1245.1+5709_daily_bin1756.fits
Exposure map: /scratch/kocevski/13077/expmap_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.fits
Exposure cube: /scratch/kocevski/13077/ltcube_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/13077/Model_4FGL_J1245.1+5709_daily_bin1756.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) = 9165.66274162

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.766       1.0000          .0000       .10000E+07
     2 'Prefactor '    .21818E-04   1.0000          .0000       .10000E+07
     3 'norm      '    19.368       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.6943       1.0000          .0000       .10000E+07
     5 'norm      '    3.9947       1.0000          .0000       .10000E+07
     6 'Prefactor '    32.132       1.0000          .0000       .10000E+07
     7 'Prefactor '    .44858E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .65922E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .15987E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    9.4955       1.0000          .0000       .10000E+07
    11 'norm      '    .75977       1.0000          .0000       .10000E+07
    12 'Prefactor '    .61129E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .58359E-05   1.0000          .0000       .10000E+07
    14 'norm      '    2.6829       1.0000          .0000       .10000E+07
    15 'Prefactor '    16.486       1.0000          .0000       .10000E+07
    16 'norm      '    .11474E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .17611E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6066       1.0000          .0000       .10000E+07
    19 'norm      '    .31068       1.0000          .0000       .10000E+07
    20 'Prefactor '    .26055E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    3.6121       1.0000          .0000       .10000E+07
    22 'norm      '    .14436E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .35715E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .36386E-03   1.0000          .0000       .10000E+07
    25 'norm      '    .14877E-06   1.0000          .0000       .10000E+07
    26 'Normalizat'    .69300       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3812       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9165.560     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1851 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.753        4.4018        .12478E-06    .15583    
   2  Prefactor     .62728E-07    5.2905        .28712E-06** at limit **
   3  norm          19.359        1.0683       -.28401E-08   -.41604E-03
   4  Prefactor     2.7162        3.0640       -.40030E-07    .42504E-03
   5  norm          3.9487        4.4342        .13663E-06   -.52798E-02
   6  Prefactor     31.562        15.816       -.28824E-06   -.16693E-01
   7  Prefactor     .33973E-07    2.5585        .40881E-06** at limit **
   8  Prefactor     .12779E-06    5.0423       -.10488E-06** at limit **
   9  norm           .0000        .60318       -.17787E-06** at limit **
  10  Prefactor     9.3735        2.8852       -.40975E-07   -.32109E-02
  11  norm          .74645        2.2762       -.12514E-06   -.59873E-01
  12  Prefactor     .42188E-08    3.2849        .20362E-06** at limit **
  13  Prefactor      .0000        1.0700        .25788E-06** at limit **
  14  norm          2.6817        1.4184        .11542E-06    .38963E-02
  15  Prefactor     16.473        1.2015       -.63831E-08   -.11912E-01
  16  norm           .0000        .37819       -.13205E-06** at limit **
  17  Prefactor     .16603E-06    6.6336        .12165E-06** at limit **
  18  Prefactor     3.5792        5.8969        .21759E-06    .56449E-03
  19  norm          .28805        5.0864       -.42411E-06   -.87175E-03
  20  Prefactor     .72498E-07    6.2238       -.17055E-06** at limit **
  21  Prefactor     3.2694        19.590       -.11443E-05    .21888E-01
  22  norm          .23981E-07    3.6922       -.33498E-07** at limit **
  23  Prefactor     .60230E-07    5.2207        .28628E-06** at limit **
  24  Prefactor     .17775E-06    6.6886       -.34788E-06** at limit **
  25  norm          .14322E-07    2.6966        .41276E-07** at limit **
  26  Normalizat    .69386        .14946        .66849E-05   -.10547E-03
  27  Prefactor     1.3812        .19033       -.10980E-04   -.15689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7525
  Prefactor  = 6.27276e-08
  norm       = 19.3589
  Prefactor  = 2.71622
  norm       = 3.94874
  Prefactor  = 31.5623
  Prefactor  = 3.39728e-08
  Prefactor  = 1.27787e-07
  norm       = 0
  Prefactor  = 9.37349
  norm       = 0.746452
  Prefactor  = 4.21885e-09
  Prefactor  = 0
  norm       = 2.6817
  Prefactor  = 16.4735
  norm       = 0
  Prefactor  = 1.66034e-07
  Prefactor  = 3.57921
  norm       = 0.288054
  Prefactor  = 7.24976e-08
  Prefactor  = 3.26944
  norm       = 2.39808e-08
  Prefactor  = 6.02296e-08
  Prefactor  = 1.77747e-07
  norm       = 1.43219e-08
  Normalizat = 0.693859
  Prefactor  = 1.38117
 **********
 **   18 **HESSE 
 **********

 FCN=   9165.560     FROM HESSE     STATUS=OK           548 CALLS     2399 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.753        8.8120        .21440E-03   -1.5615    
   2  Prefactor     .62728E-07    14.273        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.359        11.882        .22731E-03   -1.5620    
   4  Prefactor     2.7162        3.2230        .62040E-03   -1.5675    
   5  norm          3.9487        4.5564        .50436E-03   -1.5668    
   6  Prefactor     31.562        22.494        .17644E-03   -1.5596    
   7  Prefactor     .33973E-07    2.8214        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .12779E-06    12.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        .60111        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3735        17.849        .32497E-03   -1.5647    
  11  norm          .74645        4.9942        .55983E-03   -1.5691    
  12  Prefactor     .42188E-08    14.526        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        1.0706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6817        1.4229        .62183E-03   -1.5675    
  15  Prefactor     16.473        13.544        .24640E-03   -1.5627    
  16  norm           .0000        .37824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .16603E-06    7.2729        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.5792        5.9370        .53180E-03   -1.5670    
  19  norm          .28805        1.3660        .58112E-02   -1.5697    
  20  Prefactor     .72498E-07    12.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2694        47.535        .53139E-03   -1.5672    
  22  norm          .23981E-07    3.7523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .60230E-07    14.266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .17775E-06    7.1361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .14322E-07    2.9100        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .69386        .12968        .42197E-01   -1.0414    
  27  Prefactor     1.3812        .16078        .54318E-01   -.80925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89218e-07
Minuit parameter uncertainties:
  1  8.81202
  2  0.00189261
  3  11.8825
  4  3.22303
  5  4.55636
  6  22.4943
  7  0.000619288
  8  0.00253224
  9  2.45861e-07
  10  17.849
  11  3.86159
  12  0.000496584
  13  6.41797e-06
  14  1.42294
  15  13.5442
  16  2.15864e-06
  17  0.00219783
  18  5.93704
  19  1.25455
  20  0.00188235
  21  24.9333
  22  0.000599627
  23  0.00185355
  24  0.00225252
  25  0.00040822
  26  0.129741
  27  0.160836
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  0.000e+00  6.418e-06  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  2.128e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.381e+00  1.608e-01  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  6.939e-01  1.297e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 191.288 57.158
Photon Flux Upper Limit: 2.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13077/likelihoodResults_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.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) = 9165.5645016
delta logL = -0.00486788440503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9165.55964097
delta logL = -7.25329118723e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56479E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.1454       1.0000          .0000       10.000    
     3 'Normalizat'    .69357       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3813       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9165.560     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      252 TOTAL
                     EDM=   .81E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    .14135E-01    .42118E-03** at limit **
   2  Index         1.7929        8.0203        .36072        .37820E-10
   3  Normalizat    .69386        .31360E-03    .42205E-01    .29719E-03
   4  Prefactor     1.3812        .40676E-03    .54318E-01    .48105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 1.79287
  Normalizat = 0.693858
  Prefactor  = 1.38117
 **********
 **   18 **HESSE 
 **********

 FCN=   9165.560     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    .35207E-01    .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7929        5.8855        .50000       -.69636    
   3  Normalizat    .69386        .49443E-03    .25323E-03   -1.0414    
   4  Prefactor     1.3812        .64144E-03    .24016E-03   -.80924    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93517e-12
Minuit parameter uncertainties:
  1  3.32801e-06
  2  12319
  3  0.000494428
  4  0.000641438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13077': 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) = 9165.55963372
delta logL = -1.20053300634e-10

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  5.551e-11  3.328e-06  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  1.793e+00  1.232e+04  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  1.843e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.381e+00  6.414e-04  0.000e+00  1.000e+01 ( 1.000e+00)
690        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
691        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
688   Normalization:  6.939e-01  4.944e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 191.288 57.158

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/13077/cmap_HighResolution_694483201_694742401_4FGL_J1245.1+5709_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.86e-03', job_status='DONE', photon_flux_upper_limit='2.45e-08', time_completed='2023-01-07 01:06:21.505158', job_id='13077', GAL2='1.38', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1673082381.51', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='-1.20e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1756' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 01:06:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 13077: <4FGL_J1245.1+5709_daily_bin1756> in cluster <slac> Done

Job <4FGL_J1245.1+5709_daily_bin1756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan  7 00:50:12 2023
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:50:29 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:50:29 2023
Terminated at Sat Jan  7 01:06:22 2023
Results reported at Sat Jan  7 01:06:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin1756 191.288 57.158 694483201 694742401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1245.1+5709 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   874.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            970 sec.

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

