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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1712
RA = 192.46, Dec = 37.1306
tmin = 683078401, tmax = 683337601
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='123302', job_status='RUN', time_executed='2022-09-16 17:04:20.156728', time_epoch_executed='1663373060.16' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123302

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123302/ft1_4FGL_J1249.8+3707_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123302/ft2_4FGL_J1249.8+3707_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123302/ft1_4FGL_J1249.8+3707_daily_bin1712.fits outfile=/scratch/kocevski/123302/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1712.fits ra=192.46 dec=37.1306 rad=12.0 tmin=683078401.0 tmax=683337601.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.96
user 3.71
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/123302/ft2_4FGL_J1249.8+3707_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/123302/ft2_4FGL_J1249.8+3707_daily_bin1712.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/123302/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/123302/ft1_filtered_4FGL_J1249.8+3707_daily_bin1712.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.46
user 0.28
sys 0.16

Number of photons that the gtmktime cut: 503

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/123302/ft1_filtered_4FGL_J1249.8+3707_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/123302/ft2_4FGL_J1249.8+3707_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/123302/ltcube_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.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/123302/ft2_4FGL_J1249.8+3707_daily_bin1712.fits
.....................!
real 14.08
user 13.72
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123302/ft1_filtered_4FGL_J1249.8+3707_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/123302/ft2_4FGL_J1249.8+3707_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/123302/ltcube_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.fits outfile=/scratch/kocevski/123302/expmap_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.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/123302/ltcube_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.fits
.....................!
real 157.61
user 152.73
sys 4.40

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

Setting source of interest to:
4FGL J1249.8+3707 @ 192.46 37.1306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/123302/ft1_filtered_4FGL_J1249.8+3707_daily_bin1712.fits scfile=/scratch/kocevski/123302/ft2_4FGL_J1249.8+3707_daily_bin1712.fits outfile=/scratch/kocevski/123302/cmap_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.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=192.46 yref=37.1306 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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/123302/ft1_filtered_4FGL_J1249.8+3707_daily_bin1712.fits scfile=/scratch/kocevski/123302/ft2_4FGL_J1249.8+3707_daily_bin1712.fits outfile=/scratch/kocevski/123302/cmap_HighResolution_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.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=192.46 yref=37.1306 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.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/123302/ft1_filtered_4FGL_J1249.8+3707_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/123302/ft2_4FGL_J1249.8+3707_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/123302/Model_4FGL_J1249.8+3707_daily_bin1712.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/123302/ft1_filtered_4FGL_J1249.8+3707_daily_bin1712.fits.....................!
real 41.06
user 39.74
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/123302/ft1_filtered_4FGL_J1249.8+3707_daily_bin1712.fits', '/scratch/kocevski/123302/ft2_4FGL_J1249.8+3707_daily_bin1712.fits', expMap='/scratch/kocevski/123302/expmap_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.fits', expCube='/scratch/kocevski/123302/ltcube_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/123302/Model_4FGL_J1249.8+3707_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.8+3707'

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.229e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/123302/ft1_filtered_4FGL_J1249.8+3707_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/123302/ft2_4FGL_J1249.8+3707_daily_bin1712.fits
Exposure map: /scratch/kocevski/123302/expmap_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.fits
Exposure cube: /scratch/kocevski/123302/ltcube_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/123302/Model_4FGL_J1249.8+3707_daily_bin1712.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) = 5514.6110099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.926       1.0000          .0000       .10000E+07
     2 'norm      '    9.0444       1.0000          .0000       .10000E+07
     3 'Prefactor '    3.6347       1.0000          .0000       .10000E+07
     4 'Prefactor '    .81637       1.0000          .0000       .10000E+07
     5 'Prefactor '    3.2714       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.1455       1.0000          .0000       .10000E+07
     7 'Prefactor '    .35493       1.0000          .0000       .10000E+07
     8 'Prefactor '    .49966E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .46907E-07   1.0000          .0000       .10000E+07
    10 'norm      '    .24025E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    19.043       1.0000          .0000       .10000E+07
    12 'Prefactor '    .90568E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .11903E-04   1.0000          .0000       .10000E+07
    14 'norm      '    11.613       1.0000          .0000       .10000E+07
    15 'norm      '    18.146       1.0000          .0000       .10000E+07
    16 'norm      '    .76924       1.0000          .0000       .10000E+07
    17 'Prefactor '    .44799E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .12673E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .25009E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    7.9002       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2767       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .59587       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5514.570     FROM MIGRAD    STATUS=CONVERGED    180 CALLS     1754 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.213        69.678        .24728E-05   -.63540E-03
   2  norm          9.0023        4.5937       -.92136E-07   -.11662E-01
   3  Prefactor     3.6496        8.4688       -.17887E-06   -.36546E-03
   4  Prefactor     .80347        2.3694       -.80630E-07   -.81664E-02
   5  Prefactor     3.2925        2.7892        .11402E-07   -.82474E-02
   6  Prefactor     5.1563        9.0680       -.37538E-06   -.18269E-02
   7  Prefactor     .17900E-04    163.79       -.22505E-04** at limit **
   8  Prefactor     .54956E-08    27.408        .27898E-05** at limit **
   9  Prefactor      .0000        9.1828       -.21899E-06** at limit **
  10  norm          .21094E-08    3.1117        .17251E-07** at limit **
  11  Prefactor     19.233        9.1467        .16934E-05    .25703E-01
  12  Prefactor      .0000        20.642        .20210E-06** at limit **
  13  norm          .22204E-09    1.4719       -.20664E-07** at limit **
  14  norm          11.671        11.119        .21220E-06    .14343E-02
  15  norm          18.305        6.1210        .55520E-06    .18214E-01
  16  norm          .51973        14.997       -.58514E-05   -.20103E-01
  17  Prefactor     .11102E-09    2.1800        .24802E-06** at limit **
  18  Prefactor     .29976E-08    8.8327        .63837E-07** at limit **
  19  Prefactor     .92593E-07    60.275        .66989E-05** at limit **
  20  Prefactor     7.8221        13.676       -.51978E-05   -.54191E-02
  21  Normalizat    1.2754        .20202       -.90405E-05    .54927E-03
  22  Prefactor     .59556        .23714        .15997E-04    .19879E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2125
  norm       = 9.00231
  Prefactor  = 3.64957
  Prefactor  = 0.803473
  Prefactor  = 3.29249
  Prefactor  = 5.15632
  Prefactor  = 1.79002e-05
  Prefactor  = 5.4956e-09
  Prefactor  = 0
  norm       = 2.10942e-09
  Prefactor  = 19.2325
  Prefactor  = 0
  norm       = 2.22045e-10
  norm       = 11.6714
  norm       = 18.3053
  norm       = 0.519726
  Prefactor  = 1.11022e-10
  Prefactor  = 2.9976e-09
  Prefactor  = 9.25926e-08
  Prefactor  = 7.82207
  Normalizat = 1.27536
  Prefactor  = 0.595557
 **********
 **   18 **HESSE 
 **********

 FCN=   5514.570     FROM HESSE     STATUS=OK           396 CALLS     2150 TOTAL
                     EDM=   .65E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.213        69.680        .24317E-03   -1.5612    
   2  norm          9.0023        4.6134        .33303E-03   -1.5648    
   3  Prefactor     3.6496        8.4833        .52966E-03   -1.5670    
   4  Prefactor     .80347        2.4069        .51722E-03   -1.5690    
   5  Prefactor     3.2925        2.8032        .55962E-03   -1.5672    
   6  Prefactor     5.1563        9.0818        .44296E-03   -1.5663    
   7  Prefactor     .17900E-04    18.079        .11147E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .54956E-08    27.533        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        9.1308        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .21094E-08    3.1118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.233        32.269        .22924E-03   -1.5620    
  12  Prefactor      .0000        20.662        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .22204E-09    1.4741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.671        11.109        .29372E-03   -1.5640    
  15  norm          18.305        10.959        .23484E-03   -1.5622    
  16  norm          .51973        85.549        .55257E-03   -1.5694    
  17  Prefactor     .11102E-09    2.1760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .29976E-08    8.8233        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .92593E-07    60.794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.8221        13.769        .35650E-03   -1.5652    
  21  Normalizat    1.2754        .18445        .33235E-01   -.84305    
  22  Prefactor     .59556        .21434        .79576E-01   -1.0777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51021e-07
Minuit parameter uncertainties:
  1  69.6828
  2  4.61343
  3  8.48334
  4  2.40694
  5  2.80322
  6  9.0818
  7  0.0359788
  8  0.000776226
  9  1.97812e-05
  10  0.000162253
  11  32.2688
  12  4.63922e-05
  13  3.83627e-05
  14  11.109
  15  10.9588
  16  13.3361
  17  2.84578e-05
  18  0.000325852
  19  0.00474479
  20  13.7689
  21  0.184546
  22  0.214632
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  5.496e-09  7.762e-04  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  5.956e-01  2.146e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.275e+00  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 4.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/123302/likelihoodResults_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.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) = 5514.58853288
delta logL = -0.0184106288743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5513.85407486
delta logL = 0.716047387604

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21448E-03   1.0000          .0000       .10000E+07
     2 'Index     '    5.7556       1.0000          .0000       10.000    
     3 'Normalizat'    1.1784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66962       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5514.570     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      353 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.4131        .42118E-03** at limit **
   2  Index         .18678        .27405       -.22192E-06     .0000    
   3  Normalizat    1.2754        1.1532       -.21838E-05   -.44387E-04
   4  Prefactor     .59556        .96491       -.14022E-05    .16469E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 0.186777
  Normalizat = 1.27536
  Prefactor  = 0.595559
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5514.570     FROM HESSE     STATUS=FAILED         9 CALLS      362 TOTAL
                     EDM=   .17E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.4131        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4602        1.1738       -.22192E-06   -1296.2    
   3  Normalizat    1.2754        1.1532       -.21838E-05   -83.980    
   4  Prefactor     .59556        .96491       -.14022E-05    17.772    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.68357e-12
Minuit parameter uncertainties:
  1  1.44708e-06
  2  0.275958
  3  1.17767
  4  0.993871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123302': 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): 101
logL (Free Index) = 5514.57012225
delta logL = 2.61934474111e-10

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  0.000e+00  1.447e-06  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  1.868e-01  2.760e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  5.956e-01  9.939e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.275e+00  1.178e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

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/123302/cmap_HighResolution_683078401_683337601_4FGL_J1249.8+3707_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.33e-03', job_status='DONE', photon_flux_upper_limit='4.52e-08', time_completed='2022-09-16 17:12:33.428368', job_id='123302', GAL2='0.60', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1663373553.43', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='2.62e-10', ts2='0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1712' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:12:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 123302: <4FGL_J1249.8+3707_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1712> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 16 17:00:18 2022
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:01:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:01:13 2022
Terminated at Fri Sep 16 17:12:34 2022
Results reported at Fri Sep 16 17:12:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1712 192.46 37.1306 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.8+3707 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   493.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            736 sec.

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

