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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1779
RA = 192.46, Dec = 37.1306
tmin = 700444801, tmax = 700704001
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='26350', job_status='RUN', time_executed='2023-03-17 01:40:22.508116', time_epoch_executed='1679042422.51' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/26350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/26350/ft1_4FGL_J1249.8+3707_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/26350/ft2_4FGL_J1249.8+3707_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/26350/ft1_4FGL_J1249.8+3707_daily_bin1779.fits outfile=/scratch/kocevski/26350/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1779.fits ra=192.46 dec=37.1306 rad=12.0 tmin=700444801.0 tmax=700704001.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 5.33
user 5.05
sys 0.21

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

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

Number of photons that the gtmktime cut: 410

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/26350/ft1_filtered_4FGL_J1249.8+3707_daily_bin1779.fits" evtable="EVENTS" scfile=/scratch/kocevski/26350/ft2_4FGL_J1249.8+3707_daily_bin1779.fits sctable="SC_DATA" outfile=/scratch/kocevski/26350/ltcube_700444801_700704001_4FGL_J1249.8+3707_daily_bin1779.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/26350/ft2_4FGL_J1249.8+3707_daily_bin1779.fits
.....................!
real 12.12
user 11.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/26350/ft1_filtered_4FGL_J1249.8+3707_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/26350/ft2_4FGL_J1249.8+3707_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/26350/ltcube_700444801_700704001_4FGL_J1249.8+3707_daily_bin1779.fits outfile=/scratch/kocevski/26350/expmap_700444801_700704001_4FGL_J1249.8+3707_daily_bin1779.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/26350/ltcube_700444801_700704001_4FGL_J1249.8+3707_daily_bin1779.fits
.....................!
real 190.72
user 185.74
sys 4.47

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/26350/ft1_filtered_4FGL_J1249.8+3707_daily_bin1779.fits scfile=/scratch/kocevski/26350/ft2_4FGL_J1249.8+3707_daily_bin1779.fits outfile=/scratch/kocevski/26350/cmap_700444801_700704001_4FGL_J1249.8+3707_daily_bin1779.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/26350/ft1_filtered_4FGL_J1249.8+3707_daily_bin1779.fits scfile=/scratch/kocevski/26350/ft2_4FGL_J1249.8+3707_daily_bin1779.fits outfile=/scratch/kocevski/26350/cmap_HighResolution_700444801_700704001_4FGL_J1249.8+3707_daily_bin1779.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.605       1.0000          .0000       .10000E+07
     2 'norm      '    3.8450       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.361       1.0000          .0000       .10000E+07
     4 'Prefactor '    .19734E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.0209       1.0000          .0000       .10000E+07
     6 'Prefactor '    .24303E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .24589E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    16.977       1.0000          .0000       .10000E+07
     9 'Prefactor '    .84792E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .22042E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    32.647       1.0000          .0000       .10000E+07
    12 'Prefactor '    14.153       1.0000          .0000       .10000E+07
    13 'norm      '    6.0199       1.0000          .0000       .10000E+07
    14 'norm      '    1.2853       1.0000          .0000       .10000E+07
    15 'norm      '    12.967       1.0000          .0000       .10000E+07
    16 'norm      '    .40813E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .43132E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .50445E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    .35714E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.0381       1.0000          .0000       .10000E+07
    21 'Normalizat'    .95803       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86936       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=   4829.253     FROM MIGRAD    STATUS=CONVERGED    193 CALLS     1821 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.553        77.834        .20734E-04   -.10772E-01
   2  norm          3.8453        3.1944       -.32549E-06    .95082E-02
   3  Prefactor     22.366        14.138        .17740E-05    .34482E-02
   4  Prefactor     .55511E-10    1.0344        .74965E-07** at limit **
   5  Prefactor     1.0214        1.6615       -.46515E-07    .24344E-02
   6  Prefactor     .44409E-09    7.2549        .47538E-06** at limit **
   7  Prefactor     .38858E-09    14.102        .25501E-05** at limit **
   8  Prefactor     16.977        8.7124       -.17359E-05   -.17175E-01
   9  Prefactor     .55511E-10    20.471        .44984E-05** at limit **
  10  norm          .11102E-09    3.6897       -.44634E-06** at limit **
  11  Prefactor     32.275        9.8353        .15779E-05    .93660E-01
  12  Prefactor     14.165        14.952       -.22065E-05    .20952E-02
  13  norm          6.1054        5.9325        .88398E-06   -.20298E-02
  14  norm          1.2872        29.699       -.47358E-05   -.87886E-03
  15  norm          12.967        5.9024       -.75582E-06   -.91419E-02
  16  norm          .88818E-09    61.175       -.17197E-05** at limit **
  17  Prefactor      .0000        1.1896       -.90502E-06** at limit **
  18  Prefactor     .12768E-08    15.660       -.50986E-05** at limit **
  19  Prefactor     .45325E-06    98.352       -.88533E-05** at limit **
  20  Prefactor     4.0419        13.072        .60959E-05    .16076E-02
  21  Normalizat    .95816        .22850        .39857E-05    .15217E-03
  22  Prefactor     .86899        .26926       -.18196E-04    .10152E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.5528
  norm       = 3.84534
  Prefactor  = 22.3656
  Prefactor  = 5.55112e-11
  Prefactor  = 1.02141
  Prefactor  = 4.44089e-10
  Prefactor  = 3.88578e-10
  Prefactor  = 16.977
  Prefactor  = 5.55112e-11
  norm       = 1.11022e-10
  Prefactor  = 32.2754
  Prefactor  = 14.1648
  norm       = 6.10537
  norm       = 1.28717
  norm       = 12.9669
  norm       = 8.88178e-10
  Prefactor  = 0
  Prefactor  = 1.27676e-09
  Prefactor  = 4.53249e-07
  Prefactor  = 4.0419
  Normalizat = 0.958156
  Prefactor  = 0.868986
 **********
 **   18 **HESSE 
 **********

 FCN=   4829.253     FROM HESSE     STATUS=OK           392 CALLS     2213 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.553        79.440        .17001E-03   -1.5589    
   2  norm          3.8453        3.2132        .51442E-03   -1.5669    
   3  Prefactor     22.366        14.132        .21153E-03   -1.5613    
   4  Prefactor     .55511E-10    1.0340        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0214        2.0236        .26189E-02   -1.5688    
   6  Prefactor     .44409E-09    7.2560        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .38858E-09    14.259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     16.977        17.697        .24281E-03   -1.5626    
   9  Prefactor     .55511E-10    20.295        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .11102E-09    3.7058        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     32.275        37.103        .17504E-03   -1.5594    
  12  Prefactor     14.165        17.455        .26599E-03   -1.5633    
  13  norm          6.1054        6.0174        .40900E-03   -1.5659    
  14  norm          1.2872        29.306        .97756E-03   -1.5685    
  15  norm          12.967        6.3434        .27791E-03   -1.5636    
  16  norm          .88818E-09    60.620        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        1.1887        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .12768E-08    15.907        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .45325E-06    99.442        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.0419        13.088        .50156E-03   -1.5668    
  21  Normalizat    .95816        .19252        .45639E-01   -.94446    
  22  Prefactor     .86899        .22723        .67580E-01   -.97233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.99076e-07
Minuit parameter uncertainties:
  1  79.4425
  2  3.2132
  3  14.1317
  4  1.34408e-05
  5  2.02356
  6  0.000112686
  7  0.000145984
  8  17.6969
  9  6.98966e-05
  10  3.99883e-05
  11  37.1036
  12  17.4555
  13  6.01744
  14  12.2836
  15  6.34342
  16  0.000464464
  17  2.624e-06
  18  0.000286193
  19  0.0134272
  20  13.0877
  21  0.192661
  22  0.227481
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.698e+01  1.770e+01  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:  8.690e-01  2.275e-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:  9.582e-01  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.90
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.55e-08 +/- 1.61e-08
Energy Flux (Fixed Index): 1.97e-05 +/- 2.05e-05

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

Saving results to:
/scratch/kocevski/26350/likelihoodResults_700444801_700704001_4FGL_J1249.8+3707_daily_bin1779.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) = 4829.22546411
delta logL = 0.0278499623291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4829.22400595
delta logL = 0.0293081272612

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4829.224     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      307 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.623        22.726        .90329E-05   -.17746E-03
   2  Index         1.6079        .70425        .78654E-02   -.22045E-04
   3  Normalizat    .96093        .22374        .24041E-03    .37027E-04
   4  Prefactor     .86805        .26685        .29912E-03    .32534E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6229
  Index      = 1.60793
  Normalizat = 0.960931
  Prefactor  = 0.868046
 **********
 **   18 **HESSE 
 **********

 FCN=   4829.224     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.623        22.384        .36132E-06   -1.5619    
   2  Index         1.6079        .69386        .31462E-03   -.74560    
   3  Normalizat    .96093        .22393        .96165E-05   -.94351    
   4  Prefactor     .86805        .26711        .11965E-04   -.97267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6338e-11
Minuit parameter uncertainties:
  1  22.3836
  2  0.698057
  3  0.224146
  4  0.267515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/26350': 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) = 4829.22400589
delta logL = 0.0293081863865

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.962e+01  2.238e+01  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  1.608e+00  6.981e-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:  8.680e-01  2.675e-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:  9.609e-01  2.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.61 +/- 0.70
Photon Flux (Free Index): 1.20e-08 +/- 1.80e-08
Energy Flux (Free Index): 2.65e-05 +/- 4.32e-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/26350/cmap_HighResolution_700444801_700704001_4FGL_J1249.8+3707_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', comment='SUCCESS', photon_flux='1.55e-08', energy_flux2='2.65e-05', photon_flux_error='1.61e-08', dlogl='2.93e-02', energy_flux='1.97e-05', photon_flux2='1.20e-08', job_status='DONE', time_completed='2023-03-17 01:49:28.622848', photon_index_error2='0.70', photon_index2='1.61', ts='2.90', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='6.57e-08', energy_flux_error2='4.32e-05', EG='0.96', time_epoch_completed='1679042968.62', return_code='0', job_id='26350', GAL2='0.87', EG2='0.96', return_code2='0', energy_flux_error='2.05e-05', photon_flux_error2='1.80e-08', ts2='2.96', photon_index='1.78' WHERE bin_id='1779' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 01:49:28 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 26350: <4FGL_J1249.8+3707_daily_bin1779> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1779> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar 17 01:40:13 2023
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 01:40:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 01:40:14 2023
Terminated at Fri Mar 17 01:49:29 2023
Results reported at Fri Mar 17 01:49:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1779 192.46 37.1306 700444801 700704001 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 :                                   547.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             301.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   554 sec.
    Turnaround time :                            556 sec.

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

