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


Performing analysis on: 4FGL_J1349.5-1131_daily_bin1748
RA = 207.387, Dec = -11.5188
tmin = 692409601, tmax = 692668801
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='887797', job_status='RUN', time_executed='2022-12-14 00:46:13.006932', time_epoch_executed='1671007573.01' WHERE source_name='4FGL J1349.5-1131' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887797/ft1_4FGL_J1349.5-1131_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887797/ft2_4FGL_J1349.5-1131_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887797/ft1_4FGL_J1349.5-1131_daily_bin1748.fits outfile=/scratch/kocevski/887797/ft1_filteredMKT_4FGL_J1349.5-1131_daily_bin1748.fits ra=207.387 dec=-11.5188 rad=12.0 tmin=692409601.0 tmax=692668801.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.60
user 3.33
sys 0.21

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

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

Number of photons that the gtmktime cut: 975

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887797/ft1_filtered_4FGL_J1349.5-1131_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/887797/ft2_4FGL_J1349.5-1131_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/887797/ltcube_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.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/887797/ft2_4FGL_J1349.5-1131_daily_bin1748.fits
.....................!
real 12.17
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887797/ft1_filtered_4FGL_J1349.5-1131_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/887797/ft2_4FGL_J1349.5-1131_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/887797/ltcube_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.fits outfile=/scratch/kocevski/887797/expmap_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.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/887797/ltcube_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.fits
.....................!
real 190.99
user 185.64
sys 4.97

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/887797/ft1_filtered_4FGL_J1349.5-1131_daily_bin1748.fits scfile=/scratch/kocevski/887797/ft2_4FGL_J1349.5-1131_daily_bin1748.fits outfile=/scratch/kocevski/887797/cmap_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887797/ft1_filtered_4FGL_J1349.5-1131_daily_bin1748.fits scfile=/scratch/kocevski/887797/ft2_4FGL_J1349.5-1131_daily_bin1748.fits outfile=/scratch/kocevski/887797/cmap_HighResolution_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/887797/ft1_filtered_4FGL_J1349.5-1131_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/887797/ft2_4FGL_J1349.5-1131_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/887797/Model_4FGL_J1349.5-1131_daily_bin1748.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/887797/ft1_filtered_4FGL_J1349.5-1131_daily_bin1748.fits.....................!
real 77.65
user 76.17
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/887797/ft1_filtered_4FGL_J1349.5-1131_daily_bin1748.fits', '/scratch/kocevski/887797/ft2_4FGL_J1349.5-1131_daily_bin1748.fits', expMap='/scratch/kocevski/887797/expmap_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.fits', expCube='/scratch/kocevski/887797/ltcube_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/887797/Model_4FGL_J1349.5-1131_daily_bin1748.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/887797/ft1_filtered_4FGL_J1349.5-1131_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/887797/ft2_4FGL_J1349.5-1131_daily_bin1748.fits
Exposure map: /scratch/kocevski/887797/expmap_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.fits
Exposure cube: /scratch/kocevski/887797/ltcube_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/887797/Model_4FGL_J1349.5-1131_daily_bin1748.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) = 10410.2953755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68617E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .21543E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    11.061       1.0000          .0000       .10000E+07
     4 'Prefactor '    .10161       1.0000          .0000       .10000E+07
     5 'Prefactor '    .48556E-04   1.0000          .0000       .10000E+07
     6 'norm      '    .24214E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .24647E-07   1.0000          .0000       .10000E+07
     8 'norm      '    12.509       1.0000          .0000       .10000E+07
     9 'Prefactor '    .73545E-03   1.0000          .0000       .10000E+07
    10 'norm      '    5.3469       1.0000          .0000       .10000E+07
    11 'Prefactor '    .74045E-04   1.0000          .0000       .10000E+07
    12 'norm      '    .17022E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .74771E-05   1.0000          .0000       .10000E+07
    14 'norm      '    3.2363       1.0000          .0000       .10000E+07
    15 'norm      '    55.281       1.0000          .0000       .10000E+07
    16 'norm      '    9.2214       1.0000          .0000       .10000E+07
    17 'norm      '    7.2107       1.0000          .0000       .10000E+07
    18 'Prefactor '    .10714E-01   1.0000          .0000       .10000E+07
    19 'Prefactor '    .82662E-01   1.0000          .0000       .10000E+07
    20 'Normalizat'    .83675       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.2306       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=   10410.24     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     1299 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .63283E-08    2.7982       -.91966E-06** at limit **
   2  norm          .14616E-06    14.734       -.34433E-06** at limit **
   3  Prefactor     11.066        1.3155       -.45485E-07    .42723E-02
   4  Prefactor     .11276        .58335       -.32149E-06** at limit **
   5  Prefactor     .17930E-07    5.2795       -.92090E-06** at limit **
   6  norm          .55511E-10    1.2088       -.11651E-07** at limit **
   7  norm           .0000        1.0910        .35901E-07** at limit **
   8  norm          12.475        6.4289        .11247E-05    .23589E-01
   9  Prefactor     .19929E-07    4.8331        .11252E-05** at limit **
  10  norm          5.5813        4.3741        .12178E-05   -.77404E-01
  11  Prefactor     .17208E-08    2.6681        .92416E-06** at limit **
  12  norm          .34750E-07    5.8407       -.33504E-06** at limit **
  13  Prefactor     .55511E-10    2.1142       -.13136E-06** at limit **
  14  norm          3.2400        4.5540        .96008E-07    .59010E-02
  15  norm          55.304        5.3480        .12978E-06    .21489E-01
  16  norm          9.2200        1.0738       -.71977E-07    .17000E-02
  17  norm          7.2220        3.2587       -.62279E-06   -.13886E-01
  18  Prefactor     .11158E-07    10.127        .35776E-06** at limit **
  19  Prefactor      .0000        1.4560       -.88434E-06** at limit **
  20  Normalizat    .83653        .22651       -.23234E-05   -.37454E-03
  21  Prefactor     1.2306        .12450       -.37618E-05   -.11778E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 6.32827e-09
  norm       = 1.46161e-07
  Prefactor  = 11.0658
  Prefactor  = 0.112758
  Prefactor  = 1.79301e-08
  norm       = 5.55112e-11
  norm       = 0
  norm       = 12.4746
  Prefactor  = 1.99285e-08
  norm       = 5.5813
  Prefactor  = 1.72085e-09
  norm       = 3.475e-08
  Prefactor  = 5.55112e-11
  norm       = 3.23996
  norm       = 55.3037
  norm       = 9.21997
  norm       = 7.222
  Prefactor  = 1.11577e-08
  Prefactor  = 0
  Normalizat = 0.836533
  Prefactor  = 1.23059
 **********
 **   18 **HESSE 
 **********

 FCN=   10410.24     FROM HESSE     STATUS=OK           371 CALLS     1670 TOTAL
                     EDM=   .86E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .63283E-08    2.8750        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .14616E-06    19.487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.066        8.4824        .30099E-03   -1.5641    
   4  Prefactor     .11276        2.9816        .10438E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .17930E-07    5.3208        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .55511E-10    1.1890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        1.0937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.475        7.0532        .28297E-03   -1.5637    
   9  Prefactor     .19929E-07    4.8650        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.5813        35.562        .43439E-03   -1.5661    
  11  Prefactor     .17208E-08    2.7135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .34750E-07    2.7393        .55806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    2.1163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.2400        4.5776        .56280E-03   -1.5672    
  15  norm          55.304        5.7215        .13451E-03   -1.5559    
  16  norm          9.2200        8.5886        .32980E-03   -1.5647    
  17  norm          7.2220        6.8644        .37331E-03   -1.5654    
  18  Prefactor     .11158E-07    10.177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor      .0000        33.113        .14421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .83653        .21127        .95008E-01   -.98728    
  21  Prefactor     1.2306        .11351        .33945E-01   -.85395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.6436e-07
Minuit parameter uncertainties:
  1  0.000270341
  2  0.00337511
  3  8.48242
  4  1.15965
  5  0.000618193
  6  1.64107e-05
  7  5.02951e-06
  8  7.05324
  9  0.000622377
  10  28.177
  11  0.000136854
  12  0.000616821
  13  1.94701e-05
  14  4.57765
  15  5.72151
  16  8.58858
  17  6.86438
  18  0.00067396
  19  5.56092e-05
  20  0.211481
  21  0.113535
Done.

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

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  5.551e-11  1.947e-05  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.231e+00  1.135e-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:  8.365e-01  2.115e-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: 7.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887797/likelihoodResults_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.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) = 10410.2389013
delta logL = -0.00123403400357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10410.2376675
delta logL = -2.43275280809e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87153E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.1887       1.0000          .0000       10.000    
     3 'Normalizat'    .83648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2306       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10410.24     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      239 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5974        .42118E-03** at limit **
   2  Index         2.8856        1.5496        .16212E-04     .0000    
   3  Normalizat    .83653        1.1743        .10213E-04   -.43051E-04
   4  Prefactor     1.2306        1.0938       -.46610E-05   -.54865E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.88565
  Normalizat = 0.836531
  Prefactor  = 1.23059
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   10410.24     FROM HESSE     STATUS=FAILED         9 CALLS      248 TOTAL
                     EDM=   .86E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .94280        2.0703        .16212E-04   -.43661    
   3  Normalizat    .83653        1.1743        .10213E-04   -.98728    
   4  Prefactor     1.2306        1.0938       -.46610E-05   -.85395    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.59672e-12
Minuit parameter uncertainties:
  1  5.96943e-06
  2  1.58149
  3  1.21324
  4  1.11511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887797': 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) = 10410.2376673
delta logL = 3.03771230392e-10

Extracting fit parameters...

4FGL J1349.5-1131
   Spectrum: PowerLaw
259    Prefactor:  0.000e+00  5.969e-06  0.000e+00  1.000e+06 ( 1.000e-12)
260        Index:  2.886e+00  1.581e+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.231e+00  1.115e+00  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:  8.365e-01  1.213e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.387 -11.519

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/887797/cmap_HighResolution_692409601_692668801_4FGL_J1349.5-1131_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.92e-03', job_status='DONE', photon_flux_upper_limit='7.61e-08', time_completed='2022-12-14 00:57:39.436476', job_id='887797', GAL2='1.23', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1671008259.44', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='3.04e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='1748' AND source_name='4FGL J1349.5-1131' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:57:39 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0173>
Subject: Job 887797: <4FGL_J1349.5-1131_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1349.5-1131_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 00:45:16 2022
Job was executed on host(s) <bullet0173>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:45:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:45:17 2022
Terminated at Wed Dec 14 00:57:39 2022
Results reported at Wed Dec 14 00:57:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1349.5-1131_daily_bin1748 207.387 -11.5188 692409601 692668801 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 :                                   684.06 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             322.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            743 sec.

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

