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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1718
RA = 192.46, Dec = 37.1306
tmin = 684633601, tmax = 684892801
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='123310', job_status='RUN', time_executed='2022-09-16 17:04:51.119788', time_epoch_executed='1663373091.12' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/123310

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/123310/ft1_4FGL_J1249.8+3707_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/123310/ft2_4FGL_J1249.8+3707_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/123310/ft1_4FGL_J1249.8+3707_daily_bin1718.fits outfile=/scratch/kocevski/123310/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1718.fits ra=192.46 dec=37.1306 rad=12.0 tmin=684633601.0 tmax=684892801.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.20
user 2.97
sys 0.21

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

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

Number of photons that the gtmktime cut: 64

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/123310/ft1_filtered_4FGL_J1249.8+3707_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/123310/ft2_4FGL_J1249.8+3707_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/123310/ltcube_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.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/123310/ft2_4FGL_J1249.8+3707_daily_bin1718.fits
.....................!
real 15.26
user 14.82
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/123310/ft1_filtered_4FGL_J1249.8+3707_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/123310/ft2_4FGL_J1249.8+3707_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/123310/ltcube_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.fits outfile=/scratch/kocevski/123310/expmap_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.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/123310/ltcube_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.fits
.....................!
real 193.76
user 188.16
sys 4.93

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/123310/ft1_filtered_4FGL_J1249.8+3707_daily_bin1718.fits scfile=/scratch/kocevski/123310/ft2_4FGL_J1249.8+3707_daily_bin1718.fits outfile=/scratch/kocevski/123310/cmap_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/123310/ft1_filtered_4FGL_J1249.8+3707_daily_bin1718.fits scfile=/scratch/kocevski/123310/ft2_4FGL_J1249.8+3707_daily_bin1718.fits outfile=/scratch/kocevski/123310/cmap_HighResolution_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/123310/ft1_filtered_4FGL_J1249.8+3707_daily_bin1718.fits', '/scratch/kocevski/123310/ft2_4FGL_J1249.8+3707_daily_bin1718.fits', expMap='/scratch/kocevski/123310/expmap_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.fits', expCube='/scratch/kocevski/123310/ltcube_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/123310/Model_4FGL_J1249.8+3707_daily_bin1718.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/123310/ft1_filtered_4FGL_J1249.8+3707_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/123310/ft2_4FGL_J1249.8+3707_daily_bin1718.fits
Exposure map: /scratch/kocevski/123310/expmap_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.fits
Exposure cube: /scratch/kocevski/123310/ltcube_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/123310/Model_4FGL_J1249.8+3707_daily_bin1718.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) = 663.216262535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .58420       1.0000          .0000       .10000E+07
     2 'norm      '    10.168       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16455E+06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .80579E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .12260       1.0000          .0000       .10000E+07
     6 'Prefactor '    .16092       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10480E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .14687E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14155E-07   1.0000          .0000       .10000E+07
    10 'norm      '    .31492E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    18.082       1.0000          .0000       .10000E+07
    12 'Prefactor '    .68295E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .31641E-08   1.0000          .0000       .10000E+07
    14 'norm      '    .28661E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .90631E-01   1.0000          .0000       .10000E+07
    16 'norm      '    53.099       1.0000          .0000       .10000E+07
    17 'Prefactor '    .59682E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .80881E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    84.966       1.0000          .0000       .10000E+07
    20 'Prefactor '    12.956       1.0000          .0000       .10000E+07
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .35695       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=   662.8774     FROM MIGRAD    STATUS=CONVERGED    252 CALLS     1920 TOTAL
                     EDM=   .21E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        400.29        .51238E-06** at limit **
   2  norm          .17764E-08    752.00       -.17326E-05** at limit **
   3  Prefactor     .16455E+06    2.0068       -.48202E-10    .44063    
   4  Prefactor      .0000        764.02        .95167E-06** at limit **
   5  Prefactor      .0000        222.57        .28533E-06** at limit **
   6  Prefactor      .0000        137.84        .77851E-08** at limit **
   7  Prefactor      .0000        90.791       -.36313E-07** at limit **
   8  Prefactor      .0000        50.727        .24061E-07** at limit **
   9  Prefactor      .0000        8.0887       -.26974E-08** at limit **
  10  norm           .0000        6.5862       -.13784E-07** at limit **
  11  Prefactor     7.1624        134.03        .14513E-05   -.75998E-04
  12  Prefactor      .0000        12.155        .64716E-08** at limit **
  13  norm           .0000        4.5133       -.65703E-09** at limit **
  14  norm           .0000        13.644        .54614E-08** at limit **
  15  norm           .0000        23.482        .71369E-08** at limit **
  16  norm          52.633        28.649       -.23525E-07   -.66148E-04
  17  Prefactor      .0000        3.1595       -.51528E-08** at limit **
  18  Prefactor      .0000        22.750        .59501E-07** at limit **
  19  Prefactor     76.065        119.00       -.15509E-06    .91968E-04
  20  Prefactor     13.075        22.288       -.48524E-07   -.17336E-04
  21  Normalizat    .10000E-01    .13503       -.38593E-06** at limit **
  22  Prefactor     .36386        .21188        .55366E-06   -.28251E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 1.77636e-09
  Prefactor  = 164548
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 7.16236
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 0
  norm       = 52.633
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 76.0648
  Prefactor  = 13.0754
  Normalizat = 0.01
  Prefactor  = 0.36386
 **********
 **   18 **HESSE 
 **********

 FCN=   662.8774     FROM HESSE     STATUS=OK           380 CALLS     2300 TOTAL
                     EDM=   .12E-02    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        400.42        .70656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .17764E-08    753.24        .31399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .16455E+06    29262.        .35068E-05   -.73543    
   4  Prefactor      .0000        764.30        .14483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        222.59        .13358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        137.84        .12517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        90.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        50.834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        8.1262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        6.6208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.1624        140.11        .23526E-03   -1.5654    
  12  Prefactor      .0000        12.197        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        4.5287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        13.704        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        18.091        .53471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          52.633        33.263        .13724E-03   -1.5563    
  17  Prefactor      .0000        3.2169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        22.753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     76.065        118.50        .10849E-03   -1.5534    
  20  Prefactor     13.075        22.278        .27803E-03   -1.5636    
  21  Normalizat    .10000E-01    .12355        .13124       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .36386        .22527        .60210E-01   -1.1869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.00121182
Minuit parameter uncertainties:
  1  4.96497e-05
  2  0.00231846
  3  29292.6
  4  5.78721e-05
  5  5.51161e-05
  6  1.28275e-06
  7  8.69957e-06
  8  1.72044e-05
  9  3.50517e-07
  10  4.914e-06
  11  63.3585
  12  2.83793e-07
  13  6.41764e-07
  14  1.62793e-06
  15  1.67913e-06
  16  33.2632
  17  4.8877e-07
  18  1.1932e-05
  19  118.504
  20  22.2779
  21  3.07089e-08
  22  0.225817
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  0.000e+00  1.720e-05  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:  3.639e-01  2.258e-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.000e-02  3.071e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 2.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/123310/likelihoodResults_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.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): 102
logL (Free Index) = 662.886436807
delta logL = -0.00902543005907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 662.877411647
delta logL = -2.70115265266e-07

Fit tolerance = 1e-08

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

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

 FCN=   662.8774     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      275 TOTAL
                     EDM=   .37E-13    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    1.7062        .42118E-03** at limit **
   2  Index         .52323        8.5993        .50000       -.11369E-11
   3  Normalizat    .10000E-01    .59761E-05    .13124    ** at limit **
   4  Prefactor     .36386        .14543E-02    .60211E-01    .64401E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 0.523229
  Normalizat = 0.01
  Prefactor  = 0.36386
 **********
 **   18 **HESSE 
 **********

 FCN=   662.8774     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    7.3290        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .52323        5.5177        .51000       -1.1092    
   3  Normalizat    .10000E-01    .31083E-04    .53062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .36386        .30084E-02    .26642E-03   -1.1869    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.59773e-13
Minuit parameter uncertainties:
  1  2.96876e-05
  2  330640
  3  1.35894e-09
  4  0.0030084
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/123310': 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) = 662.877411377
delta logL = -5.68434188608e-13

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  5.551e-11  2.969e-05  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  5.232e-01  3.306e+05  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:  3.639e-01  3.008e-03  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.000e-02  1.359e-09  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/123310/cmap_HighResolution_684633601_684892801_4FGL_J1249.8+3707_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-02', job_status='DONE', photon_flux_upper_limit='2.78e-07', time_completed='2022-09-16 17:10:58.360787', job_id='123310', GAL2='0.36', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1663373458.36', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.36', dlogl='-5.68e-13', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1718' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:10:58 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 123310: <4FGL_J1249.8+3707_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1718> 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) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:01:22 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:22 2022
Terminated at Fri Sep 16 17:10:59 2022
Results reported at Fri Sep 16 17:10:59 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1718 192.46 37.1306 684633601 684892801 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 :                                   368.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             234.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            641 sec.

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

