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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin729
RA = 179.164, Dec = 6.6728
tmin = 428284801, tmax = 428544001
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='189732', job_status='RUN', time_executed='2021-09-04 17:13:36.224059', time_epoch_executed='1630800816.22' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189732

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189732/ft1_4FGL_J1156.6+0640_daily_bin729.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189732/ft2_4FGL_J1156.6+0640_daily_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189732/ft1_4FGL_J1156.6+0640_daily_bin729.fits outfile=/scratch/kocevski/189732/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin729.fits ra=179.164 dec=6.6728 rad=12.0 tmin=428284801.0 tmax=428544001.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 6.07
user 5.82
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189732/ft1_filtered_4FGL_J1156.6+0640_daily_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/189732/ft2_4FGL_J1156.6+0640_daily_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/189732/ltcube_428284801_428544001_4FGL_J1156.6+0640_daily_bin729.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/189732/ft2_4FGL_J1156.6+0640_daily_bin729.fits
.....................!
real 12.69
user 11.81
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189732/ft1_filtered_4FGL_J1156.6+0640_daily_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/189732/ft2_4FGL_J1156.6+0640_daily_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/189732/ltcube_428284801_428544001_4FGL_J1156.6+0640_daily_bin729.fits outfile=/scratch/kocevski/189732/expmap_428284801_428544001_4FGL_J1156.6+0640_daily_bin729.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/189732/ltcube_428284801_428544001_4FGL_J1156.6+0640_daily_bin729.fits
.....................!
real 190.94
user 185.38
sys 4.87

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/189732/ft1_filtered_4FGL_J1156.6+0640_daily_bin729.fits scfile=/scratch/kocevski/189732/ft2_4FGL_J1156.6+0640_daily_bin729.fits outfile=/scratch/kocevski/189732/cmap_428284801_428544001_4FGL_J1156.6+0640_daily_bin729.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189732/ft1_filtered_4FGL_J1156.6+0640_daily_bin729.fits scfile=/scratch/kocevski/189732/ft2_4FGL_J1156.6+0640_daily_bin729.fits outfile=/scratch/kocevski/189732/cmap_HighResolution_428284801_428544001_4FGL_J1156.6+0640_daily_bin729.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    34.699       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.5360       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3210       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    43.564       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7624       1.0000         .10000E-03   10000.    
    14 'Prefactor '    60.455       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9615       1.0000         .10000E-03   10000.    
    17 'norm      '    .16542       1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.517       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    35.205       1.0000         .10000E-03   10000.    
    21 'norm      '    .35836       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0754       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.5854       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2299       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68452       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=   3765.767     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     3580 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          34.696        17.574        .29471E-06   -.33574E-04
   2  Prefactor     .10000E-03    134.79       -.10773E-06** at limit **
   3  Prefactor     6.5351        4.2566        .99979E-06   -.15056E-03
   4  Prefactor     .10000E-03    9.6540        .21950E-07** at limit **
   5  Prefactor     .10000E-03    48.221       -.35030E-06** at limit **
   6  Prefactor     3.3175        13.085        .14260E-05    .73498E-07
   7  Prefactor     .10000E-03    4.8380        .49840E-07** at limit **
   8  Prefactor     .10000E-03    13.242       -.31794E-07** at limit **
   9  Prefactor     .10000E-03    43.563        .33486E-06** at limit **
  10  Prefactor     .10000E-03    27.319       -.45056E-07** at limit **
  11  Prefactor     43.537        38.739        .20461E-06    .44548E-04
  12  Prefactor     .10000E-03    3.1437       -.62243E-07** at limit **
  13  Prefactor     2.7624        3.6413        .37970E-06   -.25683E-05
  14  Prefactor     60.616        51.832       -.92882E-06    .11673E-03
  15  Prefactor     .10000E-03    16.375        .58442E-07** at limit **
  16  norm          2.9619        3.0644       -.71273E-07   -.26663E-04
  17  norm          .12671        2.8653       -.62598E-06   -.11689E-03
  18  Prefactor     45.524        44.787       -.62142E-07   -.14993E-04
  19  norm          .10000E-03    17.944       -.24356E-06** at limit **
  20  Prefactor     35.428        151.05        .22796E-05    .62826E-04
  21  norm          .35988        .69636        .15349E-05    .43862E-04
  22  Prefactor     3.0748        10.105        .11947E-05   -.76948E-05
  23  Prefactor     .10000E-03    18.852        .66342E-07** at limit **
  24  norm          2.5854        1.7671       -.20163E-06   -.20420E-05
  25  Normalizat    1.2301        .24389       -.18825E-05    .97388E-04
  26  Prefactor     .68441        .19740       -.84633E-06    .14538E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 34.6957
  Prefactor  = 0.000100001
  Prefactor  = 6.53513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.31753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.5367
  Prefactor  = 0.0001
  Prefactor  = 2.76243
  Prefactor  = 60.6158
  Prefactor  = 0.0001
  norm       = 2.96185
  norm       = 0.126713
  Prefactor  = 45.5237
  norm       = 0.0001
  Prefactor  = 35.4278
  norm       = 0.359885
  Prefactor  = 3.07483
  Prefactor  = 0.0001
  norm       = 2.58539
  Normalizat = 1.23009
  Prefactor  = 0.684406
 **********
 **   18 **HESSE 
 **********

 FCN=   3765.767     FROM HESSE     STATUS=OK           456 CALLS     4036 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          34.696        17.578        .68031E-04   -1.4529    
   2  Prefactor     .10000E-03    137.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.5351        4.2572        .47516E-03   -1.5197    
   4  Prefactor     .10000E-03    9.6553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3175        13.108        .22213E-03   -1.5344    
   7  Prefactor     .10000E-03    4.8546        .13182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    43.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     43.537        38.692        .60740E-04   -1.4387    
  12  Prefactor     .10000E-03    5.2351        .20499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7624        3.5225        .12548E-03   -1.5376    
  14  Prefactor     60.616        53.719        .51603E-04   -1.4149    
  15  Prefactor     .10000E-03    16.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9619        3.0526        .10324E-03   -1.5364    
  17  norm          .12671        38.598        .17537E-02   -1.5637    
  18  Prefactor     45.524        44.802        .59428E-04   -1.4358    
  19  norm          .10000E-03    17.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     35.428        151.44        .33771E-03   -1.4517    
  21  norm          .35988        .72600        .21356E-03   -1.5588    
  22  Prefactor     3.0748        10.089        .23129E-03   -1.5357    
  23  Prefactor     .10000E-03    18.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.5854        1.7644        .64730E-04   -1.5386    
  25  Normalizat    1.2301        .28822        .24081E-03   -.85678    
  26  Prefactor     .68441        .23298        .26841E-03   -1.0414    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.67129e-10
Minuit parameter uncertainties:
  1  17.5806
  2  0.000566294
  3  4.25736
  4  1.01239e-07
  5  0.000223777
  6  13.1191
  7  4.91477e-06
  8  1.48861e-05
  9  0.000247053
  10  3.68571e-05
  11  38.7143
  12  2.42805e-05
  13  3.52278
  14  53.7618
  15  3.8563e-05
  16  3.05275
  17  4.42417
  18  44.835
  19  0.000121477
  20  147.132
  21  0.72602
  22  10.0943
  23  5.78352e-05
  24  1.76442
  25  0.288592
  26  0.233317
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.238e-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:  6.844e-01  2.333e-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.230e+00  2.886e-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: 8.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189732/likelihoodResults_428284801_428544001_4FGL_J1156.6+0640_daily_bin729.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) = 3765.76685315
delta logL = -9.86287350315e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3765.76675513
delta logL = -6.13214069745e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11442E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5849       1.0000          .0000       10.000    
     3 'Normalizat'    1.2301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68441       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3765.767     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      283 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10238E-03    19.538        .18142E-01** at limit **
   2  Index         2.5134        7.3906        .50000        .77315E-05
   3  Normalizat    1.2301        .41982E-02    .24081E-03   -.23133E-05
   4  Prefactor     .68441        .36090E-02    .26841E-03   -.24990E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102378
  Index      = 2.51337
  Normalizat = 1.23009
  Prefactor  = 0.684408
 **********
 **   18 **HESSE 
 **********

 FCN=   3765.767     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10238E-03    113.51        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5134        5.7714        .50000       -.52051    
   3  Normalizat    1.2301        .10154E-01    .96325E-05   -.85678    
   4  Prefactor     .68441        .87291E-02    .10736E-04   -1.0414    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.01898e-10
Minuit parameter uncertainties:
  1  0.0329218
  2  252.602
  3  0.0101543
  4  0.00872912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189732': 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) = 3765.76675482
delta logL = -3.01817635773e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.024e-04  3.292e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.513e+00  2.526e+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:  6.844e-01  8.729e-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.230e+00  1.015e-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/189732/cmap_HighResolution_428284801_428544001_4FGL_J1156.6+0640_daily_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='8.08e-08', time_completed='2021-09-04 17:24:04.342908', job_id='189732', GAL2='0.68', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630801444.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-3.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='729' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:24:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 189732: <4FGL_J1156.6+0640_daily_bin729> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin729> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:28 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11:30 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:11:30 2021
Terminated at Sat Sep  4 17:24:05 2021
Results reported at Sat Sep  4 17:24:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin729 179.164 6.6728 428284801 428544001 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 :                                   625.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   754 sec.
    Turnaround time :                            757 sec.

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

