/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 8 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin529
RA = 179.164, Dec = 6.6728
tmin = 376444801, tmax = 376704001
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='188203', job_status='RUN', time_executed='2021-09-04 17:07:02.411038', time_epoch_executed='1630800422.41' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='529'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188203

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188203/ft1_4FGL_J1156.6+0640_daily_bin529.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188203/ft2_4FGL_J1156.6+0640_daily_bin529.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188203/ft1_4FGL_J1156.6+0640_daily_bin529.fits outfile=/scratch/kocevski/188203/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin529.fits ra=179.164 dec=6.6728 rad=12.0 tmin=376444801.0 tmax=376704001.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.49
user 4.24
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188203/ft1_filtered_4FGL_J1156.6+0640_daily_bin529.fits" evtable="EVENTS" scfile=/scratch/kocevski/188203/ft2_4FGL_J1156.6+0640_daily_bin529.fits sctable="SC_DATA" outfile=/scratch/kocevski/188203/ltcube_376444801_376704001_4FGL_J1156.6+0640_daily_bin529.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/188203/ft2_4FGL_J1156.6+0640_daily_bin529.fits
.....................!
real 13.42
user 13.06
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188203/ft1_filtered_4FGL_J1156.6+0640_daily_bin529.fits evtable="EVENTS" scfile=/scratch/kocevski/188203/ft2_4FGL_J1156.6+0640_daily_bin529.fits sctable="SC_DATA" expcube=/scratch/kocevski/188203/ltcube_376444801_376704001_4FGL_J1156.6+0640_daily_bin529.fits outfile=/scratch/kocevski/188203/expmap_376444801_376704001_4FGL_J1156.6+0640_daily_bin529.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/188203/ltcube_376444801_376704001_4FGL_J1156.6+0640_daily_bin529.fits
.....................!
real 189.38
user 185.08
sys 3.89

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/188203/ft1_filtered_4FGL_J1156.6+0640_daily_bin529.fits scfile=/scratch/kocevski/188203/ft2_4FGL_J1156.6+0640_daily_bin529.fits outfile=/scratch/kocevski/188203/cmap_376444801_376704001_4FGL_J1156.6+0640_daily_bin529.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.12

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

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/188203/ft1_filtered_4FGL_J1156.6+0640_daily_bin529.fits', '/scratch/kocevski/188203/ft2_4FGL_J1156.6+0640_daily_bin529.fits', expMap='/scratch/kocevski/188203/expmap_376444801_376704001_4FGL_J1156.6+0640_daily_bin529.fits', expCube='/scratch/kocevski/188203/ltcube_376444801_376704001_4FGL_J1156.6+0640_daily_bin529.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/188203/Model_4FGL_J1156.6+0640_daily_bin529.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  1.000e-04  1.000e+04 ( 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/188203/ft1_filtered_4FGL_J1156.6+0640_daily_bin529.fits
Spacecraft file(s): /scratch/kocevski/188203/ft2_4FGL_J1156.6+0640_daily_bin529.fits
Exposure map: /scratch/kocevski/188203/expmap_376444801_376704001_4FGL_J1156.6+0640_daily_bin529.fits
Exposure cube: /scratch/kocevski/188203/ltcube_376444801_376704001_4FGL_J1156.6+0640_daily_bin529.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/188203/Model_4FGL_J1156.6+0640_daily_bin529.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) = 8848.36704349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11127E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .62686E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.075       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17211E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43462E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.171       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3264       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.089       1.0000         .10000E-03   10000.    
    16 'norm      '    .43315       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2086       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17563E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7991       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.735       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    25.959       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3512       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93778       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.

 FCN=   8848.320     FROM MIGRAD    STATUS=CONVERGED    665 CALLS     2737 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.343        .47198E-06** at limit **
   2  Prefactor     .10000E-03    130.52        .17034E-05** at limit **
   3  Prefactor     3.7395        2.0211        .53021E-07   -.61619E-04
   4  Prefactor     12.071        12.879        .39060E-07   -.16703E-04
   5  Prefactor     .10000E-03    201.87       -.34635E-05** at limit **
   6  Prefactor     .10000E-03    6.0860        .22888E-06** at limit **
   7  Prefactor     .10000E-03    4.7655        .12200E-06** at limit **
   8  Prefactor     .10000E-03    6.6107        .29097E-06** at limit **
   9  Prefactor     16.070        38.915        .45852E-05    .88333E-04
  10  Prefactor     .10000E-03    20.226       -.35716E-06** at limit **
  11  Prefactor     .10000E-03    8.4239        .49428E-08** at limit **
  12  Prefactor     .10000E-03    1.5072        .66202E-08** at limit **
  13  Prefactor     3.3263        2.4629        .29522E-07   -.25341E-04
  14  Prefactor     .10000E-03    32.817       -.20986E-06** at limit **
  15  Prefactor     18.073        12.127       -.15398E-05   -.27858E-03
  16  norm          .43543        2.2248        .26486E-05   -.32796E-03
  17  norm          1.2049        2.8068        .77112E-06   -.19991E-03
  18  Prefactor     .10000E-03    46.873       -.16884E-06** at limit **
  19  norm          .10000E-03    18.796       -.28212E-06** at limit **
  20  Prefactor     .10001E-03    950.02       -.14325E-04** at limit **
  21  norm          1.7991        .55147       -.22132E-07   -.63913E-03
  22  Prefactor     16.734        9.9370        .48386E-07   -.29898E-05
  23  Prefactor     .10000E-03    11.194        .50207E-08** at limit **
  24  norm          25.958        3.2208       -.19837E-07   -.40698E-04
  25  Normalizat    1.3514        .18377       -.48889E-06   -.10547E-03
  26  Prefactor     .93760        .15721       -.16824E-06   -.14328E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.73949
  Prefactor  = 12.0714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0695
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.32631
  Prefactor  = 0.0001
  Prefactor  = 18.0729
  norm       = 0.435429
  norm       = 1.20485
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 1.79908
  Prefactor  = 16.734
  Prefactor  = 0.0001
  norm       = 25.9577
  Normalizat = 1.35136
  Prefactor  = 0.937604
 **********
 **   18 **HESSE 
 **********

 FCN=   8848.320     FROM HESSE     STATUS=OK           454 CALLS     3191 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.871        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    133.46        .21041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7395        2.0190        .94602E-04   -1.5321    
   4  Prefactor     12.071        12.862        .11528E-03   -1.5013    
   5  Prefactor     .10000E-03    205.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.929        .39334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.070        39.903        .99597E-04   -1.4906    
  10  Prefactor     .10000E-03    20.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.4460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.5173        .11272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.3263        2.4614        .12339E-03   -1.5343    
  14  Prefactor     .10000E-03    33.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.073        12.130        .94170E-04   -1.4857    
  16  norm          .43543        2.2737        .24184E-03   -1.5576    
  17  norm          1.2049        2.7650        .22251E-03   -1.5488    
  18  Prefactor     .10000E-03    47.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    967.83        .18221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7991        .54726        .35721E-04   -1.5440    
  22  Prefactor     16.734        9.9357        .97905E-04   -1.4890    
  23  Prefactor     .10000E-03    11.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          25.958        3.2147        .56654E-04   -1.4689    
  25  Normalizat    1.3514        .21578        .27593E-03   -.82046    
  26  Prefactor     .93760        .18556        .28103E-03   -.94839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22859e-10
Minuit parameter uncertainties:
  1  5.22558e-05
  2  0.000456303
  3  2.01905
  4  12.8652
  5  0.000616495
  6  1.6996e-05
  7  8.44703e-05
  8  2.27379e-05
  9  39.9694
  10  2.64187e-05
  11  3.16657e-08
  12  4.38746e-07
  13  2.46143
  14  2.22376e-05
  15  12.1318
  16  1.98992
  17  2.76527
  18  3.28788e-05
  19  4.38206e-05
  20  0.00630541
  21  0.547258
  22  9.93671
  23  2.09507e-06
  24  3.21473
  25  0.21592
  26  0.185685
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  6.165e-04  1.000e-04  1.000e+04 ( 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:  9.376e-01  1.857e-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.351e+00  2.159e-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.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188203/likelihoodResults_376444801_376704001_4FGL_J1156.6+0640_daily_bin529.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) = 8848.31993872
delta logL = -2.30482837651e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8848.31991973
delta logL = -4.05976970796e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18771E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3896       1.0000          .0000       10.000    
     3 'Normalizat'    1.3514       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93760       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=   8848.320     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      253 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.080        .10143E-01** at limit **
   2  Index         2.3911        5.9496        .50000       -.33942E-06
   3  Normalizat    1.3514        .30653E-02    .62387E-01   -.11952E-04
   4  Prefactor     .93761        .26718E-02    .45483E-01    .31946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39111
  Normalizat = 1.35136
  Prefactor  = 0.937605
 **********
 **   18 **HESSE 
 **********

 FCN=   8848.320     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      286 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6277.5        .40570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3911        6.6016        .50000       -.54893    
   3  Normalizat    1.3514        .16596E-01    .27593E-03   -.82046    
   4  Prefactor     .93761        .14471E-01    .28103E-03   -.94839    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.03309e-09
Minuit parameter uncertainties:
  1  0.000698802
  2  586.758
  3  0.0165965
  4  0.0144706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188203': 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) = 8848.31991566
delta logL = 1.25237420434e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  6.988e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.391e+00  5.868e+02  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:  9.376e-01  1.447e-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:  1.351e+00  1.660e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/188203/cmap_HighResolution_376444801_376704001_4FGL_J1156.6+0640_daily_bin529.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.31e-08', time_completed='2021-09-04 17:22:50.891104', job_id='188203', GAL2='0.94', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630801370.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='529' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:22:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 188203: <4FGL_J1156.6+0640_daily_bin529> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin529> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:40 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 17:06:42 2021
Terminated at Sat Sep  4 17:22:51 2021
Results reported at Sat Sep  4 17:22:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin529 179.164 6.6728 376444801 376704001 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 :                                   946.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             325.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            971 sec.

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

