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


Performing analysis on: 4FGL_J1254.2-2205_daily_bin1767
RA = 193.552, Dec = -22.0872
tmin = 697334401, tmax = 697593601
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='77128', job_status='RUN', time_executed='2023-02-09 01:12:10.706658', time_epoch_executed='1675933930.71' WHERE source_name='4FGL J1254.2-2205' and cadence='daily' and bin_id='1767'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/77128

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/77128/ft1_4FGL_J1254.2-2205_daily_bin1767.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/77128/ft2_4FGL_J1254.2-2205_daily_bin1767.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/77128/ft1_4FGL_J1254.2-2205_daily_bin1767.fits outfile=/scratch/kocevski/77128/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1767.fits ra=193.552 dec=-22.0872 rad=12.0 tmin=697334401.0 tmax=697593601.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.65
user 3.38
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/77128/ft2_4FGL_J1254.2-2205_daily_bin1767.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/77128/ft2_4FGL_J1254.2-2205_daily_bin1767.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/77128/ft1_filteredMKT_4FGL_J1254.2-2205_daily_bin1767.fits evtable="EVENTS" outfile="/scratch/kocevski/77128/ft1_filtered_4FGL_J1254.2-2205_daily_bin1767.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.53
user 0.34
sys 0.18

Number of photons that the gtmktime cut: 835

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/77128/ft1_filtered_4FGL_J1254.2-2205_daily_bin1767.fits" evtable="EVENTS" scfile=/scratch/kocevski/77128/ft2_4FGL_J1254.2-2205_daily_bin1767.fits sctable="SC_DATA" outfile=/scratch/kocevski/77128/ltcube_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.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/77128/ft2_4FGL_J1254.2-2205_daily_bin1767.fits
.....................!
real 15.33
user 14.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/77128/ft1_filtered_4FGL_J1254.2-2205_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/77128/ft2_4FGL_J1254.2-2205_daily_bin1767.fits sctable="SC_DATA" expcube=/scratch/kocevski/77128/ltcube_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.fits outfile=/scratch/kocevski/77128/expmap_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.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/77128/ltcube_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.fits
.....................!
real 191.54
user 185.81
sys 5.17

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

Setting source of interest to:
4FGL J1254.2-2205 @ 193.552 -22.0872

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/77128/ft1_filtered_4FGL_J1254.2-2205_daily_bin1767.fits scfile=/scratch/kocevski/77128/ft2_4FGL_J1254.2-2205_daily_bin1767.fits outfile=/scratch/kocevski/77128/cmap_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.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.552 yref=-22.0872 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.63
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/77128/ft1_filtered_4FGL_J1254.2-2205_daily_bin1767.fits scfile=/scratch/kocevski/77128/ft2_4FGL_J1254.2-2205_daily_bin1767.fits outfile=/scratch/kocevski/77128/cmap_HighResolution_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.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.552 yref=-22.0872 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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/77128/ft1_filtered_4FGL_J1254.2-2205_daily_bin1767.fits evtable="EVENTS" scfile=/scratch/kocevski/77128/ft2_4FGL_J1254.2-2205_daily_bin1767.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/77128/Model_4FGL_J1254.2-2205_daily_bin1767.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/77128/ft1_filtered_4FGL_J1254.2-2205_daily_bin1767.fits.....................!
real 69.82
user 68.28
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/77128/ft1_filtered_4FGL_J1254.2-2205_daily_bin1767.fits', '/scratch/kocevski/77128/ft2_4FGL_J1254.2-2205_daily_bin1767.fits', expMap='/scratch/kocevski/77128/expmap_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.fits', expCube='/scratch/kocevski/77128/ltcube_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/77128/Model_4FGL_J1254.2-2205_daily_bin1767.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.2-2205'

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  8.803e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  2.191e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/77128/ft1_filtered_4FGL_J1254.2-2205_daily_bin1767.fits
Spacecraft file(s): /scratch/kocevski/77128/ft2_4FGL_J1254.2-2205_daily_bin1767.fits
Exposure map: /scratch/kocevski/77128/expmap_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.fits
Exposure cube: /scratch/kocevski/77128/ltcube_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/77128/Model_4FGL_J1254.2-2205_daily_bin1767.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) = 9067.93877058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22048E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    27.316       1.0000          .0000       .10000E+07
     3 'Prefactor '    .86293E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .41903E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .62604E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .60989E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    6.1938       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.103       1.0000          .0000       .10000E+07
     9 'Prefactor '    .56597E-03   1.0000          .0000       .10000E+07
    10 'norm      '    2.8291       1.0000          .0000       .10000E+07
    11 'Prefactor '    .78815E-02   1.0000          .0000       .10000E+07
    12 'norm      '    5.0693       1.0000          .0000       .10000E+07
    13 'norm      '    .50415E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .24300E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .17385E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .13932E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .14548E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    3.6057       1.0000          .0000       .10000E+07
    19 'Prefactor '    .28835E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .63659E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .17591E-03   1.0000          .0000       .10000E+07
    22 'Normalizat'    1.4835       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87559       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9067.937     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1837 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    5.9603       -.65740E-06** at limit **
   2  Prefactor     27.261        3.3395        .36121E-06   -.15937E-01
   3  Prefactor     .36915E-07    12.269        .37740E-08** at limit **
   4  Prefactor     .70555E-07    22.844        .45578E-05** at limit **
   5  Prefactor     .35139E-07    4.2772        .25118E-05** at limit **
   6  Prefactor     .11102E-09    2.3119       -.20926E-06** at limit **
   7  Prefactor     6.1931        2.0854       -.82616E-06   -.82714E-04
   8  Prefactor     12.112        1.7634       -.19451E-06   -.26163E-01
   9  Prefactor     .55511E-10    3.5038       -.26646E-06** at limit **
  10  norm          2.8292        1.0350       -.13158E-06   -.11317E-02
  11  Prefactor     .39857E-07    27.187       -.31090E-05** at limit **
  12  norm          5.0592        8.7755       -.71015E-06    .34873E-02
  13  norm          .55511E-10    2.2148       -.31368E-06** at limit **
  14  Prefactor      .0000        1.7856        .41211E-06** at limit **
  15  norm           .0000        1.6485       -.15949E-06** at limit **
  16  norm           .0000        2.6447        .63919E-06** at limit **
  17  Prefactor     .18974E-06    4.6388        .21258E-05** at limit **
  18  Prefactor     3.6059        2.0725        .50066E-06    .26572E-01
  19  Prefactor     .13967E-05    2.4069       -.17609E-05** at limit **
  20  Prefactor     .27978E-07    4.3571       -.12812E-05** at limit **
  21  Prefactor     .98421E-07    2.9852        .11478E-06** at limit **
  22  Normalizat    1.4836        .25631        .18835E-04   -.81232E-06
  23  Prefactor     .87560        .11945       -.13298E-04   -.23035E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 27.2612
  Prefactor  = 3.69149e-08
  Prefactor  = 7.05547e-08
  Prefactor  = 3.51386e-08
  Prefactor  = 1.11022e-10
  Prefactor  = 6.19306
  Prefactor  = 12.1117
  Prefactor  = 5.55112e-11
  norm       = 2.82923
  Prefactor  = 3.9857e-08
  norm       = 5.05921
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 1.89737e-07
  Prefactor  = 3.60591
  Prefactor  = 1.39666e-06
  Prefactor  = 2.79776e-08
  Prefactor  = 9.84213e-08
  Normalizat = 1.48356
  Prefactor  = 0.875601
 **********
 **   18 **HESSE 
 **********

 FCN=   9067.937     FROM HESSE     STATUS=OK           410 CALLS     2247 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    5.9825        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.261        27.602        .19137E-03   -1.5604    
   3  Prefactor     .36915E-07    12.634        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .70555E-07    23.712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .35139E-07    8.4785        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11102E-09    2.3061        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1931        2.0848        .40326E-02   -1.5210    
   8  Prefactor     12.112        11.050        .28769E-03   -1.5638    
   9  Prefactor     .55511E-10    3.5051        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8292        1.0349        .60437E-04   -1.5674    
  11  Prefactor     .39857E-07    27.883        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.0592        8.8956        .44635E-03   -1.5663    
  13  norm          .55511E-10    2.2098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.7805        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        1.6463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        .75226        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .18974E-06    9.2776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6059        10.189        .53187E-03   -1.5670    
  19  Prefactor     .13967E-05    33.537        .16513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .27978E-07    6.9298        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .98421E-07    7.4551        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4836        .21587        .74168E-01   -.78241    
  23  Prefactor     .87560        .10032        .44693E-01   -.96999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2441e-07
Minuit parameter uncertainties:
  1  4.3679e-05
  2  27.6018
  3  0.00136599
  4  0.0025869
  5  0.00109138
  6  2.95977e-05
  7  2.08482
  8  11.0498
  9  3.24436e-05
  10  1.0349
  11  0.00210862
  12  8.89559
  13  1.66422e-05
  14  2.3623e-06
  15  2.73377e-06
  16  4.75852e-07
  17  0.00265372
  18  10.1894
  19  0.0136879
  20  0.000880213
  21  0.00171329
  22  0.216005
  23  0.100344
Done.

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

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  3.986e-08  2.109e-03  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  2.191e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.756e-01  1.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.484e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 193.552 -22.087
Photon Flux Upper Limit: 6.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/77128/likelihoodResults_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.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) = 9067.95406591
delta logL = -0.0171485851151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9067.93691736
delta logL = -3.27563611791e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28572E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .38342       1.0000          .0000       10.000    
     3 'Normalizat'    1.4836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87560       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9067.844     FROM MIGRAD    STATUS=FAILED       470 CALLS      639 TOTAL
                     EDM=   .75E+01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15377E-07    .11763E-05     .0000    ** at limit **
   2  Index         9.9916        7.1499         .0000       -.12355E-02
   3  Normalizat    1.4618        .50140E-01     .0000       -.13712E-01
   4  Prefactor     .88233        .22896E-01     .0000       -.92252E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9067.844     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      730 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15377E-07    .11763E-05    .55615E-08** at limit **
   2  Index         9.9916        7.1499        .30154E-01   -.12355E-02
   3  Normalizat    1.4618        .50140E-01    .72239E-04   -.13712E-01
   4  Prefactor     .88233        .22896E-01    .33864E-05   -.92252E-02
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9067.844     FROM MIGRAD    STATUS=FAILED        62 CALLS      792 TOTAL
                     EDM=   .74E+01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15432E-07    .11538E-05     .0000    ** at limit **
   2  Index         9.9926        6.9666         .0000       -.39110E-02
   3  Normalizat    1.4618        .49150E-01     .0000       -.22837E-02
   4  Prefactor     .88233        .22677E-01     .0000        .32311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54321e-08
  Index      = 9.9926
  Normalizat = 1.46182
  Prefactor  = 0.882328
 **********
 **   18 **HESSE 
 **********

 FCN=   9067.844     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      823 TOTAL
                     EDM=   .15E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15432E-07    .11538E-05    .74901E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9926        6.9666        .50000        1.5164    
   3  Normalizat    1.4618        .49151E-01    .66039E-04   -.78857    
   4  Prefactor     .88233        .22677E-01    .76564E-05   -.96761    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 14.7296
Minuit parameter uncertainties:
  1  2.66914e-07
  2  3.03426
  3  0.0491522
  4  0.0226769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/77128': 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): 1
logL (Free Index) = 9067.84351535
delta logL = 0.0934019743108

Extracting fit parameters...

4FGL J1254.2-2205
   Spectrum: PowerLaw
283    Prefactor:  1.543e-08  2.669e-07  0.000e+00  1.000e+06 ( 1.000e-14)
284        Index:  9.993e+00  3.034e+00  0.000e+00  1.000e+01 (-1.000e+00)
285        Scale:  2.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.823e-01  2.268e-02  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.462e+00  4.915e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 193.552 -22.087

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/77128/cmap_HighResolution_697334401_697593601_4FGL_J1254.2-2205_daily_bin1767.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.17e-03', job_status='DONE', photon_flux_upper_limit='6.79e-08', time_completed='2023-02-09 01:25:31.516290', job_id='77128', GAL2='0.88', fit_tolerance='1e-08', EG2='1.46', EG='1.48', time_epoch_completed='1675934731.52', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='9.34e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1767' AND source_name='4FGL J1254.2-2205' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Feb  9 01:25:31 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 77128: <4FGL_J1254.2-2205_daily_bin1767> in cluster <slac> Done

Job <4FGL_J1254.2-2205_daily_bin1767> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Feb  9 01:10:19 2023
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Feb  9 01:10:33 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Feb  9 01:10:33 2023
Terminated at Thu Feb  9 01:25:31 2023
Results reported at Thu Feb  9 01:25:31 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.2-2205_daily_bin1767 193.552 -22.0872 697334401 697593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.2-2205 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   802.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            912 sec.

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

