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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin976
RA = 179.164, Dec = 6.6728
tmin = 492307201, tmax = 492566401
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='191390', job_status='RUN', time_executed='2021-09-04 17:19:00.750321', time_epoch_executed='1630801140.75' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191390

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191390/ft1_4FGL_J1156.6+0640_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191390/ft2_4FGL_J1156.6+0640_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191390/ft1_4FGL_J1156.6+0640_daily_bin976.fits outfile=/scratch/kocevski/191390/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin976.fits ra=179.164 dec=6.6728 rad=12.0 tmin=492307201.0 tmax=492566401.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.71
user 3.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191390/ft2_4FGL_J1156.6+0640_daily_bin976.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/191390/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin976.fits evtable="EVENTS" outfile="/scratch/kocevski/191390/ft1_filtered_4FGL_J1156.6+0640_daily_bin976.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.54
user 0.31
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191390/ft1_filtered_4FGL_J1156.6+0640_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/191390/ft2_4FGL_J1156.6+0640_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/191390/ltcube_492307201_492566401_4FGL_J1156.6+0640_daily_bin976.fits outfile=/scratch/kocevski/191390/expmap_492307201_492566401_4FGL_J1156.6+0640_daily_bin976.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/191390/ltcube_492307201_492566401_4FGL_J1156.6+0640_daily_bin976.fits
.....................!
real 191.23
user 186.22
sys 4.48

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/191390/ft1_filtered_4FGL_J1156.6+0640_daily_bin976.fits scfile=/scratch/kocevski/191390/ft2_4FGL_J1156.6+0640_daily_bin976.fits outfile=/scratch/kocevski/191390/cmap_492307201_492566401_4FGL_J1156.6+0640_daily_bin976.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.76
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191390/ft1_filtered_4FGL_J1156.6+0640_daily_bin976.fits scfile=/scratch/kocevski/191390/ft2_4FGL_J1156.6+0640_daily_bin976.fits outfile=/scratch/kocevski/191390/cmap_HighResolution_492307201_492566401_4FGL_J1156.6+0640_daily_bin976.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.67
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7511       1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.106       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    114.96       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.137       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.740       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8253       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10485E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6924       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4873       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    37.696       1.0000         .10000E-03   10000.    
    20 'Prefactor '    151.55       1.0000         .10000E-03   10000.    
    21 'norm      '    .23734       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.177       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.3573       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0060       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0724       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=   4195.609     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     2548 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7521        1.0062       -.94009E-07    .70085E-04
   2  Prefactor     43.116        2.9863        .27858E-05   -.97472E-02
   3  Prefactor     .10000E-03    1.2217        .33220E-06** at limit **
   4  Prefactor     .10000E-03    11.781        .31979E-04** at limit **
   5  Prefactor     114.96        1.6172       -.77551E-06    .74483E-02
   6  Prefactor     10.139        1.0034       -.90289E-07   -.95396E-05
   7  Prefactor     .10000E-03    6.5976       -.13126E-06** at limit **
   8  Prefactor     21.745        1.1929        .80550E-06   -.83117E-03
   9  Prefactor     .10070E-03    15.407        .11577E-05** at limit **
  10  Prefactor     .10019E-03    7.1684       -.21689E-04** at limit **
  11  Prefactor     .10004E-03    6.3651       -.10829E-04** at limit **
  12  Prefactor     1.8252        2.9738       -.65793E-06    .33626E-04
  13  Prefactor     .10000E-03    1.2518        .14631E-05** at limit **
  14  Prefactor     .10008E-03    9.3258        .23752E-04** at limit **
  15  Prefactor     .10012E-03    30.047       -.36116E-04** at limit **
  16  norm          2.6902        3.0661        .20083E-05   -.11509E-03
  17  norm          4.4928        4.9810       -.29649E-05   -.49359E-03
  18  Prefactor     .10000E-03    7.6379       -.22301E-04** at limit **
  19  norm          37.690        2.3012       -.22274E-05    .67854E-02
  20  Prefactor     151.55        1.0089        .69541E-07   -.90571E-03
  21  norm          .23715        .64501        .12370E-05   -.68893E-04
  22  Prefactor     14.179        1.0032       -.64504E-07   -.54530E-05
  23  Prefactor     .10006E-03    12.331        .20316E-04** at limit **
  24  norm          4.3585        2.5498        .14725E-06    .68515E-04
  25  Normalizat    1.0049        .28204       -.28908E-05   -.24149E-04
  26  Prefactor     1.0734        .24664        .26918E-05    .20262E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.75208
  Prefactor  = 43.1163
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 114.956
  Prefactor  = 10.1386
  Prefactor  = 0.0001
  Prefactor  = 21.7454
  Prefactor  = 0.000100699
  Prefactor  = 0.000100191
  Prefactor  = 0.00010004
  Prefactor  = 1.82516
  Prefactor  = 0.0001
  Prefactor  = 0.000100079
  Prefactor  = 0.000100117
  norm       = 2.69022
  norm       = 4.49276
  Prefactor  = 0.000100001
  norm       = 37.6897
  Prefactor  = 151.546
  norm       = 0.23715
  Prefactor  = 14.1791
  Prefactor  = 0.000100059
  norm       = 4.35848
  Normalizat = 1.00486
  Prefactor  = 1.07338
 **********
 **   18 **HESSE 
 **********

 FCN=   4195.609     FROM HESSE     STATUS=OK           506 CALLS     3054 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7521        10.672        .38607E-02   -1.5188    
   2  Prefactor     43.116        56.169        .15265E-02   -1.4394    
   3  Prefactor     .10000E-03    1.2004        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    25.561        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     114.96        148.56        .93808E-03   -1.3559    
   6  Prefactor     10.139        11.579        .31463E-02   -1.5071    
   7  Prefactor     .10000E-03    6.5121        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     21.745        18.384        .21476E-02   -1.4775    
   9  Prefactor     .10070E-03    38.035        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10019E-03    15.268        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    19.478        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8252        3.0018        .77250E-02   -1.5438    
  13  Prefactor     .10000E-03    1.2466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10008E-03    23.677        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10012E-03    44.137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6902        3.1012        .62073E-02   -1.5380    
  17  norm          4.4928        6.4771        .47518E-02   -1.5284    
  18  Prefactor     .10000E-03    18.226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          37.690        82.433        .16320E-02   -1.4479    
  20  Prefactor     151.55        144.41        .81855E-03   -1.3240    
  21  norm          .23715        .70907        .10147E-01   -1.5611    
  22  Prefactor     14.179        11.740        .26594E-02   -1.4955    
  23  Prefactor     .10006E-03    13.693        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.3585        2.5758        .48240E-02   -1.5290    
  25  Normalizat    1.0049        .26140        .46242E-01   -.92868    
  26  Prefactor     1.0734        .21627        .38746E-01   -.90322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60582e-06
Minuit parameter uncertainties:
  1  10.6749
  2  56.2379
  3  6.23953e-06
  4  0.000550622
  5  149.047
  6  11.5813
  7  3.70208e-06
  8  18.3886
  9  0.010319
  10  0.00341935
  11  0.00177553
  12  3.00208
  13  1.25018e-05
  14  0.00273327
  15  0.00454922
  16  3.10134
  17  6.47815
  18  0.000260533
  19  82.6835
  20  144.752
  21  0.709091
  22  11.7419
  23  0.00180393
  24  2.57582
  25  0.261738
  26  0.216449
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.150e+02  1.490e+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:  1.073e+00  2.164e-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.005e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/191390/likelihoodResults_492307201_492566401_4FGL_J1156.6+0640_daily_bin976.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) = 4194.74304225
delta logL = 0.865893717122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4194.73432436
delta logL = 0.874611610421

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.620       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6536       1.0000          .0000       10.000    
     3 'Normalizat'    .91458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1270       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=   4194.734     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      287 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.716        288.26        .23854E-02   -.70652E-04
   2  Index         3.6520        2.9374        .92060E-01    .81393E-04
   3  Normalizat    .91390        .90723E-01    .66384E-01   -.30833E-03
   4  Prefactor     1.1273        .77698E-01    .53164E-01   -.23114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7159
  Index      = 3.65197
  Normalizat = 0.913904
  Prefactor  = 1.12731
 **********
 **   18 **HESSE 
 **********

 FCN=   4194.734     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.716        438.81        .95414E-04   -1.4866    
   2  Index         3.6520        3.8806        .35534E-02   -.27298    
   3  Normalizat    .91390        .28839        .29366E-03   -.95973    
   4  Prefactor     1.1273        .25068        .23505E-03   -.88598    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.65753e-10
Minuit parameter uncertainties:
  1  177.818
  2  4.51293
  3  0.288875
  4  0.250945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191390': 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) = 4194.73431723
delta logL = 0.874618736972

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.772e+01  1.778e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  3.652e+00  4.513e+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.127e+00  2.509e-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:  9.139e-01  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 179.164 6.673
Photon Index (Free Index): 3.65 +/- 4.51
Photon Flux (Free Index): 1.07e-07 +/- 8.29e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.84e-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/191390/cmap_HighResolution_492307201_492566401_4FGL_J1156.6+0640_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', comment='SUCCESS', energy_flux2='1.72e-05', dlogl='8.75e-01', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-04 17:28:51.910900', photon_index_error2='4.51', photon_index2='3.65', ts='0.80', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.58e-07', energy_flux_error2='1.84e-05', EG='1.00', time_epoch_completed='1630801731.91', return_code='0', job_id='191390', GAL2='1.13', EG2='0.91', return_code2='102', photon_flux_error2='8.29e-08', ts2='2.73', photon_index='2.32' WHERE bin_id='976' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:28:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 191390: <4FGL_J1156.6+0640_daily_bin976> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin976> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:16:33 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:16:34 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:16:34 2021
Terminated at Sat Sep  4 17:28:52 2021
Results reported at Sat Sep  4 17:28:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin976 179.164 6.6728 492307201 492566401 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 :                                   586.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            739 sec.

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

