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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin555
RA = 179.164, Dec = 6.6728
tmin = 383184001, tmax = 383443201
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='188242', job_status='RUN', time_executed='2021-09-04 17:09:54.467373', time_epoch_executed='1630800594.47' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='555'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188242

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188242/ft1_4FGL_J1156.6+0640_daily_bin555.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188242/ft2_4FGL_J1156.6+0640_daily_bin555.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188242/ft1_4FGL_J1156.6+0640_daily_bin555.fits outfile=/scratch/kocevski/188242/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin555.fits ra=179.164 dec=6.6728 rad=12.0 tmin=383184001.0 tmax=383443201.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.54
user 3.17
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188242/ft1_filtered_4FGL_J1156.6+0640_daily_bin555.fits" evtable="EVENTS" scfile=/scratch/kocevski/188242/ft2_4FGL_J1156.6+0640_daily_bin555.fits sctable="SC_DATA" outfile=/scratch/kocevski/188242/ltcube_383184001_383443201_4FGL_J1156.6+0640_daily_bin555.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/188242/ft2_4FGL_J1156.6+0640_daily_bin555.fits
.....................!
real 11.92
user 11.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188242/ft1_filtered_4FGL_J1156.6+0640_daily_bin555.fits evtable="EVENTS" scfile=/scratch/kocevski/188242/ft2_4FGL_J1156.6+0640_daily_bin555.fits sctable="SC_DATA" expcube=/scratch/kocevski/188242/ltcube_383184001_383443201_4FGL_J1156.6+0640_daily_bin555.fits outfile=/scratch/kocevski/188242/expmap_383184001_383443201_4FGL_J1156.6+0640_daily_bin555.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/188242/ltcube_383184001_383443201_4FGL_J1156.6+0640_daily_bin555.fits
.....................!
real 192.63
user 187.05
sys 5.22

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188242/ft1_filtered_4FGL_J1156.6+0640_daily_bin555.fits scfile=/scratch/kocevski/188242/ft2_4FGL_J1156.6+0640_daily_bin555.fits outfile=/scratch/kocevski/188242/cmap_HighResolution_383184001_383443201_4FGL_J1156.6+0640_daily_bin555.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2126       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.176       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.980       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17420       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4116       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.097       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.0697       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.266       1.0000         .10000E-03   10000.    
    19 'norm      '    .11784E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .89213       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0183       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3276       1.0000         .10000E-03   10000.    
    24 'norm      '    18.473       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2580       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86929       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=   5642.245     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2659 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2057        1.9236        .37918E-06   -.14569E-03
   2  Prefactor     .10000E-03    11.734        .73268E-06** at limit **
   3  Prefactor     .10000E-03    1.2714       -.13950E-08** at limit **
   4  Prefactor     .10000E-03    12.489       -.59833E-06** at limit **
   5  Prefactor     .10000E-03    89.762       -.73772E-05** at limit **
   6  Prefactor     12.175        10.194        .35457E-07    .32930E-04
   7  Prefactor     .10000E-03    4.7143       -.19082E-09** at limit **
   8  Prefactor     .10000E-03    6.4687        .24473E-08** at limit **
   9  Prefactor     .10000E-03    52.029       -.88329E-05** at limit **
  10  Prefactor     .10000E-03    21.562        .45527E-07** at limit **
  11  Prefactor     19.978        20.173        .27829E-07    .16258E-05
  12  Prefactor     .15224        2.5885       -.24636E-06    .20334E-03
  13  Prefactor     4.4181        3.7907        .65410E-07    .13857E-03
  14  Prefactor     .10000E-03    17.401        .39547E-06** at limit **
  15  Prefactor     13.097        10.463        .88539E-09   -.30310E-05
  16  norm          .10000E-03    1.5560       -.16664E-07** at limit **
  17  norm          9.0659        4.5919       -.25659E-07   -.41550E-04
  18  Prefactor     18.266        26.317       -.20364E-06    .26286E-05
  19  norm          .10000E-03    85.893        .28238E-05** at limit **
  20  Prefactor     .10000E-03    58.471        .11574E-04** at limit **
  21  norm          .89169        .58702       -.90673E-08   -.72102E-04
  22  Prefactor     1.0007        21.107       -.36850E-05    .10312E-04
  23  Prefactor     7.3402        16.597       -.88990E-07    .37730E-04
  24  norm          18.473        3.3881       -.45906E-08    .17757E-06
  25  Normalizat    1.2582        .21636        .10181E-06    .76543E-04
  26  Prefactor     .86919        .18745        .16881E-06    .66247E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.20567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.9781
  Prefactor  = 0.152239
  Prefactor  = 4.41815
  Prefactor  = 0.0001
  Prefactor  = 13.0967
  norm       = 0.0001
  norm       = 9.06587
  Prefactor  = 18.2657
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.891688
  Prefactor  = 1.00071
  Prefactor  = 7.34019
  norm       = 18.4729
  Normalizat = 1.25821
  Prefactor  = 0.869191
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.245     FROM HESSE     STATUS=OK           462 CALLS     3121 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2057        28.068        .20530E-02   -1.5488    
   2  Prefactor     .10000E-03    11.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3007        .82658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    12.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    89.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.175        10.212        .11480E-03   -1.5010    
   7  Prefactor     .10000E-03    4.7581        .15926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    52.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.978        20.176        .89605E-04   -1.4814    
  12  Prefactor     .15224        19.137        .21561E-02   -1.5630    
  13  Prefactor     4.4181        3.8834        .12120E-03   -1.5288    
  14  Prefactor     .10000E-03    17.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.097        10.402        .55342E-03   -1.4984    
  16  norm          .10000E-03    1.5864        .18193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.0659        4.5776        .10466E-03   -1.5106    
  18  Prefactor     18.266        26.319        .93712E-04   -1.4853    
  19  norm          .10000E-03    86.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    58.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .89169        .57501        .42893E-04   -1.5519    
  22  Prefactor     1.0007        21.776        .51425E-02   -1.5508    
  23  Prefactor     7.3402        16.491        .14817E-03   -1.5166    
  24  norm          18.473        3.3863        .56273E-04   -1.4848    
  25  Normalizat    1.2582        .25877        .26403E-03   -.84823    
  26  Prefactor     .86919        .22217        .27315E-03   -.97226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.55803e-10
Minuit parameter uncertainties:
  1  11.6403
  2  1.37064e-06
  3  6.26707e-07
  4  1.1865e-06
  5  3.16942e-06
  6  10.2132
  7  9.55974e-07
  8  5.50898e-07
  9  1.54466e-06
  10  1.07755e-06
  11  20.1831
  12  3.4137
  13  3.88366
  14  4.42914e-07
  15  10.4037
  16  4.2292e-07
  17  4.57773
  18  26.3357
  19  1.10298e-05
  20  4.24974e-06
  21  0.575009
  22  9.33963
  23  16.5016
  24  3.38631
  25  0.259034
  26  0.222405
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  3.169e-06  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.692e-01  2.224e-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.258e+00  2.590e-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.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188242/likelihoodResults_383184001_383443201_4FGL_J1156.6+0640_daily_bin555.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) = 5642.24508107
delta logL = -5.28345080966e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5642.24502868
delta logL = -4.41804331786e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5069       1.0000          .0000       10.000    
     3 'Normalizat'    1.2582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86919       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=   5642.245     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      279 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10254E-03    27.050        .18142E-01** at limit **
   2  Index         2.4308        8.6438        .50000        .51490E-05
   3  Normalizat    1.2582        .31985E-02    .26403E-03   -.29280E-05
   4  Prefactor     .86919        .28227E-02    .27315E-03    .94480E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102542
  Index      = 2.43078
  Normalizat = 1.25821
  Prefactor  = 0.869191
 **********
 **   18 **HESSE 
 **********

 FCN=   5642.245     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10254E-03    178.71        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4308        5.7361        .50000       -.53966    
   3  Normalizat    1.2582        .82239E-02    .10561E-04   -.84823    
   4  Prefactor     .86919        .72579E-02    .10926E-04   -.97226    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.17882e-10
Minuit parameter uncertainties:
  1  0.0427525
  2  249.684
  3  0.00822394
  4  0.00725789
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188242': 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) = 5642.24502836
delta logL = -1.27183739096e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.025e-04  4.275e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.431e+00  2.497e+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.692e-01  7.258e-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.258e+00  8.224e-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/188242/cmap_HighResolution_383184001_383443201_4FGL_J1156.6+0640_daily_bin555.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.30e-08', time_completed='2021-09-04 17:21:30.685593', job_id='188242', GAL2='0.87', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630801290.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-1.27e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='555' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:21:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 188242: <4FGL_J1156.6+0640_daily_bin555> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin555 179.164 6.6728 383184001 383443201 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 :                                   695.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            888 sec.

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

