/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 216 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_bin728
RA = 179.164, Dec = 6.6728
tmin = 428025601, tmax = 428284801
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='189731', job_status='RUN', time_executed='2021-09-04 17:15:14.809829', time_epoch_executed='1630800914.81' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189731

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189731/ft1_4FGL_J1156.6+0640_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189731/ft2_4FGL_J1156.6+0640_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189731/ft1_4FGL_J1156.6+0640_daily_bin728.fits outfile=/scratch/kocevski/189731/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin728.fits ra=179.164 dec=6.6728 rad=12.0 tmin=428025601.0 tmax=428284801.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.63
user 5.34
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189731/ft2_4FGL_J1156.6+0640_daily_bin728.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/189731/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin728.fits evtable="EVENTS" outfile="/scratch/kocevski/189731/ft1_filtered_4FGL_J1156.6+0640_daily_bin728.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189731/ft1_filtered_4FGL_J1156.6+0640_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/189731/ft2_4FGL_J1156.6+0640_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/189731/ltcube_428025601_428284801_4FGL_J1156.6+0640_daily_bin728.fits outfile=/scratch/kocevski/189731/expmap_428025601_428284801_4FGL_J1156.6+0640_daily_bin728.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/189731/ltcube_428025601_428284801_4FGL_J1156.6+0640_daily_bin728.fits
.....................!
real 191.43
user 186.75
sys 4.18

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/189731/ft1_filtered_4FGL_J1156.6+0640_daily_bin728.fits scfile=/scratch/kocevski/189731/ft2_4FGL_J1156.6+0640_daily_bin728.fits outfile=/scratch/kocevski/189731/cmap_428025601_428284801_4FGL_J1156.6+0640_daily_bin728.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189731/ft1_filtered_4FGL_J1156.6+0640_daily_bin728.fits scfile=/scratch/kocevski/189731/ft2_4FGL_J1156.6+0640_daily_bin728.fits outfile=/scratch/kocevski/189731/cmap_HighResolution_428025601_428284801_4FGL_J1156.6+0640_daily_bin728.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.61
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2903       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8752       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.661       1.0000         .10000E-03   10000.    
     5 'Prefactor '    67.651       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7439       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.307       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.636       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12186E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8090       1.0000         .10000E-03   10000.    
    17 'norm      '    8.6718       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1866       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.353       1.0000         .10000E-03   10000.    
    24 'norm      '    .10739E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0580       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3970.183     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     2560 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2903        1.0136       -.10324E-06    .30053E-04
   2  Prefactor     .10000E-03    14.929       -.10899E-04** at limit **
   3  Prefactor     2.8754        2.8601        .27746E-06    .34746E-03
   4  Prefactor     26.662        1.0003       -.15333E-07    .35291E-04
   5  Prefactor     67.651        1.0105       -.12590E-06    .57607E-03
   6  Prefactor     6.7462        1.0073       -.15653E-06    .33226E-04
   7  Prefactor     .10000E-03    2.9469       -.41802E-07** at limit **
   8  Prefactor     10.306        1.0055        .14313E-06   -.50892E-04
   9  Prefactor     .10030E-03    20.601        .48347E-04** at limit **
  10  Prefactor     .10005E-03    11.072        .16269E-04** at limit **
  11  Prefactor     24.636        1.0022        .85764E-08    .40395E-04
  12  Prefactor     .10000E-03    1.7431       -.30572E-07** at limit **
  13  Prefactor     .10000E-03    1.0502        .16936E-06** at limit **
  14  Prefactor     .10017E-03    65.519       -.39026E-04** at limit **
  15  Prefactor     .10003E-03    23.405       -.60147E-04** at limit **
  16  norm          2.8080        2.9260       -.18423E-06   -.26501E-03
  17  norm          8.6734        5.3847        .57508E-05    .23168E-03
  18  Prefactor     .10000E-03    17.997        .31358E-04** at limit **
  19  norm          .10019E-03    9.3238       -.28952E-05** at limit **
  20  Prefactor     .10076E-03    64.773       -.32902E-04** at limit **
  21  norm          1.1869        .72599       -.48153E-06    .46197E-03
  22  Prefactor     .10000E-03    7.7064        .49339E-06** at limit **
  23  Prefactor     21.354        1.0062        .91026E-07   -.60471E-04
  24  norm          .10000E-03    2.4266        .79858E-07** at limit **
  25  Normalizat    1.0576        .27712       -.39681E-05    .19987E-03
  26  Prefactor     .93171        .23772        .23141E-05    .22859E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.29034
  Prefactor  = 0.0001
  Prefactor  = 2.87538
  Prefactor  = 26.6616
  Prefactor  = 67.6505
  Prefactor  = 6.7462
  Prefactor  = 0.0001
  Prefactor  = 10.3064
  Prefactor  = 0.0001003
  Prefactor  = 0.00010005
  Prefactor  = 24.636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100175
  Prefactor  = 0.000100033
  norm       = 2.80801
  norm       = 8.67343
  Prefactor  = 0.000100004
  norm       = 0.000100188
  Prefactor  = 0.00010076
  norm       = 1.18687
  Prefactor  = 0.0001
  Prefactor  = 21.3537
  norm       = 0.0001
  Normalizat = 1.05764
  Prefactor  = 0.931706
 **********
 **   18 **HESSE 
 **********

 FCN=   3970.183     FROM HESSE     STATUS=OK           512 CALLS     3072 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2903        8.7418        .48625E-02   -1.5294    
   2  Prefactor     .10000E-03    14.922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8754        2.8705        .59927E-02   -1.5369    
   4  Prefactor     26.662        23.972        .19396E-02   -1.4675    
   5  Prefactor     67.651        160.43        .12200E-02   -1.4061    
   6  Prefactor     6.7462        13.112        .38628E-02   -1.5188    
   7  Prefactor     .10000E-03    2.9443        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.306        15.218        .31201E-02   -1.5066    
   9  Prefactor     .10030E-03    38.025        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    34.700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     24.636        23.640        .20176E-02   -1.4715    
  12  Prefactor     .10000E-03    1.7225        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.0454        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10017E-03    130.77        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    26.369        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8080        2.9553        .60677E-02   -1.5373    
  17  norm          8.6734        5.4021        .34030E-02   -1.5119    
  18  Prefactor     .10000E-03    18.069        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10019E-03    32.919        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10076E-03    127.58        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1869        .73609        .87182E-02   -1.5490    
  22  Prefactor     .10000E-03    7.6777        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.354        29.162        .21670E-02   -1.4783    
  24  norm          .10000E-03    1.1152        .24332E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0576        .24325        .59664E-01   -.91124    
  26  Prefactor     .93171        .20228        .45404E-01   -.95042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60231e-08
Minuit parameter uncertainties:
  1  8.74438
  2  0.000156083
  3  2.87068
  4  23.9809
  5  161.476
  6  13.1178
  7  2.60978e-05
  8  15.2241
  9  0.00675861
  10  0.00263886
  11  23.6494
  12  1.52514e-05
  13  1.77949e-05
  14  0.00958259
  15  0.00187604
  16  2.95543
  17  5.40238
  18  0.000546718
  19  0.0049752
  20  0.0197374
  21  0.736101
  22  5.34969e-05
  23  29.1817
  24  6.82853e-06
  25  0.243508
  26  0.202446
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  6.765e+01  1.615e+02  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.317e-01  2.024e-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.058e+00  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.21
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/189731/likelihoodResults_428025601_428284801_4FGL_J1156.6+0640_daily_bin728.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): 0
logL (Free Index) = 3967.15621256
delta logL = 3.02632961659

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3966.88281298
delta logL = 3.29972919951

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3966.883     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      399 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18018E-01    .16226        .91133E-03    .11363E-02
   2  Index         6.7214        2.2057        .57674E-01    .11411E-03
   3  Normalizat    .85265        .92276E-01    .65266E-01    .12142E-04
   4  Prefactor     1.0615        .80214E-01    .39274E-01    .27664E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0180183
  Index      = 6.72143
  Normalizat = 0.852654
  Prefactor  = 1.06149
 **********
 **   18 **HESSE 
 **********

 FCN=   3966.883     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      432 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18018E-01    .23667        .40824E-05   -1.5681    
   2  Index         6.7214        2.7117        .24772E-02    .35148    
   3  Normalizat    .85265        .25736        .28871E-03   -.98144    
   4  Prefactor     1.0615        .22184        .22808E-03   -.90707    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.60516e-08
Minuit parameter uncertainties:
  1  0.130241
  2  2.89098
  3  0.25773
  4  0.222031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189731': 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) = 3966.88280783
delta logL = 3.29973435071

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.802e-02  1.302e-01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  6.721e+00  2.891e+00  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.061e+00  2.220e-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.527e-01  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.44
Ra Dec: 179.164 6.673
Photon Index (Free Index): 6.72 +/- 2.89
Photon Flux (Free Index): 1.75e-07 +/- 8.63e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.09e-05

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/189731/cmap_HighResolution_428025601_428284801_4FGL_J1156.6+0640_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', energy_flux2='2.11e-05', dlogl='3.30e+00', photon_flux2='1.75e-07', job_status='DONE', time_completed='2021-09-04 17:25:13.504883', photon_index_error2='2.89', photon_index2='6.72', ts='0.21', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.09e-05', EG='1.06', time_epoch_completed='1630801513.5', return_code='0', job_id='189731', GAL2='1.06', EG2='0.85', return_code2='102', photon_flux_error2='8.63e-08', ts2='7.44', photon_index='2.32' WHERE bin_id='728' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:25:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 189731: <4FGL_J1156.6+0640_daily_bin728> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin728> 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) <bullet0067>, 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:25:14 2021
Results reported at Sat Sep  4 17:25:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin728 179.164 6.6728 428025601 428284801 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 :                                   596.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            826 sec.

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

