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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin454
RA = 179.164, Dec = 6.6728
tmin = 357004801, tmax = 357264001
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='188091', job_status='RUN', time_executed='2021-09-04 17:10:11.302450', time_epoch_executed='1630800611.3' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188091/ft1_4FGL_J1156.6+0640_daily_bin454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188091/ft2_4FGL_J1156.6+0640_daily_bin454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188091/ft1_4FGL_J1156.6+0640_daily_bin454.fits outfile=/scratch/kocevski/188091/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin454.fits ra=179.164 dec=6.6728 rad=12.0 tmin=357004801.0 tmax=357264001.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.95
user 3.70
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/188091/ft2_4FGL_J1156.6+0640_daily_bin454.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/188091/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin454.fits evtable="EVENTS" outfile="/scratch/kocevski/188091/ft1_filtered_4FGL_J1156.6+0640_daily_bin454.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.46
user 0.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/188091/ft1_filtered_4FGL_J1156.6+0640_daily_bin454.fits" evtable="EVENTS" scfile=/scratch/kocevski/188091/ft2_4FGL_J1156.6+0640_daily_bin454.fits sctable="SC_DATA" outfile=/scratch/kocevski/188091/ltcube_357004801_357264001_4FGL_J1156.6+0640_daily_bin454.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/188091/ft2_4FGL_J1156.6+0640_daily_bin454.fits
.....................!
real 12.08
user 11.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188091/ft1_filtered_4FGL_J1156.6+0640_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/188091/ft2_4FGL_J1156.6+0640_daily_bin454.fits sctable="SC_DATA" expcube=/scratch/kocevski/188091/ltcube_357004801_357264001_4FGL_J1156.6+0640_daily_bin454.fits outfile=/scratch/kocevski/188091/expmap_357004801_357264001_4FGL_J1156.6+0640_daily_bin454.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/188091/ltcube_357004801_357264001_4FGL_J1156.6+0640_daily_bin454.fits
.....................!
real 190.24
user 185.08
sys 4.81

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/188091/ft1_filtered_4FGL_J1156.6+0640_daily_bin454.fits scfile=/scratch/kocevski/188091/ft2_4FGL_J1156.6+0640_daily_bin454.fits outfile=/scratch/kocevski/188091/cmap_357004801_357264001_4FGL_J1156.6+0640_daily_bin454.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/188091/ft1_filtered_4FGL_J1156.6+0640_daily_bin454.fits scfile=/scratch/kocevski/188091/ft2_4FGL_J1156.6+0640_daily_bin454.fits outfile=/scratch/kocevski/188091/cmap_HighResolution_357004801_357264001_4FGL_J1156.6+0640_daily_bin454.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.55
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    159.75       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.2442       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .96786       1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.141       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .74373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12230E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4179       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5103       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13674E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7663       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1673       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    64.048       1.0000         .10000E-03   10000.    
    21 'norm      '    2.8022       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2520       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.1030       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1361       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75799       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=   5959.895     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3140 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.5338        .10072E-07** at limit **
   2  Prefactor     .10000E-03    10.471        .70227E-07** at limit **
   3  Prefactor     .10000E-03    .86676        .51611E-07** at limit **
   4  Prefactor     .10000E-03    11.646       -.10656E-06** at limit **
   5  Prefactor     159.84        104.22        .30309E-06    .75064E-05
   6  Prefactor     9.2553        11.065       -.13268E-06   -.12550E-03
   7  Prefactor     .94954        5.5424        .16094E-06    .36298E-04
   8  Prefactor     25.148        18.873       -.51532E-06   -.16534E-03
   9  Prefactor     .39623        78.457        .30883E-05   -.64003E-04
  10  Prefactor     .10000E-03    44.582        .74087E-06** at limit **
  11  Prefactor     .10000E-03    9.9615       -.47326E-07** at limit **
  12  Prefactor     3.4177        4.6883        .29248E-06   -.15704E-04
  13  Prefactor     4.5079        4.0530        .44285E-07   -.44119E-04
  14  Prefactor     .10000E-03    51.967       -.12298E-06** at limit **
  15  Prefactor     6.7681        14.729        .30441E-06   -.17753E-04
  16  norm          4.1660        2.7903       -.18004E-07   -.32165E-04
  17  norm          2.6945        4.5044        .43925E-06   -.29530E-04
  18  Prefactor     .10000E-03    13.080       -.17813E-06** at limit **
  19  norm          .10000E-03    16.132       -.79187E-07** at limit **
  20  Prefactor     63.938        111.30       -.55730E-06   -.30645E-04
  21  norm          2.8020        .81429       -.16364E-07   -.30966E-03
  22  Prefactor     1.2567        5.3983        .21894E-05    .54484E-04
  23  Prefactor     .10000E-03    20.521       -.22653E-06** at limit **
  24  norm          2.1025        2.1806        .16597E-06   -.22424E-04
  25  Normalizat    1.1363        .21449       -.24168E-05   -.10097E-03
  26  Prefactor     .75801        .16730        .12721E-05   -.22539E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 159.835
  Prefactor  = 9.25527
  Prefactor  = 0.949544
  Prefactor  = 25.1481
  Prefactor  = 0.396228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.41768
  Prefactor  = 4.50793
  Prefactor  = 0.0001
  Prefactor  = 6.76809
  norm       = 4.16599
  norm       = 2.6945
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 63.9378
  norm       = 2.80205
  Prefactor  = 1.25673
  Prefactor  = 0.0001
  norm       = 2.1025
  Normalizat = 1.13632
  Prefactor  = 0.758015
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.895     FROM HESSE     STATUS=OK           472 CALLS     3612 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.6322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.5204        .13916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     159.84        104.33        .15952E-03   -1.3173    
   6  Prefactor     9.2553        11.064        .13182E-03   -1.5099    
   7  Prefactor     .94954        25.000        .33570E-02   -1.5513    
   8  Prefactor     25.148        19.016        .79891E-04   -1.4705    
   9  Prefactor     .39623        73.922        .19381       -1.5582    
  10  Prefactor     .10000E-03    44.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.9785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4177        4.6616        .17207E-03   -1.5338    
  13  Prefactor     4.5079        4.0321        .12967E-03   -1.5283    
  14  Prefactor     .10000E-03    52.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7681        14.657        .15425E-03   -1.5188    
  16  norm          4.1660        2.7825        .90805E-04   -1.5300    
  17  norm          2.6945        4.4524        .17966E-03   -1.5380    
  18  Prefactor     .10000E-03    13.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     63.938        111.19        .25072E-03   -1.4107    
  21  norm          2.8020        .81176        .31672E-04   -1.5373    
  22  Prefactor     1.2567        5.4425        .35324E-03   -1.5484    
  23  Prefactor     .10000E-03    20.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.1025        2.1598        .10638E-03   -1.5418    
  25  Normalizat    1.1363        .23907        .25661E-03   -.88594    
  26  Prefactor     .75801        .18753        .25890E-03   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8535e-08
Minuit parameter uncertainties:
  1  8.7699e-06
  2  2.37677e-05
  3  1.43198e-05
  4  1.98529e-05
  5  104.452
  6  11.0668
  7  9.74841
  8  19.0211
  9  10.8362
  10  5.7314e-05
  11  2.15752e-06
  12  4.66206
  13  4.03236
  14  3.34328e-05
  15  14.6649
  16  2.7826
  17  4.45291
  18  1.80635e-05
  19  1.67294e-05
  20  111.552
  21  0.81176
  22  5.23117
  23  4.0039e-05
  24  2.1599
  25  0.239294
  26  0.187691
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.598e+02  1.045e+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:  7.580e-01  1.877e-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.136e+00  2.393e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.90
Ra Dec: 179.164 6.673
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 5.66e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.36e-05

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) = 5959.88012574
delta logL = 0.0149568831257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5959.86557656
delta logL = 0.0295060664585

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    138.18       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5151       1.0000          .0000       10.000    
     3 'Normalizat'    1.1151       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76931       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=   5959.866     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      282 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     138.18        148.07        .34266E-04    .75645E-05
   2  Index         2.5150        .88929        .63460E-02    .63241E-03
   3  Normalizat    1.1151        .24203        .25869E-03    .15513E-04
   4  Prefactor     .76931        .19277        .25720E-03    .31649E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 138.181
  Index      = 2.51503
  Normalizat = 1.11508
  Prefactor  = 0.769314
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.866     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     138.18        132.31        .68532E-05   -1.3352    
   2  Index         2.5150        .79312        .12692E-02   -.52013    
   3  Normalizat    1.1151        .23878        .10348E-04   -.89269    
   4  Prefactor     .76931        .19158        .10288E-04   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84377e-11
Minuit parameter uncertainties:
  1  132.596
  2  0.797603
  3  0.239011
  4  0.191745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188091': 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): 0
logL (Free Index) = 5959.86557656
delta logL = 0.0295060670687

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.382e+02  1.326e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.515e+00  7.976e-01  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:  7.693e-01  1.917e-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.115e+00  2.390e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.96
Ra Dec: 179.164 6.673
Photon Index (Free Index): 2.52 +/- 0.80
Photon Flux (Free Index): 7.18e-08 +/- 7.46e-08
Energy Flux (Free Index): 2.05e-05 +/- 1.24e-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/188091/cmap_HighResolution_357004801_357264001_4FGL_J1156.6+0640_daily_bin454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.66e-08', energy_flux2='2.05e-05', photon_flux_error='3.70e-08', dlogl='2.95e-02', energy_flux='2.08e-05', photon_flux2='7.18e-08', job_status='DONE', time_completed='2021-09-04 17:21:19.829435', photon_index_error2='0.80', photon_index2='2.52', ts='6.90', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='1.24e-05', EG='1.14', time_epoch_completed='1630801279.83', return_code='0', job_id='188091', GAL2='0.77', EG2='1.12', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='7.46e-08', ts2='6.96', photon_index='2.32' WHERE bin_id='454' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:21:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 188091: <4FGL_J1156.6+0640_daily_bin454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin454 179.164 6.6728 357004801 357264001 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 :                                   668.36 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.45 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.

