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


Performing analysis on: 4FGL_J1254.9+1138_weekly_bin732
RA = 193.733, Dec = 11.6495
tmin = 681696001, tmax = 682300801
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='240694', job_status='RUN', time_executed='2022-09-16 23:42:17.638705', time_epoch_executed='1663396937.64' WHERE source_name='4FGL J1254.9+1138' and cadence='weekly' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/240694

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/240694/ft1_4FGL_J1254.9+1138_weekly_bin732.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/240694/ft2_4FGL_J1254.9+1138_weekly_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/240694/ft1_4FGL_J1254.9+1138_weekly_bin732.fits outfile=/scratch/kocevski/240694/ft1_filteredMKT_4FGL_J1254.9+1138_weekly_bin732.fits ra=193.733 dec=11.6495 rad=12.0 tmin=681696001.0 tmax=682300801.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 9.55
user 9.19
sys 0.30

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/240694/ft2_4FGL_J1254.9+1138_weekly_bin732.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/240694/ft2_4FGL_J1254.9+1138_weekly_bin732.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/240694/ft1_filteredMKT_4FGL_J1254.9+1138_weekly_bin732.fits evtable="EVENTS" outfile="/scratch/kocevski/240694/ft1_filtered_4FGL_J1254.9+1138_weekly_bin732.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.56
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 1317

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/240694/ft1_filtered_4FGL_J1254.9+1138_weekly_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/240694/ft2_4FGL_J1254.9+1138_weekly_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/240694/ltcube_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.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/240694/ft2_4FGL_J1254.9+1138_weekly_bin732.fits
.....................!
real 34.17
user 33.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/240694/ft1_filtered_4FGL_J1254.9+1138_weekly_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/240694/ft2_4FGL_J1254.9+1138_weekly_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/240694/ltcube_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.fits outfile=/scratch/kocevski/240694/expmap_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.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/240694/ltcube_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.fits
.....................!
real 192.01
user 186.02
sys 5.40

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

Setting source of interest to:
4FGL J1254.9+1138 @ 193.733 11.6495

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/240694/ft1_filtered_4FGL_J1254.9+1138_weekly_bin732.fits scfile=/scratch/kocevski/240694/ft2_4FGL_J1254.9+1138_weekly_bin732.fits outfile=/scratch/kocevski/240694/cmap_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.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.733 yref=11.6495 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.62
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/240694/ft1_filtered_4FGL_J1254.9+1138_weekly_bin732.fits scfile=/scratch/kocevski/240694/ft2_4FGL_J1254.9+1138_weekly_bin732.fits outfile=/scratch/kocevski/240694/cmap_HighResolution_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.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.733 yref=11.6495 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.62
user 0.45
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/240694/ft1_filtered_4FGL_J1254.9+1138_weekly_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/240694/ft2_4FGL_J1254.9+1138_weekly_bin732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/240694/Model_4FGL_J1254.9+1138_weekly_bin732.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/240694/ft1_filtered_4FGL_J1254.9+1138_weekly_bin732.fits.....................!
real 107.86
user 106.11
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/240694/ft1_filtered_4FGL_J1254.9+1138_weekly_bin732.fits', '/scratch/kocevski/240694/ft2_4FGL_J1254.9+1138_weekly_bin732.fits', expMap='/scratch/kocevski/240694/expmap_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.fits', expCube='/scratch/kocevski/240694/ltcube_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/240694/Model_4FGL_J1254.9+1138_weekly_bin732.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1254.9+1138'

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  3.627e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/240694/ft1_filtered_4FGL_J1254.9+1138_weekly_bin732.fits
Spacecraft file(s): /scratch/kocevski/240694/ft2_4FGL_J1254.9+1138_weekly_bin732.fits
Exposure map: /scratch/kocevski/240694/expmap_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.fits
Exposure cube: /scratch/kocevski/240694/ltcube_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/240694/Model_4FGL_J1254.9+1138_weekly_bin732.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) = 14881.3630539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45607E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .25887E-03   1.0000          .0000       .10000E+07
     3 'norm      '    4.4433       1.0000          .0000       .10000E+07
     4 'Prefactor '    .29038E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .57078       1.0000          .0000       .10000E+07
     6 'norm      '    .98857       1.0000          .0000       .10000E+07
     7 'Prefactor '    7.0524       1.0000          .0000       .10000E+07
     8 'norm      '    1.4389       1.0000          .0000       .10000E+07
     9 'Prefactor '    7.5576       1.0000          .0000       .10000E+07
    10 'Prefactor '    .53207E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    8.5230       1.0000          .0000       .10000E+07
    12 'Prefactor '    .29432E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .11050E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .48088E-01   1.0000          .0000       .10000E+07
    15 'Normalizat'    .91884       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.1762       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14880.58     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1004 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54441E-01    6.7142        .67827E-06** at limit **
   2  Prefactor     .33307E-09    3.5417        .17256E-07** at limit **
   3  norm          4.4674        2.0536        .14053E-06    .11680E-01
   4  Prefactor     .22204E-09    27.205       -.44890E-06** at limit **
   5  norm          .23870E-07    46.333        .20505E-05** at limit **
   6  norm          .98983        .36797       -.22429E-07   -.11676E-01
   7  Prefactor     7.0580        4.9080       -.97332E-07   -.45827E-02
   8  norm          1.4393        .76194        .13206E-08   -.19223E-02
   9  Prefactor     7.5847        5.4083       -.69110E-07    .15650E-03
  10  Prefactor     .49618E-01    308.77       -.22258E-04** at limit **
  11  Prefactor     8.7125        11.319        .24086E-06    .15095E-02
  12  Prefactor     .27756E-09    2.7727        .48754E-06** at limit **
  13  Prefactor     .37748E-08    11.635        .11731E-05** at limit **
  14  Prefactor      .0000        15.679       -.15116E-06** at limit **
  15  Normalizat    .91785        .15290        .60978E-05    .75105E-03
  16  Prefactor     1.1764        .12793       -.61716E-07    .89145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0544415
  Prefactor  = 3.33067e-10
  norm       = 4.46736
  Prefactor  = 2.22045e-10
  norm       = 2.38698e-08
  norm       = 0.989833
  Prefactor  = 7.058
  norm       = 1.43927
  Prefactor  = 7.58469
  Prefactor  = 0.0496185
  Prefactor  = 8.71247
  Prefactor  = 2.77556e-10
  Prefactor  = 3.77476e-09
  Prefactor  = 0
  Normalizat = 0.91785
  Prefactor  = 1.17643
 **********
 **   18 **HESSE 
 **********

 FCN=   14880.58     FROM HESSE     STATUS=OK           247 CALLS     1251 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54441E-01    .87758        .35434E-02   -1.5713    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .33307E-09    3.5738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4674        2.0717        .47747E-03   -1.5666    
   4  Prefactor     .22204E-09    28.553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .23870E-07    48.051        .71887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .98983        .37101        .43361E-03   -1.5688    
   7  Prefactor     7.0580        4.9131        .37751E-03   -1.5655    
   8  norm          1.4393        .77154        .89920E-03   -1.5684    
   9  Prefactor     7.5847        5.4269        .36456E-03   -1.5653    
  10  Prefactor     .49618E-01    8.1373        .64383E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7125        11.416        .34313E-03   -1.5649    
  12  Prefactor     .27756E-09    2.8408        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .37748E-08    11.802        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        15.670        .15617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .91785        .12744        .65491E-01   -.95836    
  16  Prefactor     1.1764        .10606        .50709E-01   -.87060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3617e-09
Minuit parameter uncertainties:
  1  0.437158
  2  6.78814e-05
  3  2.07169
  4  0.000162259
  5  0.00214305
  6  0.371006
  7  4.9131
  8  0.771538
  9  5.42686
  10  1.27084
  11  11.4156
  12  5.45515e-05
  13  0.000421923
  14  3.42036e-05
  15  0.12748
  16  0.10608
Done.

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

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  4.962e-02  1.271e+00  0.000e+00  1.000e+06 ( 1.000e-12)
288        Index:  2.791e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.176e+00  1.061e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.178e-01  1.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 193.733 11.649
Photon Flux Upper Limit: 7.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/240694/likelihoodResults_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.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) = 14880.5835431
delta logL = 2.29192664847e-10

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14880.5835431
delta logL = 4.5656634029e-10

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   14880.58     FROM MIGRAD    STATUS=FAILED       111 CALLS      300 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49628E-01    24.622        .60309E-02** at limit **
   2  Index         2.8191        5.0807        .50000        .27543E-03
   3  Normalizat    .91784        .58279E-02    .28969E-03    .10094E-03
   4  Prefactor     1.1764        .50644E-02    .22418E-03    .98991E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   14880.58     FROM SIMPLEX   STATUS=UNCHANGED     67 CALLS      367 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49628E-01    24.622        .11499E-03** at limit **
   2  Index         2.8191        5.0807        .76023E-02    .27543E-03
   3  Normalizat    .91784        .58279E-02    .86475E-05    .10094E-03
   4  Prefactor     1.1764        .50644E-02    .42161E-05    .98991E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14880.58     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      408 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49741E-01    13.570        .78045E-02** at limit **
   2  Index         2.8185        5.3469        .50000       -.27797E-04
   3  Normalizat    .91784        .53250E-02    .11588E-04    .23193E-03
   4  Prefactor     1.1764        .46277E-02    .89672E-05    .24646E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0497412
  Index      = 2.81854
  Normalizat = 0.917842
  Prefactor  = 1.17643
 **********
 **   18 **HESSE 
 **********

 FCN=   14880.58     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      447 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49741E-01    17.263        .70265E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8185        5.1828        .50000       -.45147    
   3  Normalizat    .91784        .55274E-02    .23175E-05   -.95836    
   4  Prefactor     1.1764        .48034E-02    .17934E-05   -.87060    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24379e-10
Minuit parameter uncertainties:
  1  1.85329
  2  9.69828
  3  0.00552742
  4  0.00480336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/240694': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 14880.5835403
delta logL = 2.78299921774e-06

Extracting fit parameters...

4FGL J1254.9+1138
   Spectrum: PowerLaw
287    Prefactor:  4.974e-02  1.853e+00  0.000e+00  1.000e+06 ( 1.000e-12)
288        Index:  2.819e+00  9.698e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  4.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.176e+00  4.803e-03  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  9.178e-01  5.527e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 193.733 11.649

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/240694/cmap_HighResolution_681696001_682300801_4FGL_J1254.9+1138_weekly_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.04e-08', time_completed='2022-09-16 23:55:54.024050', job_id='240694', GAL2='1.18', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1663397754.02', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.78e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='732' AND source_name='4FGL J1254.9+1138' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:55:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 240694: <4FGL_J1254.9+1138_weekly_bin732> in cluster <slac> Done

Job <4FGL_J1254.9+1138_weekly_bin732> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 23:40:43 2022
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:41:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:41:57 2022
Terminated at Fri Sep 16 23:55:54 2022
Results reported at Fri Sep 16 23:55:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1254.9+1138_weekly_bin732 193.733 11.6495 681696001 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1254.9+1138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   813.18 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            911 sec.

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

