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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin747
RA = 179.164, Dec = 6.6728
tmin = 432950401, tmax = 433209601
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='189760', job_status='RUN', time_executed='2021-09-04 17:11:46.156167', time_epoch_executed='1630800706.16' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189760/ft1_4FGL_J1156.6+0640_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189760/ft2_4FGL_J1156.6+0640_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189760/ft1_4FGL_J1156.6+0640_daily_bin747.fits outfile=/scratch/kocevski/189760/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin747.fits ra=179.164 dec=6.6728 rad=12.0 tmin=432950401.0 tmax=433209601.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.69
user 5.43
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/189760/ft1_filtered_4FGL_J1156.6+0640_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/189760/ft2_4FGL_J1156.6+0640_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/189760/ltcube_432950401_433209601_4FGL_J1156.6+0640_daily_bin747.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/189760/ft2_4FGL_J1156.6+0640_daily_bin747.fits
.....................!
real 12.14
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189760/ft1_filtered_4FGL_J1156.6+0640_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/189760/ft2_4FGL_J1156.6+0640_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/189760/ltcube_432950401_433209601_4FGL_J1156.6+0640_daily_bin747.fits outfile=/scratch/kocevski/189760/expmap_432950401_433209601_4FGL_J1156.6+0640_daily_bin747.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/189760/ltcube_432950401_433209601_4FGL_J1156.6+0640_daily_bin747.fits
.....................!
real 192.10
user 186.79
sys 4.82

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/189760/ft1_filtered_4FGL_J1156.6+0640_daily_bin747.fits scfile=/scratch/kocevski/189760/ft2_4FGL_J1156.6+0640_daily_bin747.fits outfile=/scratch/kocevski/189760/cmap_432950401_433209601_4FGL_J1156.6+0640_daily_bin747.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189760/ft1_filtered_4FGL_J1156.6+0640_daily_bin747.fits scfile=/scratch/kocevski/189760/ft2_4FGL_J1156.6+0640_daily_bin747.fits outfile=/scratch/kocevski/189760/cmap_HighResolution_432950401_433209601_4FGL_J1156.6+0640_daily_bin747.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/189760/ft1_filtered_4FGL_J1156.6+0640_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/189760/ft2_4FGL_J1156.6+0640_daily_bin747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/189760/Model_4FGL_J1156.6+0640_daily_bin747.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/189760/ft1_filtered_4FGL_J1156.6+0640_daily_bin747.fits....................!
real 48.91
user 47.51
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.567       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2329       1.0000         .10000E-03   10000.    
     4 'Prefactor '    147.12       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21498E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.578       1.0000         .10000E-03   10000.    
    11 'Prefactor '    100.91       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61387E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    49.812       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14731E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5070       1.0000         .10000E-03   10000.    
    17 'norm      '    .10372E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19469E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1701       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.055       1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.782       1.0000         .10000E-03   10000.    
    24 'norm      '    1.6205       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .82688       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4787       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=   4777.856     FROM MIGRAD    STATUS=CONVERGED    624 CALLS     3141 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3710        .81231E-07** at limit **
   2  Prefactor     30.547        50.030       -.23245E-04    .36523E-04
   3  Prefactor     4.2318        4.9519       -.13491E-05   -.43182E-03
   4  Prefactor     147.13        69.421        .96777E-05   -.10946E-03
   5  Prefactor     .10000E-03    42.146        .10712E-04** at limit **
   6  Prefactor     .10000E-03    3.1146       -.28877E-07** at limit **
   7  Prefactor     .10000E-03    22.481        .11820E-04** at limit **
   8  Prefactor     .10000E-03    4.5754       -.73440E-07** at limit **
   9  Prefactor     .10000E-03    25.828        .40172E-05** at limit **
  10  Prefactor     56.565        54.604       -.71806E-05   -.63033E-04
  11  Prefactor     100.83        50.895       -.40224E-04   -.22501E-03
  12  Prefactor     .10000E-03    3.0599       -.16964E-05** at limit **
  13  Prefactor     .10000E-03    2.6059       -.17083E-06** at limit **
  14  Prefactor     49.781        45.739       -.18792E-04    .37312E-05
  15  Prefactor     .10000E-03    14.972        .96729E-05** at limit **
  16  norm          1.5134        3.5400        .33839E-05   -.20025E-03
  17  norm          .10000E-03    3.1036        .51619E-06** at limit **
  18  Prefactor     .10000E-03    31.551       -.20266E-04** at limit **
  19  norm          .10000E-03    16.314       -.12905E-04** at limit **
  20  Prefactor     .10000E-03    170.18        .21303E-04** at limit **
  21  norm          2.1699        .80106        .14770E-06   -.74159E-04
  22  Prefactor     13.055        12.018       -.69525E-06    .45756E-04
  23  Prefactor     44.785        38.685       -.10145E-05    .40780E-04
  24  norm          1.6199        1.6531       -.31210E-06   -.30022E-03
  25  Normalizat    .82658        .27592        .17222E-04   -.36091E-04
  26  Prefactor     1.4791        .23633       -.56918E-06    .31939E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 30.5472
  Prefactor  = 4.23178
  Prefactor  = 147.133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.5651
  Prefactor  = 100.83
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 49.7814
  Prefactor  = 0.000100004
  norm       = 1.51337
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.16992
  Prefactor  = 13.0545
  Prefactor  = 44.7848
  norm       = 1.61986
  Normalizat = 0.826576
  Prefactor  = 1.47913
 **********
 **   18 **HESSE 
 **********

 FCN=   4777.856     FROM HESSE     STATUS=OK           450 CALLS     3591 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3732        .14113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.547        50.163        .72469E-04   -1.4602    
   3  Prefactor     4.2318        4.9362        .15297E-03   -1.5297    
   4  Prefactor     147.13        69.255        .33223E-04   -1.3276    
   5  Prefactor     .10000E-03    42.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.1165        .11914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.5763        .14440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     56.565        54.725        .53332E-04   -1.4202    
  11  Prefactor     100.83        50.850        .20011E-03   -1.3696    
  12  Prefactor     .10000E-03    13.120        .23134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.6640        .21738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     49.781        45.669        .56820E-04   -1.4296    
  15  Prefactor     .10000E-03    15.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5134        3.4968        .18673E-03   -1.5462    
  17  norm          .10000E-03    3.1648        .11861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    170.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1699        .79744        .35592E-04   -1.5413    
  22  Prefactor     13.055        12.014        .11086E-03   -1.4985    
  23  Prefactor     44.785        38.688        .59912E-04   -1.4369    
  24  norm          1.6199        1.6350        .86584E-04   -1.5453    
  25  Normalizat    .82658        .31982        .35275E-03   -.99090    
  26  Prefactor     1.4791        .27925        .24878E-03   -.78126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9531e-09
Minuit parameter uncertainties:
  1  8.11636e-06
  2  50.2321
  3  4.93669
  4  69.2928
  5  1.72241e-05
  6  5.85237e-06
  7  0.000396461
  8  1.06956e-05
  9  2.88262e-05
  10  54.7741
  11  50.872
  12  0.000345917
  13  2.64863e-05
  14  45.7008
  15  0.000489355
  16  3.4973
  17  9.14995e-05
  18  1.60012e-05
  19  1.88701e-05
  20  6.19226e-05
  21  0.797449
  22  12.0167
  23  38.7096
  24  1.63502
  25  0.320551
  26  0.279534
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  1.722e-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:  1.479e+00  2.795e-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:  8.266e-01  3.206e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189760/likelihoodResults_432950401_433209601_4FGL_J1156.6+0640_daily_bin747.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) = 4777.85635285
delta logL = -0.000112833568892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4777.85624152
delta logL = -1.50486266648e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15398E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6573       1.0000          .0000       10.000    
     3 'Normalizat'    .82659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4791       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=   4777.856     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      279 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10331E-03    16.876        .18142E-01** at limit **
   2  Index         2.5690        7.4772        .50000        .86827E-05
   3  Normalizat    .82658        .46372E-02    .35275E-03   -.52985E-04
   4  Prefactor     1.4791        .42500E-02    .24878E-03    .21024E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103311
  Index      = 2.56903
  Normalizat = 0.826577
  Prefactor  = 1.47913
 **********
 **   18 **HESSE 
 **********

 FCN=   4777.856     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      308 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10331E-03    118.77        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5690        5.5905        .50000       -.50773    
   3  Normalizat    .82658        .12355E-01    .14110E-04   -.99090    
   4  Prefactor     1.4791        .11323E-01    .49756E-04   -.78126    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.80363e-09
Minuit parameter uncertainties:
  1  0.0397385
  2  328.32
  3  0.0123546
  4  0.0113229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189760': 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) = 4777.85624045
delta logL = -4.29628016718e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.033e-04  3.974e-02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.569e+00  3.283e+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:  1.479e+00  1.132e-02  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  8.266e-01  1.235e-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/189760/cmap_HighResolution_432950401_433209601_4FGL_J1156.6+0640_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-04 17:23:10.182748', job_id='189760', GAL2='1.48', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630801390.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.48', dlogl='-4.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='747' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:23:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 189760: <4FGL_J1156.6+0640_daily_bin747> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin747 179.164 6.6728 432950401 433209601 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 :                                   682.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             305.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   698 sec.
    Turnaround time :                            700 sec.

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

