/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 197 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 = 7648
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin268
RA = 179.164, Dec = 6.6728
tmin = 308793601, tmax = 309052801
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='186791', job_status='RUN', time_executed='2021-09-04 17:05:07.561403', time_epoch_executed='1630800307.56' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='268'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186791

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186791/ft1_4FGL_J1156.6+0640_daily_bin268.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186791/ft2_4FGL_J1156.6+0640_daily_bin268.fits


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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186791/ft1_filtered_4FGL_J1156.6+0640_daily_bin268.fits evtable="EVENTS" scfile=/scratch/kocevski/186791/ft2_4FGL_J1156.6+0640_daily_bin268.fits sctable="SC_DATA" expcube=/scratch/kocevski/186791/ltcube_308793601_309052801_4FGL_J1156.6+0640_daily_bin268.fits outfile=/scratch/kocevski/186791/expmap_308793601_309052801_4FGL_J1156.6+0640_daily_bin268.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/186791/ltcube_308793601_309052801_4FGL_J1156.6+0640_daily_bin268.fits
.....................!
real 189.75
user 184.84
sys 4.60

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/186791/ft1_filtered_4FGL_J1156.6+0640_daily_bin268.fits scfile=/scratch/kocevski/186791/ft2_4FGL_J1156.6+0640_daily_bin268.fits outfile=/scratch/kocevski/186791/cmap_308793601_309052801_4FGL_J1156.6+0640_daily_bin268.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186791/ft1_filtered_4FGL_J1156.6+0640_daily_bin268.fits scfile=/scratch/kocevski/186791/ft2_4FGL_J1156.6+0640_daily_bin268.fits outfile=/scratch/kocevski/186791/cmap_HighResolution_308793601_309052801_4FGL_J1156.6+0640_daily_bin268.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.237       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2553       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.1340       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.743       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.205       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3069       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.5029       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3710       1.0000         .10000E-03   10000.    
    17 'norm      '    6.1512       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.309       1.0000         .10000E-03   10000.    
    19 'norm      '    50.963       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0212       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8023       1.0000         .10000E-03   10000.    
    23 'Prefactor '    23.500       1.0000         .10000E-03   10000.    
    24 'norm      '    6.4240       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2511       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93287       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=   6270.361     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3070 TOTAL
                     EDM=   .96E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.2236        .34433E-07** at limit **
   2  Prefactor     .10000E-03    21.154        .59208E-07** at limit **
   3  Prefactor     .10000E-03    .77281        .16851E-07** at limit **
   4  Prefactor     .10000E-03    6.6730       -.37589E-08** at limit **
   5  Prefactor     .10000E-03    66.248       -.36955E-06** at limit **
   6  Prefactor     11.235        10.180        .36460E-07    .70876E-05
   7  Prefactor     9.2544        9.6146        .20924E-06    .94935E-05
   8  Prefactor     9.1327        14.393        .24510E-07   -.82448E-05
   9  Prefactor     10.740        67.541       -.79714E-06   -.10090E-04
  10  Prefactor     48.184        42.297       -.24776E-05   -.17219E-03
  11  Prefactor     6.3060        16.038        .34578E-05   -.12236E-03
  12  Prefactor     .10000E-03    1.5642        .56323E-08** at limit **
  13  Prefactor     6.5021        3.9368        .21284E-07   -.13099E-04
  14  Prefactor     .10000E-03    9.9825       -.37799E-07** at limit **
  15  Prefactor     .10000E-03    10.905       -.20016E-06** at limit **
  16  norm          1.3714        2.3547        .14775E-06   -.98008E-04
  17  norm          6.1508        4.6958        .15346E-07   -.26532E-04
  18  Prefactor     36.306        32.305       -.17827E-06   -.18655E-04
  19  norm          50.970        57.356        .93012E-06    .44626E-04
  20  Prefactor     .10000E-03    88.288        .48710E-06** at limit **
  21  norm          4.0208        .92787       -.24170E-07    .51123E-04
  22  Prefactor     8.8004        17.592        .10515E-06   -.11078E-04
  23  Prefactor     23.499        31.884       -.13868E-06   -.48087E-05
  24  norm          6.4240        2.2227        .30373E-08   -.45518E-05
  25  Normalizat    1.2515        .21821        .64439E-06   -.40610E-04
  26  Prefactor     .93261        .18624       -.69496E-06    .29833E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2351
  Prefactor  = 9.25442
  Prefactor  = 9.13268
  Prefactor  = 10.74
  Prefactor  = 48.1837
  Prefactor  = 6.30601
  Prefactor  = 0.0001
  Prefactor  = 6.5021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.37139
  norm       = 6.15084
  Prefactor  = 36.306
  norm       = 50.9697
  Prefactor  = 0.0001
  norm       = 4.02083
  Prefactor  = 8.8004
  Prefactor  = 23.4989
  norm       = 6.42401
  Normalizat = 1.25145
  Prefactor  = 0.932609
 **********
 **   18 **HESSE 
 **********

 FCN=   6270.361     FROM HESSE     STATUS=OK           458 CALLS     3528 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2455        .17674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .78243        .67962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.6750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    66.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.235        10.189        .11951E-03   -1.5037    
   7  Prefactor     9.2544        9.6368        .13174E-03   -1.5099    
   8  Prefactor     9.1327        14.380        .13261E-03   -1.5103    
   9  Prefactor     10.740        67.498        .12224E-03   -1.5052    
  10  Prefactor     48.184        44.893        .57754E-04   -1.4319    
  11  Prefactor     6.3060        16.626        .79917E-03   -1.5206    
  12  Prefactor     .10000E-03    1.5680        .96638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.5021        3.9401        .11710E-03   -1.5198    
  14  Prefactor     .10000E-03    9.9913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3714        2.3167        .15246E-03   -1.5474    
  17  norm          6.1508        4.7018        .12633E-03   -1.5212    
  18  Prefactor     36.306        32.326        .66510E-04   -1.4502    
  19  norm          50.970        57.823        .56178E-04   -1.4279    
  20  Prefactor     .10000E-03    88.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0208        .93146        .32709E-04   -1.5307    
  22  Prefactor     8.8004        17.521        .13510E-03   -1.5115    
  23  Prefactor     23.499        31.768        .82630E-04   -1.4738    
  24  norm          6.4240        2.2227        .66693E-04   -1.5201    
  25  Normalizat    1.2515        .25652        .27919E-03   -.85027    
  26  Prefactor     .93261        .21793        .27732E-03   -.95011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28329e-10
Minuit parameter uncertainties:
  1  8.02613e-07
  2  2.563e-06
  3  4.38006e-08
  4  1.20956e-06
  5  2.62219e-05
  6  10.191
  7  9.63842
  8  14.3854
  9  53.9384
  10  44.9243
  11  16.6383
  12  4.48772e-07
  13  3.94029
  14  4.16237e-06
  15  2.33577e-05
  16  2.31685
  17  4.70205
  18  32.3413
  19  57.8868
  20  0.000138461
  21  0.931462
  22  17.5308
  23  31.7907
  24  2.22275
  25  0.256775
  26  0.218133
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.622e-05  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.326e-01  2.181e-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.251e+00  2.568e-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: 7.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186791/likelihoodResults_308793601_309052801_4FGL_J1156.6+0640_daily_bin268.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) = 6270.36140404
delta logL = -7.17609036656e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6270.36133264
delta logL = -3.64593688573e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7822       1.0000          .0000       10.000    
     3 'Normalizat'    1.2515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93261       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=   6270.361     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      276 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10467E-03    11.570        .18142E-01** at limit **
   2  Index         2.6673        6.5480        .50000        .47610E-05
   3  Normalizat    1.2515        .25403E-02    .27919E-03   -.65275E-04
   4  Prefactor     .93261        .22275E-02    .27732E-03   -.72232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104667
  Index      = 2.66735
  Normalizat = 1.25146
  Prefactor  = 0.932608
 **********
 **   18 **HESSE 
 **********

 FCN=   6270.361     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10467E-03    217.12        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6673        6.2503        .50000       -.48536    
   3  Normalizat    1.2515        .11047E-01    .11167E-04   -.85027    
   4  Prefactor     .93261        .96867E-02    .11093E-04   -.95011    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.67285e-10
Minuit parameter uncertainties:
  1  0.0639001
  2  589.484
  3  0.0110467
  4  0.00968669
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186791': 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) = 6270.36133255
delta logL = -2.73604200629e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.047e-04  6.390e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.667e+00  5.895e+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.326e-01  9.687e-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.251e+00  1.105e-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/186791/cmap_HighResolution_308793601_309052801_4FGL_J1156.6+0640_daily_bin268.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', job_status='DONE', photon_flux_upper_limit='7.63e-08', time_completed='2021-09-04 17:18:00.265996', job_id='186791', GAL2='0.93', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630801080.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-2.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='268' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:18:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 186791: <4FGL_J1156.6+0640_daily_bin268> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin268> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:41 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:43 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:01:43 2021
Terminated at Sat Sep  4 17:18:00 2021
Results reported at Sat Sep  4 17:18:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin268 179.164 6.6728 308793601 309052801 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 :                                   771.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

