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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin1764
RA = 179.164, Dec = 6.6728
tmin = 696556801, tmax = 696816001
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='444989', job_status='RUN', time_executed='2023-01-31 00:46:48.807718', time_epoch_executed='1675154808.81' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/444989

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/444989/ft1_4FGL_J1156.6+0640_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/444989/ft2_4FGL_J1156.6+0640_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/444989/ft1_4FGL_J1156.6+0640_daily_bin1764.fits outfile=/scratch/kocevski/444989/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin1764.fits ra=179.164 dec=6.6728 rad=12.0 tmin=696556801.0 tmax=696816001.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.78
user 3.51
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/444989/ft2_4FGL_J1156.6+0640_daily_bin1764.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/444989/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/444989/ft1_filtered_4FGL_J1156.6+0640_daily_bin1764.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.36
sys 0.15

Number of photons that the gtmktime cut: 567

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/444989/ft1_filtered_4FGL_J1156.6+0640_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/444989/ft2_4FGL_J1156.6+0640_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/444989/ltcube_696556801_696816001_4FGL_J1156.6+0640_daily_bin1764.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/444989/ft2_4FGL_J1156.6+0640_daily_bin1764.fits
.....................!
real 16.24
user 15.72
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/444989/ft1_filtered_4FGL_J1156.6+0640_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/444989/ft2_4FGL_J1156.6+0640_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/444989/ltcube_696556801_696816001_4FGL_J1156.6+0640_daily_bin1764.fits outfile=/scratch/kocevski/444989/expmap_696556801_696816001_4FGL_J1156.6+0640_daily_bin1764.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/444989/ltcube_696556801_696816001_4FGL_J1156.6+0640_daily_bin1764.fits
.....................!
real 194.26
user 187.71
sys 5.67

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/444989/ft1_filtered_4FGL_J1156.6+0640_daily_bin1764.fits scfile=/scratch/kocevski/444989/ft2_4FGL_J1156.6+0640_daily_bin1764.fits outfile=/scratch/kocevski/444989/cmap_696556801_696816001_4FGL_J1156.6+0640_daily_bin1764.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/444989/ft1_filtered_4FGL_J1156.6+0640_daily_bin1764.fits scfile=/scratch/kocevski/444989/ft2_4FGL_J1156.6+0640_daily_bin1764.fits outfile=/scratch/kocevski/444989/cmap_HighResolution_696556801_696816001_4FGL_J1156.6+0640_daily_bin1764.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.58
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27940E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .65786E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .35343E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    14.738       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.2841       1.0000          .0000       .10000E+07
     6 'Prefactor '    6.2711       1.0000          .0000       .10000E+07
     7 'Prefactor '    47.044       1.0000          .0000       .10000E+07
     8 'Prefactor '    .32910E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    17.878       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11548E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .12327E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .33589E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.2750       1.0000          .0000       .10000E+07
    14 'norm      '    3.2658       1.0000          .0000       .10000E+07
    15 'norm      '    8.8250       1.0000          .0000       .10000E+07
    16 'Prefactor '    .20619E-01   1.0000          .0000       .10000E+07
    17 'norm      '    50.996       1.0000          .0000       .10000E+07
    18 'norm      '    .40679       1.0000          .0000       .10000E+07
    19 'Prefactor '    13.687       1.0000          .0000       .10000E+07
    20 'norm      '    2.3380       1.0000          .0000       .10000E+07
    21 'Normalizat'    .63757       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1364       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=   6418.145     FROM MIGRAD    STATUS=CONVERGED    185 CALLS     1762 TOTAL
                     EDM=   .57E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        11.988        .16892E-06** at limit **
   2  Prefactor      .0000        1.0774       -.88888E-07** at limit **
   3  Prefactor      .0000        30.364       -.45940E-06** at limit **
   4  Prefactor     14.357        14.938       -.14027E-06    .26884E-03
   5  Prefactor     6.2659        6.8273        .14681E-07   -.99492E-05
   6  Prefactor     5.8124        18.291        .15787E-06   -.15184E-04
   7  Prefactor     53.834        124.24       -.27038E-06    .46993E-04
   8  Prefactor      .0000        7.5860        .15701E-06** at limit **
   9  Prefactor     17.878        14.538       -.41587E-07    .10190E-03
  10  Prefactor      .0000        2.2501       -.65695E-07** at limit **
  11  Prefactor      .0000        2.8618        .35734E-07** at limit **
  12  Prefactor      .0000        5.5840       -.66387E-07** at limit **
  13  Prefactor     2.2656        7.4720       -.29956E-06    .25031E-03
  14  norm          3.2682        2.4006        .49880E-07   -.20225E-03
  15  norm          8.7690        3.8564       -.69336E-07    .12502E-02
  16  Prefactor      .0000        11.903       -.62662E-07** at limit **
  17  norm          52.911        46.069       -.35120E-07    .15060E-03
  18  norm          .40386        .41872        .14716E-07    .31096E-03
  19  Prefactor     13.680        10.504        .14768E-06   -.34506E-03
  20  norm          2.3384        1.3630        .35545E-08    .25040E-03
  21  Normalizat    .63695        .20571        .45984E-05    .94381E-05
  22  Prefactor     1.1364        .18202       -.34464E-05    .29394E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 14.3572
  Prefactor  = 6.26594
  Prefactor  = 5.81237
  Prefactor  = 53.8343
  Prefactor  = 0
  Prefactor  = 17.8776
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 2.2656
  norm       = 3.2682
  norm       = 8.76902
  Prefactor  = 0
  norm       = 52.9113
  norm       = 0.403856
  Prefactor  = 13.6798
  norm       = 2.33836
  Normalizat = 0.636949
  Prefactor  = 1.13642
 **********
 **   18 **HESSE 
 **********

 FCN=   6418.145     FROM HESSE     STATUS=OK           390 CALLS     2152 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        11.969        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        1.0737        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        30.383        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.357        14.973        .26064E-03   -1.5632    
   5  Prefactor     6.2659        6.8304        .40019E-03   -1.5658    
   6  Prefactor     5.8124        18.432        .40061E-03   -1.5660    
   7  Prefactor     53.834        125.06        .14581E-03   -1.5561    
   8  Prefactor      .0000        7.5967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.878        14.540        .23660E-03   -1.5623    
  10  Prefactor      .0000        2.2462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.8377        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        5.5919        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2656        7.5559        .68054E-03   -1.5678    
  14  norm          3.2682        2.4186        .56012E-03   -1.5672    
  15  norm          8.7690        3.8681        .33717E-03   -1.5649    
  16  Prefactor      .0000        11.886        .16996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          52.911        46.007        .14004E-03   -1.5562    
  18  norm          .40386        .44008        .88704E-03   -1.5695    
  19  Prefactor     13.680        10.497        .27048E-03   -1.5634    
  20  norm          2.3384        1.3680        .67030E-03   -1.5677    
  21  Normalizat    .63695        .18027        .69231E-01   -1.0644    
  22  Prefactor     1.1364        .15833        .36344E-01   -.88311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29066e-08
Minuit parameter uncertainties:
  1  1.07184e-05
  2  2.29297e-06
  3  4.82558e-05
  4  14.9728
  5  6.83041
  6  18.4318
  7  125.069
  8  9.21736e-06
  9  14.5402
  10  1.67348e-06
  11  1.79923e-06
  12  3.84245e-06
  13  7.55595
  14  2.41858
  15  3.86806
  16  6.08622e-06
  17  46.0074
  18  0.440081
  19  10.4975
  20  1.36797
  21  0.180438
  22  0.158392
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  0.000e+00  4.826e-05  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.136e+00  1.584e-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:  6.369e-01  1.804e-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: 4.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/444989/likelihoodResults_696556801_696816001_4FGL_J1156.6+0640_daily_bin1764.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) = 6418.16063833
delta logL = -0.0157178680329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6418.14492431
delta logL = -3.85467228625e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61880E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .78585       1.0000          .0000       10.000    
     3 'Normalizat'    .63697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1366       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=   6418.145     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      196 TOTAL
                     EDM=   .53E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        28.596        .15422E-05** at limit **
   2  Index         2.4288        5.2549       -.12306E-03     .0000    
   3  Normalizat    .63695        .19620        .59772E-05   -.57544E-05
   4  Prefactor     1.1364        .17898       -.54453E-05   -.37147E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.42883
  Normalizat = 0.636949
  Prefactor  = 1.13642
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6418.145     FROM HESSE     STATUS=FAILED        11 CALLS      207 TOTAL
                     EDM=   .53E-13  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        28.600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .66260        2.0060       -.12306E-03   -.54011    
   3  Normalizat    .63695        .97559        .59772E-05   -1.0644    
   4  Prefactor     1.1364        1.1281       -.54453E-05   -.88311    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.25775e-14
Minuit parameter uncertainties:
  1  4.40863e-06
  2  1.8668
  3  1.00409
  4  1.15329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/444989': 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) = 6418.14492046
delta logL = 0.0

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  0.000e+00  4.409e-06  0.000e+00  1.000e+06 ( 1.000e-14)
303        Index:  2.429e+00  1.867e+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.136e+00  1.153e+00  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:  6.369e-01  1.004e+00  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/444989/cmap_HighResolution_696556801_696816001_4FGL_J1156.6+0640_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='4.95e-08', time_completed='2023-01-31 00:57:06.305405', job_id='444989', GAL2='1.14', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1675155426.31', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1764' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 00:57:06 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 444989: <4FGL_J1156.6+0640_daily_bin1764> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin1764> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Jan 31 00:45:14 2023
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 00:45:44 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 00:45:44 2023
Terminated at Tue Jan 31 00:57:07 2023
Results reported at Tue Jan 31 00:57:07 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin1764 179.164 6.6728 696556801 696816001 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 :                                   617.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            713 sec.

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

