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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1766
RA = 207.387, Dec = -11.5188
tmin = 697075201, tmax = 697334401
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='850737', job_status='RUN', time_executed='2023-02-06 00:58:02.177014', time_epoch_executed='1675673882.18' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/850737

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/850737/ft1_4FGL_J1349.5-1131_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/850737/ft2_4FGL_J1349.5-1131_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/850737/ft1_4FGL_J1349.5-1131_daily_bin1766.fits outfile=/scratch/kocevski/850737/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1766.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=697075201.0 tmax=697334401.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.72
user 3.47
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/850737/ft2_4FGL_J1349.5-1131_daily_bin1766.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/850737/ft2_4FGL_J1349.5-1131_daily_bin1766.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/850737/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/850737/ft1_filtered_4FGL_J1349.5-1131_daily_bin1766.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.54
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 826

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/850737/ft1_filtered_4FGL_J1349.5-1131_daily_bin1766.fits" evtable="EVENTS" scfile=/scratch/kocevski/850737/ft2_4FGL_J1349.5-1131_daily_bin1766.fits sctable="SC_DATA" outfile=/scratch/kocevski/850737/ltcube_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.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/850737/ft2_4FGL_J1349.5-1131_daily_bin1766.fits
.....................!
real 16.89
user 16.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/850737/ft1_filtered_4FGL_J1349.5-1131_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/850737/ft2_4FGL_J1349.5-1131_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/850737/ltcube_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.fits outfile=/scratch/kocevski/850737/expmap_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.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/850737/ltcube_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.fits
.....................!
real 194.06
user 187.39
sys 5.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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J1349.5-1131 @ 207.387 -11.5188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/850737/ft1_filtered_4FGL_J1349.5-1131_daily_bin1766.fits scfile=/scratch/kocevski/850737/ft2_4FGL_J1349.5-1131_daily_bin1766.fits outfile=/scratch/kocevski/850737/cmap_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.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=207.387 yref=-11.5188 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/850737/ft1_filtered_4FGL_J1349.5-1131_daily_bin1766.fits scfile=/scratch/kocevski/850737/ft2_4FGL_J1349.5-1131_daily_bin1766.fits outfile=/scratch/kocevski/850737/cmap_HighResolution_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.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=207.387 yref=-11.5188 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.59
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/850737/ft1_filtered_4FGL_J1349.5-1131_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/850737/ft2_4FGL_J1349.5-1131_daily_bin1766.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/850737/Model_4FGL_J1349.5-1131_daily_bin1766.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/850737/ft1_filtered_4FGL_J1349.5-1131_daily_bin1766.fits.....................!
real 68.63
user 66.92
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/850737/ft1_filtered_4FGL_J1349.5-1131_daily_bin1766.fits', '/scratch/kocevski/850737/ft2_4FGL_J1349.5-1131_daily_bin1766.fits', expMap='/scratch/kocevski/850737/expmap_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.fits', expCube='/scratch/kocevski/850737/ltcube_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/850737/Model_4FGL_J1349.5-1131_daily_bin1766.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1349.5-1131'

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  2.801e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
260        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/850737/ft1_filtered_4FGL_J1349.5-1131_daily_bin1766.fits
Spacecraft file(s): /scratch/kocevski/850737/ft2_4FGL_J1349.5-1131_daily_bin1766.fits
Exposure map: /scratch/kocevski/850737/expmap_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.fits
Exposure cube: /scratch/kocevski/850737/ltcube_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/850737/Model_4FGL_J1349.5-1131_daily_bin1766.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) = 8977.39318304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
     2 'norm      '    .13763E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .33158E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    3.2200       1.0000          .0000       .10000E+07
     5 'Prefactor '    19.758       1.0000          .0000       .10000E+07
     6 'norm      '    2.5250       1.0000          .0000       .10000E+07
     7 'norm      '    .18875E-05   1.0000          .0000       .10000E+07
     8 'norm      '    8.0831       1.0000          .0000       .10000E+07
     9 'Prefactor '    12.115       1.0000          .0000       .10000E+07
    10 'norm      '    14.277       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.9351       1.0000          .0000       .10000E+07
    12 'norm      '    .61658E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .56252E-02   1.0000          .0000       .10000E+07
    14 'norm      '    .24110E-02   1.0000          .0000       .10000E+07
    15 'norm      '    35.119       1.0000          .0000       .10000E+07
    16 'norm      '    16.756       1.0000          .0000       .10000E+07
    17 'norm      '    1.9699       1.0000          .0000       .10000E+07
    18 'Prefactor '    28.505       1.0000          .0000       .10000E+07
    19 'Prefactor '    .42852E-02   1.0000          .0000       .10000E+07
    20 'Normalizat'    .73854       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1778       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5260E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8977.380     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     1647 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        7.5984       -.75542E-07** at limit **
   2  norm           .0000        2.3087       -.83836E-07** at limit **
   3  Prefactor      .0000        4.3527        .10126E-06** at limit **
   4  Prefactor     3.2069        6.7536        .84239E-07   -.38451E-02
   5  Prefactor     19.786        8.8482        .56438E-07    .67606E-01
   6  norm          2.5294        1.4472        .34034E-09    .69672E-03
   7  norm          .11102E-09    1.9278        .58664E-07** at limit **
   8  norm          8.0241        6.9290        .14612E-07   -.60611E-03
   9  Prefactor     12.109        3.4894       -.65840E-07    .27582E-02
  10  norm          14.450        3.3194       -.96296E-08   -.75720E-02
  11  Prefactor     3.9663        7.0108       -.24300E-06    .34850E-02
  12  norm          .55511E-10    2.1576       -.49093E-07** at limit **
  13  Prefactor     .18045E-01    446.64        .28059E-05** at limit **
  14  norm          .11102E-09    10.222       -.12077E-06** at limit **
  15  norm          35.114        5.1910       -.11227E-07   -.13187E-01
  16  norm          16.804        4.2653       -.41630E-08    .55535E-01
  17  norm          1.9463        7.7356        .44241E-06    .12465E-01
  18  Prefactor     28.733        19.977       -.12696E-06    .51630E-01
  19  Prefactor     .15155E-07    13.998       -.24475E-06** at limit **
  20  Normalizat    .73801        .25604        .83401E-06    .12719E-04
  21  Prefactor     1.1777        .13174        .18032E-06    .24915E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 3.20693
  Prefactor  = 19.7856
  norm       = 2.52937
  norm       = 1.11022e-10
  norm       = 8.02407
  Prefactor  = 12.1089
  norm       = 14.45
  Prefactor  = 3.96628
  norm       = 5.55112e-11
  Prefactor  = 0.018045
  norm       = 1.11022e-10
  norm       = 35.1143
  norm       = 16.8035
  norm       = 1.94627
  Prefactor  = 28.7326
  Prefactor  = 1.51545e-08
  Normalizat = 0.738011
  Prefactor  = 1.17766
 **********
 **   18 **HESSE 
 **********

 FCN=   8977.380     FROM HESSE     STATUS=OK           367 CALLS     2014 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        7.6574        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        2.3151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        4.3562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2069        6.7791        .56430E-03   -1.5672    
   5  Prefactor     19.786        16.764        .22505E-03   -1.5619    
   6  norm          2.5294        1.4545        .64260E-03   -1.5676    
   7  norm          .11102E-09    1.9363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0241        7.2944        .35241E-03   -1.5651    
   9  Prefactor     12.109        14.059        .28755E-03   -1.5638    
  10  norm          14.450        19.610        .26482E-03   -1.5632    
  11  Prefactor     3.9663        9.7374        .50829E-03   -1.5668    
  12  norm          .55511E-10    2.1784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .18045E-01    5.4957        .53269E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .11102E-09    10.330        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          35.114        5.2405        .16876E-03   -1.5589    
  16  norm          16.804        13.311        .24441E-03   -1.5626    
  17  norm          1.9463        7.9545        .73851E-03   -1.5680    
  18  Prefactor     28.733        25.302        .18733E-03   -1.5601    
  19  Prefactor     .15155E-07    14.312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .73801        .23775        .96285E-01   -1.0241    
  21  Prefactor     1.1777        .11964        .35179E-01   -.87022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.04592e-07
Minuit parameter uncertainties:
  1  9.88735e-06
  2  1.44792e-05
  3  3.55221e-06
  4  6.77909
  5  16.7642
  6  1.45447
  7  2.90868e-05
  8  7.29446
  9  14.0591
  10  19.6101
  11  9.73744
  12  1.82101e-05
  13  0.629826
  14  6.57106e-05
  15  5.24053
  16  13.3115
  17  7.86935
  18  25.3019
  19  0.000931996
  20  0.238082
  21  0.119664
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.804e-02  6.298e-01  0.000e+00  1.000e+06 ( 1.000e-12)
260        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.178e+00  1.197e-01  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  7.380e-01  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 207.387 -11.519
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/850737/likelihoodResults_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.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) = 8976.83198253
delta logL = 0.548267473056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8976.79213206
delta logL = 0.588117944866

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8976.792     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      266 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .17789E-01    .24486        .28208E-03** at limit **
   2  Index         6.0471        2.8044        .15672        .18235E-03
   3  Normalizat    .66150        .40476E-01    .10125        .45326E-04
   4  Prefactor     1.2035        .22275E-01    .34543E-01   -.26577E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0177891
  Index      = 6.04708
  Normalizat = 0.661505
  Prefactor  = 1.20353
 **********
 **   18 **HESSE 
 **********

 FCN=   8976.792     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      301 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .17789E-01    .88782        .12846E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.0471        7.9675        .79304E-02    .21098    
   3  Normalizat    .66150        .16464        .44877E-03   -1.0543    
   4  Prefactor     1.2035        .89409E-01    .18729E-03   -.86223    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.0923e-07
Minuit parameter uncertainties:
  1  0.251344
  2  7.67418
  3  0.164767
  4  0.0894203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/850737': 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) = 8976.79212854
delta logL = 0.588121463737

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  1.779e-02  2.513e-01  0.000e+00  1.000e+06 ( 1.000e-12)
260        Index:  6.047e+00  7.674e+00  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  7.359e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
523    Prefactor:  1.204e+00  8.942e-02  0.000e+00  1.000e+01 ( 1.000e+00)
524        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
525        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
522   Normalization:  6.615e-01  1.648e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 207.387 -11.519
Photon Index (Free Index): 6.05 +/- 7.67
Photon Flux (Free Index): 6.21e-08 +/- 6.02e-08
Energy Flux (Free Index): 7.72e-06 +/- 8.83e-06

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/850737/cmap_HighResolution_697075201_697334401_4FGL_J1349.5-1131_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-03', comment='SUCCESS', energy_flux2='7.72e-06', dlogl='5.88e-01', photon_flux2='6.21e-08', job_status='DONE', time_completed='2023-02-06 01:09:16.279359', photon_index_error2='7.67', photon_index2='6.05', ts='0.00', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='8.83e-06', EG='0.74', time_epoch_completed='1675674556.28', return_code='0', job_id='850737', GAL2='1.20', EG2='0.66', return_code2='102', photon_flux_error2='6.02e-08', ts2='1.27', photon_index='2.49' WHERE bin_id='1766' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 01:09:16 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 850737: <4FGL_J1349.5-1131_daily_bin1766> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1766> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb  6 00:55:21 2023
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 00:55:56 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 00:55:56 2023
Terminated at Mon Feb  6 01:09:17 2023
Results reported at Mon Feb  6 01:09:17 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1766 207.387 -11.5188 697075201 697334401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1349.5-1131 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   674.13 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             302.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            836 sec.

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

