/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 49 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 = 7484
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin55
RA = 179.164, Dec = 6.6728
tmin = 253584001, tmax = 253843201
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='186467', job_status='RUN', time_executed='2021-09-04 17:02:17.891461', time_epoch_executed='1630800137.89' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186467

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186467/ft1_4FGL_J1156.6+0640_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186467/ft2_4FGL_J1156.6+0640_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186467/ft1_4FGL_J1156.6+0640_daily_bin55.fits outfile=/scratch/kocevski/186467/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin55.fits ra=179.164 dec=6.6728 rad=12.0 tmin=253584001.0 tmax=253843201.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 1.45
user 1.23
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186467/ft1_filtered_4FGL_J1156.6+0640_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/186467/ft2_4FGL_J1156.6+0640_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/186467/ltcube_253584001_253843201_4FGL_J1156.6+0640_daily_bin55.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/186467/ft2_4FGL_J1156.6+0640_daily_bin55.fits
.....................!
real 12.94
user 12.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186467/ft1_filtered_4FGL_J1156.6+0640_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/186467/ft2_4FGL_J1156.6+0640_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/186467/ltcube_253584001_253843201_4FGL_J1156.6+0640_daily_bin55.fits outfile=/scratch/kocevski/186467/expmap_253584001_253843201_4FGL_J1156.6+0640_daily_bin55.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/186467/ltcube_253584001_253843201_4FGL_J1156.6+0640_daily_bin55.fits
.....................!
real 190.99
user 184.99
sys 5.58

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/186467/ft1_filtered_4FGL_J1156.6+0640_daily_bin55.fits scfile=/scratch/kocevski/186467/ft2_4FGL_J1156.6+0640_daily_bin55.fits outfile=/scratch/kocevski/186467/cmap_253584001_253843201_4FGL_J1156.6+0640_daily_bin55.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186467/ft1_filtered_4FGL_J1156.6+0640_daily_bin55.fits scfile=/scratch/kocevski/186467/ft2_4FGL_J1156.6+0640_daily_bin55.fits outfile=/scratch/kocevski/186467/cmap_HighResolution_253584001_253843201_4FGL_J1156.6+0640_daily_bin55.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.164 yref=6.6728 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.098       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.2758       1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.099       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.768       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.565       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .76626       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6135       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.946       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .63714       1.0000         .10000E-03   10000.    
    17 'norm      '    .11423E-03   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 '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5183       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.945       1.0000         .10000E-03   10000.    
    24 'norm      '    1.5743       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2724       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .86994       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=   6112.923     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     2608 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    2.7572        .14627E-05** at limit **
   2  Prefactor     17.093        1.1380       -.21454E-06    .35324E-04
   3  Prefactor     4.2758        3.2257        .11943E-06   -.24808E-04
   4  Prefactor     27.100        1.0086        .12207E-07    .56857E-04
   5  Prefactor     24.770        1.1013        .48467E-06   -.90913E-03
   6  Prefactor     .10010E-03    7.0919       -.75857E-05** at limit **
   7  Prefactor     .10000E-03    6.3617        .14734E-05** at limit **
   8  Prefactor     .10003E-03    6.1905        .85109E-05** at limit **
   9  Prefactor     30.571        1.5929        .11526E-05   -.26080E-02
  10  Prefactor     .10020E-03    23.878       -.41143E-04** at limit **
  11  Prefactor     .10023E-03    27.750        .44997E-04** at limit **
  12  Prefactor     .76648        3.6838       -.68700E-05   -.27591E-03
  13  Prefactor     3.6136        3.2652        .38787E-05    .20686E-03
  14  Prefactor     10.948        1.0986       -.68506E-06    .49331E-03
  15  Prefactor     .10002E-03    2.8426       -.37465E-05** at limit **
  16  norm          .63778        1.3194        .12123E-06   -.13514E-03
  17  norm          .10000E-03    4.6400        .61117E-06** at limit **
  18  Prefactor     .10014E-03    6.3580       -.13852E-04** at limit **
  19  norm          .10020E-03    5.0999        .93849E-05** at limit **
  20  Prefactor     .10003E-03    128.27       -.33773E-04** at limit **
  21  norm          1.5184        .53718        .47757E-07    .14948E-02
  22  Prefactor     .10000E-03    3.8413       -.74668E-07** at limit **
  23  Prefactor     10.944        1.0028        .57692E-07   -.49678E-04
  24  norm          1.5745        1.6943        .54172E-06    .14559E-04
  25  Normalizat    1.2722        .22004        .59829E-06    .91405E-04
  26  Prefactor     .87010        .18867        .78573E-06    .45971E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100015
  Prefactor  = 17.0933
  Prefactor  = 4.27583
  Prefactor  = 27.0997
  Prefactor  = 24.77
  Prefactor  = 0.000100103
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 30.5715
  Prefactor  = 0.000100199
  Prefactor  = 0.00010023
  Prefactor  = 0.766484
  Prefactor  = 3.61357
  Prefactor  = 10.948
  Prefactor  = 0.000100019
  norm       = 0.637778
  norm       = 0.0001
  Prefactor  = 0.000100144
  norm       = 0.0001002
  Prefactor  = 0.000100025
  norm       = 1.51836
  Prefactor  = 0.0001
  Prefactor  = 10.9439
  norm       = 1.57448
  Normalizat = 1.27219
  Prefactor  = 0.870102
 **********
 **   18 **HESSE 
 **********

 FCN=   6112.923     FROM HESSE     STATUS=OK           518 CALLS     3126 TOTAL
                     EDM=   .18E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    5.2854        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.093        25.626        .24215E-02   -1.4881    
   3  Prefactor     4.2758        3.2398        .48711E-02   -1.5294    
   4  Prefactor     27.100        23.484        .19239E-02   -1.4666    
   5  Prefactor     24.770        85.259        .20123E-02   -1.4712    
   6  Prefactor     .10010E-03    12.333        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.2925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    12.151        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.571        63.568        .18118E-02   -1.4602    
  10  Prefactor     .10020E-03    26.981        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10023E-03    30.722        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .76648        3.8560        .12314E-01   -1.5533    
  13  Prefactor     3.6136        3.3509        .53138E-02   -1.5328    
  14  Prefactor     10.948        16.976        .30274E-02   -1.5046    
  15  Prefactor     .10002E-03    5.2495        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .63778        1.5586        .29965E-01   -1.5548    
  17  norm          .10000E-03    1.6867        .31581E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10014E-03    9.4405        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10020E-03    9.8766        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    129.15        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5184        .54407        .73356E-02   -1.5462    
  22  Prefactor     .10000E-03    3.8327        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.944        19.513        .30276E-02   -1.5046    
  24  norm          1.5745        1.7155        .84672E-02   -1.5457    
  25  Normalizat    1.2722        .19366        .56061E-01   -.84400    
  26  Prefactor     .87010        .16312        .44621E-01   -.97194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82563e-07
Minuit parameter uncertainties:
  1  0.000558898
  2  25.6425
  3  3.2399
  4  23.4925
  5  85.6822
  6  0.002258
  7  1.83033e-05
  8  0.00124145
  9  63.7094
  10  0.00463973
  11  0.00532088
  12  3.43848
  13  3.35111
  14  16.9838
  15  0.000635507
  16  1.55873
  17  1.33114e-06
  18  0.00233036
  19  0.00281286
  20  0.00363532
  21  0.54407
  22  1.26717e-05
  23  19.524
  24  1.7156
  25  0.193771
  26  0.163211
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  2.477e+01  8.568e+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:  8.701e-01  1.632e-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.272e+00  1.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.10
Ra Dec: 179.164 6.673
Photon Flux Upper Limit: 8.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186467/likelihoodResults_253584001_253843201_4FGL_J1156.6+0640_daily_bin55.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) = 6112.87291882
delta logL = 0.0502599975507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6112.86870361
delta logL = 0.0544752037968

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.331       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7486       1.0000          .0000       10.000    
     3 'Normalizat'    1.2635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87386       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=   6112.869     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      275 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.334        69.674        .91096E-04    .50294E-04
   2  Index         2.7479        1.4426        .85809E-02    .58744E-04
   3  Normalizat    1.2637        .21851        .24863E-03    .26678E-03
   4  Prefactor     .87365        .18844        .25496E-03    .18331E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.3343
  Index      = 2.74794
  Normalizat = 1.26375
  Prefactor  = 0.87365
 **********
 **   18 **HESSE 
 **********

 FCN=   6112.869     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.334        61.003        .36439E-05   -1.4828    
   2  Index         2.7479        1.2673        .34324E-03   -.46723    
   3  Normalizat    1.2637        .21879        .49725E-04   -.84655    
   4  Prefactor     .87365        .18859        .10198E-04   -.97068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74606e-10
Minuit parameter uncertainties:
  1  61.2012
  2  1.28493
  3  0.218949
  4  0.188735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186467': 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) = 6112.86870281
delta logL = 0.0544760075736

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.933e+01  6.120e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.748e+00  1.285e+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:  8.736e-01  1.887e-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.264e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
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/186467/cmap_HighResolution_253584001_253843201_4FGL_J1156.6+0640_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-03', job_status='DONE', photon_flux_upper_limit='8.48e-08', time_completed='2021-09-04 17:14:05.637825', job_id='186467', GAL2='0.87', fit_tolerance='1e-08', EG2='1.26', EG='1.27', time_epoch_completed='1630800845.64', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='5.45e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='55' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:14:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 186467: <4FGL_J1156.6+0640_daily_bin55> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin55> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 17:01:16 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:01:18 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:01:18 2021
Terminated at Sat Sep  4 17:14:06 2021
Results reported at Sat Sep  4 17:14:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin55 179.164 6.6728 253584001 253843201 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 :                                   707.43 sec.
    Max Memory :                                 1051 MB
    Average Memory :                             290.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   767 sec.
    Turnaround time :                            770 sec.

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

