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 178 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_J1253.8+6242_daily_bin1772
RA = 193.467, Dec = 62.7052
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='634471', job_status='RUN', time_executed='2023-02-24 01:48:25.486666', time_epoch_executed='1677232105.49' WHERE source_name='4FGL J1253.8+6242' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/634471

Creating custom pfile directory:
/scratch/kocevski/634471/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/634471/ft1_4FGL_J1253.8+6242_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/634471/ft2_4FGL_J1253.8+6242_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/634471/ft1_4FGL_J1253.8+6242_daily_bin1772.fits outfile=/scratch/kocevski/634471/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1772.fits ra=193.467 dec=62.7052 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 2.99
user 2.81
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/634471/ft2_4FGL_J1253.8+6242_daily_bin1772.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/634471/ft2_4FGL_J1253.8+6242_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/634471/ft1_filteredMKT_4FGL_J1253.8+6242_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/634471/ft1_filtered_4FGL_J1253.8+6242_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.49
user 0.35
sys 0.13

Number of photons that the gtmktime cut: 518

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/634471/ft1_filtered_4FGL_J1253.8+6242_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/634471/ft2_4FGL_J1253.8+6242_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/634471/ltcube_698630401_698889601_4FGL_J1253.8+6242_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/634471/ft2_4FGL_J1253.8+6242_daily_bin1772.fits
.....................!
real 12.96
user 12.61
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/634471/ft1_filtered_4FGL_J1253.8+6242_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/634471/ft2_4FGL_J1253.8+6242_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/634471/ltcube_698630401_698889601_4FGL_J1253.8+6242_daily_bin1772.fits outfile=/scratch/kocevski/634471/expmap_698630401_698889601_4FGL_J1253.8+6242_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/634471/ltcube_698630401_698889601_4FGL_J1253.8+6242_daily_bin1772.fits
.....................!
real 191.21
user 185.61
sys 5.28

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 223 point sources and 0 extended sources

Setting source of interest to:
4FGL J1253.8+6242 @ 193.467 62.7052

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/634471/ft1_filtered_4FGL_J1253.8+6242_daily_bin1772.fits scfile=/scratch/kocevski/634471/ft2_4FGL_J1253.8+6242_daily_bin1772.fits outfile=/scratch/kocevski/634471/cmap_698630401_698889601_4FGL_J1253.8+6242_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=193.467 yref=62.7052 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/634471/ft1_filtered_4FGL_J1253.8+6242_daily_bin1772.fits scfile=/scratch/kocevski/634471/ft2_4FGL_J1253.8+6242_daily_bin1772.fits outfile=/scratch/kocevski/634471/cmap_HighResolution_698630401_698889601_4FGL_J1253.8+6242_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=193.467 yref=62.7052 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/634471/ft1_filtered_4FGL_J1253.8+6242_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/634471/ft2_4FGL_J1253.8+6242_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/634471/Model_4FGL_J1253.8+6242_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/634471/ft1_filtered_4FGL_J1253.8+6242_daily_bin1772.fits.....................!
real 55.51
user 54.28
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/634471/ft1_filtered_4FGL_J1253.8+6242_daily_bin1772.fits', '/scratch/kocevski/634471/ft2_4FGL_J1253.8+6242_daily_bin1772.fits', expMap='/scratch/kocevski/634471/expmap_698630401_698889601_4FGL_J1253.8+6242_daily_bin1772.fits', expCube='/scratch/kocevski/634471/ltcube_698630401_698889601_4FGL_J1253.8+6242_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/634471/Model_4FGL_J1253.8+6242_daily_bin1772.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1253.8+6242'

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  7.997e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/634471/ft1_filtered_4FGL_J1253.8+6242_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/634471/ft2_4FGL_J1253.8+6242_daily_bin1772.fits
Exposure map: /scratch/kocevski/634471/expmap_698630401_698889601_4FGL_J1253.8+6242_daily_bin1772.fits
Exposure cube: /scratch/kocevski/634471/ltcube_698630401_698889601_4FGL_J1253.8+6242_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/634471/Model_4FGL_J1253.8+6242_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) = 5740.10032885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1089.8       1.0000          .0000       .10000E+07
     2 'Prefactor '    .25479E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    .17925E-04   1.0000          .0000       .10000E+07
     4 'norm      '    .12231E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .20617E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .46464E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14644E-02   1.0000          .0000       .10000E+07
     8 'norm      '    1.6968       1.0000          .0000       .10000E+07
     9 'Prefactor '    .66202E-03   1.0000          .0000       .10000E+07
    10 'norm      '    5.2742       1.0000          .0000       .10000E+07
    11 'Prefactor '    9.2380       1.0000          .0000       .10000E+07
    12 'norm      '    4.3857       1.0000          .0000       .10000E+07
    13 'norm      '    2.0530       1.0000          .0000       .10000E+07
    14 'Prefactor '    .53597E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    11.937       1.0000          .0000       .10000E+07
    16 'Prefactor '    .16180E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .14527E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10753E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .20768E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .43220E-03   1.0000          .0000       .10000E+07
    21 'norm      '    .33206E-04   1.0000          .0000       .10000E+07
    22 'Prefactor '    12.598       1.0000          .0000       .10000E+07
    23 'Normalizat'    1.0227       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78869       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5740.038     FROM MIGRAD    STATUS=CONVERGED    211 CALLS     2001 TOTAL
                     EDM=   .37E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1113.5        522.39       -.15222E-06    .96391E-04
   2  Prefactor      .0000        35.900        .12814E-06** at limit **
   3  Prefactor      .0000        1.4435        .15663E-06** at limit **
   4  norm           .0000        7.9957       -.48392E-07** at limit **
   5  norm           .0000        4.7674       -.13463E-05** at limit **
   6  Prefactor      .0000        4.6221        .11699E-07** at limit **
   7  Prefactor      .0000        11.254        .57538E-06** at limit **
   8  norm          1.6954        3.5603       -.11042E-06    .75616E-04
   9  Prefactor      .0000        12.513        .34794E-06** at limit **
  10  norm          5.2774        3.4355        .64059E-07    .21083E-03
  11  Prefactor     9.1224        7.2669        .57325E-07   -.75253E-04
  12  norm          4.3966        2.8784        .45306E-07    .49636E-03
  13  norm          2.0557        2.0026       -.15551E-07    .83013E-04
  14  Prefactor      .0000        26.031        .74218E-07** at limit **
  15  Prefactor     11.929        10.046       -.19932E-06    .26593E-03
  16  Prefactor      .0000        15.991        .48637E-07** at limit **
  17  Prefactor      .0000        11.312       -.43220E-06** at limit **
  18  Prefactor      .0000        45.791       -.15792E-06** at limit **
  19  Prefactor      .0000        4.2959       -.40937E-06** at limit **
  20  Prefactor      .0000        5.5313       -.54032E-08** at limit **
  21  norm           .0000        1.4329        .23002E-06** at limit **
  22  Prefactor     12.832        30.199        .69548E-06    .15589E-04
  23  Normalizat    1.0211        .18196       -.30454E-05    .45032E-04
  24  Prefactor     .78956        .20634       -.69787E-06    .36311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1113.53
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.6954
  Prefactor  = 0
  norm       = 5.27744
  Prefactor  = 9.12243
  norm       = 4.39658
  norm       = 2.05571
  Prefactor  = 0
  Prefactor  = 11.9289
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 12.8323
  Normalizat = 1.02113
  Prefactor  = 0.789557
 **********
 **   18 **HESSE 
 **********

 FCN=   5740.038     FROM HESSE     STATUS=OK           437 CALLS     2438 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1113.5        518.83        .30308E-04   -1.5040    
   2  Prefactor      .0000        35.560        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        1.4410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        7.9848        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm           .0000        4.7606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        4.6002        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        11.243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.6954        3.6004        .80746E-03   -1.5682    
   9  Prefactor      .0000        12.421        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.2774        3.4378        .43742E-03   -1.5662    
  11  Prefactor     9.1224        7.2673        .32950E-03   -1.5648    
  12  norm          4.3966        2.8812        .48068E-03   -1.5666    
  13  norm          2.0557        2.0126        .72113E-03   -1.5679    
  14  Prefactor      .0000        25.803        .15400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.929        10.038        .28969E-03   -1.5639    
  16  Prefactor      .0000        16.007        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        11.300        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        45.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        4.2357        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        5.5436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm           .0000        1.4320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.832        30.155        .28196E-03   -1.5636    
  23  Normalizat    1.0211        .15429        .42988E-01   -.92326    
  24  Prefactor     .78956        .17544        .43570E-01   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80184e-10
Minuit parameter uncertainties:
  1  518.853
  2  1.171e-05
  3  2.9564e-07
  4  3.58943e-06
  5  1.08977e-05
  6  6.02539e-07
  7  1.06898e-06
  8  3.60036
  9  1.34561e-05
  10  3.43783
  11  7.26729
  12  2.88124
  13  2.01258
  14  3.71504e-06
  15  10.0376
  16  6.61801e-06
  17  8.42411e-07
  18  3.41279e-05
  19  8.10176e-06
  20  1.21601e-06
  21  8.00093e-07
  22  30.1552
  23  0.154353
  24  0.175568
Done.

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

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  3.715e-06  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.987e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  7.896e-01  1.756e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.021e+00  1.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 193.467 62.705
Photon Flux Upper Limit: 3.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/634471/likelihoodResults_698630401_698889601_4FGL_J1253.8+6242_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): 102
logL (Free Index) = 5740.05683586
delta logL = -0.0185795948273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5740.03825635
delta logL = -8.67648850544e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12540E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.5540       1.0000          .0000       10.000    
     3 'Normalizat'    1.0212       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78948       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5740.038     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      206 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        27.225        .42118E-03** at limit **
   2  Index         1.0450        .88123       -.11908E-04     .0000    
   3  Normalizat    1.0211        1.2610       -.56588E-05    .10605E-04
   4  Prefactor     .78956        1.1384        .97212E-05    .24819E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.04498
  Normalizat = 1.02113
  Prefactor  = 0.789557
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5740.038     FROM HESSE     STATUS=FAILED         9 CALLS      215 TOTAL
                     EDM=   .13E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        27.225        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .54918E-01    1.1577       -.11908E-04   -.91245    
   3  Normalizat    1.0211        1.2610       -.56588E-05   -.92326    
   4  Prefactor     .78956        1.1384        .97212E-05   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.26366e-12
Minuit parameter uncertainties:
  1  1.75113e-05
  2  0.893901
  3  1.30106
  4  1.17522
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/634471': 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): 101
logL (Free Index) = 5740.03825627
delta logL = 0.0

Extracting fit parameters...

4FGL J1253.8+6242
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  1.751e-05  0.000e+00  1.000e+06 ( 1.000e-14)
370        Index:  1.045e+00  8.939e-01  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  2.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  7.896e-01  1.175e+00  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.021e+00  1.301e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 193.467 62.705

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/634471/cmap_HighResolution_698630401_698889601_4FGL_J1253.8+6242_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-03', job_status='DONE', photon_flux_upper_limit='3.87e-08', time_completed='2023-02-24 01:59:13.930020', job_id='634471', GAL2='0.79', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1677232753.93', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='1772' AND source_name='4FGL J1253.8+6242' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:59:13 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 634471: <4FGL_J1253.8+6242_daily_bin1772> in cluster <slac> Done

Job <4FGL_J1253.8+6242_daily_bin1772> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Feb 24 01:45:13 2023
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:45:14 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:45:14 2023
Terminated at Fri Feb 24 01:59:14 2023
Results reported at Fri Feb 24 01:59:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1253.8+6242_daily_bin1772 193.467 62.7052 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1253.8+6242 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   650.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            841 sec.

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

