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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1772
RA = 192.46, Dec = 37.1306
tmin = 698630401, tmax = 698889601
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='632060', job_status='RUN', time_executed='2023-02-24 01:36:24.398285', time_epoch_executed='1677231384.4' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/632060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/632060/ft1_4FGL_J1249.8+3707_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/632060/ft2_4FGL_J1249.8+3707_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/632060/ft1_4FGL_J1249.8+3707_daily_bin1772.fits outfile=/scratch/kocevski/632060/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1772.fits ra=192.46 dec=37.1306 rad=12.0 tmin=698630401.0 tmax=698889601.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.01
user 2.78
sys 0.19

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

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

Number of photons that the gtmktime cut: 246

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/632060/ft1_filtered_4FGL_J1249.8+3707_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/632060/ft2_4FGL_J1249.8+3707_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/632060/ltcube_698630401_698889601_4FGL_J1249.8+3707_daily_bin1772.fits outfile=/scratch/kocevski/632060/expmap_698630401_698889601_4FGL_J1249.8+3707_daily_bin1772.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/632060/ltcube_698630401_698889601_4FGL_J1249.8+3707_daily_bin1772.fits
.....................!
real 191.44
user 186.74
sys 4.34

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/632060/ft1_filtered_4FGL_J1249.8+3707_daily_bin1772.fits scfile=/scratch/kocevski/632060/ft2_4FGL_J1249.8+3707_daily_bin1772.fits outfile=/scratch/kocevski/632060/cmap_698630401_698889601_4FGL_J1249.8+3707_daily_bin1772.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/632060/ft1_filtered_4FGL_J1249.8+3707_daily_bin1772.fits scfile=/scratch/kocevski/632060/ft2_4FGL_J1249.8+3707_daily_bin1772.fits outfile=/scratch/kocevski/632060/cmap_HighResolution_698630401_698889601_4FGL_J1249.8+3707_daily_bin1772.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.46 yref=37.1306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    260.86       1.0000          .0000       .10000E+07
     2 'norm      '    6.8995       1.0000          .0000       .10000E+07
     3 'Prefactor '    .15577E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    .19257E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    27.349       1.0000          .0000       .10000E+07
     6 'Prefactor '    28.887       1.0000          .0000       .10000E+07
     7 'Prefactor '    12.628       1.0000          .0000       .10000E+07
     8 'Prefactor '    19.947       1.0000          .0000       .10000E+07
     9 'Prefactor '    .97710E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .70529E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .77771E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    18.526       1.0000          .0000       .10000E+07
    13 'norm      '    .17211E-02   1.0000          .0000       .10000E+07
    14 'norm      '    4.6634       1.0000          .0000       .10000E+07
    15 'norm      '    45.387       1.0000          .0000       .10000E+07
    16 'norm      '    .12682E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.9378       1.0000          .0000       .10000E+07
    18 'Prefactor '    .30104E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .21787       1.0000          .0000       .10000E+07
    20 'Prefactor '    11.003       1.0000          .0000       .10000E+07
    21 'Normalizat'    .37348       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.4521       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=   2799.663     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     1786 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     272.51        276.53        .42801E-05   -.57147E-02
   2  norm          7.1281        14.102        .40916E-06    .56657E-02
   3  Prefactor      .0000        11.242        .29450E-06** at limit **
   4  Prefactor      .0000        6.6600       -.16452E-06** at limit **
   5  Prefactor     27.284        16.198        .96129E-07   -.16988E-01
   6  Prefactor     29.666        36.014       -.12447E-05    .52601E-01
   7  Prefactor     12.873        24.576       -.93222E-05   -.59368E-01
   8  Prefactor     22.167        45.281       -.84328E-05    .46897E-01
   9  Prefactor      .0000        4.6803        .12703E-05** at limit **
  10  norm           .0000        2.7310        .99608E-06** at limit **
  11  Prefactor     .31641E-08    42.076       -.68809E-05** at limit **
  12  Prefactor     18.477        18.148       -.29865E-05   -.47148E-01
  13  norm          .55511E-10    5.3727       -.73462E-07** at limit **
  14  norm          4.5862        17.100       -.11564E-04    .57402E-03
  15  norm          45.519        10.537       -.50358E-07   -.12367E-02
  16  norm          .27756E-09    8.3915       -.81401E-06** at limit **
  17  Prefactor     1.9331        6.1199        .27622E-05   -.80020E-04
  18  Prefactor     .18485E-07    26.430        .19584E-05** at limit **
  19  Prefactor     .18349E-02    123.39       -.60297E-05** at limit **
  20  Prefactor     11.102        15.783       -.18063E-06   -.18676E-01
  21  Normalizat    .37267        .30447        .31260E-04   -.25172E-04
  22  Prefactor     1.4493        .37980        .13743E-04   -.52065E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 272.511
  norm       = 7.12806
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 27.2842
  Prefactor  = 29.6662
  Prefactor  = 12.8733
  Prefactor  = 22.1674
  Prefactor  = 0
  norm       = 0
  Prefactor  = 3.16414e-09
  Prefactor  = 18.4766
  norm       = 5.55112e-11
  norm       = 4.5862
  norm       = 45.5186
  norm       = 2.77556e-10
  Prefactor  = 1.93308
  Prefactor  = 1.84852e-08
  Prefactor  = 0.0018349
  Prefactor  = 11.1017
  Normalizat = 0.372666
  Prefactor  = 1.44929
 **********
 **   18 **HESSE 
 **********

 FCN=   2799.663     FROM HESSE     STATUS=OK           396 CALLS     2182 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     272.51        277.44        .61924E-04   -1.5378    
   2  norm          7.1281        14.127        .38172E-03   -1.5655    
   3  Prefactor      .0000        11.174        .17347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        6.6501        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.284        16.314        .19125E-03   -1.5603    
   6  Prefactor     29.666        36.722        .18609E-03   -1.5599    
   7  Prefactor     12.873        26.813        .28163E-03   -1.5636    
   8  Prefactor     22.167        47.004        .22398E-03   -1.5614    
   9  Prefactor      .0000        4.6695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        2.7309        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .31641E-08    41.645        .14570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.477        23.102        .23242E-03   -1.5622    
  13  norm          .55511E-10    5.3688        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.5862        17.166        .46579E-03   -1.5665    
  15  norm          45.519        10.705        .14845E-03   -1.5573    
  16  norm          .27756E-09    8.3815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9331        6.7285        .74561E-03   -1.5680    
  18  Prefactor     .18485E-07    26.426        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .18349E-02    84.684        .15399E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.102        23.532        .30179E-03   -1.5641    
  21  Normalizat    .37267        .28290        .84684E-01   -1.1874    
  22  Prefactor     1.4493        .34003        .57589E-01   -.78970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02652e-06
Minuit parameter uncertainties:
  1  277.454
  2  14.1269
  3  1.25788e-05
  4  1.44212e-05
  5  16.3141
  6  36.7224
  7  26.8132
  8  47.005
  9  1.26155e-05
  10  1.47181e-06
  11  0.00072676
  12  23.102
  13  2.65492e-05
  14  17.1664
  15  10.7046
  16  9.18611e-05
  17  6.72857
  18  0.00139832
  19  0.788393
  20  23.5321
  21  0.283988
  22  0.340564
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.217e+01  4.701e+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:  1.449e+00  3.406e-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:  3.727e-01  2.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/632060/likelihoodResults_698630401_698889601_4FGL_J1249.8+3707_daily_bin1772.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) = 2799.36107047
delta logL = 0.30217570992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2799.35487664
delta logL = 0.308369541897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.569       1.0000          .0000       .10000E+07
     2 'Index     '    2.4541       1.0000          .0000       10.000    
     3 'Normalizat'    .34797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4506       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2799.355     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      327 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.616        41.125        .61588E-04   -.64746E-03
   2  Index         2.4529        1.4063        .41899E-02    .33880E-03
   3  Normalizat    .34672        .29925        .38828E-03    .16440E-04
   4  Prefactor     1.4521        .38045        .25407E-03   -.79426E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6156
  Index      = 2.45288
  Normalizat = 0.346716
  Prefactor  = 1.45214
 **********
 **   18 **HESSE 
 **********

 FCN=   2799.355     FROM HESSE     STATUS=OK            25 CALLS      352 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.616        27.026        .24635E-05   -1.5643    
   2  Index         2.4529        .93294        .83797E-03   -.53452    
   3  Normalizat    .34672        .29458        .15531E-04   -1.2015    
   4  Prefactor     1.4521        .37535        .10163E-04   -.78889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04204e-11
Minuit parameter uncertainties:
  1  27.0258
  2  0.940412
  3  0.295905
  4  0.376061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/632060': 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) = 2799.35486473
delta logL = 0.308381453199

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.062e+01  2.703e+01  0.000e+00  1.000e+06 ( 1.000e-14)
314        Index:  2.453e+00  9.404e-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:  1.452e+00  3.761e-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:  3.467e-01  2.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/632060/cmap_HighResolution_698630401_698889601_4FGL_J1249.8+3707_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2023-02-24 01:43:49.122531', job_id='632060', GAL2='1.45', fit_tolerance='1e-08', EG2='0.35', EG='0.37', time_epoch_completed='1677231829.12', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='3.08e-01', ts2='0.88', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1772' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:43:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 632060: <4FGL_J1249.8+3707_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1772> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Feb 24 01:35:21 2023
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:35:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:35:23 2023
Terminated at Fri Feb 24 01:43:49 2023
Results reported at Fri Feb 24 01:43:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1772 192.46 37.1306 698630401 698889601 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 :                                   446.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   506 sec.
    Turnaround time :                            508 sec.

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

