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


Performing analysis on: 4FGL_J1254.5+2210_daily_bin1780
RA = 193.637, Dec = 22.1808
tmin = 700704001, tmax = 700963201
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='62630', job_status='RUN', time_executed='2023-03-20 00:54:20.776225', time_epoch_executed='1679298860.78' WHERE source_name='4FGL J1254.5+2210' and cadence='daily' and bin_id='1780'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/62630

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/62630/ft1_4FGL_J1254.5+2210_daily_bin1780.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/62630/ft2_4FGL_J1254.5+2210_daily_bin1780.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/62630/ft1_4FGL_J1254.5+2210_daily_bin1780.fits outfile=/scratch/kocevski/62630/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1780.fits ra=193.637 dec=22.1808 rad=12.0 tmin=700704001.0 tmax=700963201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.05
user 3.83
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/62630/ft2_4FGL_J1254.5+2210_daily_bin1780.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/62630/ft2_4FGL_J1254.5+2210_daily_bin1780.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/62630/ft1_filteredMKT_4FGL_J1254.5+2210_daily_bin1780.fits evtable="EVENTS" outfile="/scratch/kocevski/62630/ft1_filtered_4FGL_J1254.5+2210_daily_bin1780.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.48
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 448

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/62630/ft1_filtered_4FGL_J1254.5+2210_daily_bin1780.fits" evtable="EVENTS" scfile=/scratch/kocevski/62630/ft2_4FGL_J1254.5+2210_daily_bin1780.fits sctable="SC_DATA" outfile=/scratch/kocevski/62630/ltcube_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.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/62630/ft2_4FGL_J1254.5+2210_daily_bin1780.fits
.....................!
real 11.99
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/62630/ft1_filtered_4FGL_J1254.5+2210_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/62630/ft2_4FGL_J1254.5+2210_daily_bin1780.fits sctable="SC_DATA" expcube=/scratch/kocevski/62630/ltcube_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.fits outfile=/scratch/kocevski/62630/expmap_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.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/62630/ltcube_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.fits
.....................!
real 193.37
user 188.42
sys 4.63

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

Setting source of interest to:
4FGL J1254.5+2210 @ 193.637 22.1808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/62630/ft1_filtered_4FGL_J1254.5+2210_daily_bin1780.fits scfile=/scratch/kocevski/62630/ft2_4FGL_J1254.5+2210_daily_bin1780.fits outfile=/scratch/kocevski/62630/cmap_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.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.637 yref=22.1808 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/62630/ft1_filtered_4FGL_J1254.5+2210_daily_bin1780.fits scfile=/scratch/kocevski/62630/ft2_4FGL_J1254.5+2210_daily_bin1780.fits outfile=/scratch/kocevski/62630/cmap_HighResolution_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.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.637 yref=22.1808 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/62630/ft1_filtered_4FGL_J1254.5+2210_daily_bin1780.fits evtable="EVENTS" scfile=/scratch/kocevski/62630/ft2_4FGL_J1254.5+2210_daily_bin1780.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/62630/Model_4FGL_J1254.5+2210_daily_bin1780.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/62630/ft1_filtered_4FGL_J1254.5+2210_daily_bin1780.fits.....................!
real 47.01
user 45.76
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/62630/ft1_filtered_4FGL_J1254.5+2210_daily_bin1780.fits', '/scratch/kocevski/62630/ft2_4FGL_J1254.5+2210_daily_bin1780.fits', expMap='/scratch/kocevski/62630/expmap_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.fits', expCube='/scratch/kocevski/62630/ltcube_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/62630/Model_4FGL_J1254.5+2210_daily_bin1780.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.5+2210'

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  1.787e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/62630/ft1_filtered_4FGL_J1254.5+2210_daily_bin1780.fits
Spacecraft file(s): /scratch/kocevski/62630/ft2_4FGL_J1254.5+2210_daily_bin1780.fits
Exposure map: /scratch/kocevski/62630/expmap_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.fits
Exposure cube: /scratch/kocevski/62630/ltcube_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/62630/Model_4FGL_J1254.5+2210_daily_bin1780.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5200.6605919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8861       1.0000          .0000       .10000E+07
     2 'Prefactor '    .24980E-07   1.0000          .0000       .10000E+07
     3 'norm      '    5.1387       1.0000          .0000       .10000E+07
     4 'Prefactor '    .93178E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    3.1449       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.0718       1.0000          .0000       .10000E+07
     7 'norm      '    .36082E-08   1.0000          .0000       .10000E+07
     8 'norm      '    1.9248       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16205E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .69615       1.0000          .0000       .10000E+07
    11 'Prefactor '    .33085E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.2302       1.0000          .0000       .10000E+07
    13 'norm      '    10.249       1.0000          .0000       .10000E+07
    14 'Prefactor '    30.644       1.0000          .0000       .10000E+07
    15 'Prefactor '    .32314E-01   1.0000          .0000       .10000E+07
    16 'norm      '    .54512E-07   1.0000          .0000       .10000E+07
    17 'norm      '    13.444       1.0000          .0000       .10000E+07
    18 'norm      '    12.891       1.0000          .0000       .10000E+07
    19 'norm      '    .23446E-02   1.0000          .0000       .10000E+07
    20 'norm      '    37.221       1.0000          .0000       .10000E+07
    21 'Prefactor '    18.362       1.0000          .0000       .10000E+07
    22 'norm      '    .37606       1.0000          .0000       .10000E+07
    23 'Prefactor '    .10431E-05   1.0000          .0000       .10000E+07
    24 'Prefactor '    31.546       1.0000          .0000       .10000E+07
    25 'Normalizat'    .71760       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1239       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5197.798     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1377 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8926        2.7047        .76147E-08   -.67683E-04
   2  Prefactor      .0000        1.1594        .39252E-06** at limit **
   3  norm          5.1414        3.1872        .36814E-07   -.99907E-04
   4  Prefactor     .48295E-08    4.8379       -.16993E-07** at limit **
   5  Prefactor     3.1487        2.5152        .49574E-07    .14014E-02
   6  Prefactor     2.0757        3.7823        .21049E-09    .29512E-03
   7  norm           .0000        .27430        .18686E-06** at limit **
   8  norm          1.9317        3.4873       -.13580E-06    .57010E-03
   9  Prefactor     .17097E-07    7.9275        .64355E-06** at limit **
  10  Prefactor     .77802        1.9929        .16216E-05   -.29347E-01
  11  Prefactor     .55511E-10    3.0500       -.25572E-06** at limit **
  12  Prefactor     4.9052        11.250        .11112E-05   -.29803E-01
  13  norm          10.261        4.6510       -.15948E-06   -.24711E-03
  14  Prefactor     29.688        20.922       -.86405E-07    .18575E-01
  15  Prefactor     .12534E-06    56.913        .80980E-05** at limit **
  16  norm           .0000        1.2189       -.11675E-07** at limit **
  17  norm          13.375        4.4536       -.36052E-06    .21047E-01
  18  norm          13.035        3.6457        .43027E-06   -.36693E-01
  19  norm          .69389E-08    7.0969       -.91145E-07** at limit **
  20  norm          37.576        6.5302        .66277E-06    .15156    
  21  Prefactor     20.843        59.981        .17483E-05   -.83559E-02
  22  norm          .43030        10.195        .42136E-05    .21909E-01
  23  Prefactor     .22093E-07    11.451       -.67150E-06** at limit **
  24  Prefactor     31.899        9.1617       -.55878E-06    .19393    
  25  Normalizat    .71750        .22445       -.91155E-07   -.37065E-04
  26  Prefactor     1.1218        .23072       -.24241E-05   -.51145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.89262
  Prefactor  = 0
  norm       = 5.14139
  Prefactor  = 4.82947e-09
  Prefactor  = 3.14868
  Prefactor  = 2.07567
  norm       = 0
  norm       = 1.9317
  Prefactor  = 1.70974e-08
  Prefactor  = 0.778023
  Prefactor  = 5.55112e-11
  Prefactor  = 4.90517
  norm       = 10.2614
  Prefactor  = 29.6881
  Prefactor  = 1.25344e-07
  norm       = 0
  norm       = 13.3751
  norm       = 13.0355
  norm       = 6.93889e-09
  norm       = 37.5757
  Prefactor  = 20.8425
  norm       = 0.430297
  Prefactor  = 2.20934e-08
  Prefactor  = 31.8988
  Normalizat = 0.717496
  Prefactor  = 1.12176
 **********
 **   18 **HESSE 
 **********

 FCN=   5197.798     FROM HESSE     STATUS=OK           536 CALLS     1913 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8926        2.7271        .75752E-03   -1.5680    
   2  Prefactor      .0000        1.1601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1414        3.3982        .44326E-03   -1.5663    
   4  Prefactor     .48295E-08    1.4082        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1487        2.5769        .57135E-03   -1.5672    
   6  Prefactor     2.0757        3.8152        .71737E-03   -1.5679    
   7  norm           .0000        .12634        .95738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.9317        3.5297        .74854E-03   -1.5680    
   9  Prefactor     .17097E-07    7.9760        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .77802        28.289        .61021E-03   -1.5690    
  11  Prefactor     .55511E-10    3.0511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9052        19.080        .48969E-03   -1.5664    
  13  norm          10.261        4.7721        .31273E-03   -1.5644    
  14  Prefactor     29.688        23.040        .18067E-03   -1.5599    
  15  Prefactor     .12534E-06    19.700        .11318E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        1.2193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.375        9.0317        .27292E-03   -1.5635    
  18  norm          13.035        15.353        .27873E-03   -1.5636    
  19  norm          .69389E-08    7.1070        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          37.576        12.062        .16393E-03   -1.5585    
  21  Prefactor     20.843        59.840        .23345E-03   -1.5617    
  22  norm          .43030        7.9417        .70141E-02   -1.5695    
  23  Prefactor     .22093E-07    11.478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     31.899        28.220        .17807E-03   -1.5595    
  25  Normalizat    .71750        .19965        .66556E-01   -1.0321    
  26  Prefactor     1.1218        .19651        .56099E-01   -.88774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19972e-06
Minuit parameter uncertainties:
  1  2.72707
  2  1.30836e-06
  3  3.39823
  4  0.000164833
  5  2.5769
  6  3.81517
  7  4.7844e-09
  8  3.52968
  9  0.000738915
  10  9.38287
  11  2.4279e-05
  12  19.0802
  13  4.77208
  14  23.0402
  15  0.00314247
  16  1.42504e-06
  17  9.03176
  18  15.3532
  19  0.000444086
  20  12.0615
  21  59.8418
  22  3.69719
  23  0.00100775
  24  28.2199
  25  0.19985
  26  0.196636
Done.

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

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  5.551e-11  2.428e-05  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  2.089e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.122e+00  1.966e-01  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  7.175e-01  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.637 22.181
Photon Flux Upper Limit: 5.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/62630/likelihoodResults_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.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) = 5197.79802102
delta logL = -0.000417850267695

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5197.79760327
delta logL = -9.61372279562e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91038E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .62114       1.0000          .0000       10.000    
     3 'Normalizat'    .71749       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5670E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5197.798     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      252 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .82935        .42118E-03** at limit **
   2  Index         3.2597        1.8831       -.15977E-04     .0000    
   3  Normalizat    .71750        1.0572       -.20465E-05    .46265E-04
   4  Prefactor     1.1218        1.1357       -.23029E-05    .51023E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.25965
  Normalizat = 0.717497
  Prefactor  = 1.12176
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5197.798     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .21E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .82935        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.1929        2.2134       -.15977E-04   -.35551    
   3  Normalizat    .71750        1.0572       -.20465E-05   -1.0321    
   4  Prefactor     1.1218        1.1357       -.23029E-05   -.88774    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.14003e-11
Minuit parameter uncertainties:
  1  9.09019e-06
  2  1.93782
  3  1.08974
  4  1.16178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/62630': 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) = 5197.79760317
delta logL = 8.18545231596e-12

Extracting fit parameters...

4FGL J1254.5+2210
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  9.090e-06  0.000e+00  1.000e+06 ( 1.000e-13)
302        Index:  3.260e+00  1.938e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.816e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
564    Prefactor:  1.122e+00  1.162e+00  0.000e+00  1.000e+01 ( 1.000e+00)
565        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
566        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
563   Normalization:  7.175e-01  1.090e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.637 22.181

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/62630/cmap_HighResolution_700704001_700963201_4FGL_J1254.5+2210_daily_bin1780.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2023-03-20 01:03:06.414517', job_id='62630', GAL2='1.12', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1679299386.41', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='8.19e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1780' AND source_name='4FGL J1254.5+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar 20 01:03:06 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 62630: <4FGL_J1254.5+2210_daily_bin1780> in cluster <slac> Done

Job <4FGL_J1254.5+2210_daily_bin1780> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar 20 00:50:20 2023
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar 20 00:50:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar 20 00:50:21 2023
Terminated at Mon Mar 20 01:03:07 2023
Results reported at Mon Mar 20 01:03:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.5+2210_daily_bin1780 193.637 22.1808 700704001 700963201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.5+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   528.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             244.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   765 sec.
    Turnaround time :                            767 sec.

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

