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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1776
RA = 192.46, Dec = 37.1306
tmin = 699667201, tmax = 699926401
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='833779', job_status='RUN', time_executed='2023-03-08 00:43:53.312861', time_epoch_executed='1678265033.31' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833779/ft1_4FGL_J1249.8+3707_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833779/ft2_4FGL_J1249.8+3707_daily_bin1776.fits


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

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

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

Number of photons that the gtmktime cut: 576

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833779/ft1_filtered_4FGL_J1249.8+3707_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/833779/ft2_4FGL_J1249.8+3707_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/833779/ltcube_699667201_699926401_4FGL_J1249.8+3707_daily_bin1776.fits outfile=/scratch/kocevski/833779/expmap_699667201_699926401_4FGL_J1249.8+3707_daily_bin1776.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/833779/ltcube_699667201_699926401_4FGL_J1249.8+3707_daily_bin1776.fits
.....................!
real 191.54
user 186.53
sys 4.59

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/833779/ft1_filtered_4FGL_J1249.8+3707_daily_bin1776.fits scfile=/scratch/kocevski/833779/ft2_4FGL_J1249.8+3707_daily_bin1776.fits outfile=/scratch/kocevski/833779/cmap_699667201_699926401_4FGL_J1249.8+3707_daily_bin1776.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833779/ft1_filtered_4FGL_J1249.8+3707_daily_bin1776.fits scfile=/scratch/kocevski/833779/ft2_4FGL_J1249.8+3707_daily_bin1776.fits outfile=/scratch/kocevski/833779/cmap_HighResolution_699667201_699926401_4FGL_J1249.8+3707_daily_bin1776.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.712       1.0000          .0000       .10000E+07
     2 'norm      '    4.2801       1.0000          .0000       .10000E+07
     3 'Prefactor '    .27564E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.7360       1.0000          .0000       .10000E+07
     5 'Prefactor '    8.3154       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32427E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    .38430E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .36815E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .51947E-06   1.0000          .0000       .10000E+07
    10 'norm      '    1.8794       1.0000          .0000       .10000E+07
    11 'Prefactor '    25.363       1.0000          .0000       .10000E+07
    12 'Prefactor '    .60023E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .78318E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .24635E-01   1.0000          .0000       .10000E+07
    15 'norm      '    13.571       1.0000          .0000       .10000E+07
    16 'norm      '    5.0031       1.0000          .0000       .10000E+07
    17 'Prefactor '    .10045E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .21500E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .48400       1.0000          .0000       .10000E+07
    20 'Prefactor '    25.574       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.1877       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85095       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=   6268.995     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     1713 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.598        5.7978       -.49428E-06    .13187    
   2  norm          4.2803        2.8226       -.25441E-08    .33324E-03
   3  Prefactor      .0000        1.8120        .12351E-06** at limit **
   4  Prefactor     1.7353        1.7065        .30120E-07   -.91494E-02
   5  Prefactor     8.3125        2.9859       -.44343E-08    .23605E-02
   6  Prefactor     .34972E-08    3.4193        .59051E-06** at limit **
   7  Prefactor     .13600E-07    4.6314       -.22193E-06** at limit **
   8  Prefactor     .25535E-08    3.6976       -.46001E-06** at limit **
   9  Prefactor     .74940E-08    3.6587       -.57002E-06** at limit **
  10  norm          1.8392        4.5254        .22598E-06    .20600E-02
  11  Prefactor     25.173        4.8984        .65178E-06   -.90231E-01
  12  Prefactor     .44409E-09    20.229        .17336E-06** at limit **
  13  norm           .0000        2.8337        .53142E-08** at limit **
  14  norm          .38858E-09    17.043       -.26332E-06** at limit **
  15  norm          13.590        6.3547       -.96378E-06   -.49152E-01
  16  norm          5.0383        8.9097        .25100E-05    .38098E-01
  17  Prefactor     .55511E-10    1.3262        .62277E-07** at limit **
  18  Prefactor     .38802E-07    8.7849        .43337E-06** at limit **
  19  Prefactor     .23098E-06    198.34        .10797E-05** at limit **
  20  Prefactor     25.600        4.6301       -.62084E-06    .60932E-01
  21  Normalizat    1.1881        .19987        .48521E-05    .14014E-03
  22  Prefactor     .85097        .24369       -.69117E-05   -.15742E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.5983
  norm       = 4.28035
  Prefactor  = 0
  Prefactor  = 1.73527
  Prefactor  = 8.31251
  Prefactor  = 3.4972e-09
  Prefactor  = 1.36002e-08
  Prefactor  = 2.55351e-09
  Prefactor  = 7.49401e-09
  norm       = 1.83919
  Prefactor  = 25.173
  Prefactor  = 4.44089e-10
  norm       = 0
  norm       = 3.88578e-10
  norm       = 13.5897
  norm       = 5.03826
  Prefactor  = 5.55112e-11
  Prefactor  = 3.88023e-08
  Prefactor  = 2.30982e-07
  Prefactor  = 25.6005
  Normalizat = 1.18813
  Prefactor  = 0.850973
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.995     FROM HESSE     STATUS=OK           394 CALLS     2107 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.598        43.799        .15127E-03   -1.5576    
   2  norm          4.2803        2.8229        .48674E-03   -1.5667    
   3  Prefactor      .0000        1.8122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7353        1.6981        .79618E-03   -1.5682    
   5  Prefactor     8.3125        2.9886        .34742E-03   -1.5650    
   6  Prefactor     .34972E-08    3.4284        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .13600E-07    8.1949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .25535E-08    8.2483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .74940E-08    3.6616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8392        5.0300        .75912E-03   -1.5681    
  11  Prefactor     25.173        26.172        .19861E-03   -1.5608    
  12  Prefactor     .44409E-09    19.508        .15161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        2.8208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .38858E-09    7.1480        .78512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.590        6.4479        .27164E-03   -1.5634    
  16  norm          5.0383        9.1187        .44935E-03   -1.5663    
  17  Prefactor     .55511E-10    1.3251        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .38802E-07    8.8985        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .23098E-06    197.92        .80336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     25.600        21.698        .19778E-03   -1.5607    
  21  Normalizat    1.1881        .16811        .50850E-01   -.86970    
  22  Prefactor     .85097        .20485        .72377E-01   -.97876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11706e-06
Minuit parameter uncertainties:
  1  43.7996
  2  2.8229
  3  1.10146e-05
  4  1.69814
  5  2.98856
  6  0.000219013
  7  0.000667284
  8  0.000291787
  9  0.000331498
  10  5.02998
  11  26.1723
  12  0.000180746
  13  1.54315e-05
  14  0.00010744
  15  6.44794
  16  9.11871
  17  1.85323e-05
  18  0.00117528
  19  0.0135227
  20  21.6976
  21  0.168183
  22  0.205037
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.554e-09  2.918e-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:  8.510e-01  2.050e-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.188e+00  1.682e-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.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/833779/likelihoodResults_699667201_699926401_4FGL_J1249.8+3707_daily_bin1776.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) = 6269.05314359
delta logL = -0.0580456932785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6268.99509828
delta logL = -3.89042725146e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .80935E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .41107       1.0000          .0000       10.000    
     3 'Normalizat'    1.1883       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85082       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=   6268.279     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      309 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10616E-02    .15011E-01    .42118E-04** at limit **
   2  Index         5.1737        1.5609        .86826E-01    .16281E-03
   3  Normalizat    1.1195        .36256E-01    .52152E-01    .95945E-04
   4  Prefactor     .90450        .44681E-01    .70446E-01    .12549E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00106158
  Index      = 5.17368
  Normalizat = 1.11954
  Prefactor  = 0.904505
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.279     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      344 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10616E-02    .45915E-01    .23697E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.1737        3.4574        .30717E-02    .34743E-01
   3  Normalizat    1.1195        .14414        .23059E-03   -.89127    
   4  Prefactor     .90450        .17490        .31168E-03   -.95984    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.5635e-08
Minuit parameter uncertainties:
  1  0.0139631
  2  3.81828
  3  0.144187
  4  0.175007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833779': 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) = 6268.27871166
delta logL = 0.716386235715

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.062e-03  1.396e-02  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  5.174e+00  3.818e+00  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:  9.045e-01  1.750e-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.120e+00  1.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.51
Ra Dec: 192.460 37.131
Photon Index (Free Index): 5.17 +/- 3.82
Photon Flux (Free Index): 5.05e-08 +/- 4.44e-08
Energy Flux (Free Index): 6.62e-06 +/- 6.02e-06

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/833779/cmap_HighResolution_699667201_699926401_4FGL_J1249.8+3707_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', comment='SUCCESS', energy_flux2='6.62e-06', dlogl='7.16e-01', photon_flux2='5.05e-08', job_status='DONE', time_completed='2023-03-08 00:54:02.676725', photon_index_error2='3.82', photon_index2='5.17', ts='-0.00', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='3.64e-08', energy_flux_error2='6.02e-06', EG='1.19', time_epoch_completed='1678265642.68', return_code='0', job_id='833779', GAL2='0.90', EG2='1.12', return_code2='102', photon_flux_error2='4.44e-08', ts2='1.51', photon_index='1.78' WHERE bin_id='1776' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:54:02 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 833779: <4FGL_J1249.8+3707_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1776> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Mar  8 00:40:15 2023
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:40:16 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:40:16 2023
Terminated at Wed Mar  8 00:54:03 2023
Results reported at Wed Mar  8 00:54:03 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1776 192.46 37.1306 699667201 699926401 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 :                                   611.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             202.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            828 sec.

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

