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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin1765
RA = 191.288, Dec = 57.158
tmin = 696816001, tmax = 697075201
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='634076', job_status='RUN', time_executed='2023-02-03 00:59:46.695606', time_epoch_executed='1675414786.7' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634076

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/634076/ft1_4FGL_J1245.1+5709_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/634076/ft2_4FGL_J1245.1+5709_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634076/ft1_4FGL_J1245.1+5709_daily_bin1765.fits outfile=/scratch/kocevski/634076/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin1765.fits ra=191.288 dec=57.158 rad=12.0 tmin=696816001.0 tmax=697075201.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.73
user 3.49
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/634076/ft2_4FGL_J1245.1+5709_daily_bin1765.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/634076/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/634076/ft1_filtered_4FGL_J1245.1+5709_daily_bin1765.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.32
sys 0.16

Number of photons that the gtmktime cut: 616

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634076/ft1_filtered_4FGL_J1245.1+5709_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/634076/ft2_4FGL_J1245.1+5709_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/634076/ltcube_696816001_697075201_4FGL_J1245.1+5709_daily_bin1765.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/634076/ft2_4FGL_J1245.1+5709_daily_bin1765.fits
.....................!
real 17.27
user 16.83
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634076/ft1_filtered_4FGL_J1245.1+5709_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/634076/ft2_4FGL_J1245.1+5709_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/634076/ltcube_696816001_697075201_4FGL_J1245.1+5709_daily_bin1765.fits outfile=/scratch/kocevski/634076/expmap_696816001_697075201_4FGL_J1245.1+5709_daily_bin1765.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/634076/ltcube_696816001_697075201_4FGL_J1245.1+5709_daily_bin1765.fits
.....................!
real 193.03
user 186.85
sys 5.78

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/634076/ft1_filtered_4FGL_J1245.1+5709_daily_bin1765.fits scfile=/scratch/kocevski/634076/ft2_4FGL_J1245.1+5709_daily_bin1765.fits outfile=/scratch/kocevski/634076/cmap_696816001_697075201_4FGL_J1245.1+5709_daily_bin1765.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.58
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634076/ft1_filtered_4FGL_J1245.1+5709_daily_bin1765.fits scfile=/scratch/kocevski/634076/ft2_4FGL_J1245.1+5709_daily_bin1765.fits outfile=/scratch/kocevski/634076/cmap_HighResolution_696816001_697075201_4FGL_J1245.1+5709_daily_bin1765.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.58
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/634076/ft1_filtered_4FGL_J1245.1+5709_daily_bin1765.fits', '/scratch/kocevski/634076/ft2_4FGL_J1245.1+5709_daily_bin1765.fits', expMap='/scratch/kocevski/634076/expmap_696816001_697075201_4FGL_J1245.1+5709_daily_bin1765.fits', expCube='/scratch/kocevski/634076/ltcube_696816001_697075201_4FGL_J1245.1+5709_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/634076/Model_4FGL_J1245.1+5709_daily_bin1765.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/634076/ft1_filtered_4FGL_J1245.1+5709_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/634076/ft2_4FGL_J1245.1+5709_daily_bin1765.fits
Exposure map: /scratch/kocevski/634076/expmap_696816001_697075201_4FGL_J1245.1+5709_daily_bin1765.fits
Exposure cube: /scratch/kocevski/634076/ltcube_696816001_697075201_4FGL_J1245.1+5709_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/634076/Model_4FGL_J1245.1+5709_daily_bin1765.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) = 6696.93301413

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.145       1.0000          .0000       .10000E+07
     2 'Prefactor '    .28378E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .45074E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .55952E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .59034E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .13526E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.4736       1.0000          .0000       .10000E+07
     8 'Prefactor '    .67627E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .47904E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .65674E-03   1.0000          .0000       .10000E+07
    11 'norm      '    3.0492       1.0000          .0000       .10000E+07
    12 'Prefactor '    .75430E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.7403       1.0000          .0000       .10000E+07
    14 'norm      '    1.4346       1.0000          .0000       .10000E+07
    15 'Prefactor '    .10218E-02   1.0000          .0000       .10000E+07
    16 'norm      '    1.4979       1.0000          .0000       .10000E+07
    17 'Prefactor '    .61248E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .66937E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .69663E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .15889E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    62.499       1.0000          .0000       .10000E+07
    22 'norm      '    .50998E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    2.4014       1.0000          .0000       .10000E+07
    24 'Prefactor '    1.5670       1.0000          .0000       .10000E+07
    25 'norm      '    .20480E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    .95240       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2111       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=   6696.922     FROM MIGRAD    STATUS=CONVERGED    219 CALLS     2426 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.136        6.6561       -.71646E-08    .99528E-03
   2  Prefactor     .41078E-08    9.8352       -.10801E-06** at limit **
   3  norm          .22204E-09    2.7812        .21948E-07** at limit **
   4  Prefactor      .0000        1.2115       -.37668E-08** at limit **
   5  norm          .60502E-03    23.192       -.13925E-05** at limit **
   6  Prefactor     .79381E-08    7.2836       -.11204E-07** at limit **
   7  Prefactor     3.4388        4.0244        .87381E-07    .33717E-02
   8  Prefactor     .18319E-08    4.7979        .54783E-07** at limit **
   9  norm          .55511E-10    3.1455       -.14341E-07** at limit **
  10  Prefactor     .83433E-07    22.978       -.16018E-06** at limit **
  11  norm          3.0932        4.2684       -.52610E-07   -.78053E-03
  12  Prefactor     .49960E-09    4.7268       -.46402E-07** at limit **
  13  Prefactor     6.7278        5.0864       -.25443E-07   -.77397E-03
  14  norm          1.4347        1.5565        .88104E-08   -.12848E-03
  15  Prefactor     .94369E-09    6.9263       -.45473E-07** at limit **
  16  norm          1.4999        1.2473        .31539E-08   -.77569E-03
  17  Prefactor     .18374E-07    14.160       -.39965E-07** at limit **
  18  Prefactor     .11102E-09    2.5930       -.53312E-07** at limit **
  19  norm           .0000        1.1828       -.19459E-07** at limit **
  20  Prefactor      .0000        19.829       -.10776E-07** at limit **
  21  Prefactor     62.361        11.552       -.17580E-06    .22030    
  22  norm          .11102E-09    2.3492       -.14570E-07** at limit **
  23  Prefactor     .14224E-03    966.25       -.38968E-05** at limit **
  24  Prefactor     1.5705        4.0288        .48766E-07    .11343E-03
  25  norm          .15141E-05    127.67       -.29842E-05** at limit **
  26  Normalizat    .95412        .18219       -.38498E-05   -.32195E-03
  27  Prefactor     1.2101        .23077        .38545E-05   -.20282E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.1358
  Prefactor  = 4.10783e-09
  norm       = 2.22045e-10
  Prefactor  = 0
  norm       = 0.000605022
  Prefactor  = 7.93809e-09
  Prefactor  = 3.43879
  Prefactor  = 1.83187e-09
  norm       = 5.55112e-11
  Prefactor  = 8.34333e-08
  norm       = 3.09318
  Prefactor  = 4.996e-10
  Prefactor  = 6.72779
  norm       = 1.43472
  Prefactor  = 9.4369e-10
  norm       = 1.49987
  Prefactor  = 1.83742e-08
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 0
  Prefactor  = 62.3614
  norm       = 1.11022e-10
  Prefactor  = 0.00014224
  Prefactor  = 1.57046
  norm       = 1.51407e-06
  Normalizat = 0.954118
  Prefactor  = 1.21012
 **********
 **   18 **HESSE 
 **********

 FCN=   6696.922     FROM HESSE     STATUS=OK           548 CALLS     2974 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.136        6.6605        .31434E-03   -1.5644    
   2  Prefactor     .41078E-08    9.8631        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .22204E-09    2.7918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.2109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .60502E-03    1.9018        .62382E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .79381E-08    7.3648        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4388        4.0796        .54232E-03   -1.5671    
   8  Prefactor     .18319E-08    4.8252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    3.0452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83433E-07    23.026        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0932        4.2860        .58076E-03   -1.5673    
  12  Prefactor     .49960E-09    4.7503        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.7278        5.1094        .38625E-03   -1.5656    
  14  norm          1.4347        1.5842        .90108E-03   -1.5684    
  15  Prefactor     .94369E-09    7.0363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4999        1.2419        .87487E-03   -1.5683    
  17  Prefactor     .18374E-07    14.212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11102E-09    2.5966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.1836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        19.843        .17324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.361        40.795        .12650E-03   -1.5550    
  22  norm          .11102E-09    2.3493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .14224E-03    998.99        .66048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.5705        4.0574        .84918E-03   -1.5683    
  25  norm          .15141E-05    3.3841        .49748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95412        .15367        .45568E-01   -.94584    
  27  Prefactor     1.2101        .19100        .59050E-01   -.86020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46774e-06
Minuit parameter uncertainties:
  1  6.66051
  2  0.000402632
  3  5.14753e-05
  4  7.89679e-07
  5  0.0678423
  6  0.00048396
  7  4.07963
  8  0.000186683
  9  2.67249e-05
  10  0.00277226
  11  4.28603
  12  9.82736e-05
  13  5.10939
  14  1.58423
  15  0.00016367
  16  1.24187
  17  0.00102232
  18  3.7586e-05
  19  1.15134e-06
  20  5.9468e-06
  21  40.795
  22  3.10296e-05
  23  0.754037
  24  4.0574
  25  0.00452714
  26  0.153737
  27  0.191105
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  6.728e+00  5.109e+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

GAL_V02
   Spectrum: PowerLaw
689    Prefactor:  1.210e+00  1.911e-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:  9.541e-01  1.537e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.97
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.94e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.16e-05

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) = 6696.37799889
delta logL = 0.544363681396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6696.37744714
delta logL = 0.544915431056

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7921       1.0000          .0000       .10000E+07
     2 'Index     '    1.5425       1.0000          .0000       10.000    
     3 'Normalizat'    .97186       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1989       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=   6696.377     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      238 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8202        13.941        .33780E-03   -.15654E-02
   2  Index         1.5431        .86095        .18235       -.13192E-04
   3  Normalizat    .97194        .15133        .45813E-01    .11907E-04
   4  Prefactor     1.1988        .19084        .59302E-01    .81827E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.82018
  Index      = 1.54312
  Normalizat = 0.971943
  Prefactor  = 1.19878
 **********
 **   18 **HESSE 
 **********

 FCN=   6696.377     FROM HESSE     STATUS=OK            33 CALLS      271 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8202        7.6964        .67560E-04   -1.5649    
   2  Index         1.5431        .56289        .10075E-01   -.76339    
   3  Normalizat    .97194        .18049        .22652E-03   -.93976    
   4  Prefactor     1.1988        .22979        .26226E-03   -.86369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.86749e-11
Minuit parameter uncertainties:
  1  7.69643
  2  0.565197
  3  0.180602
  4  0.229982
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634076': 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) = 6696.3774405
delta logL = 0.544922074517

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  8.820e+00  7.696e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  1.543e+00  5.652e-01  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.199e+00  2.300e-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:  9.719e-01  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.06
Ra Dec: 191.288 57.158
Photon Index (Free Index): 1.54 +/- 0.57
Photon Flux (Free Index): 1.42e-08 +/- 1.79e-08
Energy Flux (Free Index): 3.89e-05 +/- 4.96e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/634076/cmap_HighResolution_696816001_697075201_4FGL_J1245.1+5709_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.94e-08', energy_flux2='3.89e-05', photon_flux_error='2.23e-08', dlogl='5.45e-01', energy_flux='1.52e-05', photon_flux2='1.42e-08', job_status='DONE', time_completed='2023-02-03 01:11:57.335845', photon_index_error2='0.57', photon_index2='1.54', ts='6.97', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='4.96e-05', EG='0.95', time_epoch_completed='1675415517.34', return_code='0', job_id='634076', GAL2='1.20', EG2='0.97', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='1.79e-08', ts2='8.06', photon_index='2.13' WHERE bin_id='1765' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:11:57 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 634076: <4FGL_J1245.1+5709_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1245.1+5709_daily_bin1765> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb  3 00:55:19 2023
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 00:56:39 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 00:56:39 2023
Terminated at Fri Feb  3 01:11:58 2023
Results reported at Fri Feb  3 01:11:58 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin1765 191.288 57.158 696816001 697075201 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 :                                   733.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            999 sec.

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

