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 97 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_bin1769
RA = 179.164, Dec = 6.6728
tmin = 697852801, tmax = 698112001
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='433379', job_status='RUN', time_executed='2023-02-15 00:42:07.087472', time_epoch_executed='1676450527.09' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433379

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433379/ft1_4FGL_J1156.6+0640_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433379/ft2_4FGL_J1156.6+0640_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433379/ft1_4FGL_J1156.6+0640_daily_bin1769.fits outfile=/scratch/kocevski/433379/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin1769.fits ra=179.164 dec=6.6728 rad=12.0 tmin=697852801.0 tmax=698112001.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.36
user 4.14
sys 0.19

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

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

Number of photons that the gtmktime cut: 484

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433379/ft1_filtered_4FGL_J1156.6+0640_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/433379/ft2_4FGL_J1156.6+0640_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/433379/ltcube_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.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/433379/ft2_4FGL_J1156.6+0640_daily_bin1769.fits
.....................!
real 12.28
user 11.94
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433379/ft1_filtered_4FGL_J1156.6+0640_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/433379/ft2_4FGL_J1156.6+0640_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/433379/ltcube_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.fits outfile=/scratch/kocevski/433379/expmap_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.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/433379/ltcube_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.fits
.....................!
real 190.69
user 186.34
sys 3.94

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/433379/ft1_filtered_4FGL_J1156.6+0640_daily_bin1769.fits scfile=/scratch/kocevski/433379/ft2_4FGL_J1156.6+0640_daily_bin1769.fits outfile=/scratch/kocevski/433379/cmap_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433379/ft1_filtered_4FGL_J1156.6+0640_daily_bin1769.fits scfile=/scratch/kocevski/433379/ft2_4FGL_J1156.6+0640_daily_bin1769.fits outfile=/scratch/kocevski/433379/cmap_HighResolution_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.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.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433379/ft1_filtered_4FGL_J1156.6+0640_daily_bin1769.fits', '/scratch/kocevski/433379/ft2_4FGL_J1156.6+0640_daily_bin1769.fits', expMap='/scratch/kocevski/433379/expmap_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.fits', expCube='/scratch/kocevski/433379/ltcube_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433379/Model_4FGL_J1156.6+0640_daily_bin1769.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/433379/ft1_filtered_4FGL_J1156.6+0640_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/433379/ft2_4FGL_J1156.6+0640_daily_bin1769.fits
Exposure map: /scratch/kocevski/433379/expmap_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.fits
Exposure cube: /scratch/kocevski/433379/ltcube_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433379/Model_4FGL_J1156.6+0640_daily_bin1769.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) = 5407.64523748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13072E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    4.4419       1.0000          .0000       .10000E+07
     3 'Prefactor '    .14717       1.0000          .0000       .10000E+07
     4 'Prefactor '    20.973       1.0000          .0000       .10000E+07
     5 'Prefactor '    5.8210       1.0000          .0000       .10000E+07
     6 'Prefactor '    .11366E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    49.233       1.0000          .0000       .10000E+07
     8 'Prefactor '    .14532E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    18.854       1.0000          .0000       .10000E+07
    10 'Prefactor '    .33856E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    2.0619       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.3569       1.0000          .0000       .10000E+07
    13 'Prefactor '    .54932E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .15349E-06   1.0000          .0000       .10000E+07
    15 'norm      '    7.4033       1.0000          .0000       .10000E+07
    16 'Prefactor '    .91640       1.0000          .0000       .10000E+07
    17 'norm      '    .78083E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .73374       1.0000          .0000       .10000E+07
    19 'Prefactor '    .31973E-05   1.0000          .0000       .10000E+07
    20 'norm      '    1.0811       1.0000          .0000       .10000E+07
    21 'Normalizat'    .81969       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0893       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=   5407.641     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     1739 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        3.6341        .51208E-07** at limit **
   2  Prefactor     4.4459        3.2996        .43613E-08   -.19469E-03
   3  Prefactor     .34694E-07    43.358       -.27369E-06** at limit **
   4  Prefactor     20.979        1.3498       -.14550E-07    .47478E-02
   5  Prefactor     5.8104        9.9764        .25701E-07   -.12735E-01
   6  Prefactor     .55511E-10    5.7773        .14297E-06** at limit **
   7  Prefactor     49.345        22.689        .33075E-06   -.11377    
   8  Prefactor     .55511E-10    17.976       -.18652E-06** at limit **
   9  Prefactor     18.858        1.0909        .19440E-08   -.89226E-02
  10  Prefactor      .0000        1.1929        .20276E-07** at limit **
  11  Prefactor     2.0649        2.3386        .48858E-07    .40157E-03
  12  Prefactor     4.3549        1.0466        .52948E-09    .24161E-02
  13  Prefactor      .0000        2.4903       -.27537E-07** at limit **
  14  norm           .0000        .52222        .69398E-07** at limit **
  15  norm          7.4036        3.3719        .94692E-08   -.13261E-03
  16  Prefactor     1.0307        84.773        .19478E-05    .19870E-01
  17  norm          .11102E-09    12.020        .39767E-07** at limit **
  18  norm          .73384        .45134       -.17386E-07   -.18435E-02
  19  Prefactor     .55511E-10    6.7534        .17750E-07** at limit **
  20  norm          1.0780        1.4427       -.31580E-07   -.61537E-03
  21  Normalizat    .81976        .21815       -.14561E-06   -.11900E-04
  22  Prefactor     1.0891        .19352       -.10132E-05   -.16227E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 4.44591
  Prefactor  = 3.46945e-08
  Prefactor  = 20.9792
  Prefactor  = 5.81037
  Prefactor  = 5.55112e-11
  Prefactor  = 49.3452
  Prefactor  = 5.55112e-11
  Prefactor  = 18.8584
  Prefactor  = 0
  Prefactor  = 2.06492
  Prefactor  = 4.3549
  Prefactor  = 0
  norm       = 0
  norm       = 7.40364
  Prefactor  = 1.03073
  norm       = 1.11022e-10
  norm       = 0.733836
  Prefactor  = 5.55112e-11
  norm       = 1.07799
  Normalizat = 0.819757
  Prefactor  = 1.08908
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.641     FROM HESSE     STATUS=OK           386 CALLS     2125 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        3.6323        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.4459        3.3079        .47755E-03   -1.5666    
   3  Prefactor     .34694E-07    43.313        .12804E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.979        12.048        .21842E-03   -1.5616    
   5  Prefactor     5.8104        10.104        .41603E-03   -1.5660    
   6  Prefactor     .55511E-10    5.7640        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.345        68.651        .14253E-03   -1.5567    
   8  Prefactor     .55511E-10    17.976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.858        17.660        .23039E-03   -1.5621    
  10  Prefactor      .0000        1.1976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.0649        2.3517        .71934E-03   -1.5679    
  12  Prefactor     4.3549        21.425        .48231E-03   -1.5666    
  13  Prefactor      .0000        2.4891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        .52266        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.4036        3.4127        .36837E-03   -1.5654    
  16  Prefactor     1.0307        93.647        .44633E-03   -1.5688    
  17  norm          .11102E-09    12.014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .73384        .45514        .58010E-03   -1.5691    
  19  Prefactor     .55511E-10    6.7368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.0780        1.4815        .11579E-02   -1.5687    
  21  Normalizat    .81976        .19297        .63540E-01   -.99340    
  22  Prefactor     1.0891        .16923        .38008E-01   -.89816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39142e-06
Minuit parameter uncertainties:
  1  2.76266e-06
  2  3.30795
  3  0.00245161
  4  12.0478
  5  10.1045
  6  3.83394e-05
  7  68.6521
  8  7.70775e-05
  9  17.6604
  10  6.92979e-07
  11  2.35167
  12  19.3188
  13  1.67156e-06
  14  1.18309e-06
  15  3.41272
  16  19.6497
  17  7.28201e-05
  18  0.45514
  19  4.39093e-05
  20  1.48151
  21  0.193132
  22  0.169314
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  3.469e-08  2.452e-03  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.089e+00  1.693e-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:  8.198e-01  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/433379/likelihoodResults_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.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) = 5407.65233102
delta logL = -0.0110290983839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5407.64130376
delta logL = -1.83521206054e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .72093E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.1103       1.0000          .0000       10.000    
     3 'Normalizat'    .81939       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0893       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.

 FCN=   5407.641     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      261 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35527E-08    134.38        .42118E-03** at limit **
   2  Index         .86049        5.1894        .50000       -.52296E-09
   3  Normalizat    .81976        .11562E-01    .63540E-01    .50150E-04
   4  Prefactor     1.0891        .10422E-01    .38008E-01    .57559E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.55271e-09
  Index      = 0.860486
  Normalizat = 0.819757
  Prefactor  = 1.08908
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.641     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35527E-08    639.30        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .86049        5.0595        .50000       -.97536    
   3  Normalizat    .81976        .25784E-01    .28106E-03   -.99340    
   4  Prefactor     1.0891        .23272E-01    .22172E-03   -.89816    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11601e-10
Minuit parameter uncertainties:
  1  0.00301801
  2  256291
  3  0.0257844
  4  0.0232717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433379': 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) = 5407.64130192
delta logL = 3.21961124428e-10

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  3.553e-09  3.018e-03  0.000e+00  1.000e+06 ( 1.000e-14)
303        Index:  8.605e-01  2.563e+05  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.089e+00  2.327e-02  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:  8.198e-01  2.578e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/433379/cmap_HighResolution_697852801_698112001_4FGL_J1156.6+0640_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-03', job_status='DONE', photon_flux_upper_limit='5.82e-08', time_completed='2023-02-15 00:51:28.575808', job_id='433379', GAL2='1.09', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1676451088.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.22e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1769' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 00:51:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 433379: <4FGL_J1156.6+0640_daily_bin1769> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin1769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Feb 15 00:40:17 2023
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 00:40:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 00:40:18 2023
Terminated at Wed Feb 15 00:51:29 2023
Results reported at Wed Feb 15 00:51:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin1769 179.164 6.6728 697852801 698112001 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 :                                   562.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            672 sec.

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

