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


Performing analysis on: 4FGL_J1245.1+5709_daily_bin1714
RA = 191.288, Dec = 57.158
tmin = 683596801, tmax = 683856001
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='121977', job_status='RUN', time_executed='2022-09-16 16:58:58.587942', time_epoch_executed='1663372738.59' WHERE source_name='4FGL J1245.1+5709' and cadence='daily' and bin_id='1714'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/121977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/121977/ft1_4FGL_J1245.1+5709_daily_bin1714.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/121977/ft2_4FGL_J1245.1+5709_daily_bin1714.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/121977/ft1_4FGL_J1245.1+5709_daily_bin1714.fits outfile=/scratch/kocevski/121977/ft1_filteredMKT_4FGL_J1245.1+5709_daily_bin1714.fits ra=191.288 dec=57.158 rad=12.0 tmin=683596801.0 tmax=683856001.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.53
user 3.26
sys 0.22

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

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

Number of photons that the gtmktime cut: 542

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/121977/ft1_filtered_4FGL_J1245.1+5709_daily_bin1714.fits" evtable="EVENTS" scfile=/scratch/kocevski/121977/ft2_4FGL_J1245.1+5709_daily_bin1714.fits sctable="SC_DATA" outfile=/scratch/kocevski/121977/ltcube_683596801_683856001_4FGL_J1245.1+5709_daily_bin1714.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/121977/ft2_4FGL_J1245.1+5709_daily_bin1714.fits
.....................!
real 15.26
user 14.74
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/121977/ft1_filtered_4FGL_J1245.1+5709_daily_bin1714.fits evtable="EVENTS" scfile=/scratch/kocevski/121977/ft2_4FGL_J1245.1+5709_daily_bin1714.fits sctable="SC_DATA" expcube=/scratch/kocevski/121977/ltcube_683596801_683856001_4FGL_J1245.1+5709_daily_bin1714.fits outfile=/scratch/kocevski/121977/expmap_683596801_683856001_4FGL_J1245.1+5709_daily_bin1714.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/121977/ltcube_683596801_683856001_4FGL_J1245.1+5709_daily_bin1714.fits
.....................!
real 191.57
user 185.77
sys 4.99

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/121977/ft1_filtered_4FGL_J1245.1+5709_daily_bin1714.fits scfile=/scratch/kocevski/121977/ft2_4FGL_J1245.1+5709_daily_bin1714.fits outfile=/scratch/kocevski/121977/cmap_683596801_683856001_4FGL_J1245.1+5709_daily_bin1714.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/121977/ft1_filtered_4FGL_J1245.1+5709_daily_bin1714.fits scfile=/scratch/kocevski/121977/ft2_4FGL_J1245.1+5709_daily_bin1714.fits outfile=/scratch/kocevski/121977/cmap_HighResolution_683596801_683856001_4FGL_J1245.1+5709_daily_bin1714.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0547       1.0000          .0000       .10000E+07
     2 'Prefactor '    64.010       1.0000          .0000       .10000E+07
     3 'norm      '    .29123E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .13672E-04   1.0000          .0000       .10000E+07
     5 'norm      '    8.8946       1.0000          .0000       .10000E+07
     6 'Prefactor '    14.830       1.0000          .0000       .10000E+07
     7 'Prefactor '    8.2569       1.0000          .0000       .10000E+07
     8 'Prefactor '    .23660E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .14364E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .40094E-03   1.0000          .0000       .10000E+07
    11 'norm      '    5.8889       1.0000          .0000       .10000E+07
    12 'Prefactor '    .19007E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.4897       1.0000          .0000       .10000E+07
    14 'norm      '    1.2901       1.0000          .0000       .10000E+07
    15 'Prefactor '    .47474E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .13759E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .12495E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .60661       1.0000          .0000       .10000E+07
    19 'norm      '    2.9336       1.0000          .0000       .10000E+07
    20 'Prefactor '    32.653       1.0000          .0000       .10000E+07
    21 'Prefactor '    27.909       1.0000          .0000       .10000E+07
    22 'norm      '    .23486E-02   1.0000          .0000       .10000E+07
    23 'Prefactor '    .15543E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    1.4259       1.0000          .0000       .10000E+07
    25 'norm      '    1.8956       1.0000          .0000       .10000E+07
    26 'Normalizat'    .88903       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .81024       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=   5987.326     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     2372 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0626        10.466       -.44744E-07    .67754E-03
   2  Prefactor     63.782        5.2158       -.15329E-06   -.71984E-01
   3  norm          .15714E-05    11.488       -.10802E-06** at limit **
   4  Prefactor     .10547E-08    1.3790       -.39924E-06** at limit **
   5  norm          8.8792        5.4497       -.26804E-06    .27278E-02
   6  Prefactor     14.903        1.6771        .53404E-08    .39352E-02
   7  Prefactor     8.2591        6.8937       -.67466E-07    .10334E-02
   8  Prefactor     .41078E-08    5.4011       -.44487E-06** at limit **
   9  norm          .55511E-10    .62829        .66340E-07** at limit **
  10  Prefactor     .43854E-08    3.7138       -.40890E-07** at limit **
  11  norm          5.8647        5.2538        .11230E-06   -.13417E-03
  12  Prefactor     .13878E-08    6.9997        .82281E-07** at limit **
  13  Prefactor     2.4912        3.1346        .12838E-06   -.40613E-03
  14  norm          1.2908        1.4828       -.13801E-08    .21517E-04
  15  Prefactor     .28653E-05    6.4658       -.15522E-06** at limit **
  16  norm          .12203E-01    9.9962       -.14548E-05** at limit **
  17  Prefactor     .44204E-06    12.091       -.10164E-06** at limit **
  18  Prefactor     .51199        .91525       -.17691E-07    .22141E-02
  19  norm          2.9684        4.2349       -.12099E-07   -.34012E-02
  20  Prefactor     31.086        35.999       -.15403E-05    .67366E-02
  21  Prefactor     28.735        12.678        .39312E-06    .20827    
  22  norm          .18713E-06    10.474       -.32074E-07** at limit **
  23  Prefactor     .28492E-05    21.924       -.37511E-06** at limit **
  24  Prefactor     1.4442        3.9776        .38949E-06   -.33414E-03
  25  norm          1.8967        2.8306        .24226E-06   -.11498E-02
  26  Normalizat    .88909        .16593        .48497E-05    .12547E-03
  27  Prefactor     .81024        .20344       -.21594E-05    .10190E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06255
  Prefactor  = 63.782
  norm       = 1.57141e-06
  Prefactor  = 1.05471e-09
  norm       = 8.87923
  Prefactor  = 14.9034
  Prefactor  = 8.25911
  Prefactor  = 4.10783e-09
  norm       = 5.55112e-11
  Prefactor  = 4.38538e-09
  norm       = 5.86473
  Prefactor  = 1.38778e-09
  Prefactor  = 2.49119
  norm       = 1.29076
  Prefactor  = 2.86526e-06
  norm       = 0.0122026
  Prefactor  = 4.42035e-07
  Prefactor  = 0.511989
  norm       = 2.96842
  Prefactor  = 31.0858
  Prefactor  = 28.7349
  norm       = 1.87128e-07
  Prefactor  = 2.84922e-06
  Prefactor  = 1.4442
  norm       = 1.89673
  Normalizat = 0.889087
  Prefactor  = 0.810238
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.326     FROM HESSE     STATUS=OK           548 CALLS     2920 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0626        12.996        .11995E-02   -1.5687    
   2  Prefactor     63.782        37.647        .12500E-03   -1.5548    
   3  norm          .15714E-05    13.568        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10547E-08    1.3802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.8792        5.5090        .33584E-03   -1.5648    
   6  Prefactor     14.903        19.425        .25983E-03   -1.5631    
   7  Prefactor     8.2591        6.8978        .34865E-03   -1.5650    
   8  Prefactor     .41078E-08    5.4076        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    .62727        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .43854E-08    3.7096        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.8647        5.2664        .41359E-03   -1.5660    
  12  Prefactor     .13878E-08    6.9895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4912        3.1794        .64754E-03   -1.5676    
  14  norm          1.2908        1.5393        .97468E-03   -1.5685    
  15  Prefactor     .28653E-05    15.386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .12203E-01    1.1102        .42118E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .44204E-06    17.845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .51199        36.532        .68638E-03   -1.5694    
  19  norm          2.9684        4.3341        .59279E-03   -1.5674    
  20  Prefactor     31.086        40.224        .17502E-03   -1.5596    
  21  Prefactor     28.735        30.588        .18932E-03   -1.5601    
  22  norm          .18713E-06    10.196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .28492E-05    23.678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.4442        3.9947        .90493E-03   -1.5684    
  25  norm          1.8967        2.8535        .75528E-03   -1.5680    
  26  Normalizat    .88909        .14661        .44761E-01   -.96845    
  27  Prefactor     .81024        .17478        .43850E-01   -.99352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01738e-06
Minuit parameter uncertainties:
  1  7.43218
  2  37.6471
  3  0.00923479
  4  7.65158e-05
  5  5.50903
  6  19.4246
  7  6.89785
  8  0.000297795
  9  1.33033e-05
  10  0.000255764
  11  5.26644
  12  0.000198505
  13  3.17942
  14  1.53933
  15  0.0132791
  16  0.232782
  17  0.00561729
  18  8.64969
  19  4.33412
  20  40.2247
  21  30.5877
  22  0.00276248
  23  0.0164272
  24  3.99474
  25  2.85348
  26  0.146673
  27  0.174902
Done.

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

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  2.491e+00  3.179e+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:  8.102e-01  1.749e-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:  8.891e-01  1.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.37
Ra Dec: 191.288 57.158
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.09e-08 +/- 1.39e-08
Energy Flux (Fixed Index): 5.63e-06 +/- 7.19e-06

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

Saving results to:
/scratch/kocevski/121977/likelihoodResults_683596801_683856001_4FGL_J1245.1+5709_daily_bin1714.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) = 5987.08704628
delta logL = 0.238772171494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5987.06908931
delta logL = 0.256729139289

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6697       1.0000          .0000       .10000E+07
     2 'Index     '    1.5769       1.0000          .0000       10.000    
     3 'Normalizat'    .89518       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80567       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=   5987.069     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      230 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6711        202.67        .52703E-03   -.48775E-03
   2  Index         1.5772        5.3998        .28988        .42089E-05
   3  Normalizat    .89513        .82649E-01    .44840E-01    .12082E-04
   4  Prefactor     .80585        .74480E-01    .43791E-01    .17442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.67108
  Index      = 1.5772
  Normalizat = 0.895128
  Prefactor  = 0.805846
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.069     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .99E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6711        4.3369        .17084E-04   -1.5670    
   2  Index         1.5772        .70695        .10967E-01   -.75400    
   3  Normalizat    .89513        .16073        .20442E-03   -.96632    
   4  Prefactor     .80585        .20226        .26844E-03   -.99513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.87552e-14
Minuit parameter uncertainties:
  1  4.33688
  2  0.711456
  3  0.160812
  4  0.202447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/121977': 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) = 5987.06908832
delta logL = 0.256730126243

Extracting fit parameters...

4FGL J1245.1+5709
   Spectrum: PowerLaw
355    Prefactor:  3.671e+00  4.337e+00  0.000e+00  1.000e+06 ( 1.000e-13)
356        Index:  1.577e+00  7.115e-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:  8.058e-01  2.024e-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:  8.951e-01  1.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 191.288 57.158
Photon Index (Free Index): 1.58 +/- 0.71
Photon Flux (Free Index): 6.18e-09 +/- 9.24e-09
Energy Flux (Free Index): 1.51e-05 +/- 2.83e-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/121977/cmap_HighResolution_683596801_683856001_4FGL_J1245.1+5709_daily_bin1714.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', comment='SUCCESS', photon_flux='1.09e-08', energy_flux2='1.51e-05', photon_flux_error='1.39e-08', dlogl='2.57e-01', energy_flux='5.63e-06', photon_flux2='6.18e-09', job_status='DONE', time_completed='2022-09-16 17:11:13.579511', photon_index_error2='0.71', photon_index2='1.58', ts='1.37', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='5.32e-08', energy_flux_error2='2.83e-05', EG='0.89', time_epoch_completed='1663373473.58', return_code='0', job_id='121977', GAL2='0.81', EG2='0.90', return_code2='0', energy_flux_error='7.19e-06', photon_flux_error2='9.24e-09', ts2='1.88', photon_index='2.13' WHERE bin_id='1714' AND source_name='4FGL J1245.1+5709' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:11:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 121977: <4FGL_J1245.1+5709_daily_bin1714> in cluster <slac> Done

Job <4FGL_J1245.1+5709_daily_bin1714> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 16:55:21 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:56:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:56:37 2022
Terminated at Fri Sep 16 17:11:14 2022
Results reported at Fri Sep 16 17:11:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1245.1+5709_daily_bin1714 191.288 57.158 683596801 683856001 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 :                                   736.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            953 sec.

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

