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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1753
RA = 192.46, Dec = 37.1306
tmin = 693705601, tmax = 693964801
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='453902', job_status='RUN', time_executed='2022-12-29 00:56:05.893016', time_epoch_executed='1672304165.89' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453902

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453902/ft1_4FGL_J1249.8+3707_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453902/ft2_4FGL_J1249.8+3707_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453902/ft1_4FGL_J1249.8+3707_daily_bin1753.fits outfile=/scratch/kocevski/453902/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1753.fits ra=192.46 dec=37.1306 rad=12.0 tmin=693705601.0 tmax=693964801.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 4.68
user 4.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453902/ft2_4FGL_J1249.8+3707_daily_bin1753.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/453902/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/453902/ft1_filtered_4FGL_J1249.8+3707_daily_bin1753.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Number of photons that the gtmktime cut: 550

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453902/ft1_filtered_4FGL_J1249.8+3707_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/453902/ft2_4FGL_J1249.8+3707_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/453902/ltcube_693705601_693964801_4FGL_J1249.8+3707_daily_bin1753.fits outfile=/scratch/kocevski/453902/expmap_693705601_693964801_4FGL_J1249.8+3707_daily_bin1753.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/453902/ltcube_693705601_693964801_4FGL_J1249.8+3707_daily_bin1753.fits
.....................!
real 192.54
user 186.09
sys 5.26

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/453902/ft1_filtered_4FGL_J1249.8+3707_daily_bin1753.fits scfile=/scratch/kocevski/453902/ft2_4FGL_J1249.8+3707_daily_bin1753.fits outfile=/scratch/kocevski/453902/cmap_693705601_693964801_4FGL_J1249.8+3707_daily_bin1753.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453902/ft1_filtered_4FGL_J1249.8+3707_daily_bin1753.fits scfile=/scratch/kocevski/453902/ft2_4FGL_J1249.8+3707_daily_bin1753.fits outfile=/scratch/kocevski/453902/cmap_HighResolution_693705601_693964801_4FGL_J1249.8+3707_daily_bin1753.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.57
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15089E-02   1.0000          .0000       .10000E+07
     2 'norm      '    4.7720       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.4492       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.1024       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7685       1.0000          .0000       .10000E+07
     6 'Prefactor '    .81104E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .33995E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15983E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .13969E-03   1.0000          .0000       .10000E+07
    10 'norm      '    6.4830       1.0000          .0000       .10000E+07
    11 'Prefactor '    .38142E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    2.4791       1.0000          .0000       .10000E+07
    13 'norm      '    .28264E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .15796E-03   1.0000          .0000       .10000E+07
    15 'norm      '    18.149       1.0000          .0000       .10000E+07
    16 'norm      '    12.269       1.0000          .0000       .10000E+07
    17 'Prefactor '    .42522E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .35911E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    15.482       1.0000          .0000       .10000E+07
    20 'Prefactor '    .85051E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2688       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73334       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=   5866.264     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1353 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26223E-06    15.394        .93007E-07** at limit **
   2  norm          4.7722        2.5434       -.17856E-07   -.95421E-03
   3  Prefactor     2.4545        6.5749       -.53777E-07   -.21003E-02
   4  Prefactor     1.1026        1.1777       -.55536E-07   -.23566E-02
   5  Prefactor     1.7690        1.6372        .16368E-07    .40745E-03
   6  Prefactor      .0000        2.6241        .14334E-06** at limit **
   7  Prefactor     .28583E-06    13.464       -.51909E-07** at limit **
   8  Prefactor     .55511E-10    8.3493        .21185E-06** at limit **
   9  Prefactor     .10758E-06    4.7134       -.10711E-06** at limit **
  10  norm          6.5452        5.8119        .10460E-06    .13623E-02
  11  Prefactor     .55511E-10    25.331        .13759E-06** at limit **
  12  Prefactor     2.4032        10.452       -.10412E-06   -.23349E-01
  13  norm           .0000        1.5539       -.49131E-07** at limit **
  14  norm          .19484E-07    10.496       -.64640E-07** at limit **
  15  norm          18.131        4.6333        .18556E-07   -.12530E-02
  16  norm          12.257        2.9278        .10847E-07    .51112E-02
  17  Prefactor      .0000        .95953       -.26784E-07** at limit **
  18  Prefactor     .44409E-09    4.6833       -.19833E-07** at limit **
  19  Prefactor     16.630        28.908       -.26609E-07   -.56688E-02
  20  Prefactor     .63449E-07    5.2172       -.70036E-07** at limit **
  21  Normalizat    1.2687        .20442       -.59892E-06    .30217E-04
  22  Prefactor     .73309        .24657        .15017E-05    .23532E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62235e-07
  norm       = 4.77217
  Prefactor  = 2.45454
  Prefactor  = 1.10258
  Prefactor  = 1.76899
  Prefactor  = 0
  Prefactor  = 2.85827e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 1.07581e-07
  norm       = 6.54521
  Prefactor  = 5.55112e-11
  Prefactor  = 2.40318
  norm       = 0
  norm       = 1.94844e-08
  norm       = 18.1312
  norm       = 12.2566
  Prefactor  = 0
  Prefactor  = 4.44089e-10
  Prefactor  = 16.6298
  Prefactor  = 6.34492e-08
  Normalizat = 1.26866
  Prefactor  = 0.733092
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.264     FROM HESSE     STATUS=OK           384 CALLS     1737 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26223E-06    17.960        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.7722        2.5443        .46034E-03   -1.5664    
   3  Prefactor     2.4545        6.5989        .65338E-03   -1.5677    
   4  Prefactor     1.1026        1.1778        .11300E-03   -1.5687    
   5  Prefactor     1.7690        1.6336        .78725E-03   -1.5681    
   6  Prefactor      .0000        2.6262        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .28583E-06    16.261        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    8.2963        .17317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10758E-06    5.7413        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.5452        5.8882        .39393E-03   -1.5657    
  11  Prefactor     .55511E-10    25.099        .16049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.4032        16.451        .64905E-03   -1.5677    
  13  norm           .0000        1.5532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .19484E-07    10.694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.131        8.0652        .23482E-03   -1.5623    
  16  norm          12.257        12.773        .28573E-03   -1.5638    
  17  Prefactor      .0000        .95882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .44409E-09    4.6860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.630        29.105        .25428E-03   -1.5626    
  20  Prefactor     .63449E-07    5.8460        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2687        .17303        .48160E-01   -.84507    
  22  Prefactor     .73309        .20922        .75367E-01   -1.0224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25521e-07
Minuit parameter uncertainties:
  1  0.00434014
  2  2.54435
  3  6.59896
  4  1.17777
  5  1.63357
  6  5.74031e-06
  7  0.00431193
  8  3.35122e-05
  9  0.00157177
  10  5.88822
  11  7.80178e-05
  12  12.5755
  13  8.19374e-06
  14  0.000913373
  15  8.06521
  16  12.7726
  17  1.32874e-06
  18  8.9281e-05
  19  29.1054
  20  0.001218
  21  0.173106
  22  0.209449
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  5.551e-11  3.351e-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:  7.331e-01  2.094e-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.269e+00  1.731e-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: 3.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/453902/likelihoodResults_693705601_693964801_4FGL_J1249.8+3707_daily_bin1753.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) = 5866.32191735
delta logL = -0.0575286677695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5866.26438868
delta logL = -1.91994331544e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44409E-09   1.0000          .0000       .10000E+07
     2 'Index     '    .61483       1.0000          .0000       10.000    
     3 'Normalizat'    1.2687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73309       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=   5866.264     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      227 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .33307E-09    .27522        .42118E-03** at limit **
   2  Index         1.1438        8.3963        .41256       -.27557E-10
   3  Normalizat    1.2687        .67520E-03    .48160E-01   -.62159E-04
   4  Prefactor     .73309        .83183E-03    .75367E-01   -.35564E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33067e-10
  Index      = 1.14381
  Normalizat = 1.26866
  Prefactor  = 0.733092
 **********
 **   18 **HESSE 
 **********

 FCN=   5866.264     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      256 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .33307E-09    .68840        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1438        7.0408        .50000       -.88078    
   3  Normalizat    1.2687        .10672E-02    .21291E-03   -.84507    
   4  Prefactor     .73309        .13124E-02    .33361E-03   -1.0224    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.80501e-12
Minuit parameter uncertainties:
  1  3.03486e-05
  2  18285.2
  3  0.0010672
  4  0.00131244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453902': 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) = 5866.26438868
delta logL = -1.54614099301e-11

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.331e-10  3.035e-05  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  1.144e+00  1.829e+04  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:  7.331e-01  1.312e-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.269e+00  1.067e-03  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/453902/cmap_HighResolution_693705601_693964801_4FGL_J1249.8+3707_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-03', job_status='DONE', photon_flux_upper_limit='3.45e-08', time_completed='2022-12-29 01:05:49.318995', job_id='453902', GAL2='0.73', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1672304749.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='-1.55e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1753' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:05:49 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 453902: <4FGL_J1249.8+3707_daily_bin1753> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1753> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Dec 29 00:50:15 2022
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 00:55:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 00:55:01 2022
Terminated at Thu Dec 29 01:05:50 2022
Results reported at Thu Dec 29 01:05:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1753 192.46 37.1306 693705601 693964801 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 :                                   583.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            935 sec.

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

