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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin490
RA = 179.164, Dec = 6.6728
tmin = 366336001, tmax = 366595201
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='188144', job_status='RUN', time_executed='2021-09-04 17:06:49.245639', time_epoch_executed='1630800409.25' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188144

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188144/ft1_4FGL_J1156.6+0640_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188144/ft2_4FGL_J1156.6+0640_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188144/ft1_4FGL_J1156.6+0640_daily_bin490.fits outfile=/scratch/kocevski/188144/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin490.fits ra=179.164 dec=6.6728 rad=12.0 tmin=366336001.0 tmax=366595201.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 5.47
user 5.21
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188144/ft1_filtered_4FGL_J1156.6+0640_daily_bin490.fits" evtable="EVENTS" scfile=/scratch/kocevski/188144/ft2_4FGL_J1156.6+0640_daily_bin490.fits sctable="SC_DATA" outfile=/scratch/kocevski/188144/ltcube_366336001_366595201_4FGL_J1156.6+0640_daily_bin490.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/188144/ft2_4FGL_J1156.6+0640_daily_bin490.fits
.....................!
real 11.85
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188144/ft1_filtered_4FGL_J1156.6+0640_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/188144/ft2_4FGL_J1156.6+0640_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/188144/ltcube_366336001_366595201_4FGL_J1156.6+0640_daily_bin490.fits outfile=/scratch/kocevski/188144/expmap_366336001_366595201_4FGL_J1156.6+0640_daily_bin490.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/188144/ltcube_366336001_366595201_4FGL_J1156.6+0640_daily_bin490.fits
.....................!
real 191.33
user 185.42
sys 5.53

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/188144/ft1_filtered_4FGL_J1156.6+0640_daily_bin490.fits scfile=/scratch/kocevski/188144/ft2_4FGL_J1156.6+0640_daily_bin490.fits outfile=/scratch/kocevski/188144/cmap_366336001_366595201_4FGL_J1156.6+0640_daily_bin490.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188144/ft1_filtered_4FGL_J1156.6+0640_daily_bin490.fits scfile=/scratch/kocevski/188144/ft2_4FGL_J1156.6+0640_daily_bin490.fits outfile=/scratch/kocevski/188144/cmap_HighResolution_366336001_366595201_4FGL_J1156.6+0640_daily_bin490.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.54
user 0.41
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4849       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23516E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26431E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11349E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.5071       1.0000         .10000E-03   10000.    
    17 'norm      '    2.8843       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .72590       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10705E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.474       1.0000         .10000E-03   10000.    
    24 'norm      '    5.5039       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3397       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84721       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=   6350.431     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3058 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6847        .14548E-06** at limit **
   2  Prefactor     .10000E-03    12.111       -.12091E-04** at limit **
   3  Prefactor     1.4848        2.2338       -.37095E-06   -.87608E-03
   4  Prefactor     .10000E-03    4.9865       -.12949E-05** at limit **
   5  Prefactor     .10000E-03    78.995        .64902E-04** at limit **
   6  Prefactor     .10000E-03    3.8585       -.83980E-07** at limit **
   7  Prefactor     .10000E-03    2.5935       -.12320E-06** at limit **
   8  Prefactor     .10000E-03    7.4374       -.68507E-05** at limit **
   9  Prefactor     .10000E-03    140.75       -.58139E-04** at limit **
  10  Prefactor     .10000E-03    27.288       -.30327E-05** at limit **
  11  Prefactor     .10000E-03    56.128       -.22979E-04** at limit **
  12  Prefactor     .10000E-03    3.3516        .61965E-06** at limit **
  13  Prefactor     .10000E-03    4.5089        .10154E-05** at limit **
  14  Prefactor     .10000E-03    9.6171        .75001E-05** at limit **
  15  Prefactor     .10000E-03    2.4360       -.39845E-07** at limit **
  16  norm          4.5072        2.2844       -.28854E-08    .27313E-03
  17  norm          2.8851        3.5643       -.19636E-06   -.75030E-03
  18  Prefactor     .10000E-03    26.959        .25765E-05** at limit **
  19  norm          .10000E-03    14.110        .79677E-05** at limit **
  20  Prefactor     .10000E-03    61.267       -.49155E-05** at limit **
  21  norm          .72594        .47019       -.56535E-07   -.82860E-03
  22  Prefactor     .10000E-03    6.7564        .45059E-05** at limit **
  23  Prefactor     29.466        42.238       -.64562E-05   -.70836E-04
  24  norm          5.5039        1.9471        .16699E-07   -.10349E-03
  25  Normalizat    1.3394        .20190        .84876E-06    .43818E-04
  26  Prefactor     .84745        .16676        .95178E-07    .14638E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48475
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.5072
  norm       = 2.88506
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.725945
  Prefactor  = 0.0001
  Prefactor  = 29.4662
  norm       = 5.50386
  Normalizat = 1.33942
  Prefactor  = 0.847453
 **********
 **   18 **HESSE 
 **********

 FCN=   6350.431     FROM HESSE     STATUS=OK           446 CALLS     3504 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6934        .14939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4848        2.2184        .13919E-03   -1.5464    
   4  Prefactor     .10000E-03    4.9871        .17380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    78.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8671        .15287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6022        .12532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.4491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    141.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    58.121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.2788        .28075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6953        .32926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4381        .12145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.5072        2.2835        .83048E-04   -1.5283    
  17  norm          2.8851        3.5385        .15055E-03   -1.5368    
  18  Prefactor     .10000E-03    27.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    61.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .72594        .45407        .40275E-04   -1.5538    
  22  Prefactor     .10000E-03    6.7830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.466        42.548        .73798E-04   -1.4622    
  24  norm          5.5039        1.9436        .63377E-04   -1.5239    
  25  Normalizat    1.3394        .24006        .25037E-03   -.82397    
  26  Prefactor     .84745        .19854        .26227E-03   -.98002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56091e-10
Minuit parameter uncertainties:
  1  1.27683e-06
  2  1.05942e-06
  3  2.21848
  4  4.58681e-08
  5  0.000137491
  6  2.56974e-07
  7  3.81153e-07
  8  6.35045e-06
  9  0.00024625
  10  1.44895e-05
  11  0.000653699
  12  0.000197701
  13  7.59536e-06
  14  2.35474e-07
  15  7.72783e-07
  16  2.28356
  17  3.5388
  18  2.17876e-06
  19  2.93551e-06
  20  7.6296e-07
  21  0.454074
  22  4.78209e-05
  23  42.5914
  24  1.94363
  25  0.240262
  26  0.198707
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.375e-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:  8.475e-01  1.987e-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.339e+00  2.403e-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: 6.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188144/likelihoodResults_366336001_366595201_4FGL_J1156.6+0640_daily_bin490.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) = 6350.43057413
delta logL = -6.02576892561e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6350.43051354
delta logL = 3.30510374624e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9767       1.0000          .0000       10.000    
     3 'Normalizat'    1.3394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84745       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=   6350.431     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      254 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .12980        .12498    ** at limit **
   2  Index         3.0281        6.9265        .50000       -.30741E-05
   3  Normalizat    1.3394        .37010E-03    .56620E-01   -.29509E-03
   4  Prefactor     .84745        .31821E-03    .44332E-01   -.14954E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.02812
  Normalizat = 1.33942
  Prefactor  = 0.847453
 **********
 **   18 **HESSE 
 **********

 FCN=   6350.431     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      289 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.410        .73914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0281        7.3953        .50000       -.40539    
   3  Normalizat    1.3394        .26285E-02    .25037E-03   -.82397    
   4  Prefactor     .84745        .22601E-02    .26227E-03   -.98002    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.73862e-09
Minuit parameter uncertainties:
  1  0.000239963
  2  101.933
  3  0.00262846
  4  0.00226009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188144': 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) = 6350.43051351
delta logL = 3.65080268239e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.400e-04  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  3.028e+00  1.019e+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:  8.475e-01  2.260e-03  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.339e+00  2.628e-03  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/188144/cmap_HighResolution_366336001_366595201_4FGL_J1156.6+0640_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.15e-03', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2021-09-04 17:19:35.525545', job_id='188144', GAL2='0.85', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630801175.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='3.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='490' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:19:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 188144: <4FGL_J1156.6+0640_daily_bin490> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin490> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 17:06:36 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:06:38 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:38 2021
Terminated at Sat Sep  4 17:19:36 2021
Results reported at Sat Sep  4 17:19:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin490 179.164 6.6728 366336001 366595201 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 :                                   764.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            780 sec.

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

