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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin557
RA = 179.164, Dec = 6.6728
tmin = 383702401, tmax = 383961601
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='188245', job_status='RUN', time_executed='2021-09-04 17:09:20.304018', time_epoch_executed='1630800560.3' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='557'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/188245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/188245/ft1_4FGL_J1156.6+0640_daily_bin557.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/188245/ft2_4FGL_J1156.6+0640_daily_bin557.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/188245/ft1_4FGL_J1156.6+0640_daily_bin557.fits outfile=/scratch/kocevski/188245/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin557.fits ra=179.164 dec=6.6728 rad=12.0 tmin=383702401.0 tmax=383961601.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 4.48
user 4.26
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/188245/ft1_filtered_4FGL_J1156.6+0640_daily_bin557.fits evtable="EVENTS" scfile=/scratch/kocevski/188245/ft2_4FGL_J1156.6+0640_daily_bin557.fits sctable="SC_DATA" expcube=/scratch/kocevski/188245/ltcube_383702401_383961601_4FGL_J1156.6+0640_daily_bin557.fits outfile=/scratch/kocevski/188245/expmap_383702401_383961601_4FGL_J1156.6+0640_daily_bin557.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/188245/ltcube_383702401_383961601_4FGL_J1156.6+0640_daily_bin557.fits
.....................!
real 190.08
user 185.24
sys 4.38

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/188245/ft1_filtered_4FGL_J1156.6+0640_daily_bin557.fits scfile=/scratch/kocevski/188245/ft2_4FGL_J1156.6+0640_daily_bin557.fits outfile=/scratch/kocevski/188245/cmap_383702401_383961601_4FGL_J1156.6+0640_daily_bin557.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.67
user 0.36
sys 0.18

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.546       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .83855       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18898       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.784       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3298       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4236       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1922       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.7703       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6725       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10707E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6694       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.8412       1.0000         .10000E-03   10000.    
    23 'Prefactor '    87.154       1.0000         .10000E-03   10000.    
    24 'norm      '    18.675       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75679       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3004       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=   5614.456     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3142 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.547        10.101        .59345E-07   -.30353E-04
   2  Prefactor     .82684        26.870        .64490E-06   -.16169E-03
   3  Prefactor     .19198        1.3273       -.10692E-06   -.27240E-03
   4  Prefactor     .10000E-03    27.817        .16201E-04** at limit **
   5  Prefactor     53.821        97.347        .36958E-04   -.10874E-04
   6  Prefactor     .10000E-03    7.3400       -.11970E-06** at limit **
   7  Prefactor     5.3323        9.7894       -.73601E-06   -.22484E-03
   8  Prefactor     .10000E-03    7.0769        .10635E-07** at limit **
   9  Prefactor     .10000E-03    53.793       -.89719E-05** at limit **
  10  Prefactor     .10000E-03    87.071        .10755E-04** at limit **
  11  Prefactor     8.0729        38.936        .51585E-06   -.36158E-04
  12  Prefactor     2.4235        6.4077        .70519E-05   -.35726E-03
  13  Prefactor     3.1924        5.2239       -.47237E-05   -.95823E-03
  14  Prefactor     .10000E-03    21.066        .89884E-05** at limit **
  15  Prefactor     9.7709        16.625        .76928E-07   -.46245E-04
  16  norm          .10000E-03    1.3739       -.25277E-08** at limit **
  17  norm          1.6714        4.3709       -.91561E-06   -.85023E-03
  18  Prefactor     .10000E-03    17.135       -.10277E-05** at limit **
  19  norm          .10000E-03    24.526       -.21345E-04** at limit **
  20  Prefactor     .10000E-03    313.94       -.19137E-04** at limit **
  21  norm          1.6694        .79426        .89676E-07    .17252E-03
  22  Prefactor     1.8408        17.269       -.16254E-05   -.24519E-03
  23  Prefactor     87.156        43.226        .72595E-06    .17752E-04
  24  norm          18.675        3.4698        .73218E-07    .18977E-03
  25  Normalizat    .75678        .23434       -.32870E-05   -.41889E-04
  26  Prefactor     1.3004        .19117        .47267E-06   -.15379E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.5474
  Prefactor  = 0.826837
  Prefactor  = 0.191982
  Prefactor  = 0.0001
  Prefactor  = 53.8212
  Prefactor  = 0.0001
  Prefactor  = 5.33233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.07286
  Prefactor  = 2.42352
  Prefactor  = 3.1924
  Prefactor  = 0.0001
  Prefactor  = 9.77089
  norm       = 0.0001
  norm       = 1.67143
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66936
  Prefactor  = 1.84078
  Prefactor  = 87.1558
  norm       = 18.6746
  Normalizat = 0.756783
  Prefactor  = 1.30042
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.456     FROM HESSE     STATUS=OK           460 CALLS     3602 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.547        10.105        .10502E-03   -1.4945    
   2  Prefactor     .82684        239.13        .72986E-02   -1.5526    
   3  Prefactor     .19198        6.6713        .16449E-02   -1.5620    
   4  Prefactor     .10000E-03    27.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.821        96.836        .54692E-04   -1.4239    
   6  Prefactor     .10000E-03    7.3734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.3323        9.7709        .17408E-03   -1.5246    
   8  Prefactor     .10000E-03    7.0889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    53.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    87.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0729        38.287        .14112E-03   -1.5140    
  12  Prefactor     2.4235        6.1338        .23080E-03   -1.5397    
  13  Prefactor     3.1924        5.0912        .16667E-03   -1.5351    
  14  Prefactor     .10000E-03    21.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.7709        16.427        .12820E-03   -1.5083    
  16  norm          .10000E-03    1.3800        .85480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6714        4.3257        .22193E-03   -1.5449    
  18  Prefactor     .10000E-03    17.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    24.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    314.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6694        .77842        .40203E-04   -1.5450    
  22  Prefactor     1.8408        16.911        .30740E-03   -1.5437    
  23  Prefactor     87.156        42.710        .43035E-04   -1.3838    
  24  norm          18.675        3.4684        .57091E-04   -1.4843    
  25  Normalizat    .75678        .27956        .33243E-03   -1.0169    
  26  Prefactor     1.3004        .22870        .23371E-03   -.83295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38589e-09
Minuit parameter uncertainties:
  1  10.1062
  2  28.2355
  3  2.26311
  4  1.02639e-05
  5  97.121
  6  4.39683e-05
  7  9.77386
  8  9.38599e-07
  9  2.3549e-05
  10  0.000610778
  11  35.1982
  12  6.13534
  13  5.09187
  14  9.08309e-06
  15  16.435
  16  1.90775e-06
  17  4.32646
  18  8.28067e-06
  19  3.01638e-05
  20  0.000369999
  21  0.778428
  22  11.1626
  23  42.7255
  24  3.46848
  25  0.280092
  26  0.228872
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  5.382e+01  9.712e+01  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.300e+00  2.289e-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:  7.568e-01  2.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/188245/likelihoodResults_383702401_383961601_4FGL_J1156.6+0640_daily_bin557.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) = 5614.45622036
delta logL = 2.42400346906e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5614.45622022
delta logL = 3.91342837247e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.821       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3188       1.0000          .0000       10.000    
     3 'Normalizat'    .75676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3004       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=   5614.456     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      223 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.749        119.06        .27337E-03   -.22564E-03
   2  Index         2.3202        1.6352        .10399E-01   -.23823E-03
   3  Normalizat    .75670        .25824        .33245E-03   -.21150E-02
   4  Prefactor     1.3005        .22704        .23370E-03   -.28749E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.7485
  Index      = 2.32023
  Normalizat = 0.756701
  Prefactor  = 1.30045
 **********
 **   18 **HESSE 
 **********

 FCN=   5614.456     FROM HESSE     STATUS=OK            23 CALLS      246 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.749        111.96        .54673E-04   -1.4240    
   2  Index         2.3202        1.5370        .41596E-03   -.56564    
   3  Normalizat    .75670        .25735        .66490E-04   -1.0170    
   4  Prefactor     1.3005        .22672        .46741E-04   -.83294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24265e-08
Minuit parameter uncertainties:
  1  112.401
  2  1.57318
  3  0.257765
  4  0.226888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/188245': 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) = 5614.45621976
delta logL = 8.50866854307e-07

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  5.375e+01  1.124e+02  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.320e+00  1.573e+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.300e+00  2.269e-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:  7.567e-01  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/188245/cmap_HighResolution_383702401_383961601_4FGL_J1156.6+0640_daily_bin557.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.30e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-04 17:21:30.129629', job_id='188245', GAL2='1.30', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630801290.13', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='8.51e-07', ts2='0.42', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='557' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:21:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 188245: <4FGL_J1156.6+0640_daily_bin557> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin557 179.164 6.6728 383702401 383961601 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 :                                   728.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

