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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin1754
RA = 179.164, Dec = 6.6728
tmin = 693964801, tmax = 694224001
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='641943', job_status='RUN', time_executed='2023-01-01 01:07:23.344800', time_epoch_executed='1672564043.34' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641943

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641943/ft1_4FGL_J1156.6+0640_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641943/ft2_4FGL_J1156.6+0640_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641943/ft1_4FGL_J1156.6+0640_daily_bin1754.fits outfile=/scratch/kocevski/641943/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin1754.fits ra=179.164 dec=6.6728 rad=12.0 tmin=693964801.0 tmax=694224001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.01
user 3.68
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/641943/ft2_4FGL_J1156.6+0640_daily_bin1754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641943/ft2_4FGL_J1156.6+0640_daily_bin1754.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/641943/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin1754.fits evtable="EVENTS" outfile="/scratch/kocevski/641943/ft1_filtered_4FGL_J1156.6+0640_daily_bin1754.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.49
user 0.33
sys 0.14

Number of photons that the gtmktime cut: 485

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641943/ft1_filtered_4FGL_J1156.6+0640_daily_bin1754.fits" evtable="EVENTS" scfile=/scratch/kocevski/641943/ft2_4FGL_J1156.6+0640_daily_bin1754.fits sctable="SC_DATA" outfile=/scratch/kocevski/641943/ltcube_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.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/641943/ft2_4FGL_J1156.6+0640_daily_bin1754.fits
.....................!
real 16.45
user 15.88
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641943/ft1_filtered_4FGL_J1156.6+0640_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/641943/ft2_4FGL_J1156.6+0640_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/641943/ltcube_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.fits outfile=/scratch/kocevski/641943/expmap_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.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/641943/ltcube_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.fits
.....................!
real 193.60
user 186.38
sys 5.82

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

Setting source of interest to:
4FGL J1156.6+0640 @ 179.164 6.6728

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/641943/ft1_filtered_4FGL_J1156.6+0640_daily_bin1754.fits scfile=/scratch/kocevski/641943/ft2_4FGL_J1156.6+0640_daily_bin1754.fits outfile=/scratch/kocevski/641943/cmap_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.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=179.164 yref=6.6728 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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641943/ft1_filtered_4FGL_J1156.6+0640_daily_bin1754.fits scfile=/scratch/kocevski/641943/ft2_4FGL_J1156.6+0640_daily_bin1754.fits outfile=/scratch/kocevski/641943/cmap_HighResolution_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.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=179.164 yref=6.6728 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.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641943/ft1_filtered_4FGL_J1156.6+0640_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/641943/ft2_4FGL_J1156.6+0640_daily_bin1754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641943/Model_4FGL_J1156.6+0640_daily_bin1754.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/641943/ft1_filtered_4FGL_J1156.6+0640_daily_bin1754.fits.....................!
real 51.40
user 49.84
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641943/ft1_filtered_4FGL_J1156.6+0640_daily_bin1754.fits', '/scratch/kocevski/641943/ft2_4FGL_J1156.6+0640_daily_bin1754.fits', expMap='/scratch/kocevski/641943/expmap_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.fits', expCube='/scratch/kocevski/641943/ltcube_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641943/Model_4FGL_J1156.6+0640_daily_bin1754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1156.6+0640'

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.059e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/641943/ft1_filtered_4FGL_J1156.6+0640_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/641943/ft2_4FGL_J1156.6+0640_daily_bin1754.fits
Exposure map: /scratch/kocevski/641943/expmap_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.fits
Exposure cube: /scratch/kocevski/641943/ltcube_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641943/Model_4FGL_J1156.6+0640_daily_bin1754.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) = 5244.93567683

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23314E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.8542       1.0000          .0000       .10000E+07
     3 'Prefactor '    16.554       1.0000          .0000       .10000E+07
     4 'Prefactor '    3.1212       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.3290       1.0000          .0000       .10000E+07
     6 'Prefactor '    5.9151       1.0000          .0000       .10000E+07
     7 'Prefactor '    .64735E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    .67807E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .54052E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .92578E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.8046       1.0000          .0000       .10000E+07
    12 'Prefactor '    44.073       1.0000          .0000       .10000E+07
    13 'Prefactor '    .50225E-03   1.0000          .0000       .10000E+07
    14 'norm      '    1.2148       1.0000          .0000       .10000E+07
    15 'norm      '    1.7088       1.0000          .0000       .10000E+07
    16 'Prefactor '    5.9890       1.0000          .0000       .10000E+07
    17 'norm      '    .19601E-01   1.0000          .0000       .10000E+07
    18 'norm      '    2.6017       1.0000          .0000       .10000E+07
    19 'Prefactor '    7.3500       1.0000          .0000       .10000E+07
    20 'norm      '    .13895E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.0223       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0571       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5244.931     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     1728 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88818E-09    5.0412       -.24404E-06** at limit **
   2  Prefactor     3.8547        2.4445        .66171E-07    .20024E-02
   3  Prefactor     16.649        13.537        .14147E-06   -.13613    
   4  Prefactor     3.1262        7.6816       -.35667E-06   -.20717E-01
   5  Prefactor     2.3346        4.8927       -.95518E-07   -.34772E-03
   6  Prefactor     5.9651        2.2489        .27363E-07   -.68177E-01
   7  Prefactor     .22204E-09    .81415        .12347E-07** at limit **
   8  Prefactor     .30720E-06    1.3857        .12601E-06** at limit **
   9  Prefactor     .27756E-09    7.0925       -.36027E-06** at limit **
  10  Prefactor      .0000        1.3691        .37115E-07** at limit **
  11  Prefactor     2.8047        2.8745       -.16034E-06   -.10324E-02
  12  Prefactor     44.316        32.933        .15790E-06    .64942E-01
  13  Prefactor     .49960E-09    3.7798        .30191E-07** at limit **
  14  norm          1.2148        1.2607        .27550E-06    .45054E-02
  15  norm          1.7003        4.2016        .43752E-06   -.77264E-03
  16  Prefactor     6.0591        8.3463        .95457E-07    .22896E-01
  17  norm          .11102E-09    21.844        .84958E-07** at limit **
  18  norm          2.6022        .73346       -.35247E-07   -.19887E-02
  19  Prefactor     7.3517        1.1709        .15117E-07   -.19383E-02
  20  norm          .55511E-10    4.5612        .35012E-07** at limit **
  21  Normalizat    1.0222        .23871       -.11034E-04    .24368E-06
  22  Prefactor     1.0570        .20710        .10047E-04    .37528E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.88178e-10
  Prefactor  = 3.85466
  Prefactor  = 16.6486
  Prefactor  = 3.12621
  Prefactor  = 2.33457
  Prefactor  = 5.96509
  Prefactor  = 2.22045e-10
  Prefactor  = 3.07199e-07
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 2.80475
  Prefactor  = 44.3158
  Prefactor  = 4.996e-10
  norm       = 1.21482
  norm       = 1.70033
  Prefactor  = 6.05913
  norm       = 1.11022e-10
  norm       = 2.60216
  Prefactor  = 7.35166
  norm       = 5.55112e-11
  Normalizat = 1.02219
  Prefactor  = 1.05699
 **********
 **   18 **HESSE 
 **********

 FCN=   5244.931     FROM HESSE     STATUS=OK           396 CALLS     2124 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88818E-09    5.0375        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8547        2.4523        .51379E-03   -1.5669    
   3  Prefactor     16.649        110.18        .24590E-03   -1.5626    
   4  Prefactor     3.1262        7.7882        .57364E-03   -1.5673    
   5  Prefactor     2.3346        4.9179        .67173E-03   -1.5677    
   6  Prefactor     5.9651        15.525        .41266E-03   -1.5659    
   7  Prefactor     .22204E-09    48.268        .14996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .30720E-06    49.118        .14891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    7.0984        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.3687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.8047        2.8845        .60718E-03   -1.5674    
  12  Prefactor     44.316        35.659        .15064E-03   -1.5575    
  13  Prefactor     .49960E-09    3.8151        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.2148        1.2456        .10248E-02   -1.5686    
  15  norm          1.7003        4.3374        .80393E-03   -1.5682    
  16  Prefactor     6.0591        49.905        .41007E-03   -1.5659    
  17  norm          .11102E-09    21.819        .17063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6022        .74423        .63223E-03   -1.5676    
  19  Prefactor     7.3517        8.7424        .36972E-03   -1.5654    
  20  norm          .55511E-10    1.2343        .27317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0222        .21074        .61481E-01   -.92291    
  22  Prefactor     1.0570        .17959        .39512E-01   -.90853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55568e-06
Minuit parameter uncertainties:
  1  0.000133486
  2  2.45227
  3  85.6625
  4  7.78824
  5  4.91795
  6  15.5248
  7  0.000207084
  8  0.0077687
  9  9.10198e-05
  10  1.42861e-06
  11  2.88452
  12  35.659
  13  8.6163e-05
  14  1.24564
  15  4.33739
  16  34.7784
  17  0.000106545
  18  0.74423
  19  8.74244
  20  1.84421e-05
  21  0.21091
  22  0.179693
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.665e+01  8.566e+01  0.000e+00  1.000e+06 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.057e+00  1.797e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.022e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 9.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641943/likelihoodResults_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.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) = 5244.87753954
delta logL = 0.053032057549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5244.87474957
delta logL = 0.0558220350822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.302       1.0000          .0000       .10000E+07
     2 'Index     '    2.9458       1.0000          .0000       10.000    
     3 'Normalizat'    1.0090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0628       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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.

 FCN=   5244.875     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      284 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.281        89.414        .10975E-04   -.62151E-05
   2  Index         2.9469        2.2395        .90878E-02    .89983E-05
   3  Normalizat    1.0087        .23685        .27338E-03    .11952E-03
   4  Prefactor     1.0630        .20733        .23736E-03    .58002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2805
  Index      = 2.94692
  Normalizat = 1.0087
  Prefactor  = 1.06303
 **********
 **   18 **HESSE 
 **********

 FCN=   5244.875     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.281        55.267        .43901E-06   -1.5635    
   2  Index         2.9469        1.7883        .36351E-03   -.42313    
   3  Normalizat    1.0087        .23705        .10935E-04   -.92740    
   4  Prefactor     1.0630        .20738        .94945E-05   -.90657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08634e-11
Minuit parameter uncertainties:
  1  54.1849
  2  1.83762
  3  0.237297
  4  0.207533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641943': 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): 0
logL (Free Index) = 5244.87474854
delta logL = 0.0558230621928

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.328e+01  5.418e+01  0.000e+00  1.000e+06 ( 1.000e-14)
303        Index:  2.947e+00  1.838e+00  0.000e+00  1.000e+01 (-1.000e+00)
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.063e+00  2.075e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.009e+00  2.373e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 179.164 6.673

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/641943/cmap_HighResolution_693964801_694224001_4FGL_J1156.6+0640_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.27e-08', time_completed='2023-01-01 01:17:02.376386', job_id='641943', GAL2='1.06', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1672564622.38', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.58e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1754' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:17:02 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 641943: <4FGL_J1156.6+0640_daily_bin1754> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin1754> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jan  1 01:05:14 2023
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:05:42 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:05:42 2023
Terminated at Sun Jan  1 01:17:03 2023
Results reported at Sun Jan  1 01:17:03 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin1754 179.164 6.6728 693964801 694224001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1156.6+0640 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   578.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            709 sec.

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

