/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 162 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 = 7659
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1156.6+0640_daily_bin240
RA = 179.164, Dec = 6.6728
tmin = 301536001, tmax = 301795201
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='186750', job_status='RUN', time_executed='2021-09-04 17:04:30.039097', time_epoch_executed='1630800270.04' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186750

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186750/ft1_4FGL_J1156.6+0640_daily_bin240.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186750/ft2_4FGL_J1156.6+0640_daily_bin240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186750/ft1_4FGL_J1156.6+0640_daily_bin240.fits outfile=/scratch/kocevski/186750/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin240.fits ra=179.164 dec=6.6728 rad=12.0 tmin=301536001.0 tmax=301795201.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.58
user 4.34
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186750/ft1_filtered_4FGL_J1156.6+0640_daily_bin240.fits evtable="EVENTS" scfile=/scratch/kocevski/186750/ft2_4FGL_J1156.6+0640_daily_bin240.fits sctable="SC_DATA" expcube=/scratch/kocevski/186750/ltcube_301536001_301795201_4FGL_J1156.6+0640_daily_bin240.fits outfile=/scratch/kocevski/186750/expmap_301536001_301795201_4FGL_J1156.6+0640_daily_bin240.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/186750/ltcube_301536001_301795201_4FGL_J1156.6+0640_daily_bin240.fits
.....................!
real 191.16
user 186.01
sys 4.78

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/186750/ft1_filtered_4FGL_J1156.6+0640_daily_bin240.fits scfile=/scratch/kocevski/186750/ft2_4FGL_J1156.6+0640_daily_bin240.fits outfile=/scratch/kocevski/186750/cmap_301536001_301795201_4FGL_J1156.6+0640_daily_bin240.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186750/ft1_filtered_4FGL_J1156.6+0640_daily_bin240.fits scfile=/scratch/kocevski/186750/ft2_4FGL_J1156.6+0640_daily_bin240.fits outfile=/scratch/kocevski/186750/cmap_HighResolution_301536001_301795201_4FGL_J1156.6+0640_daily_bin240.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2675       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7012       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51314       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33563E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.866       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1904       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    69.088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26680       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0783       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3602       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.6343       1.0000         .10000E-03   10000.    
    17 'norm      '    17.439       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .51206       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.1492       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1038       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94793       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=   6554.118     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     2744 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2678        8.0284       -.20027E-06   -.30641E-04
   2  Prefactor     9.7034        50.035        .20496E-05    .20006E-05
   3  Prefactor     .51348        1.8135        .23081E-06   -.24211E-03
   4  Prefactor     .10000E-03    7.7011        .10045E-05** at limit **
   5  Prefactor     .10000E-03    764.30       -.11821E-03** at limit **
   6  Prefactor     26.864        11.694       -.38137E-06    .21170E-03
   7  Prefactor     2.1895        2.8425        .10572E-05   -.23448E-02
   8  Prefactor     .10000E-03    6.9469        .18965E-05** at limit **
   9  Prefactor     69.088        61.579        .17369E-06    .81074E-05
  10  Prefactor     .10000E-03    19.134       -.19788E-05** at limit **
  11  Prefactor     .10000E-03    7.2127       -.21625E-05** at limit **
  12  Prefactor     .28725        3.9395        .33423E-06   -.26298E-03
  13  Prefactor     1.0697        5.3420       -.46467E-07   -.32490E-03
  14  Prefactor     5.3599        26.792        .19684E-06    .17953E-04
  15  Prefactor     .10000E-03    6.2543        .48404E-08** at limit **
  16  norm          3.6344        2.3892        .82613E-07    .12826E-03
  17  norm          17.439        5.5325        .15849E-05    .85019E-03
  18  Prefactor     .10000E-03    13.509        .92647E-06** at limit **
  19  norm          .10001E-03    180.71        .25619E-06** at limit **
  20  Prefactor     .10000E-03    90.782        .21634E-05** at limit **
  21  norm          .51203        .67011       -.54247E-06   -.14537E-02
  22  Prefactor     .10000E-03    13.194       -.12277E-05** at limit **
  23  Prefactor     .10000E-03    18.128        .27580E-05** at limit **
  24  norm          4.1493        1.8684       -.33681E-07    .25517E-03
  25  Normalizat    1.1038        .19892       -.72187E-06    .26717E-03
  26  Prefactor     .94787        .16243       -.46932E-07    .19344E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.26785
  Prefactor  = 9.70339
  Prefactor  = 0.513476
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 26.8639
  Prefactor  = 2.18949
  Prefactor  = 0.0001
  Prefactor  = 69.0876
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.287253
  Prefactor  = 1.06967
  Prefactor  = 5.35989
  Prefactor  = 0.0001
  norm       = 3.63436
  norm       = 17.4394
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.0001
  norm       = 0.512035
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.14932
  Normalizat = 1.10378
  Prefactor  = 0.94787
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.118     FROM HESSE     STATUS=OK           456 CALLS     3200 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2678        8.0203        .17513E-03   -1.5249    
   2  Prefactor     9.7034        50.348        .12866E-03   -1.5085    
   3  Prefactor     .51348        1.7934        .19519E-03   -1.5565    
   4  Prefactor     .10000E-03    7.7074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    758.42        .42684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.864        11.695        .77289E-04   -1.4671    
   7  Prefactor     2.1895        6.4139        .13904E-02   -1.5412    
   8  Prefactor     .10000E-03    6.9555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     69.088        61.604        .48292E-04   -1.4044    
  10  Prefactor     .10000E-03    19.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.2230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28725        26.787        .24758E-02   -1.5601    
  13  Prefactor     1.0697        6.0756        .28758E-03   -1.5501    
  14  Prefactor     5.3599        26.655        .17358E-03   -1.5245    
  15  Prefactor     .10000E-03    6.2770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.6344        2.3840        .97659E-04   -1.5327    
  17  norm          17.439        5.4447        .87515E-04   -1.4873    
  18  Prefactor     .10000E-03    13.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    184.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    90.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .51203        .64116        .61869E-04   -1.5565    
  22  Prefactor     .10000E-03    13.613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.1493        1.8574        .70202E-04   -1.5301    
  25  Normalizat    1.1038        .23318        .27470E-03   -.89631    
  26  Prefactor     .94787        .19053        .25125E-03   -.94488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17217e-08
Minuit parameter uncertainties:
  1  8.02194
  2  44.2647
  3  1.79361
  4  1.08648e-05
  5  0.0023212
  6  11.696
  7  6.41591
  8  2.08033e-05
  9  61.661
  10  3.7429e-05
  11  2.14782e-05
  12  5.54949
  13  5.09914
  14  23.9225
  15  7.25404e-07
  16  2.38403
  17  5.44484
  18  4.62796e-07
  19  0.0025947
  20  8.08809e-06
  21  0.64117
  22  3.29241e-06
  23  4.43795e-05
  24  1.85741
  25  0.233398
  26  0.190665
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  2.321e-03  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
304        Scale:  1.417e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  9.479e-01  1.907e-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.104e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/186750/likelihoodResults_301536001_301795201_4FGL_J1156.6+0640_daily_bin240.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): 102
logL (Free Index) = 6554.11792268
delta logL = -6.13087286183e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6554.11791671
delta logL = -1.67603502632e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28346E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3036       1.0000          .0000       10.000    
     3 'Normalizat'    1.1038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94788       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=   6554.118     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      279 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    5950.3        .21413E-02** at limit **
   2  Index         2.3010        5.6261        .50000       -.48502E-05
   3  Normalizat    1.1038        .76703E-01    .27470E-03    .89517E-04
   4  Prefactor     .94787        .65891E-01    .25125E-03    .83892E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.301
  Normalizat = 1.10378
  Prefactor  = 0.947871
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.118     FROM HESSE     STATUS=OK            29 CALLS      308 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    607.40        .42827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3010        6.1272        .50000       -.57020    
   3  Normalizat    1.1038        .21748        .10988E-04   -.89631    
   4  Prefactor     .94787        .18694        .10050E-04   -.94488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.55101e-11
Minuit parameter uncertainties:
  1  0.00493118
  2  4.78613
  3  0.217654
  4  0.187064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186750': 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) = 6554.11791656
delta logL = -1.99861460715e-08

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.000e-04  4.931e-03  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  2.301e+00  4.786e+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:  9.479e-01  1.871e-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.104e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/186750/cmap_HighResolution_301536001_301795201_4FGL_J1156.6+0640_daily_bin240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', job_status='DONE', photon_flux_upper_limit='7.94e-08', time_completed='2021-09-04 17:17:08.546553', job_id='186750', GAL2='0.95', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630801028.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-2.00e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='240' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:17:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 186750: <4FGL_J1156.6+0640_daily_bin240> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin240 179.164 6.6728 301536001 301795201 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 :                                   755.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

