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


Performing analysis on: 4FGL_J1156.6+0640_daily_bin814
RA = 179.164, Dec = 6.6728
tmin = 450316801, tmax = 450576001
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='189865', job_status='RUN', time_executed='2021-09-04 17:11:58.641574', time_epoch_executed='1630800718.64' WHERE source_name='4FGL J1156.6+0640' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/189865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/189865/ft1_4FGL_J1156.6+0640_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/189865/ft2_4FGL_J1156.6+0640_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/189865/ft1_4FGL_J1156.6+0640_daily_bin814.fits outfile=/scratch/kocevski/189865/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin814.fits ra=179.164 dec=6.6728 rad=12.0 tmin=450316801.0 tmax=450576001.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.36
user 3.76
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/189865/ft2_4FGL_J1156.6+0640_daily_bin814.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/189865/ft1_filteredMKT_4FGL_J1156.6+0640_daily_bin814.fits evtable="EVENTS" outfile="/scratch/kocevski/189865/ft1_filtered_4FGL_J1156.6+0640_daily_bin814.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/189865/ft1_filtered_4FGL_J1156.6+0640_daily_bin814.fits" evtable="EVENTS" scfile=/scratch/kocevski/189865/ft2_4FGL_J1156.6+0640_daily_bin814.fits sctable="SC_DATA" outfile=/scratch/kocevski/189865/ltcube_450316801_450576001_4FGL_J1156.6+0640_daily_bin814.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/189865/ft2_4FGL_J1156.6+0640_daily_bin814.fits
.....................!
real 11.85
user 11.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/189865/ft1_filtered_4FGL_J1156.6+0640_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/189865/ft2_4FGL_J1156.6+0640_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/189865/ltcube_450316801_450576001_4FGL_J1156.6+0640_daily_bin814.fits outfile=/scratch/kocevski/189865/expmap_450316801_450576001_4FGL_J1156.6+0640_daily_bin814.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/189865/ltcube_450316801_450576001_4FGL_J1156.6+0640_daily_bin814.fits
.....................!
real 191.53
user 184.90
sys 6.20

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/189865/ft1_filtered_4FGL_J1156.6+0640_daily_bin814.fits scfile=/scratch/kocevski/189865/ft2_4FGL_J1156.6+0640_daily_bin814.fits outfile=/scratch/kocevski/189865/cmap_450316801_450576001_4FGL_J1156.6+0640_daily_bin814.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/189865/ft1_filtered_4FGL_J1156.6+0640_daily_bin814.fits scfile=/scratch/kocevski/189865/ft2_4FGL_J1156.6+0640_daily_bin814.fits outfile=/scratch/kocevski/189865/cmap_HighResolution_450316801_450576001_4FGL_J1156.6+0640_daily_bin814.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29107       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3815       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.692       1.0000         .10000E-03   10000.    
     9 'Prefactor '    57.747       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.4106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.986       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5433       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.2330       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    27.084       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10373E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .20873       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2326       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79004       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=   5788.901     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3897 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.474       -.72112E-06** at limit **
   2  Prefactor     .10000E-03    9.5306       -.16623E-07** at limit **
   3  Prefactor     .29101        1.6092       -.39513E-07    .20760E-04
   4  Prefactor     .10000E-03    9.5923        .30317E-07** at limit **
   5  Prefactor     15.568        63.957       -.53120E-07   -.23652E-05
   6  Prefactor     .10000E-03    3.0574        .14078E-07** at limit **
   7  Prefactor     4.3818        5.3946        .42567E-07    .31334E-04
   8  Prefactor     13.693        13.022        .29253E-07   -.50911E-05
   9  Prefactor     57.747        89.097        .31195E-06    .58084E-06
  10  Prefactor     .10000E-03    13.248       -.18545E-07** at limit **
  11  Prefactor     7.4111        10.197        .69055E-06    .87135E-04
  12  Prefactor     .10000E-03    1.7308        .40411E-07** at limit **
  13  Prefactor     .10000E-03    2.5663        .97289E-07** at limit **
  14  Prefactor     29.984        24.572       -.13876E-06    .34512E-04
  15  Prefactor     7.5458        8.0245        .43232E-06    .20754E-03
  16  norm          .10000E-03    .85158       -.11749E-07** at limit **
  17  norm          5.2384        5.3783        .89919E-06    .83609E-03
  18  Prefactor     .10000E-03    19.486        .26850E-06** at limit **
  19  norm          27.035        68.654       -.30935E-06    .10962E-03
  20  Prefactor     .10000E-03    79.201       -.77275E-07** at limit **
  21  norm          .10000E-03    .32571       -.40245E-06** at limit **
  22  Prefactor     .10000E-03    4.7575        .61908E-07** at limit **
  23  Prefactor     .10000E-03    12.416        .14273E-06** at limit **
  24  norm          .20918        1.1379        .62963E-06   -.35368E-03
  25  Normalizat    1.2323        .20106       -.13947E-05    .26598E-03
  26  Prefactor     .79030        .16509        .12833E-05    .15107E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.291013
  Prefactor  = 0.0001
  Prefactor  = 15.5682
  Prefactor  = 0.0001
  Prefactor  = 4.38182
  Prefactor  = 13.6929
  Prefactor  = 57.7474
  Prefactor  = 0.0001
  Prefactor  = 7.41108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.9839
  Prefactor  = 7.54578
  norm       = 0.0001
  norm       = 5.23843
  Prefactor  = 0.0001
  norm       = 27.0351
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.209178
  Normalizat = 1.23233
  Prefactor  = 0.790304
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.901     FROM HESSE     STATUS=OK           454 CALLS     4351 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    17.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.5328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .29101        2.9807        .18158E-02   -1.5600    
   4  Prefactor     .10000E-03    9.6055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.568        63.976        .10149E-03   -1.4919    
   6  Prefactor     .10000E-03    3.0617        .12990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3818        5.3895        .19008E-03   -1.5289    
   8  Prefactor     13.693        13.017        .10825E-03   -1.4968    
   9  Prefactor     57.747        89.110        .52792E-04   -1.4187    
  10  Prefactor     .10000E-03    13.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.4111        10.201        .73665E-03   -1.5163    
  12  Prefactor     .10000E-03    1.7427        .97733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.6738        .23789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.984        24.566        .73167E-04   -1.4612    
  15  Prefactor     7.5458        8.0293        .14602E-03   -1.5159    
  16  norm          .10000E-03    .85727        .68453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.2384        5.4406        .12042E-03   -1.5250    
  18  Prefactor     .10000E-03    19.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.035        68.623        .76978E-04   -1.4668    
  20  Prefactor     .10000E-03    79.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4361        .72628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.7689        .16207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .20918        1.5839        .14113E-02   -1.5617    
  25  Normalizat    1.2323        .22705        .24024E-03   -.85610    
  26  Prefactor     .79030        .18978        .24842E-03   -1.0009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11197e-08
Minuit parameter uncertainties:
  1  8.945e-05
  2  4.80457e-06
  3  1.86251
  4  3.13519e-06
  5  63.2352
  6  2.78056e-07
  7  5.39006
  8  13.02
  9  89.3165
  10  1.62439e-05
  11  10.2035
  12  9.32917e-07
  13  3.10855e-06
  14  24.5742
  15  8.03041
  16  1.54532e-06
  17  5.44111
  18  6.66483e-05
  19  68.8248
  20  8.06821e-05
  21  8.58478e-05
  22  1.53993e-06
  23  3.38664e-05
  24  1.15096
  25  0.227235
  26  0.189939
Done.

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

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  1.557e+01  6.324e+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:  7.903e-01  1.899e-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.232e+00  2.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/189865/likelihoodResults_450316801_450576001_4FGL_J1156.6+0640_daily_bin814.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) = 5788.86502356
delta logL = 0.0361093957072

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5788.84633087
delta logL = 0.0548020938313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.398       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8428       1.0000          .0000       10.000    
     3 'Normalizat'    1.2355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78731       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5788.846     FROM MIGRAD    STATUS=FAILED        85 CALLS      259 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.447        82.635        .72671E-04   -.88887E-03
   2  Index         1.8425        1.2135        .11867E-01   -.81417E-03
   3  Normalizat    1.2355        .21919        .23996E-03    .16247E-02
   4  Prefactor     .78729        .18685        .24881E-03    .18498E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5788.846     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      333 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.447        82.635        .98675E-03   -1.4604    
   2  Index         1.8425        1.2135        .13156E-02   -.68347    
   3  Normalizat    1.2355        .21919        .29072E-03   -.85512    
   4  Prefactor     .78729        .18685        .33055E-03   -1.0020    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5788.846     FROM MIGRAD    STATUS=CONVERGED     26 CALLS      359 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.456        82.223        .14534E-04   -.88233E-04
   2  Index         1.8428        1.2078        .47466E-03   -.18457E-04
   3  Normalizat    1.2355        .21936        .47993E-04   -.20183E-04
   4  Prefactor     .78728        .18700        .49762E-04   -.12245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.4561
  Index      = 1.84285
  Normalizat = 1.23552
  Prefactor  = 0.787283
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.846     FROM HESSE     STATUS=OK            23 CALLS      382 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.456        82.236        .29068E-05   -1.4604    
   2  Index         1.8428        1.2077        .94933E-04   -.68340    
   3  Normalizat    1.2355        .21940        .95985E-05   -.85512    
   4  Prefactor     .78728        .18703        .99525E-05   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97749e-10
Minuit parameter uncertainties:
  1  82.5443
  2  1.22811
  3  0.219568
  4  0.187184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/189865': 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) = 5788.84633055
delta logL = 0.0548024086747

Extracting fit parameters...

4FGL J1156.6+0640
   Spectrum: PowerLaw
302    Prefactor:  3.046e+01  8.254e+01  1.000e-04  1.000e+04 ( 1.000e-14)
303        Index:  1.843e+00  1.228e+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:  7.873e-01  1.872e-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.236e+00  2.196e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
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/189865/cmap_HighResolution_450316801_450576001_4FGL_J1156.6+0640_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.00e-03', job_status='DONE', photon_flux_upper_limit='7.81e-08', time_completed='2021-09-04 17:25:01.399564', job_id='189865', GAL2='0.79', fit_tolerance='1e-08', EG2='1.24', EG='1.23', time_epoch_completed='1630801501.4', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='5.48e-02', ts2='0.18', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='814' AND source_name='4FGL J1156.6+0640' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 17:25:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 189865: <4FGL_J1156.6+0640_daily_bin814> in cluster <slac> Done

Job <4FGL_J1156.6+0640_daily_bin814> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 17:11:39 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 17:11: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:11:40 2021
Terminated at Sat Sep  4 17:25:02 2021
Results reported at Sat Sep  4 17:25:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1156.6+0640_daily_bin814 179.164 6.6728 450316801 450576001 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 :                                   781.06 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             351.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

